Reorder x86_64 tests
[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 MICROBLAZE_FALSE
689 MICROBLAZE_TRUE
690 M68K_FALSE
691 M68K_TRUE
692 M32R_FALSE
693 M32R_TRUE
694 IA64_FALSE
695 IA64_TRUE
696 ALPHA_FALSE
697 ALPHA_TRUE
698 X86_DARWIN_FALSE
699 X86_DARWIN_TRUE
700 X86_WIN64_FALSE
701 X86_WIN64_TRUE
702 X86_WIN32_FALSE
703 X86_WIN32_TRUE
704 X86_FREEBSD_FALSE
705 X86_FREEBSD_TRUE
706 X86_FALSE
707 X86_TRUE
708 SPARC_FALSE
709 SPARC_TRUE
710 BFIN_FALSE
711 BFIN_TRUE
712 MIPS_FALSE
713 MIPS_TRUE
714 AM_LTLDFLAGS
715 AM_RUNTESTFLAGS
716 TESTSUBDIR_FALSE
717 TESTSUBDIR_TRUE
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 PRTDIAG
722 CPP
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 MANIFEST_TOOL
729 RANLIB
730 ac_ct_AR
731 AR
732 DLLTOOL
733 OBJDUMP
734 LN_S
735 NM
736 ac_ct_DUMPBIN
737 DUMPBIN
738 LD
739 FGREP
740 EGREP
741 GREP
742 SED
743 LIBTOOL
744 am__fastdepCCAS_FALSE
745 am__fastdepCCAS_TRUE
746 CCASDEPMODE
747 CCASFLAGS
748 CCAS
749 am__fastdepCC_FALSE
750 am__fastdepCC_TRUE
751 CCDEPMODE
752 am__nodep
753 AMDEPBACKSLASH
754 AMDEP_FALSE
755 AMDEP_TRUE
756 am__quote
757 am__include
758 DEPDIR
759 OBJEXT
760 EXEEXT
761 ac_ct_CC
762 CPPFLAGS
763 LDFLAGS
764 CFLAGS
765 CC
766 am__untar
767 am__tar
768 AMTAR
769 am__leading_dot
770 SET_MAKE
771 AWK
772 mkdir_p
773 MKDIR_P
774 INSTALL_STRIP_PROGRAM
775 STRIP
776 install_sh
777 MAKEINFO
778 AUTOHEADER
779 AUTOMAKE
780 AUTOCONF
781 ACLOCAL
782 VERSION
783 PACKAGE
784 CYGPATH_W
785 am__isrc
786 INSTALL_DATA
787 INSTALL_SCRIPT
788 INSTALL_PROGRAM
789 ax_enable_builddir_sed
790 target_os
791 target_vendor
792 target_cpu
793 target
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 enable_builddir
844 enable_dependency_tracking
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 with_gnu_ld
850 with_sysroot
851 enable_libtool_lock
852 enable_portable_binary
853 with_gcc_arch
854 enable_maintainer_mode
855 enable_pax_emutramp
856 enable_debug
857 enable_structs
858 enable_raw_api
859 enable_purify_safety
860 '
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CCAS
865 CCASFLAGS
866 CPP
867 CPPFLAGS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
917
918 ac_prev=
919 ac_dashdash=
920 for ac_option
921 do
922   # If the previous option needs an argument, assign it.
923   if test -n "$ac_prev"; then
924     eval $ac_prev=\$ac_option
925     ac_prev=
926     continue
927   fi
928
929   case $ac_option in
930   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931   *=)   ac_optarg= ;;
932   *)    ac_optarg=yes ;;
933   esac
934
935   # Accept the important Cygnus configure options, so we can diagnose typos.
936
937   case $ac_dashdash$ac_option in
938   --)
939     ac_dashdash=yes ;;
940
941   -bindir | --bindir | --bindi | --bind | --bin | --bi)
942     ac_prev=bindir ;;
943   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944     bindir=$ac_optarg ;;
945
946   -build | --build | --buil | --bui | --bu)
947     ac_prev=build_alias ;;
948   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949     build_alias=$ac_optarg ;;
950
951   -cache-file | --cache-file | --cache-fil | --cache-fi \
952   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953     ac_prev=cache_file ;;
954   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956     cache_file=$ac_optarg ;;
957
958   --config-cache | -C)
959     cache_file=config.cache ;;
960
961   -datadir | --datadir | --datadi | --datad)
962     ac_prev=datadir ;;
963   -datadir=* | --datadir=* | --datadi=* | --datad=*)
964     datadir=$ac_optarg ;;
965
966   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967   | --dataroo | --dataro | --datar)
968     ac_prev=datarootdir ;;
969   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971     datarootdir=$ac_optarg ;;
972
973   -disable-* | --disable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error $? "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=no ;;
988
989   -docdir | --docdir | --docdi | --doc | --do)
990     ac_prev=docdir ;;
991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992     docdir=$ac_optarg ;;
993
994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995     ac_prev=dvidir ;;
996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997     dvidir=$ac_optarg ;;
998
999   -enable-* | --enable-*)
1000     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003       as_fn_error $? "invalid feature name: $ac_useropt"
1004     ac_useropt_orig=$ac_useropt
1005     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006     case $ac_user_opts in
1007       *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011          ac_unrecognized_sep=', ';;
1012     esac
1013     eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017   | --exec | --exe | --ex)
1018     ac_prev=exec_prefix ;;
1019   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021   | --exec=* | --exe=* | --ex=*)
1022     exec_prefix=$ac_optarg ;;
1023
1024   -gas | --gas | --ga | --g)
1025     # Obsolete; use --with-gas.
1026     with_gas=yes ;;
1027
1028   -help | --help | --hel | --he | -h)
1029     ac_init_help=long ;;
1030   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031     ac_init_help=recursive ;;
1032   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033     ac_init_help=short ;;
1034
1035   -host | --host | --hos | --ho)
1036     ac_prev=host_alias ;;
1037   -host=* | --host=* | --hos=* | --ho=*)
1038     host_alias=$ac_optarg ;;
1039
1040   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041     ac_prev=htmldir ;;
1042   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043   | --ht=*)
1044     htmldir=$ac_optarg ;;
1045
1046   -includedir | --includedir | --includedi | --included | --include \
1047   | --includ | --inclu | --incl | --inc)
1048     ac_prev=includedir ;;
1049   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050   | --includ=* | --inclu=* | --incl=* | --inc=*)
1051     includedir=$ac_optarg ;;
1052
1053   -infodir | --infodir | --infodi | --infod | --info | --inf)
1054     ac_prev=infodir ;;
1055   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056     infodir=$ac_optarg ;;
1057
1058   -libdir | --libdir | --libdi | --libd)
1059     ac_prev=libdir ;;
1060   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061     libdir=$ac_optarg ;;
1062
1063   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064   | --libexe | --libex | --libe)
1065     ac_prev=libexecdir ;;
1066   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067   | --libexe=* | --libex=* | --libe=*)
1068     libexecdir=$ac_optarg ;;
1069
1070   -localedir | --localedir | --localedi | --localed | --locale)
1071     ac_prev=localedir ;;
1072   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073     localedir=$ac_optarg ;;
1074
1075   -localstatedir | --localstatedir | --localstatedi | --localstated \
1076   | --localstate | --localstat | --localsta | --localst | --locals)
1077     ac_prev=localstatedir ;;
1078   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080     localstatedir=$ac_optarg ;;
1081
1082   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083     ac_prev=mandir ;;
1084   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085     mandir=$ac_optarg ;;
1086
1087   -nfp | --nfp | --nf)
1088     # Obsolete; use --without-fp.
1089     with_fp=no ;;
1090
1091   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092   | --no-cr | --no-c | -n)
1093     no_create=yes ;;
1094
1095   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097     no_recursion=yes ;;
1098
1099   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101   | --oldin | --oldi | --old | --ol | --o)
1102     ac_prev=oldincludedir ;;
1103   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106     oldincludedir=$ac_optarg ;;
1107
1108   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109     ac_prev=prefix ;;
1110   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111     prefix=$ac_optarg ;;
1112
1113   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114   | --program-pre | --program-pr | --program-p)
1115     ac_prev=program_prefix ;;
1116   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118     program_prefix=$ac_optarg ;;
1119
1120   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121   | --program-suf | --program-su | --program-s)
1122     ac_prev=program_suffix ;;
1123   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125     program_suffix=$ac_optarg ;;
1126
1127   -program-transform-name | --program-transform-name \
1128   | --program-transform-nam | --program-transform-na \
1129   | --program-transform-n | --program-transform- \
1130   | --program-transform | --program-transfor \
1131   | --program-transfo | --program-transf \
1132   | --program-trans | --program-tran \
1133   | --progr-tra | --program-tr | --program-t)
1134     ac_prev=program_transform_name ;;
1135   -program-transform-name=* | --program-transform-name=* \
1136   | --program-transform-nam=* | --program-transform-na=* \
1137   | --program-transform-n=* | --program-transform-=* \
1138   | --program-transform=* | --program-transfor=* \
1139   | --program-transfo=* | --program-transf=* \
1140   | --program-trans=* | --program-tran=* \
1141   | --progr-tra=* | --program-tr=* | --program-t=*)
1142     program_transform_name=$ac_optarg ;;
1143
1144   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145     ac_prev=pdfdir ;;
1146   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147     pdfdir=$ac_optarg ;;
1148
1149   -psdir | --psdir | --psdi | --psd | --ps)
1150     ac_prev=psdir ;;
1151   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152     psdir=$ac_optarg ;;
1153
1154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155   | -silent | --silent | --silen | --sile | --sil)
1156     silent=yes ;;
1157
1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159     ac_prev=sbindir ;;
1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161   | --sbi=* | --sb=*)
1162     sbindir=$ac_optarg ;;
1163
1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166   | --sharedst | --shareds | --shared | --share | --shar \
1167   | --sha | --sh)
1168     ac_prev=sharedstatedir ;;
1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172   | --sha=* | --sh=*)
1173     sharedstatedir=$ac_optarg ;;
1174
1175   -site | --site | --sit)
1176     ac_prev=site ;;
1177   -site=* | --site=* | --sit=*)
1178     site=$ac_optarg ;;
1179
1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181     ac_prev=srcdir ;;
1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183     srcdir=$ac_optarg ;;
1184
1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186   | --syscon | --sysco | --sysc | --sys | --sy)
1187     ac_prev=sysconfdir ;;
1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190     sysconfdir=$ac_optarg ;;
1191
1192   -target | --target | --targe | --targ | --tar | --ta | --t)
1193     ac_prev=target_alias ;;
1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195     target_alias=$ac_optarg ;;
1196
1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198     verbose=yes ;;
1199
1200   -version | --version | --versio | --versi | --vers | -V)
1201     ac_init_version=: ;;
1202
1203   -with-* | --with-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error $? "invalid package name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error $? "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=no ;;
1234
1235   --x)
1236     # Obsolete; use --with-x.
1237     with_x=yes ;;
1238
1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240   | --x-incl | --x-inc | --x-in | --x-i)
1241     ac_prev=x_includes ;;
1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244     x_includes=$ac_optarg ;;
1245
1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248     ac_prev=x_libraries ;;
1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251     x_libraries=$ac_optarg ;;
1252
1253   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     case $ac_envvar in #(
1261       '' | [0-9]* | *[!_$as_cr_alnum]* )
1262       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263     esac
1264     eval $ac_envvar=\$ac_optarg
1265     export $ac_envvar ;;
1266
1267   *)
1268     # FIXME: should be removed in autoconf 3.0.
1269     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273     ;;
1274
1275   esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280   as_fn_error $? "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323   elif test "x$build_alias" != "x$host_alias"; then
1324     cross_compiling=yes
1325   fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337   as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339   as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$as_myself" : 'X\(//\)[^/]' \| \
1349          X"$as_myself" : 'X\(//\)$' \| \
1350          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 fi
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383         pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386   srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_env_${ac_var}_value=\$${ac_var}
1397   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405   # Omit some internal or obsolete options to make the list less imposing.
1406   # This message is too long to be a string in the A/UX 3.1 sh.
1407   cat <<_ACEOF
1408 \`configure' configures libffi 3.0.12-rc0 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418   -h, --help              display this help and exit
1419       --help=short        display options specific to this package
1420       --help=recursive    display the short help of all the included packages
1421   -V, --version           display version information and exit
1422   -q, --quiet, --silent   do not print \`checking ...' messages
1423       --cache-file=FILE   cache test results in FILE [disabled]
1424   -C, --config-cache      alias for \`--cache-file=config.cache'
1425   -n, --no-create         do not create output files
1426       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429   --prefix=PREFIX         install architecture-independent files in PREFIX
1430                           [$ac_default_prefix]
1431   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                           [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442   --bindir=DIR            user executables [EPREFIX/bin]
1443   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444   --libexecdir=DIR        program executables [EPREFIX/libexec]
1445   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448   --libdir=DIR            object code libraries [EPREFIX/lib]
1449   --includedir=DIR        C header files [PREFIX/include]
1450   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453   --infodir=DIR           info documentation [DATAROOTDIR/info]
1454   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455   --mandir=DIR            man documentation [DATAROOTDIR/man]
1456   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1457   --htmldir=DIR           html documentation [DOCDIR]
1458   --dvidir=DIR            dvi documentation [DOCDIR]
1459   --pdfdir=DIR            pdf documentation [DOCDIR]
1460   --psdir=DIR             ps documentation [DOCDIR]
1461 _ACEOF
1462
1463   cat <<\_ACEOF
1464
1465 Program names:
1466   --program-prefix=PREFIX            prepend PREFIX to installed program names
1467   --program-suffix=SUFFIX            append SUFFIX to installed program names
1468   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473   --target=TARGET   configure for building compilers for TARGET [HOST]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of libffi 3.0.12-rc0:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --disable-builddir      disable automatic build in subdir of sources
1488
1489   --enable-dependency-tracking
1490                           do not reject slow dependency extractors
1491   --disable-dependency-tracking
1492                           speeds up one-time build
1493   --enable-shared[=PKGS]  build shared libraries [default=yes]
1494   --enable-static[=PKGS]  build static libraries [default=yes]
1495   --enable-fast-install[=PKGS]
1496                           optimize for fast installation [default=yes]
1497   --disable-libtool-lock  avoid locking (might break parallel builds)
1498   --enable-portable-binary
1499                           disable compiler optimizations that would produce
1500                           unportable binaries
1501   --enable-maintainer-mode
1502                           enable make rules and dependencies not useful (and
1503                           sometimes confusing) to the casual installer
1504   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1505   --enable-debug          debugging mode
1506   --disable-structs       omit code for struct support
1507   --disable-raw-api       make the raw api unavailable
1508   --enable-purify-safety  purify-safe mode
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1514                           both]
1515   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1516   --with-sysroot=DIR Search for dependent libraries within DIR
1517                         (or the compiler's sysroot if not specified).
1518   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1519                           instead of guessing
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   CCAS        assembler compiler command (defaults to CC)
1530   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1531   CPP         C preprocessor
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <http://gcc.gnu.org/bugs.html>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" ||
1545       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546       continue
1547     ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 libffi configure 3.0.12-rc0
1600 generated by GNU Autoconf 2.69
1601
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   rm -f conftest.$ac_objext
1620   if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_compile") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } && {
1636          test -z "$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        } && test -s conftest.$ac_objext; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644         ac_retval=1
1645 fi
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_link ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   rm -f conftest.$ac_objext conftest$ac_exeext
1658   if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_link") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && {
1674          test -z "$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        } && test -s conftest$ac_exeext && {
1677          test "$cross_compiling" = yes ||
1678          test -x conftest$ac_exeext
1679        }; then :
1680   ac_retval=0
1681 else
1682   $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685         ac_retval=1
1686 fi
1687   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689   # interfere with the next link command; also delete a directory that is
1690   # left behind by Apple's compiler.  We do this before executing the actions.
1691   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693   as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_link
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707   $as_echo_n "(cached) " >&6
1708 else
1709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h.  */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715   eval "$3=yes"
1716 else
1717   eval "$3=no"
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_header_compile
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } > conftest.i && {
1750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751          test ! -s conftest.err
1752        }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758     ac_retval=1
1759 fi
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_link") 2>&5
1780   ac_status=$?
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783   { { case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_try") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; }; }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: program exited with status $ac_status" >&5
1796        $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799        ac_retval=$ac_status
1800 fi
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816   $as_echo_n "(cached) " >&6
1817 else
1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1822 #define $2 innocuous_$2
1823
1824 /* System header to define __stub macros and hopefully few prototypes,
1825     which can conflict with char $2 (); below.
1826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827     <limits.h> exists even on freestanding compilers.  */
1828
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1834
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838    Use char because int might match the return type of a GCC
1839    builtin and then its argument prototype would still apply.  */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845     to always fail with ENOSYS.  Some functions are actually named
1846     something starting with __ and the normal name is an alias.  */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main ()
1853 {
1854 return $2 ();
1855   ;
1856   return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860   eval "$3=yes"
1861 else
1862   eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext \
1865     conftest$ac_exeext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_func
1873
1874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875 # --------------------------------------------
1876 # Tries to find the compile-time value of EXPR in a program that includes
1877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1878 # computed
1879 ac_fn_c_compute_int ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   if test "$cross_compiling" = yes; then
1883     # Depending upon the size, compute the lo and hi bounds.
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 $4
1887 int
1888 main ()
1889 {
1890 static int test_array [1 - 2 * !(($2) >= 0)];
1891 test_array [0] = 0;
1892 return test_array [0];
1893
1894   ;
1895   return 0;
1896 }
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899   ac_lo=0 ac_mid=0
1900   while :; do
1901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 int
1905 main ()
1906 {
1907 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1908 test_array [0] = 0;
1909 return test_array [0];
1910
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   ac_hi=$ac_mid; break
1917 else
1918   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919                         if test $ac_lo -le $ac_mid; then
1920                           ac_lo= ac_hi=
1921                           break
1922                         fi
1923                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926   done
1927 else
1928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 $4
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($2) < 0)];
1935 test_array [0] = 0;
1936 return test_array [0];
1937
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   ac_hi=-1 ac_mid=-1
1944   while :; do
1945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1952 test_array [0] = 0;
1953 return test_array [0];
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960   ac_lo=$ac_mid; break
1961 else
1962   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1963                         if test $ac_mid -le $ac_hi; then
1964                           ac_lo= ac_hi=
1965                           break
1966                         fi
1967                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970   done
1971 else
1972   ac_lo= ac_hi=
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 # Binary search between lo and hi bounds.
1978 while test "x$ac_lo" != "x$ac_hi"; do
1979   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1987 test_array [0] = 0;
1988 return test_array [0];
1989
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995   ac_hi=$ac_mid
1996 else
1997   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 done
2001 case $ac_lo in #((
2002 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2003 '') ac_retval=1 ;;
2004 esac
2005   else
2006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $4
2009 static long int longval () { return $2; }
2010 static unsigned long int ulongval () { return $2; }
2011 #include <stdio.h>
2012 #include <stdlib.h>
2013 int
2014 main ()
2015 {
2016
2017   FILE *f = fopen ("conftest.val", "w");
2018   if (! f)
2019     return 1;
2020   if (($2) < 0)
2021     {
2022       long int i = longval ();
2023       if (i != ($2))
2024         return 1;
2025       fprintf (f, "%ld", i);
2026     }
2027   else
2028     {
2029       unsigned long int i = ulongval ();
2030       if (i != ($2))
2031         return 1;
2032       fprintf (f, "%lu", i);
2033     }
2034   /* Do not output a trailing newline, as this causes \r\n confusion
2035      on some platforms.  */
2036   return ferror (f) || fclose (f) != 0;
2037
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_run "$LINENO"; then :
2043   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2044 else
2045   ac_retval=1
2046 fi
2047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2048   conftest.$ac_objext conftest.beam conftest.$ac_ext
2049 rm -f conftest.val
2050
2051   fi
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053   as_fn_set_status $ac_retval
2054
2055 } # ac_fn_c_compute_int
2056
2057 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2060 # the include files in INCLUDES and setting the cache variable VAR
2061 # accordingly.
2062 ac_fn_c_check_header_mongrel ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   if eval \${$3+:} false; then :
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069   $as_echo_n "(cached) " >&6
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 else
2075   # Is the header compilable?
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2077 $as_echo_n "checking $2 usability... " >&6; }
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084   ac_header_compiler=yes
2085 else
2086   ac_header_compiler=no
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2090 $as_echo "$ac_header_compiler" >&6; }
2091
2092 # Is the header present?
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2094 $as_echo_n "checking $2 presence... " >&6; }
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_c_try_cpp "$LINENO"; then :
2100   ac_header_preproc=yes
2101 else
2102   ac_header_preproc=no
2103 fi
2104 rm -f conftest.err conftest.i conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2106 $as_echo "$ac_header_preproc" >&6; }
2107
2108 # So?  What about this header?
2109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2110   yes:no: )
2111     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2112 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115     ;;
2116   no:yes:* )
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2118 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2120 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2122 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2124 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ( $as_echo "## ------------------------------------------- ##
2128 ## Report this to http://gcc.gnu.org/bugs.html ##
2129 ## ------------------------------------------- ##"
2130      ) | sed "s/^/$as_me: WARNING:     /" >&2
2131     ;;
2132 esac
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136   $as_echo_n "(cached) " >&6
2137 else
2138   eval "$3=\$ac_header_compiler"
2139 fi
2140 eval ac_res=\$$3
2141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 fi
2144   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145
2146 } # ac_fn_c_check_header_mongrel
2147
2148 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2149 # -------------------------------------------
2150 # Tests whether TYPE exists after having included INCLUDES, setting cache
2151 # variable VAR accordingly.
2152 ac_fn_c_check_type ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158   $as_echo_n "(cached) " >&6
2159 else
2160   eval "$3=no"
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 int
2165 main ()
2166 {
2167 if (sizeof ($2))
2168          return 0;
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 if (sizeof (($2)))
2181             return 0;
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187
2188 else
2189   eval "$3=yes"
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 eval ac_res=\$$3
2196                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200 } # ac_fn_c_check_type
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2204
2205 It was created by libffi $as_me 3.0.12-rc0, which was
2206 generated by GNU Autoconf 2.69.  Invocation command line was
2207
2208   $ $0 $@
2209
2210 _ACEOF
2211 exec 5>>config.log
2212 {
2213 cat <<_ASUNAME
2214 ## --------- ##
2215 ## Platform. ##
2216 ## --------- ##
2217
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2226
2227 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2228 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2231 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2232 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2233 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2234
2235 _ASUNAME
2236
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242     $as_echo "PATH: $as_dir"
2243   done
2244 IFS=$as_save_IFS
2245
2246 } >&5
2247
2248 cat >&5 <<_ACEOF
2249
2250
2251 ## ----------- ##
2252 ## Core tests. ##
2253 ## ----------- ##
2254
2255 _ACEOF
2256
2257
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2263 ac_configure_args=
2264 ac_configure_args0=
2265 ac_configure_args1=
2266 ac_must_keep_next=false
2267 for ac_pass in 1 2
2268 do
2269   for ac_arg
2270   do
2271     case $ac_arg in
2272     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274     | -silent | --silent | --silen | --sile | --sil)
2275       continue ;;
2276     *\'*)
2277       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278     esac
2279     case $ac_pass in
2280     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281     2)
2282       as_fn_append ac_configure_args1 " '$ac_arg'"
2283       if test $ac_must_keep_next = true; then
2284         ac_must_keep_next=false # Got value, back to normal.
2285       else
2286         case $ac_arg in
2287           *=* | --config-cache | -C | -disable-* | --disable-* \
2288           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290           | -with-* | --with-* | -without-* | --without-* | --x)
2291             case "$ac_configure_args0 " in
2292               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293             esac
2294             ;;
2295           -* ) ac_must_keep_next=true ;;
2296         esac
2297       fi
2298       as_fn_append ac_configure_args " '$ac_arg'"
2299       ;;
2300     esac
2301   done
2302 done
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log.  We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312   # Save into config.log some information that might help in debugging.
2313   {
2314     echo
2315
2316     $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2319     echo
2320     # The following way of writing the cache mishandles newlines in values,
2321 (
2322   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323     eval ac_val=\$$ac_var
2324     case $ac_val in #(
2325     *${as_nl}*)
2326       case $ac_var in #(
2327       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329       esac
2330       case $ac_var in #(
2331       _ | IFS | as_nl) ;; #(
2332       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333       *) { eval $ac_var=; unset $ac_var;} ;;
2334       esac ;;
2335     esac
2336   done
2337   (set) 2>&1 |
2338     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339     *${as_nl}ac_space=\ *)
2340       sed -n \
2341         "s/'\''/'\''\\\\'\'''\''/g;
2342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343       ;; #(
2344     *)
2345       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346       ;;
2347     esac |
2348     sort
2349 )
2350     echo
2351
2352     $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2355     echo
2356     for ac_var in $ac_subst_vars
2357     do
2358       eval ac_val=\$$ac_var
2359       case $ac_val in
2360       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361       esac
2362       $as_echo "$ac_var='\''$ac_val'\''"
2363     done | sort
2364     echo
2365
2366     if test -n "$ac_subst_files"; then
2367       $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2370       echo
2371       for ac_var in $ac_subst_files
2372       do
2373         eval ac_val=\$$ac_var
2374         case $ac_val in
2375         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376         esac
2377         $as_echo "$ac_var='\''$ac_val'\''"
2378       done | sort
2379       echo
2380     fi
2381
2382     if test -s confdefs.h; then
2383       $as_echo "## ----------- ##
2384 ## confdefs.h. ##
2385 ## ----------- ##"
2386       echo
2387       cat confdefs.h
2388       echo
2389     fi
2390     test "$ac_signal" != 0 &&
2391       $as_echo "$as_me: caught signal $ac_signal"
2392     $as_echo "$as_me: exit $exit_status"
2393   } >&5
2394   rm -f core *.core core.conftest.* &&
2395     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396     exit $exit_status
2397 ' 0
2398 for ac_signal in 1 2 13 15; do
2399   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 done
2401 ac_signal=0
2402
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2405
2406 $as_echo "/* confdefs.h */" > confdefs.h
2407
2408 # Predefined preprocessor variables.
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2432 _ACEOF
2433
2434
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2437 ac_site_file1=NONE
2438 ac_site_file2=NONE
2439 if test -n "$CONFIG_SITE"; then
2440   # We do not want a PATH search for config.site.
2441   case $CONFIG_SITE in #((
2442     -*)  ac_site_file1=./$CONFIG_SITE;;
2443     */*) ac_site_file1=$CONFIG_SITE;;
2444     *)   ac_site_file1=./$CONFIG_SITE;;
2445   esac
2446 elif test "x$prefix" != xNONE; then
2447   ac_site_file1=$prefix/share/config.site
2448   ac_site_file2=$prefix/etc/config.site
2449 else
2450   ac_site_file1=$ac_default_prefix/share/config.site
2451   ac_site_file2=$ac_default_prefix/etc/config.site
2452 fi
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454 do
2455   test "x$ac_site_file" = xNONE && continue
2456   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459     sed 's/^/| /' "$ac_site_file" >&5
2460     . "$ac_site_file" \
2461       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2465   fi
2466 done
2467
2468 if test -r "$cache_file"; then
2469   # Some versions of bash will fail to source /dev/null (special files
2470   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2471   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2474     case $cache_file in
2475       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476       *)                      . "./$cache_file";;
2477     esac
2478   fi
2479 else
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2482   >$cache_file
2483 fi
2484
2485 # Check that the precious variables saved in the cache have kept the same
2486 # value.
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490   eval ac_new_set=\$ac_env_${ac_var}_set
2491   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492   eval ac_new_val=\$ac_env_${ac_var}_value
2493   case $ac_old_set,$ac_new_set in
2494     set,)
2495       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497       ac_cache_corrupted=: ;;
2498     ,set)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,);;
2503     *)
2504       if test "x$ac_old_val" != "x$ac_new_val"; then
2505         # differences in whitespace do not lead to failure.
2506         ac_old_val_w=`echo x $ac_old_val`
2507         ac_new_val_w=`echo x $ac_new_val`
2508         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511           ac_cache_corrupted=:
2512         else
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515           eval $ac_var=\$ac_old_val
2516         fi
2517         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2518 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2521       fi;;
2522   esac
2523   # Pass precious variables to config.status.
2524   if test "$ac_new_set" = set; then
2525     case $ac_new_val in
2526     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527     *) ac_arg=$ac_var=$ac_new_val ;;
2528     esac
2529     case " $ac_configure_args " in
2530       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2531       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2532     esac
2533   fi
2534 done
2535 if $ac_cache_corrupted; then
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2541 fi
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2545
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551
2552
2553 ac_config_headers="$ac_config_headers fficonfig.h"
2554
2555
2556 ac_aux_dir=
2557 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2558   if test -f "$ac_dir/install-sh"; then
2559     ac_aux_dir=$ac_dir
2560     ac_install_sh="$ac_aux_dir/install-sh -c"
2561     break
2562   elif test -f "$ac_dir/install.sh"; then
2563     ac_aux_dir=$ac_dir
2564     ac_install_sh="$ac_aux_dir/install.sh -c"
2565     break
2566   elif test -f "$ac_dir/shtool"; then
2567     ac_aux_dir=$ac_dir
2568     ac_install_sh="$ac_aux_dir/shtool install -c"
2569     break
2570   fi
2571 done
2572 if test -z "$ac_aux_dir"; then
2573   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2574 fi
2575
2576 # These three variables are undocumented and unsupported,
2577 # and are intended to be withdrawn in a future Autoconf release.
2578 # They can cause serious problems if a builder's source tree is in a directory
2579 # whose full name contains unusual characters.
2580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2582 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2583
2584
2585 # Make sure we can run config.sub.
2586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590 $as_echo_n "checking build system type... " >&6; }
2591 if ${ac_cv_build+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   ac_build_alias=$build_alias
2595 test "x$ac_build_alias" = x &&
2596   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597 test "x$ac_build_alias" = x &&
2598   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2601
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604 $as_echo "$ac_cv_build" >&6; }
2605 case $ac_cv_build in
2606 *-*-*) ;;
2607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2608 esac
2609 build=$ac_cv_build
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_build
2612 shift
2613 build_cpu=$1
2614 build_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 build_os=$*
2619 IFS=$ac_save_IFS
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624 $as_echo_n "checking host system type... " >&6; }
2625 if ${ac_cv_host+:} false; then :
2626   $as_echo_n "(cached) " >&6
2627 else
2628   if test "x$host_alias" = x; then
2629   ac_cv_host=$ac_cv_build
2630 else
2631   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2633 fi
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637 $as_echo "$ac_cv_host" >&6; }
2638 case $ac_cv_host in
2639 *-*-*) ;;
2640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2641 esac
2642 host=$ac_cv_host
2643 ac_save_IFS=$IFS; IFS='-'
2644 set x $ac_cv_host
2645 shift
2646 host_cpu=$1
2647 host_vendor=$2
2648 shift; shift
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2651 host_os=$*
2652 IFS=$ac_save_IFS
2653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2654
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657 $as_echo_n "checking target system type... " >&6; }
2658 if ${ac_cv_target+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   if test "x$target_alias" = x; then
2662   ac_cv_target=$ac_cv_host
2663 else
2664   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2666 fi
2667
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670 $as_echo "$ac_cv_target" >&6; }
2671 case $ac_cv_target in
2672 *-*-*) ;;
2673 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2674 esac
2675 target=$ac_cv_target
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_target
2678 shift
2679 target_cpu=$1
2680 target_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 target_os=$*
2685 IFS=$ac_save_IFS
2686 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2687
2688
2689 # The aliases save the names the user supplied, while $host etc.
2690 # will get canonicalized.
2691 test -n "$target_alias" &&
2692   test "$program_prefix$program_suffix$program_transform_name" = \
2693     NONENONEs,x,x, &&
2694   program_prefix=${target_alias}-
2695
2696 target_alias=${target_alias-$host_alias}
2697
2698 . ${srcdir}/configure.host
2699
2700
2701    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2702    if test "${ac_configure_args+set}" != "set" ; then
2703       ac_configure_args=
2704       for ac_arg in ${1+"$@"}; do
2705          ac_configure_args="$ac_configure_args '$ac_arg'"
2706       done
2707    fi
2708
2709 # expand $ac_aux_dir to an absolute path
2710 am_aux_dir=`cd $ac_aux_dir && pwd`
2711
2712
2713 ax_enable_builddir="."
2714 # Check whether --enable-builddir was given.
2715 if test "${enable_builddir+set}" = set; then :
2716   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2717 else
2718   ax_enable_builddir="auto"
2719 fi
2720
2721 if test ".$ac_srcdir_defaulted" != ".no" ; then
2722 if test ".$srcdir" = ".." ; then
2723   if test -f config.status ; then
2724     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2725 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2726   else
2727     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2728     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2729     test ".$TARGET" = "." && TARGET="$target"
2730     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2731     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2732       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2733       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2734       cd $ax_enable_builddir
2735       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2736         rm conftest.tmp
2737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2738 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2739       else
2740         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2741       fi
2742       srcdir=`echo "$ax_enable_builddir" |
2743               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2744       # going to restart from subdirectory location
2745       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2746       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2747       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2748       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2750 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2751       case "$0" in # restart
2752        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2753        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2754       esac ; exit $?
2755     fi
2756   fi
2757 fi fi
2758 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2759 # Extract the first word of "gsed sed", so it can be a program name with args.
2760 set dummy gsed sed; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   case $ax_enable_builddir_sed in
2767   [\\/]* | ?:[\\/]*)
2768   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2769   ;;
2770   *)
2771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2787   ;;
2788 esac
2789 fi
2790 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2791 if test -n "$ax_enable_builddir_sed"; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2793 $as_echo "$ax_enable_builddir_sed" >&6; }
2794 else
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799
2800 ax_enable_builddir_auxdir="$am_aux_dir"
2801 ac_config_commands="$ac_config_commands buildir"
2802
2803
2804 am__api_version='1.12'
2805
2806 # Find a good install program.  We prefer a C program (faster),
2807 # so one script is as good as another.  But avoid the broken or
2808 # incompatible versions:
2809 # SysV /etc/install, /usr/sbin/install
2810 # SunOS /usr/etc/install
2811 # IRIX /sbin/install
2812 # AIX /bin/install
2813 # AmigaOS /C/install, which installs bootblocks on floppy discs
2814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2817 # OS/2's system install, which has a completely different semantic
2818 # ./install, which can be erroneously created by make from ./install.sh.
2819 # Reject install programs that cannot install multiple files.
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2821 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2822 if test -z "$INSTALL"; then
2823 if ${ac_cv_path_install+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831     # Account for people who put trailing slashes in PATH elements.
2832 case $as_dir/ in #((
2833   ./ | .// | /[cC]/* | \
2834   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2835   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2836   /usr/ucb/* ) ;;
2837   *)
2838     # OSF1 and SCO ODT 3.0 have their own names for install.
2839     # Don't use installbsd from OSF since it installs stuff as root
2840     # by default.
2841     for ac_prog in ginstall scoinst install; do
2842       for ac_exec_ext in '' $ac_executable_extensions; do
2843         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2844           if test $ac_prog = install &&
2845             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846             # AIX install.  It has an incompatible calling convention.
2847             :
2848           elif test $ac_prog = install &&
2849             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2850             # program-specific install script used by HP pwplus--don't use.
2851             :
2852           else
2853             rm -rf conftest.one conftest.two conftest.dir
2854             echo one > conftest.one
2855             echo two > conftest.two
2856             mkdir conftest.dir
2857             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2858               test -s conftest.one && test -s conftest.two &&
2859               test -s conftest.dir/conftest.one &&
2860               test -s conftest.dir/conftest.two
2861             then
2862               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2863               break 3
2864             fi
2865           fi
2866         fi
2867       done
2868     done
2869     ;;
2870 esac
2871
2872   done
2873 IFS=$as_save_IFS
2874
2875 rm -rf conftest.one conftest.two conftest.dir
2876
2877 fi
2878   if test "${ac_cv_path_install+set}" = set; then
2879     INSTALL=$ac_cv_path_install
2880   else
2881     # As a last resort, use the slow shell script.  Don't cache a
2882     # value for INSTALL within a source directory, because that will
2883     # break other packages using the cache if that directory is
2884     # removed, or if the value is a relative name.
2885     INSTALL=$ac_install_sh
2886   fi
2887 fi
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2889 $as_echo "$INSTALL" >&6; }
2890
2891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2892 # It thinks the first close brace ends the variable substitution.
2893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2894
2895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2896
2897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2900 $as_echo_n "checking whether build environment is sane... " >&6; }
2901 # Reject unsafe characters in $srcdir or the absolute working directory
2902 # name.  Accept space and tab only in the latter.
2903 am_lf='
2904 '
2905 case `pwd` in
2906   *[\\\"\#\$\&\'\`$am_lf]*)
2907     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2908 esac
2909 case $srcdir in
2910   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2911     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2912 esac
2913
2914 # Do 'set' in a subshell so we don't clobber the current shell's
2915 # arguments.  Must try -L first in case configure is actually a
2916 # symlink; some systems play weird games with the mod time of symlinks
2917 # (eg FreeBSD returns the mod time of the symlink's containing
2918 # directory).
2919 if (
2920    am_has_slept=no
2921    for am_try in 1 2; do
2922      echo "timestamp, slept: $am_has_slept" > conftest.file
2923      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2924      if test "$*" = "X"; then
2925         # -L didn't work.
2926         set X `ls -t "$srcdir/configure" conftest.file`
2927      fi
2928      if test "$*" != "X $srcdir/configure conftest.file" \
2929         && test "$*" != "X conftest.file $srcdir/configure"; then
2930
2931         # If neither matched, then we have a broken ls.  This can happen
2932         # if, for instance, CONFIG_SHELL is bash and it inherits a
2933         # broken ls alias from the environment.  This has actually
2934         # happened.  Such a system could not be considered "sane".
2935         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2936   alias in your environment" "$LINENO" 5
2937      fi
2938      if test "$2" = conftest.file || test $am_try -eq 2; then
2939        break
2940      fi
2941      # Just in case.
2942      sleep 1
2943      am_has_slept=yes
2944    done
2945    test "$2" = conftest.file
2946    )
2947 then
2948    # Ok.
2949    :
2950 else
2951    as_fn_error $? "newly created file is older than distributed files!
2952 Check your system clock" "$LINENO" 5
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 # If we didn't sleep, we still need to ensure time stamps of config.status and
2957 # generated files are strictly newer.
2958 am_sleep_pid=
2959 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2960   ( sleep 1 ) &
2961   am_sleep_pid=$!
2962 fi
2963
2964 rm -f conftest.file
2965
2966 test "$program_prefix" != NONE &&
2967   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2968 # Use a double $ so make ignores it.
2969 test "$program_suffix" != NONE &&
2970   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2971 # Double any \ or $.
2972 # By default was `s,x,x', remove it if useless.
2973 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2974 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2975
2976 if test x"${MISSING+set}" != xset; then
2977   case $am_aux_dir in
2978   *\ * | *\     *)
2979     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2980   *)
2981     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2982   esac
2983 fi
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --run true"; then
2986   am_missing_run="$MISSING --run "
2987 else
2988   am_missing_run=
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2991 fi
2992
2993 if test x"${install_sh}" != xset; then
2994   case $am_aux_dir in
2995   *\ * | *\     *)
2996     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2997   *)
2998     install_sh="\${SHELL} $am_aux_dir/install-sh"
2999   esac
3000 fi
3001
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip".  However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no; then
3007   if test -n "$ac_tool_prefix"; then
3008   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   if test -n "$STRIP"; then
3016   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027     break 2
3028   fi
3029 done
3030   done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 STRIP=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3039 else
3040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$ac_cv_prog_STRIP"; then
3047   ac_ct_STRIP=$STRIP
3048   # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   if test -n "$ac_ct_STRIP"; then
3056   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061   IFS=$as_save_IFS
3062   test -z "$as_dir" && as_dir=.
3063     for ac_exec_ext in '' $ac_executable_extensions; do
3064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065     ac_cv_prog_ac_ct_STRIP="strip"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3079 else
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084   if test "x$ac_ct_STRIP" = x; then
3085     STRIP=":"
3086   else
3087     case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093     STRIP=$ac_ct_STRIP
3094   fi
3095 else
3096   STRIP="$ac_cv_prog_STRIP"
3097 fi
3098
3099 fi
3100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105   if ${ac_cv_path_mkdir+:} false; then :
3106   $as_echo_n "(cached) " >&6
3107 else
3108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_prog in mkdir gmkdir; do
3114          for ac_exec_ext in '' $ac_executable_extensions; do
3115            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3116            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117              'mkdir (GNU coreutils) '* | \
3118              'mkdir (coreutils) '* | \
3119              'mkdir (fileutils) '4.1*)
3120                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3121                break 3;;
3122            esac
3123          done
3124        done
3125   done
3126 IFS=$as_save_IFS
3127
3128 fi
3129
3130   test -d ./--version && rmdir ./--version
3131   if test "${ac_cv_path_mkdir+set}" = set; then
3132     MKDIR_P="$ac_cv_path_mkdir -p"
3133   else
3134     # As a last resort, use the slow shell script.  Don't cache a
3135     # value for MKDIR_P within a source directory, because that will
3136     # break other packages using the cache if that directory is
3137     # removed, or if the value is a relative name.
3138     MKDIR_P="$ac_install_sh -d"
3139   fi
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3143
3144 for ac_prog in gawk mawk nawk awk
3145 do
3146   # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_AWK+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$AWK"; then
3154   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163     ac_cv_prog_AWK="$ac_prog"
3164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168   done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 AWK=$ac_cv_prog_AWK
3174 if test -n "$AWK"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3176 $as_echo "$AWK" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183   test -n "$AWK" && break
3184 done
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3187 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3188 set x ${MAKE-make}
3189 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3190 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   cat >conftest.make <<\_ACEOF
3194 SHELL = /bin/sh
3195 all:
3196         @echo '@@@%%%=$(MAKE)=@@@%%%'
3197 _ACEOF
3198 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3200   *@@@%%%=?*=@@@%%%*)
3201     eval ac_cv_prog_make_${ac_make}_set=yes;;
3202   *)
3203     eval ac_cv_prog_make_${ac_make}_set=no;;
3204 esac
3205 rm -f conftest.make
3206 fi
3207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3210   SET_MAKE=
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214   SET_MAKE="MAKE=${MAKE-make}"
3215 fi
3216
3217 rm -rf .tst 2>/dev/null
3218 mkdir .tst 2>/dev/null
3219 if test -d .tst; then
3220   am__leading_dot=.
3221 else
3222   am__leading_dot=_
3223 fi
3224 rmdir .tst 2>/dev/null
3225
3226 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3227   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3228   # is not polluted with repeated "-I."
3229   am__isrc=' -I$(srcdir)'
3230   # test to see if srcdir already configured
3231   if test -f $srcdir/config.status; then
3232     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3233   fi
3234 fi
3235
3236 # test whether we have cygpath
3237 if test -z "$CYGPATH_W"; then
3238   if (cygpath --version) >/dev/null 2>/dev/null; then
3239     CYGPATH_W='cygpath -w'
3240   else
3241     CYGPATH_W=echo
3242   fi
3243 fi
3244
3245
3246 # Define the identity of the package.
3247  PACKAGE='libffi'
3248  VERSION='3.0.12-rc0'
3249
3250
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE "$PACKAGE"
3253 _ACEOF
3254
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define VERSION "$VERSION"
3258 _ACEOF
3259
3260 # Some tools Automake needs.
3261
3262 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3263
3264
3265 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3266
3267
3268 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3269
3270
3271 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3272
3273
3274 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3275
3276 # For better backward compatibility.  To be removed once Automake 1.9.x
3277 # dies out for good.  For more background, see:
3278 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3279 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3280 mkdir_p='$(MKDIR_P)'
3281
3282 # We need awk for the "check" target.  The system "awk" is bad on
3283 # some platforms.
3284 # Always define AMTAR for backward compatibility.  Yes, it's still used
3285 # in the wild :-(  We should find a proper way to deprecate it ...
3286 AMTAR='$${TAR-tar}'
3287
3288 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3289
3290
3291
3292
3293
3294
3295 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3296 # We must force CC to /not/ be precious variables; otherwise
3297 # the wrong, non-multilib-adjusted value will be used in multilibs.
3298 # As a side effect, we have to subst CFLAGS ourselves.
3299 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3300 # defaults of its own if none are provided.
3301
3302
3303
3304 save_CFLAGS=$CFLAGS
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   if test -n "$CC"; then
3319   ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_exec_ext in '' $ac_executable_extensions; do
3327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333   done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$ac_cv_prog_CC"; then
3350   ac_ct_CC=$CC
3351   # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$ac_ct_CC"; then
3359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_ac_ct_CC="gcc"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387   if test "x$ac_ct_CC" = x; then
3388     CC=""
3389   else
3390     case $cross_compiling:$ac_tool_warned in
3391 yes:)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3395 esac
3396     CC=$ac_ct_CC
3397   fi
3398 else
3399   CC="$ac_cv_prog_CC"
3400 fi
3401
3402 if test -z "$CC"; then
3403           if test -n "$ac_tool_prefix"; then
3404     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   if test -n "$CC"; then
3412   ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417   IFS=$as_save_IFS
3418   test -z "$as_dir" && as_dir=.
3419     for ac_exec_ext in '' $ac_executable_extensions; do
3420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421     ac_cv_prog_CC="${ac_tool_prefix}cc"
3422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423     break 2
3424   fi
3425 done
3426   done
3427 IFS=$as_save_IFS
3428
3429 fi
3430 fi
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441   fi
3442 fi
3443 if test -z "$CC"; then
3444   # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   if test -n "$CC"; then
3452   ac_cv_prog_CC="$CC" # Let the user override the test.
3453 else
3454   ac_prog_rejected=no
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463        ac_prog_rejected=yes
3464        continue
3465      fi
3466     ac_cv_prog_CC="cc"
3467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468     break 2
3469   fi
3470 done
3471   done
3472 IFS=$as_save_IFS
3473
3474 if test $ac_prog_rejected = yes; then
3475   # We found a bogon in the path, so make sure we never use it.
3476   set dummy $ac_cv_prog_CC
3477   shift
3478   if test $# != 0; then
3479     # We chose a different compiler from the bogus one.
3480     # However, it has the same basename, so the bogon will be chosen
3481     # first if we set CC to just the basename; use the full file name.
3482     shift
3483     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3484   fi
3485 fi
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498 fi
3499 if test -z "$CC"; then
3500   if test -n "$ac_tool_prefix"; then
3501   for ac_prog in cl.exe
3502   do
3503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$CC"; then
3511   ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525   done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540     test -n "$CC" && break
3541   done
3542 fi
3543 if test -z "$CC"; then
3544   ac_ct_CC=$CC
3545   for ac_prog in cl.exe
3546 do
3547   # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   if test -n "$ac_ct_CC"; then
3555   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564     ac_cv_prog_ac_ct_CC="$ac_prog"
3565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569   done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584   test -n "$ac_ct_CC" && break
3585 done
3586
3587   if test "x$ac_ct_CC" = x; then
3588     CC=""
3589   else
3590     case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596     CC=$ac_ct_CC
3597   fi
3598 fi
3599
3600 fi
3601
3602
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details" "$LINENO" 5; }
3607
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 set X $ac_compile
3611 ac_compiler=$2
3612 for ac_option in --version -v -V -qversion; do
3613   { { ac_try="$ac_compiler $ac_option >&5"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3621   ac_status=$?
3622   if test -s conftest.err; then
3623     sed '10a\
3624 ... rest of stderr output deleted ...
3625          10q' conftest.err >conftest.er1
3626     cat conftest.er1 >&5
3627   fi
3628   rm -f conftest.er1 conftest.err
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; }
3631 done
3632
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 ac_clean_files_save=$ac_clean_files
3645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3646 # Try to create an executable without -o first, disregard a.out.
3647 # It will help us diagnose broken compilers, and finding out an intuition
3648 # of exeext.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3652
3653 # The possible output files:
3654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3655
3656 ac_rmfiles=
3657 for ac_file in $ac_files
3658 do
3659   case $ac_file in
3660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3662   esac
3663 done
3664 rm -f $ac_rmfiles
3665
3666 if { { ac_try="$ac_link_default"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673   (eval "$ac_link_default") 2>&5
3674   ac_status=$?
3675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676   test $ac_status = 0; }; then :
3677   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3679 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3680 # so that the user can short-circuit this test for compilers unknown to
3681 # Autoconf.
3682 for ac_file in $ac_files ''
3683 do
3684   test -f "$ac_file" || continue
3685   case $ac_file in
3686     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3687         ;;
3688     [ab].out )
3689         # We found the default executable, but exeext='' is most
3690         # certainly right.
3691         break;;
3692     *.* )
3693         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3694         then :; else
3695            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3696         fi
3697         # We set ac_cv_exeext here because the later test for it is not
3698         # safe: cross compilers may not add the suffix if given an `-o'
3699         # argument, so we may need to know it at that point already.
3700         # Even if this section looks crufty: it has the advantage of
3701         # actually working.
3702         break;;
3703     * )
3704         break;;
3705   esac
3706 done
3707 test "$ac_cv_exeext" = no && ac_cv_exeext=
3708
3709 else
3710   ac_file=''
3711 fi
3712 if test -z "$ac_file"; then :
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error 77 "C compiler cannot create executables
3721 See \`config.log' for more details" "$LINENO" 5; }
3722 else
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 ac_exeext=$ac_cv_exeext
3731
3732 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3735 $as_echo_n "checking for suffix of executables... " >&6; }
3736 if { { ac_try="$ac_link"
3737 case "(($ac_try" in
3738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739   *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743   (eval "$ac_link") 2>&5
3744   ac_status=$?
3745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746   test $ac_status = 0; }; then :
3747   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3748 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3749 # work properly (i.e., refer to `conftest.exe'), while it won't with
3750 # `rm'.
3751 for ac_file in conftest.exe conftest conftest.*; do
3752   test -f "$ac_file" || continue
3753   case $ac_file in
3754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756           break;;
3757     * ) break;;
3758   esac
3759 done
3760 else
3761   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details" "$LINENO" 5; }
3765 fi
3766 rm -f conftest conftest$ac_cv_exeext
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3768 $as_echo "$ac_cv_exeext" >&6; }
3769
3770 rm -f conftest.$ac_ext
3771 EXEEXT=$ac_cv_exeext
3772 ac_exeext=$EXEEXT
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775 #include <stdio.h>
3776 int
3777 main ()
3778 {
3779 FILE *f = fopen ("conftest.out", "w");
3780  return ferror (f) || fclose (f) != 0;
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 ac_clean_files="$ac_clean_files conftest.out"
3787 # Check that the compiler produces executables we can run.  If not, either
3788 # the compiler is broken, or we cross compile.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3790 $as_echo_n "checking whether we are cross compiling... " >&6; }
3791 if test "$cross_compiling" != yes; then
3792   { { ac_try="$ac_link"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799   (eval "$ac_link") 2>&5
3800   ac_status=$?
3801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802   test $ac_status = 0; }
3803   if { ac_try='./conftest$ac_cv_exeext'
3804   { { case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810   (eval "$ac_try") 2>&5
3811   ac_status=$?
3812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813   test $ac_status = 0; }; }; then
3814     cross_compiling=no
3815   else
3816     if test "$cross_compiling" = maybe; then
3817         cross_compiling=yes
3818     else
3819         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot run C compiled programs.
3822 If you meant to cross compile, use \`--host'.
3823 See \`config.log' for more details" "$LINENO" 5; }
3824     fi
3825   fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3828 $as_echo "$cross_compiling" >&6; }
3829
3830 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3833 $as_echo_n "checking for suffix of object files... " >&6; }
3834 if ${ac_cv_objext+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839
3840 int
3841 main ()
3842 {
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.o conftest.obj
3849 if { { ac_try="$ac_compile"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856   (eval "$ac_compile") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859   test $ac_status = 0; }; then :
3860   for ac_file in conftest.o conftest.obj conftest.*; do
3861   test -f "$ac_file" || continue;
3862   case $ac_file in
3863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3864     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3865        break;;
3866   esac
3867 done
3868 else
3869   $as_echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of object files: cannot compile
3875 See \`config.log' for more details" "$LINENO" 5; }
3876 fi
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3880 $as_echo "$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3882 ac_objext=$OBJEXT
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3885 if ${ac_cv_c_compiler_gnu+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h.  */
3890
3891 int
3892 main ()
3893 {
3894 #ifndef __GNUC__
3895        choke me
3896 #endif
3897
3898   ;
3899   return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903   ac_compiler_gnu=yes
3904 else
3905   ac_compiler_gnu=no
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3913 if test $ac_compiler_gnu = yes; then
3914   GCC=yes
3915 else
3916   GCC=
3917 fi
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3922 if ${ac_cv_prog_cc_g+:} false; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   ac_save_c_werror_flag=$ac_c_werror_flag
3926    ac_c_werror_flag=yes
3927    ac_cv_prog_cc_g=no
3928    CFLAGS="-g"
3929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941   ac_cv_prog_cc_g=yes
3942 else
3943   CFLAGS=""
3944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956
3957 else
3958   ac_c_werror_flag=$ac_save_c_werror_flag
3959          CFLAGS="-g"
3960          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972   ac_cv_prog_cc_g=yes
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979    ac_c_werror_flag=$ac_save_c_werror_flag
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984   CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986   if test "$GCC" = yes; then
3987     CFLAGS="-g -O2"
3988   else
3989     CFLAGS="-g"
3990   fi
3991 else
3992   if test "$GCC" = yes; then
3993     CFLAGS="-O2"
3994   else
3995     CFLAGS=
3996   fi
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if ${ac_cv_prog_cc_c89+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   ac_cv_prog_cc_c89=no
4004 ac_save_CC=$CC
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007 #include <stdarg.h>
4008 #include <stdio.h>
4009 struct stat;
4010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4011 struct buf { int x; };
4012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013 static char *e (p, i)
4014      char **p;
4015      int i;
4016 {
4017   return p[i];
4018 }
4019 static char *f (char * (*g) (char **, int), char **p, ...)
4020 {
4021   char *s;
4022   va_list v;
4023   va_start (v,p);
4024   s = g (p, va_arg (v,int));
4025   va_end (v);
4026   return s;
4027 }
4028
4029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4030    function prototypes and stuff, but not '\xHH' hex character constants.
4031    These don't provoke an error unfortunately, instead are silently treated
4032    as 'x'.  The following induces an error, until -std is added to get
4033    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4034    array size at least.  It's necessary to write '\x00'==0 to get something
4035    that's true only with -std.  */
4036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4037
4038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039    inside strings and character constants.  */
4040 #define FOO(x) 'x'
4041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4042
4043 int test (int i, double x);
4044 struct s1 {int (*f) (int a);};
4045 struct s2 {int (*f) (double a);};
4046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 int argc;
4048 char **argv;
4049 int
4050 main ()
4051 {
4052 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4059 do
4060   CC="$ac_save_CC $ac_arg"
4061   if ac_fn_c_try_compile "$LINENO"; then :
4062   ac_cv_prog_cc_c89=$ac_arg
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext
4065   test "x$ac_cv_prog_cc_c89" != "xno" && break
4066 done
4067 rm -f conftest.$ac_ext
4068 CC=$ac_save_CC
4069
4070 fi
4071 # AC_CACHE_VAL
4072 case "x$ac_cv_prog_cc_c89" in
4073   x)
4074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 $as_echo "none needed" >&6; } ;;
4076   xno)
4077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 $as_echo "unsupported" >&6; } ;;
4079   *)
4080     CC="$CC $ac_cv_prog_cc_c89"
4081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4083 esac
4084 if test "x$ac_cv_prog_cc_c89" != xno; then :
4085
4086 fi
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 DEPDIR="${am__leading_dot}deps"
4094
4095 ac_config_commands="$ac_config_commands depfiles"
4096
4097
4098 am_make=${MAKE-make}
4099 cat > confinc << 'END'
4100 am__doit:
4101         @echo this is the am__doit target
4102 .PHONY: am__doit
4103 END
4104 # If we don't find an include directive, just comment out the code.
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4107 am__include="#"
4108 am__quote=
4109 _am_result=none
4110 # First try GNU make style include.
4111 echo "include confinc" > confmf
4112 # Ignore all kinds of additional output from 'make'.
4113 case `$am_make -s -f confmf 2> /dev/null` in #(
4114 *the\ am__doit\ target*)
4115   am__include=include
4116   am__quote=
4117   _am_result=GNU
4118   ;;
4119 esac
4120 # Now try BSD make style include.
4121 if test "$am__include" = "#"; then
4122    echo '.include "confinc"' > confmf
4123    case `$am_make -s -f confmf 2> /dev/null` in #(
4124    *the\ am__doit\ target*)
4125      am__include=.include
4126      am__quote="\""
4127      _am_result=BSD
4128      ;;
4129    esac
4130 fi
4131
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134 $as_echo "$_am_result" >&6; }
4135 rm -f confinc confmf
4136
4137 # Check whether --enable-dependency-tracking was given.
4138 if test "${enable_dependency_tracking+set}" = set; then :
4139   enableval=$enable_dependency_tracking;
4140 fi
4141
4142 if test "x$enable_dependency_tracking" != xno; then
4143   am_depcomp="$ac_aux_dir/depcomp"
4144   AMDEPBACKSLASH='\'
4145   am__nodep='_no'
4146 fi
4147  if test "x$enable_dependency_tracking" != xno; then
4148   AMDEP_TRUE=
4149   AMDEP_FALSE='#'
4150 else
4151   AMDEP_TRUE='#'
4152   AMDEP_FALSE=
4153 fi
4154
4155
4156
4157 depcc="$CC"   am_compiler_list=
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4160 $as_echo_n "checking dependency style of $depcc... " >&6; }
4161 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4165   # We make a subdir and do the tests there.  Otherwise we can end up
4166   # making bogus files that we don't know about and never remove.  For
4167   # instance it was reported that on HP-UX the gcc test will end up
4168   # making a dummy file named 'D' -- because '-MD' means "put the output
4169   # in D".
4170   rm -rf conftest.dir
4171   mkdir conftest.dir
4172   # Copy depcomp to subdir because otherwise we won't find it if we're
4173   # using a relative directory.
4174   cp "$am_depcomp" conftest.dir
4175   cd conftest.dir
4176   # We will build objects and dependencies in a subdirectory because
4177   # it helps to detect inapplicable dependency modes.  For instance
4178   # both Tru64's cc and ICC support -MD to output dependencies as a
4179   # side effect of compilation, but ICC will put the dependencies in
4180   # the current directory while Tru64 will put them in the object
4181   # directory.
4182   mkdir sub
4183
4184   am_cv_CC_dependencies_compiler_type=none
4185   if test "$am_compiler_list" = ""; then
4186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4187   fi
4188   am__universal=false
4189   case " $depcc " in #(
4190      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4191      esac
4192
4193   for depmode in $am_compiler_list; do
4194     # Setup a source with many dependencies, because some compilers
4195     # like to wrap large dependency lists on column 80 (with \), and
4196     # we should not choose a depcomp mode which is confused by this.
4197     #
4198     # We need to recreate these files for each test, as the compiler may
4199     # overwrite some of them when testing with obscure command lines.
4200     # This happens at least with the AIX C compiler.
4201     : > sub/conftest.c
4202     for i in 1 2 3 4 5 6; do
4203       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4205       # Solaris 10 /bin/sh.
4206       echo '/* dummy */' > sub/conftst$i.h
4207     done
4208     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209
4210     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4211     # mode.  It turns out that the SunPro C++ compiler does not properly
4212     # handle '-M -o', and we need to detect this.  Also, some Intel
4213     # versions had trouble with output in subdirs.
4214     am__obj=sub/conftest.${OBJEXT-o}
4215     am__minus_obj="-o $am__obj"
4216     case $depmode in
4217     gcc)
4218       # This depmode causes a compiler race in universal mode.
4219       test "$am__universal" = false || continue
4220       ;;
4221     nosideeffect)
4222       # After this tag, mechanisms are not by side-effect, so they'll
4223       # only be used when explicitly requested.
4224       if test "x$enable_dependency_tracking" = xyes; then
4225         continue
4226       else
4227         break
4228       fi
4229       ;;
4230     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4231       # This compiler won't grok '-c -o', but also, the minuso test has
4232       # not run yet.  These depmodes are late enough in the game, and
4233       # so weak that their functioning should not be impacted.
4234       am__obj=conftest.${OBJEXT-o}
4235       am__minus_obj=
4236       ;;
4237     none) break ;;
4238     esac
4239     if depmode=$depmode \
4240        source=sub/conftest.c object=$am__obj \
4241        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4243          >/dev/null 2>conftest.err &&
4244        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4245        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4246        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4247        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248       # icc doesn't choke on unknown options, it will just issue warnings
4249       # or remarks (even with -Werror).  So we grep stderr for any message
4250       # that says an option was ignored or not supported.
4251       # When given -MP, icc 7.0 and 7.1 complain thusly:
4252       #   icc: Command line warning: ignoring option '-M'; no argument required
4253       # The diagnosis changed in icc 8.0:
4254       #   icc: Command line remark: option '-MP' not supported
4255       if (grep 'ignoring option' conftest.err ||
4256           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257         am_cv_CC_dependencies_compiler_type=$depmode
4258         break
4259       fi
4260     fi
4261   done
4262
4263   cd ..
4264   rm -rf conftest.dir
4265 else
4266   am_cv_CC_dependencies_compiler_type=none
4267 fi
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4272 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4273
4274  if
4275   test "x$enable_dependency_tracking" != xno \
4276   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4277   am__fastdepCC_TRUE=
4278   am__fastdepCC_FALSE='#'
4279 else
4280   am__fastdepCC_TRUE='#'
4281   am__fastdepCC_FALSE=
4282 fi
4283
4284
4285 CFLAGS=$save_CFLAGS
4286
4287
4288
4289
4290
4291 # By default we simply use the C compiler to build assembly code.
4292
4293 test "${CCAS+set}" = set || CCAS=$CC
4294 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4295
4296
4297
4298 depcc="$CCAS"   am_compiler_list=
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4301 $as_echo_n "checking dependency style of $depcc... " >&6; }
4302 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4306   # We make a subdir and do the tests there.  Otherwise we can end up
4307   # making bogus files that we don't know about and never remove.  For
4308   # instance it was reported that on HP-UX the gcc test will end up
4309   # making a dummy file named 'D' -- because '-MD' means "put the output
4310   # in D".
4311   rm -rf conftest.dir
4312   mkdir conftest.dir
4313   # Copy depcomp to subdir because otherwise we won't find it if we're
4314   # using a relative directory.
4315   cp "$am_depcomp" conftest.dir
4316   cd conftest.dir
4317   # We will build objects and dependencies in a subdirectory because
4318   # it helps to detect inapplicable dependency modes.  For instance
4319   # both Tru64's cc and ICC support -MD to output dependencies as a
4320   # side effect of compilation, but ICC will put the dependencies in
4321   # the current directory while Tru64 will put them in the object
4322   # directory.
4323   mkdir sub
4324
4325   am_cv_CCAS_dependencies_compiler_type=none
4326   if test "$am_compiler_list" = ""; then
4327      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4328   fi
4329   am__universal=false
4330
4331
4332   for depmode in $am_compiler_list; do
4333     # Setup a source with many dependencies, because some compilers
4334     # like to wrap large dependency lists on column 80 (with \), and
4335     # we should not choose a depcomp mode which is confused by this.
4336     #
4337     # We need to recreate these files for each test, as the compiler may
4338     # overwrite some of them when testing with obscure command lines.
4339     # This happens at least with the AIX C compiler.
4340     : > sub/conftest.c
4341     for i in 1 2 3 4 5 6; do
4342       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4343       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4344       # Solaris 10 /bin/sh.
4345       echo '/* dummy */' > sub/conftst$i.h
4346     done
4347     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4348
4349     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4350     # mode.  It turns out that the SunPro C++ compiler does not properly
4351     # handle '-M -o', and we need to detect this.  Also, some Intel
4352     # versions had trouble with output in subdirs.
4353     am__obj=sub/conftest.${OBJEXT-o}
4354     am__minus_obj="-o $am__obj"
4355     case $depmode in
4356     gcc)
4357       # This depmode causes a compiler race in universal mode.
4358       test "$am__universal" = false || continue
4359       ;;
4360     nosideeffect)
4361       # After this tag, mechanisms are not by side-effect, so they'll
4362       # only be used when explicitly requested.
4363       if test "x$enable_dependency_tracking" = xyes; then
4364         continue
4365       else
4366         break
4367       fi
4368       ;;
4369     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4370       # This compiler won't grok '-c -o', but also, the minuso test has
4371       # not run yet.  These depmodes are late enough in the game, and
4372       # so weak that their functioning should not be impacted.
4373       am__obj=conftest.${OBJEXT-o}
4374       am__minus_obj=
4375       ;;
4376     none) break ;;
4377     esac
4378     if depmode=$depmode \
4379        source=sub/conftest.c object=$am__obj \
4380        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4382          >/dev/null 2>conftest.err &&
4383        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4384        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4386        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387       # icc doesn't choke on unknown options, it will just issue warnings
4388       # or remarks (even with -Werror).  So we grep stderr for any message
4389       # that says an option was ignored or not supported.
4390       # When given -MP, icc 7.0 and 7.1 complain thusly:
4391       #   icc: Command line warning: ignoring option '-M'; no argument required
4392       # The diagnosis changed in icc 8.0:
4393       #   icc: Command line remark: option '-MP' not supported
4394       if (grep 'ignoring option' conftest.err ||
4395           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396         am_cv_CCAS_dependencies_compiler_type=$depmode
4397         break
4398       fi
4399     fi
4400   done
4401
4402   cd ..
4403   rm -rf conftest.dir
4404 else
4405   am_cv_CCAS_dependencies_compiler_type=none
4406 fi
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4410 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4411 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4412
4413  if
4414   test "x$enable_dependency_tracking" != xno \
4415   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4416   am__fastdepCCAS_TRUE=
4417   am__fastdepCCAS_FALSE='#'
4418 else
4419   am__fastdepCCAS_TRUE='#'
4420   am__fastdepCCAS_FALSE=
4421 fi
4422
4423
4424 if test "x$CC" != xcc; then
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4426 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4427 else
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4429 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4430 fi
4431 set dummy $CC; ac_cc=`$as_echo "$2" |
4432                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4433 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438
4439 int
4440 main ()
4441 {
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 # Make sure it works both with $CC and with simple cc.
4448 # We do the test twice because some compilers refuse to overwrite an
4449 # existing .o file with -o, though they will create one.
4450 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4451 rm -f conftest2.*
4452 if { { case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461   test $ac_status = 0; } &&
4462    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471   test $ac_status = 0; };
4472 then
4473   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4474   if test "x$CC" != xcc; then
4475     # Test first that cc exists at all.
4476     if { ac_try='cc -c conftest.$ac_ext >&5'
4477   { { case "(($ac_try" in
4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479   *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 $as_echo "$ac_try_echo"; } >&5
4483   (eval "$ac_try") 2>&5
4484   ac_status=$?
4485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486   test $ac_status = 0; }; }; then
4487       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4488       rm -f conftest2.*
4489       if { { case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495   (eval "$ac_try") 2>&5
4496   ac_status=$?
4497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498   test $ac_status = 0; } &&
4499          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505   (eval "$ac_try") 2>&5
4506   ac_status=$?
4507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508   test $ac_status = 0; };
4509       then
4510         # cc works too.
4511         :
4512       else
4513         # cc exists but doesn't like -o.
4514         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4515       fi
4516     fi
4517   fi
4518 else
4519   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4520 fi
4521 rm -f core conftest*
4522
4523 fi
4524 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4526 $as_echo "yes" >&6; }
4527 else
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530
4531 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4532
4533 fi
4534
4535 # FIXME: we rely on the cache variable name because
4536 # there is no other way.
4537 set dummy $CC
4538 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4539 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4540 if test "$am_t" != yes; then
4541    # Losing compiler, so override with the script.
4542    # FIXME: It is wrong to rewrite CC.
4543    # But if we don't then we get into trouble of one sort or another.
4544    # A longer-term fix would be to have automake use am__CC in this case,
4545    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4546    CC="$am_aux_dir/compile $CC"
4547 fi
4548
4549
4550 case `pwd` in
4551   *\ * | *\     *)
4552     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4554 esac
4555
4556
4557
4558 macro_version='2.4.2'
4559 macro_revision='1.3337'
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 ltmain="$ac_aux_dir/ltmain.sh"
4574
4575 # Backslashify metacharacters that are still active within
4576 # double-quoted strings.
4577 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4578
4579 # Same as above, but do not quote variable references.
4580 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4581
4582 # Sed substitution to delay expansion of an escaped shell variable in a
4583 # double_quote_subst'ed string.
4584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4585
4586 # Sed substitution to delay expansion of an escaped single quote.
4587 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4588
4589 # Sed substitution to avoid accidental globbing in evaled expressions
4590 no_glob_subst='s/\*/\\\*/g'
4591
4592 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4595
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4597 $as_echo_n "checking how to print strings... " >&6; }
4598 # Test print first, because it will be a builtin if present.
4599 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4600    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4601   ECHO='print -r --'
4602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4603   ECHO='printf %s\n'
4604 else
4605   # Use this function as a fallback that always works.
4606   func_fallback_echo ()
4607   {
4608     eval 'cat <<_LTECHO_EOF
4609 $1
4610 _LTECHO_EOF'
4611   }
4612   ECHO='func_fallback_echo'
4613 fi
4614
4615 # func_echo_all arg...
4616 # Invoke $ECHO with all args, space-separated.
4617 func_echo_all ()
4618 {
4619     $ECHO ""
4620 }
4621
4622 case "$ECHO" in
4623   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4624 $as_echo "printf" >&6; } ;;
4625   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4626 $as_echo "print -r" >&6; } ;;
4627   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4628 $as_echo "cat" >&6; } ;;
4629 esac
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4646 if ${ac_cv_path_SED+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4650      for ac_i in 1 2 3 4 5 6 7; do
4651        ac_script="$ac_script$as_nl$ac_script"
4652      done
4653      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4654      { ac_script=; unset ac_script;}
4655      if test -z "$SED"; then
4656   ac_path_SED_found=false
4657   # Loop through the user's path and test for each of PROGNAME-LIST
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_prog in sed gsed; do
4664     for ac_exec_ext in '' $ac_executable_extensions; do
4665       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4666       as_fn_executable_p "$ac_path_SED" || continue
4667 # Check for GNU ac_path_SED and select it if it is found.
4668   # Check for GNU $ac_path_SED
4669 case `"$ac_path_SED" --version 2>&1` in
4670 *GNU*)
4671   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4672 *)
4673   ac_count=0
4674   $as_echo_n 0123456789 >"conftest.in"
4675   while :
4676   do
4677     cat "conftest.in" "conftest.in" >"conftest.tmp"
4678     mv "conftest.tmp" "conftest.in"
4679     cp "conftest.in" "conftest.nl"
4680     $as_echo '' >> "conftest.nl"
4681     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683     as_fn_arith $ac_count + 1 && ac_count=$as_val
4684     if test $ac_count -gt ${ac_path_SED_max-0}; then
4685       # Best one so far, save it but keep looking for a better one
4686       ac_cv_path_SED="$ac_path_SED"
4687       ac_path_SED_max=$ac_count
4688     fi
4689     # 10*(2^10) chars as input seems more than enough
4690     test $ac_count -gt 10 && break
4691   done
4692   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 esac
4694
4695       $ac_path_SED_found && break 3
4696     done
4697   done
4698   done
4699 IFS=$as_save_IFS
4700   if test -z "$ac_cv_path_SED"; then
4701     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4702   fi
4703 else
4704   ac_cv_path_SED=$SED
4705 fi
4706
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4709 $as_echo "$ac_cv_path_SED" >&6; }
4710  SED="$ac_cv_path_SED"
4711   rm -f conftest.sed
4712
4713 test -z "$SED" && SED=sed
4714 Xsed="$SED -e 1s/^X//"
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4727 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4728 if ${ac_cv_path_GREP+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -z "$GREP"; then
4732   ac_path_GREP_found=false
4733   # Loop through the user's path and test for each of PROGNAME-LIST
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_prog in grep ggrep; do
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4742       as_fn_executable_p "$ac_path_GREP" || continue
4743 # Check for GNU ac_path_GREP and select it if it is found.
4744   # Check for GNU $ac_path_GREP
4745 case `"$ac_path_GREP" --version 2>&1` in
4746 *GNU*)
4747   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4748 *)
4749   ac_count=0
4750   $as_echo_n 0123456789 >"conftest.in"
4751   while :
4752   do
4753     cat "conftest.in" "conftest.in" >"conftest.tmp"
4754     mv "conftest.tmp" "conftest.in"
4755     cp "conftest.in" "conftest.nl"
4756     $as_echo 'GREP' >> "conftest.nl"
4757     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759     as_fn_arith $ac_count + 1 && ac_count=$as_val
4760     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4761       # Best one so far, save it but keep looking for a better one
4762       ac_cv_path_GREP="$ac_path_GREP"
4763       ac_path_GREP_max=$ac_count
4764     fi
4765     # 10*(2^10) chars as input seems more than enough
4766     test $ac_count -gt 10 && break
4767   done
4768   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 esac
4770
4771       $ac_path_GREP_found && break 3
4772     done
4773   done
4774   done
4775 IFS=$as_save_IFS
4776   if test -z "$ac_cv_path_GREP"; then
4777     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4778   fi
4779 else
4780   ac_cv_path_GREP=$GREP
4781 fi
4782
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4785 $as_echo "$ac_cv_path_GREP" >&6; }
4786  GREP="$ac_cv_path_GREP"
4787
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4790 $as_echo_n "checking for egrep... " >&6; }
4791 if ${ac_cv_path_EGREP+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4795    then ac_cv_path_EGREP="$GREP -E"
4796    else
4797      if test -z "$EGREP"; then
4798   ac_path_EGREP_found=false
4799   # Loop through the user's path and test for each of PROGNAME-LIST
4800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805     for ac_prog in egrep; do
4806     for ac_exec_ext in '' $ac_executable_extensions; do
4807       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4808       as_fn_executable_p "$ac_path_EGREP" || continue
4809 # Check for GNU ac_path_EGREP and select it if it is found.
4810   # Check for GNU $ac_path_EGREP
4811 case `"$ac_path_EGREP" --version 2>&1` in
4812 *GNU*)
4813   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4814 *)
4815   ac_count=0
4816   $as_echo_n 0123456789 >"conftest.in"
4817   while :
4818   do
4819     cat "conftest.in" "conftest.in" >"conftest.tmp"
4820     mv "conftest.tmp" "conftest.in"
4821     cp "conftest.in" "conftest.nl"
4822     $as_echo 'EGREP' >> "conftest.nl"
4823     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825     as_fn_arith $ac_count + 1 && ac_count=$as_val
4826     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4827       # Best one so far, save it but keep looking for a better one
4828       ac_cv_path_EGREP="$ac_path_EGREP"
4829       ac_path_EGREP_max=$ac_count
4830     fi
4831     # 10*(2^10) chars as input seems more than enough
4832     test $ac_count -gt 10 && break
4833   done
4834   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835 esac
4836
4837       $ac_path_EGREP_found && break 3
4838     done
4839   done
4840   done
4841 IFS=$as_save_IFS
4842   if test -z "$ac_cv_path_EGREP"; then
4843     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4844   fi
4845 else
4846   ac_cv_path_EGREP=$EGREP
4847 fi
4848
4849    fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4852 $as_echo "$ac_cv_path_EGREP" >&6; }
4853  EGREP="$ac_cv_path_EGREP"
4854
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4857 $as_echo_n "checking for fgrep... " >&6; }
4858 if ${ac_cv_path_FGREP+:} false; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4862    then ac_cv_path_FGREP="$GREP -F"
4863    else
4864      if test -z "$FGREP"; then
4865   ac_path_FGREP_found=false
4866   # Loop through the user's path and test for each of PROGNAME-LIST
4867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_prog in fgrep; do
4873     for ac_exec_ext in '' $ac_executable_extensions; do
4874       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4875       as_fn_executable_p "$ac_path_FGREP" || continue
4876 # Check for GNU ac_path_FGREP and select it if it is found.
4877   # Check for GNU $ac_path_FGREP
4878 case `"$ac_path_FGREP" --version 2>&1` in
4879 *GNU*)
4880   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4881 *)
4882   ac_count=0
4883   $as_echo_n 0123456789 >"conftest.in"
4884   while :
4885   do
4886     cat "conftest.in" "conftest.in" >"conftest.tmp"
4887     mv "conftest.tmp" "conftest.in"
4888     cp "conftest.in" "conftest.nl"
4889     $as_echo 'FGREP' >> "conftest.nl"
4890     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892     as_fn_arith $ac_count + 1 && ac_count=$as_val
4893     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4894       # Best one so far, save it but keep looking for a better one
4895       ac_cv_path_FGREP="$ac_path_FGREP"
4896       ac_path_FGREP_max=$ac_count
4897     fi
4898     # 10*(2^10) chars as input seems more than enough
4899     test $ac_count -gt 10 && break
4900   done
4901   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4903
4904       $ac_path_FGREP_found && break 3
4905     done
4906   done
4907   done
4908 IFS=$as_save_IFS
4909   if test -z "$ac_cv_path_FGREP"; then
4910     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911   fi
4912 else
4913   ac_cv_path_FGREP=$FGREP
4914 fi
4915
4916    fi
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4919 $as_echo "$ac_cv_path_FGREP" >&6; }
4920  FGREP="$ac_cv_path_FGREP"
4921
4922
4923 test -z "$GREP" && GREP=grep
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943 # Check whether --with-gnu-ld was given.
4944 if test "${with_gnu_ld+set}" = set; then :
4945   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4946 else
4947   with_gnu_ld=no
4948 fi
4949
4950 ac_prog=ld
4951 if test "$GCC" = yes; then
4952   # Check if gcc -print-prog-name=ld gives a path.
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4954 $as_echo_n "checking for ld used by $CC... " >&6; }
4955   case $host in
4956   *-*-mingw*)
4957     # gcc leaves a trailing carriage return which upsets mingw
4958     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4959   *)
4960     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4961   esac
4962   case $ac_prog in
4963     # Accept absolute paths.
4964     [\\/]* | ?:[\\/]*)
4965       re_direlt='/[^/][^/]*/\.\./'
4966       # Canonicalize the pathname of ld
4967       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4968       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4969         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4970       done
4971       test -z "$LD" && LD="$ac_prog"
4972       ;;
4973   "")
4974     # If it fails, then pretend we aren't using GCC.
4975     ac_prog=ld
4976     ;;
4977   *)
4978     # If it is relative, then search for the first ld in PATH.
4979     with_gnu_ld=unknown
4980     ;;
4981   esac
4982 elif test "$with_gnu_ld" = yes; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4984 $as_echo_n "checking for GNU ld... " >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4987 $as_echo_n "checking for non-GNU ld... " >&6; }
4988 fi
4989 if ${lt_cv_path_LD+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -z "$LD"; then
4993   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4994   for ac_dir in $PATH; do
4995     IFS="$lt_save_ifs"
4996     test -z "$ac_dir" && ac_dir=.
4997     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4998       lt_cv_path_LD="$ac_dir/$ac_prog"
4999       # Check to see if the program is GNU ld.  I'd rather use --version,
5000       # but apparently some variants of GNU ld only accept -v.
5001       # Break only if it was the GNU/non-GNU ld that we prefer.
5002       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5003       *GNU* | *'with BFD'*)
5004         test "$with_gnu_ld" != no && break
5005         ;;
5006       *)
5007         test "$with_gnu_ld" != yes && break
5008         ;;
5009       esac
5010     fi
5011   done
5012   IFS="$lt_save_ifs"
5013 else
5014   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5015 fi
5016 fi
5017
5018 LD="$lt_cv_path_LD"
5019 if test -n "$LD"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5021 $as_echo "$LD" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5028 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5029 if ${lt_cv_prog_gnu_ld+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033 case `$LD -v 2>&1 </dev/null` in
5034 *GNU* | *'with BFD'*)
5035   lt_cv_prog_gnu_ld=yes
5036   ;;
5037 *)
5038   lt_cv_prog_gnu_ld=no
5039   ;;
5040 esac
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5043 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5044 with_gnu_ld=$lt_cv_prog_gnu_ld
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5055 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5056 if ${lt_cv_path_NM+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   if test -n "$NM"; then
5060   # Let the user override the test.
5061   lt_cv_path_NM="$NM"
5062 else
5063   lt_nm_to_check="${ac_tool_prefix}nm"
5064   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5065     lt_nm_to_check="$lt_nm_to_check nm"
5066   fi
5067   for lt_tmp_nm in $lt_nm_to_check; do
5068     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5070       IFS="$lt_save_ifs"
5071       test -z "$ac_dir" && ac_dir=.
5072       tmp_nm="$ac_dir/$lt_tmp_nm"
5073       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5074         # Check to see if the nm accepts a BSD-compat flag.
5075         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5076         #   nm: unknown option "B" ignored
5077         # Tru64's nm complains that /dev/null is an invalid object file
5078         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5079         */dev/null* | *'Invalid file or object type'*)
5080           lt_cv_path_NM="$tmp_nm -B"
5081           break
5082           ;;
5083         *)
5084           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5085           */dev/null*)
5086             lt_cv_path_NM="$tmp_nm -p"
5087             break
5088             ;;
5089           *)
5090             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5091             continue # so that we can try to find one that supports BSD flags
5092             ;;
5093           esac
5094           ;;
5095         esac
5096       fi
5097     done
5098     IFS="$lt_save_ifs"
5099   done
5100   : ${lt_cv_path_NM=no}
5101 fi
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5104 $as_echo "$lt_cv_path_NM" >&6; }
5105 if test "$lt_cv_path_NM" != "no"; then
5106   NM="$lt_cv_path_NM"
5107 else
5108   # Didn't find any BSD compatible name lister, look for dumpbin.
5109   if test -n "$DUMPBIN"; then :
5110     # Let the user override the test.
5111   else
5112     if test -n "$ac_tool_prefix"; then
5113   for ac_prog in dumpbin "link -dump"
5114   do
5115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_DUMPBIN+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$DUMPBIN"; then
5123   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 DUMPBIN=$ac_cv_prog_DUMPBIN
5143 if test -n "$DUMPBIN"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5145 $as_echo "$DUMPBIN" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152     test -n "$DUMPBIN" && break
5153   done
5154 fi
5155 if test -z "$DUMPBIN"; then
5156   ac_ct_DUMPBIN=$DUMPBIN
5157   for ac_prog in dumpbin "link -dump"
5158 do
5159   # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   if test -n "$ac_ct_DUMPBIN"; then
5167   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178     break 2
5179   fi
5180 done
5181   done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5187 if test -n "$ac_ct_DUMPBIN"; then
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5189 $as_echo "$ac_ct_DUMPBIN" >&6; }
5190 else
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195
5196   test -n "$ac_ct_DUMPBIN" && break
5197 done
5198
5199   if test "x$ac_ct_DUMPBIN" = x; then
5200     DUMPBIN=":"
5201   else
5202     case $cross_compiling:$ac_tool_warned in
5203 yes:)
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5207 esac
5208     DUMPBIN=$ac_ct_DUMPBIN
5209   fi
5210 fi
5211
5212     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5213     *COFF*)
5214       DUMPBIN="$DUMPBIN -symbols"
5215       ;;
5216     *)
5217       DUMPBIN=:
5218       ;;
5219     esac
5220   fi
5221
5222   if test "$DUMPBIN" != ":"; then
5223     NM="$DUMPBIN"
5224   fi
5225 fi
5226 test -z "$NM" && NM=nm
5227
5228
5229
5230
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5234 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5235 if ${lt_cv_nm_interface+:} false; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   lt_cv_nm_interface="BSD nm"
5239   echo "int some_variable = 0;" > conftest.$ac_ext
5240   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5241   (eval "$ac_compile" 2>conftest.err)
5242   cat conftest.err >&5
5243   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5244   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5245   cat conftest.err >&5
5246   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5247   cat conftest.out >&5
5248   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5249     lt_cv_nm_interface="MS dumpbin"
5250   fi
5251   rm -f conftest*
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5254 $as_echo "$lt_cv_nm_interface" >&6; }
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5257 $as_echo_n "checking whether ln -s works... " >&6; }
5258 LN_S=$as_ln_s
5259 if test "$LN_S" = "ln -s"; then
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261 $as_echo "yes" >&6; }
5262 else
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5264 $as_echo "no, using $LN_S" >&6; }
5265 fi
5266
5267 # find the maximum length of command line arguments
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5269 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5270 if ${lt_cv_sys_max_cmd_len+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273     i=0
5274   teststring="ABCD"
5275
5276   case $build_os in
5277   msdosdjgpp*)
5278     # On DJGPP, this test can blow up pretty badly due to problems in libc
5279     # (any single argument exceeding 2000 bytes causes a buffer overrun
5280     # during glob expansion).  Even if it were fixed, the result of this
5281     # check would be larger than it should be.
5282     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5283     ;;
5284
5285   gnu*)
5286     # Under GNU Hurd, this test is not required because there is
5287     # no limit to the length of command line arguments.
5288     # Libtool will interpret -1 as no limit whatsoever
5289     lt_cv_sys_max_cmd_len=-1;
5290     ;;
5291
5292   cygwin* | mingw* | cegcc*)
5293     # On Win9x/ME, this test blows up -- it succeeds, but takes
5294     # about 5 minutes as the teststring grows exponentially.
5295     # Worse, since 9x/ME are not pre-emptively multitasking,
5296     # you end up with a "frozen" computer, even though with patience
5297     # the test eventually succeeds (with a max line length of 256k).
5298     # Instead, let's just punt: use the minimum linelength reported by
5299     # all of the supported platforms: 8192 (on NT/2K/XP).
5300     lt_cv_sys_max_cmd_len=8192;
5301     ;;
5302
5303   mint*)
5304     # On MiNT this can take a long time and run out of memory.
5305     lt_cv_sys_max_cmd_len=8192;
5306     ;;
5307
5308   amigaos*)
5309     # On AmigaOS with pdksh, this test takes hours, literally.
5310     # So we just punt and use a minimum line length of 8192.
5311     lt_cv_sys_max_cmd_len=8192;
5312     ;;
5313
5314   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5315     # This has been around since 386BSD, at least.  Likely further.
5316     if test -x /sbin/sysctl; then
5317       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5318     elif test -x /usr/sbin/sysctl; then
5319       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5320     else
5321       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5322     fi
5323     # And add a safety zone
5324     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5325     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5326     ;;
5327
5328   interix*)
5329     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5330     lt_cv_sys_max_cmd_len=196608
5331     ;;
5332
5333   os2*)
5334     # The test takes a long time on OS/2.
5335     lt_cv_sys_max_cmd_len=8192
5336     ;;
5337
5338   osf*)
5339     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5340     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5341     # nice to cause kernel panics so lets avoid the loop below.
5342     # First set a reasonable default.
5343     lt_cv_sys_max_cmd_len=16384
5344     #
5345     if test -x /sbin/sysconfig; then
5346       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5347         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5348       esac
5349     fi
5350     ;;
5351   sco3.2v5*)
5352     lt_cv_sys_max_cmd_len=102400
5353     ;;
5354   sysv5* | sco5v6* | sysv4.2uw2*)
5355     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5356     if test -n "$kargmax"; then
5357       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5358     else
5359       lt_cv_sys_max_cmd_len=32768
5360     fi
5361     ;;
5362   *)
5363     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5364     if test -n "$lt_cv_sys_max_cmd_len"; then
5365       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5366       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5367     else
5368       # Make teststring a little bigger before we do anything with it.
5369       # a 1K string should be a reasonable start.
5370       for i in 1 2 3 4 5 6 7 8 ; do
5371         teststring=$teststring$teststring
5372       done
5373       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5374       # If test is not a shell built-in, we'll probably end up computing a
5375       # maximum length that is only half of the actual maximum length, but
5376       # we can't tell.
5377       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5378                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5379               test $i != 17 # 1/2 MB should be enough
5380       do
5381         i=`expr $i + 1`
5382         teststring=$teststring$teststring
5383       done
5384       # Only check the string length outside the loop.
5385       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5386       teststring=
5387       # Add a significant safety factor because C++ compilers can tack on
5388       # massive amounts of additional arguments before passing them to the
5389       # linker.  It appears as though 1/2 is a usable value.
5390       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5391     fi
5392     ;;
5393   esac
5394
5395 fi
5396
5397 if test -n $lt_cv_sys_max_cmd_len ; then
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5399 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5400 else
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5402 $as_echo "none" >&6; }
5403 fi
5404 max_cmd_len=$lt_cv_sys_max_cmd_len
5405
5406
5407
5408
5409
5410
5411 : ${CP="cp -f"}
5412 : ${MV="mv -f"}
5413 : ${RM="rm -f"}
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5416 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5417 # Try some XSI features
5418 xsi_shell=no
5419 ( _lt_dummy="a/b/c"
5420   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5421       = c,a/b,b/c, \
5422     && eval 'test $(( 1 + 1 )) -eq 2 \
5423     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5424   && xsi_shell=yes
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5426 $as_echo "$xsi_shell" >&6; }
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5430 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5431 lt_shell_append=no
5432 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5433     >/dev/null 2>&1 \
5434   && lt_shell_append=yes
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5436 $as_echo "$lt_shell_append" >&6; }
5437
5438
5439 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5440   lt_unset=unset
5441 else
5442   lt_unset=false
5443 fi
5444
5445
5446
5447
5448
5449 # test EBCDIC or ASCII
5450 case `echo X|tr X '\101'` in
5451  A) # ASCII based system
5452     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5453   lt_SP2NL='tr \040 \012'
5454   lt_NL2SP='tr \015\012 \040\040'
5455   ;;
5456  *) # EBCDIC based system
5457   lt_SP2NL='tr \100 \n'
5458   lt_NL2SP='tr \r\n \100\100'
5459   ;;
5460 esac
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5471 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5472 if ${lt_cv_to_host_file_cmd+:} false; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   case $host in
5476   *-*-mingw* )
5477     case $build in
5478       *-*-mingw* ) # actually msys
5479         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5480         ;;
5481       *-*-cygwin* )
5482         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5483         ;;
5484       * ) # otherwise, assume *nix
5485         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5486         ;;
5487     esac
5488     ;;
5489   *-*-cygwin* )
5490     case $build in
5491       *-*-mingw* ) # actually msys
5492         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5493         ;;
5494       *-*-cygwin* )
5495         lt_cv_to_host_file_cmd=func_convert_file_noop
5496         ;;
5497       * ) # otherwise, assume *nix
5498         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5499         ;;
5500     esac
5501     ;;
5502   * ) # unhandled hosts (and "normal" native builds)
5503     lt_cv_to_host_file_cmd=func_convert_file_noop
5504     ;;
5505 esac
5506
5507 fi
5508
5509 to_host_file_cmd=$lt_cv_to_host_file_cmd
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5511 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5512
5513
5514
5515
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5518 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5519 if ${lt_cv_to_tool_file_cmd+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   #assume ordinary cross tools, or native build.
5523 lt_cv_to_tool_file_cmd=func_convert_file_noop
5524 case $host in
5525   *-*-mingw* )
5526     case $build in
5527       *-*-mingw* ) # actually msys
5528         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5529         ;;
5530     esac
5531     ;;
5532 esac
5533
5534 fi
5535
5536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5538 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5539
5540
5541
5542
5543
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5545 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5546 if ${lt_cv_ld_reload_flag+:} false; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   lt_cv_ld_reload_flag='-r'
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5552 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5553 reload_flag=$lt_cv_ld_reload_flag
5554 case $reload_flag in
5555 "" | " "*) ;;
5556 *) reload_flag=" $reload_flag" ;;
5557 esac
5558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5559 case $host_os in
5560   cygwin* | mingw* | pw32* | cegcc*)
5561     if test "$GCC" != yes; then
5562       reload_cmds=false
5563     fi
5564     ;;
5565   darwin*)
5566     if test "$GCC" = yes; then
5567       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5568     else
5569       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5570     fi
5571     ;;
5572 esac
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582 if test -n "$ac_tool_prefix"; then
5583   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_OBJDUMP+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   if test -n "$OBJDUMP"; then
5591   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598     for ac_exec_ext in '' $ac_executable_extensions; do
5599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605   done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 OBJDUMP=$ac_cv_prog_OBJDUMP
5611 if test -n "$OBJDUMP"; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5613 $as_echo "$OBJDUMP" >&6; }
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619
5620 fi
5621 if test -z "$ac_cv_prog_OBJDUMP"; then
5622   ac_ct_OBJDUMP=$OBJDUMP
5623   # Extract the first word of "objdump", so it can be a program name with args.
5624 set dummy objdump; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   if test -n "$ac_ct_OBJDUMP"; then
5631   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638     for ac_exec_ext in '' $ac_executable_extensions; do
5639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645   done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5651 if test -n "$ac_ct_OBJDUMP"; then
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5653 $as_echo "$ac_ct_OBJDUMP" >&6; }
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659   if test "x$ac_ct_OBJDUMP" = x; then
5660     OBJDUMP="false"
5661   else
5662     case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5667 esac
5668     OBJDUMP=$ac_ct_OBJDUMP
5669   fi
5670 else
5671   OBJDUMP="$ac_cv_prog_OBJDUMP"
5672 fi
5673
5674 test -z "$OBJDUMP" && OBJDUMP=objdump
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5685 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5686 if ${lt_cv_deplibs_check_method+:} false; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   lt_cv_file_magic_cmd='$MAGIC_CMD'
5690 lt_cv_file_magic_test_file=
5691 lt_cv_deplibs_check_method='unknown'
5692 # Need to set the preceding variable on all platforms that support
5693 # interlibrary dependencies.
5694 # 'none' -- dependencies not supported.
5695 # `unknown' -- same as none, but documents that we really don't know.
5696 # 'pass_all' -- all dependencies passed with no checks.
5697 # 'test_compile' -- check by making test program.
5698 # 'file_magic [[regex]]' -- check by looking for files in library path
5699 # which responds to the $file_magic_cmd with a given extended regex.
5700 # If you have `file' or equivalent on your system and you're not sure
5701 # whether `pass_all' will *always* work, you probably want this one.
5702
5703 case $host_os in
5704 aix[4-9]*)
5705   lt_cv_deplibs_check_method=pass_all
5706   ;;
5707
5708 beos*)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711
5712 bsdi[45]*)
5713   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5714   lt_cv_file_magic_cmd='/usr/bin/file -L'
5715   lt_cv_file_magic_test_file=/shlib/libc.so
5716   ;;
5717
5718 cygwin*)
5719   # func_win32_libid is a shell function defined in ltmain.sh
5720   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5721   lt_cv_file_magic_cmd='func_win32_libid'
5722   ;;
5723
5724 mingw* | pw32*)
5725   # Base MSYS/MinGW do not provide the 'file' command needed by
5726   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5727   # unless we find 'file', for example because we are cross-compiling.
5728   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5729   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5730     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5731     lt_cv_file_magic_cmd='func_win32_libid'
5732   else
5733     # Keep this pattern in sync with the one in func_win32_libid.
5734     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5735     lt_cv_file_magic_cmd='$OBJDUMP -f'
5736   fi
5737   ;;
5738
5739 cegcc*)
5740   # use the weaker test based on 'objdump'. See mingw*.
5741   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5742   lt_cv_file_magic_cmd='$OBJDUMP -f'
5743   ;;
5744
5745 darwin* | rhapsody*)
5746   lt_cv_deplibs_check_method=pass_all
5747   ;;
5748
5749 freebsd* | dragonfly*)
5750   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5751     case $host_cpu in
5752     i*86 )
5753       # Not sure whether the presence of OpenBSD here was a mistake.
5754       # Let's accept both of them until this is cleared up.
5755       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5756       lt_cv_file_magic_cmd=/usr/bin/file
5757       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5758       ;;
5759     esac
5760   else
5761     lt_cv_deplibs_check_method=pass_all
5762   fi
5763   ;;
5764
5765 gnu*)
5766   lt_cv_deplibs_check_method=pass_all
5767   ;;
5768
5769 haiku*)
5770   lt_cv_deplibs_check_method=pass_all
5771   ;;
5772
5773 hpux10.20* | hpux11*)
5774   lt_cv_file_magic_cmd=/usr/bin/file
5775   case $host_cpu in
5776   ia64*)
5777     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5778     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5779     ;;
5780   hppa*64*)
5781     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]'
5782     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5783     ;;
5784   *)
5785     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5786     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5787     ;;
5788   esac
5789   ;;
5790
5791 interix[3-9]*)
5792   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5793   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5794   ;;
5795
5796 irix5* | irix6* | nonstopux*)
5797   case $LD in
5798   *-32|*"-32 ") libmagic=32-bit;;
5799   *-n32|*"-n32 ") libmagic=N32;;
5800   *-64|*"-64 ") libmagic=64-bit;;
5801   *) libmagic=never-match;;
5802   esac
5803   lt_cv_deplibs_check_method=pass_all
5804   ;;
5805
5806 # This must be glibc/ELF.
5807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 netbsd*)
5812   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5814   else
5815     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5816   fi
5817   ;;
5818
5819 newos6*)
5820   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5821   lt_cv_file_magic_cmd=/usr/bin/file
5822   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5823   ;;
5824
5825 *nto* | *qnx*)
5826   lt_cv_deplibs_check_method=pass_all
5827   ;;
5828
5829 openbsd*)
5830   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5831     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5832   else
5833     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5834   fi
5835   ;;
5836
5837 osf3* | osf4* | osf5*)
5838   lt_cv_deplibs_check_method=pass_all
5839   ;;
5840
5841 rdos*)
5842   lt_cv_deplibs_check_method=pass_all
5843   ;;
5844
5845 solaris*)
5846   lt_cv_deplibs_check_method=pass_all
5847   ;;
5848
5849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5850   lt_cv_deplibs_check_method=pass_all
5851   ;;
5852
5853 sysv4 | sysv4.3*)
5854   case $host_vendor in
5855   motorola)
5856     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]'
5857     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5858     ;;
5859   ncr)
5860     lt_cv_deplibs_check_method=pass_all
5861     ;;
5862   sequent)
5863     lt_cv_file_magic_cmd='/bin/file'
5864     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5865     ;;
5866   sni)
5867     lt_cv_file_magic_cmd='/bin/file'
5868     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5869     lt_cv_file_magic_test_file=/lib/libc.so
5870     ;;
5871   siemens)
5872     lt_cv_deplibs_check_method=pass_all
5873     ;;
5874   pc)
5875     lt_cv_deplibs_check_method=pass_all
5876     ;;
5877   esac
5878   ;;
5879
5880 tpf*)
5881   lt_cv_deplibs_check_method=pass_all
5882   ;;
5883 esac
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5887 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5888
5889 file_magic_glob=
5890 want_nocaseglob=no
5891 if test "$build" = "$host"; then
5892   case $host_os in
5893   mingw* | pw32*)
5894     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5895       want_nocaseglob=yes
5896     else
5897       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5898     fi
5899     ;;
5900   esac
5901 fi
5902
5903 file_magic_cmd=$lt_cv_file_magic_cmd
5904 deplibs_check_method=$lt_cv_deplibs_check_method
5905 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928 if test -n "$ac_tool_prefix"; then
5929   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_prog_DLLTOOL+:} false; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   if test -n "$DLLTOOL"; then
5937   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944     for ac_exec_ext in '' $ac_executable_extensions; do
5945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951   done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 DLLTOOL=$ac_cv_prog_DLLTOOL
5957 if test -n "$DLLTOOL"; then
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5959 $as_echo "$DLLTOOL" >&6; }
5960 else
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965
5966 fi
5967 if test -z "$ac_cv_prog_DLLTOOL"; then
5968   ac_ct_DLLTOOL=$DLLTOOL
5969   # Extract the first word of "dlltool", so it can be a program name with args.
5970 set dummy dlltool; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976   if test -n "$ac_ct_DLLTOOL"; then
5977   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984     for ac_exec_ext in '' $ac_executable_extensions; do
5985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991   done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5997 if test -n "$ac_ct_DLLTOOL"; then
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5999 $as_echo "$ac_ct_DLLTOOL" >&6; }
6000 else
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005   if test "x$ac_ct_DLLTOOL" = x; then
6006     DLLTOOL="false"
6007   else
6008     case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014     DLLTOOL=$ac_ct_DLLTOOL
6015   fi
6016 else
6017   DLLTOOL="$ac_cv_prog_DLLTOOL"
6018 fi
6019
6020 test -z "$DLLTOOL" && DLLTOOL=dlltool
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6032 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6033 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   lt_cv_sharedlib_from_linklib_cmd='unknown'
6037
6038 case $host_os in
6039 cygwin* | mingw* | pw32* | cegcc*)
6040   # two different shell functions defined in ltmain.sh
6041   # decide which to use based on capabilities of $DLLTOOL
6042   case `$DLLTOOL --help 2>&1` in
6043   *--identify-strict*)
6044     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6045     ;;
6046   *)
6047     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6048     ;;
6049   esac
6050   ;;
6051 *)
6052   # fallback: assume linklib IS sharedlib
6053   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6054   ;;
6055 esac
6056
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6059 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6060 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6061 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6062
6063
6064
6065
6066
6067
6068
6069
6070 if test -n "$ac_tool_prefix"; then
6071   for ac_prog in ar
6072   do
6073     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_AR+:} false; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   if test -n "$AR"; then
6081   ac_cv_prog_AR="$AR" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088     for ac_exec_ext in '' $ac_executable_extensions; do
6089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092     break 2
6093   fi
6094 done
6095   done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 AR=$ac_cv_prog_AR
6101 if test -n "$AR"; then
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6103 $as_echo "$AR" >&6; }
6104 else
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110     test -n "$AR" && break
6111   done
6112 fi
6113 if test -z "$AR"; then
6114   ac_ct_AR=$AR
6115   for ac_prog in ar
6116 do
6117   # Extract the first word of "$ac_prog", so it can be a program name with args.
6118 set dummy $ac_prog; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   if test -n "$ac_ct_AR"; then
6125   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134     ac_cv_prog_ac_ct_AR="$ac_prog"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6145 if test -n "$ac_ct_AR"; then
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6147 $as_echo "$ac_ct_AR" >&6; }
6148 else
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154   test -n "$ac_ct_AR" && break
6155 done
6156
6157   if test "x$ac_ct_AR" = x; then
6158     AR="false"
6159   else
6160     case $cross_compiling:$ac_tool_warned in
6161 yes:)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166     AR=$ac_ct_AR
6167   fi
6168 fi
6169
6170 : ${AR=ar}
6171 : ${AR_FLAGS=cru}
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6184 $as_echo_n "checking for archiver @FILE support... " >&6; }
6185 if ${lt_cv_ar_at_file+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   lt_cv_ar_at_file=no
6189    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h.  */
6191
6192 int
6193 main ()
6194 {
6195
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201   echo conftest.$ac_objext > conftest.lst
6202       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6203       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6204   (eval $lt_ar_try) 2>&5
6205   ac_status=$?
6206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207   test $ac_status = 0; }
6208       if test "$ac_status" -eq 0; then
6209         # Ensure the archiver fails upon bogus file names.
6210         rm -f conftest.$ac_objext libconftest.a
6211         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6212   (eval $lt_ar_try) 2>&5
6213   ac_status=$?
6214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215   test $ac_status = 0; }
6216         if test "$ac_status" -ne 0; then
6217           lt_cv_ar_at_file=@
6218         fi
6219       fi
6220       rm -f conftest.* libconftest.a
6221
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224
6225 fi
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6227 $as_echo "$lt_cv_ar_at_file" >&6; }
6228
6229 if test "x$lt_cv_ar_at_file" = xno; then
6230   archiver_list_spec=
6231 else
6232   archiver_list_spec=$lt_cv_ar_at_file
6233 fi
6234
6235
6236
6237
6238
6239
6240
6241 if test -n "$ac_tool_prefix"; then
6242   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}strip; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_STRIP+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   if test -n "$STRIP"; then
6250   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257     for ac_exec_ext in '' $ac_executable_extensions; do
6258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262   fi
6263 done
6264   done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 STRIP=$ac_cv_prog_STRIP
6270 if test -n "$STRIP"; then
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6272 $as_echo "$STRIP" >&6; }
6273 else
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278
6279 fi
6280 if test -z "$ac_cv_prog_STRIP"; then
6281   ac_ct_STRIP=$STRIP
6282   # Extract the first word of "strip", so it can be a program name with args.
6283 set dummy strip; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   if test -n "$ac_ct_STRIP"; then
6290   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297     for ac_exec_ext in '' $ac_executable_extensions; do
6298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299     ac_cv_prog_ac_ct_STRIP="strip"
6300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304   done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6310 if test -n "$ac_ct_STRIP"; then
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6312 $as_echo "$ac_ct_STRIP" >&6; }
6313 else
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318   if test "x$ac_ct_STRIP" = x; then
6319     STRIP=":"
6320   else
6321     case $cross_compiling:$ac_tool_warned in
6322 yes:)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6326 esac
6327     STRIP=$ac_ct_STRIP
6328   fi
6329 else
6330   STRIP="$ac_cv_prog_STRIP"
6331 fi
6332
6333 test -z "$STRIP" && STRIP=:
6334
6335
6336
6337
6338
6339
6340 if test -n "$ac_tool_prefix"; then
6341   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if ${ac_cv_prog_RANLIB+:} false; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   if test -n "$RANLIB"; then
6349   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356     for ac_exec_ext in '' $ac_executable_extensions; do
6357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363   done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 RANLIB=$ac_cv_prog_RANLIB
6369 if test -n "$RANLIB"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6371 $as_echo "$RANLIB" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377
6378 fi
6379 if test -z "$ac_cv_prog_RANLIB"; then
6380   ac_ct_RANLIB=$RANLIB
6381   # Extract the first word of "ranlib", so it can be a program name with args.
6382 set dummy ranlib; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   if test -n "$ac_ct_RANLIB"; then
6389   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396     for ac_exec_ext in '' $ac_executable_extensions; do
6397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398     ac_cv_prog_ac_ct_RANLIB="ranlib"
6399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403   done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6409 if test -n "$ac_ct_RANLIB"; then
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6411 $as_echo "$ac_ct_RANLIB" >&6; }
6412 else
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6415 fi
6416
6417   if test "x$ac_ct_RANLIB" = x; then
6418     RANLIB=":"
6419   else
6420     case $cross_compiling:$ac_tool_warned in
6421 yes:)
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426     RANLIB=$ac_ct_RANLIB
6427   fi
6428 else
6429   RANLIB="$ac_cv_prog_RANLIB"
6430 fi
6431
6432 test -z "$RANLIB" && RANLIB=:
6433
6434
6435
6436
6437
6438
6439 # Determine commands to create old-style static archives.
6440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6441 old_postinstall_cmds='chmod 644 $oldlib'
6442 old_postuninstall_cmds=
6443
6444 if test -n "$RANLIB"; then
6445   case $host_os in
6446   openbsd*)
6447     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6448     ;;
6449   *)
6450     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6451     ;;
6452   esac
6453   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6454 fi
6455
6456 case $host_os in
6457   darwin*)
6458     lock_old_archive_extraction=yes ;;
6459   *)
6460     lock_old_archive_extraction=no ;;
6461 esac
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
6500
6501 # If no C compiler was specified, use CC.
6502 LTCC=${LTCC-"$CC"}
6503
6504 # If no C compiler flags were specified, use CFLAGS.
6505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6506
6507 # Allow CC to be a program name with arguments.
6508 compiler=$CC
6509
6510
6511 # Check for command to grab the raw symbol name followed by C symbol from nm.
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6513 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6514 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517
6518 # These are sane defaults that work on at least a few old systems.
6519 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6520
6521 # Character class describing NM global symbol codes.
6522 symcode='[BCDEGRST]'
6523
6524 # Regexp to match symbols that can be accessed directly from C.
6525 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6526
6527 # Define system-specific variables.
6528 case $host_os in
6529 aix*)
6530   symcode='[BCDT]'
6531   ;;
6532 cygwin* | mingw* | pw32* | cegcc*)
6533   symcode='[ABCDGISTW]'
6534   ;;
6535 hpux*)
6536   if test "$host_cpu" = ia64; then
6537     symcode='[ABCDEGRST]'
6538   fi
6539   ;;
6540 irix* | nonstopux*)
6541   symcode='[BCDEGRST]'
6542   ;;
6543 osf*)
6544   symcode='[BCDEGQRST]'
6545   ;;
6546 solaris*)
6547   symcode='[BDRT]'
6548   ;;
6549 sco3.2v5*)
6550   symcode='[DT]'
6551   ;;
6552 sysv4.2uw2*)
6553   symcode='[DT]'
6554   ;;
6555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6556   symcode='[ABDT]'
6557   ;;
6558 sysv4)
6559   symcode='[DFNSTU]'
6560   ;;
6561 esac
6562
6563 # If we're using GNU nm, then use its standard symbol codes.
6564 case `$NM -V 2>&1` in
6565 *GNU* | *'with BFD'*)
6566   symcode='[ABCDGIRSTW]' ;;
6567 esac
6568
6569 # Transform an extracted symbol line into a proper C declaration.
6570 # Some systems (esp. on ia64) link data and code symbols differently,
6571 # so use this general approach.
6572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6573
6574 # Transform an extracted symbol line into symbol name and symbol address
6575 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6576 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'"
6577
6578 # Handle CRLF in mingw tool chain
6579 opt_cr=
6580 case $build_os in
6581 mingw*)
6582   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6583   ;;
6584 esac
6585
6586 # Try without a prefix underscore, then with it.
6587 for ac_symprfx in "" "_"; do
6588
6589   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6590   symxfrm="\\1 $ac_symprfx\\2 \\2"
6591
6592   # Write the raw and C identifiers.
6593   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6594     # Fake it for dumpbin and say T for any non-static function
6595     # and D for any global variable.
6596     # Also find C++ and __fastcall symbols from MSVC++,
6597     # which start with @ or ?.
6598     lt_cv_sys_global_symbol_pipe="$AWK '"\
6599 "     {last_section=section; section=\$ 3};"\
6600 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6601 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6602 "     \$ 0!~/External *\|/{next};"\
6603 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6604 "     {if(hide[section]) next};"\
6605 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6606 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6607 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6608 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6609 "     ' prfx=^$ac_symprfx"
6610   else
6611     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6612   fi
6613   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6614
6615   # Check to see that the pipe works correctly.
6616   pipe_works=no
6617
6618   rm -f conftest*
6619   cat > conftest.$ac_ext <<_LT_EOF
6620 #ifdef __cplusplus
6621 extern "C" {
6622 #endif
6623 char nm_test_var;
6624 void nm_test_func(void);
6625 void nm_test_func(void){}
6626 #ifdef __cplusplus
6627 }
6628 #endif
6629 int main(){nm_test_var='a';nm_test_func();return(0);}
6630 _LT_EOF
6631
6632   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6633   (eval $ac_compile) 2>&5
6634   ac_status=$?
6635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636   test $ac_status = 0; }; then
6637     # Now try to grab the symbols.
6638     nlist=conftest.nm
6639     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6640   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6641   ac_status=$?
6642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643   test $ac_status = 0; } && test -s "$nlist"; then
6644       # Try sorting and uniquifying the output.
6645       if sort "$nlist" | uniq > "$nlist"T; then
6646         mv -f "$nlist"T "$nlist"
6647       else
6648         rm -f "$nlist"T
6649       fi
6650
6651       # Make sure that we snagged all the symbols we need.
6652       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6653         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6654           cat <<_LT_EOF > conftest.$ac_ext
6655 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6656 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6657 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6658    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6659 # define LT_DLSYM_CONST
6660 #elif defined(__osf__)
6661 /* This system does not cope well with relocations in const data.  */
6662 # define LT_DLSYM_CONST
6663 #else
6664 # define LT_DLSYM_CONST const
6665 #endif
6666
6667 #ifdef __cplusplus
6668 extern "C" {
6669 #endif
6670
6671 _LT_EOF
6672           # Now generate the symbol file.
6673           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6674
6675           cat <<_LT_EOF >> conftest.$ac_ext
6676
6677 /* The mapping between symbol names and symbols.  */
6678 LT_DLSYM_CONST struct {
6679   const char *name;
6680   void       *address;
6681 }
6682 lt__PROGRAM__LTX_preloaded_symbols[] =
6683 {
6684   { "@PROGRAM@", (void *) 0 },
6685 _LT_EOF
6686           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6687           cat <<\_LT_EOF >> conftest.$ac_ext
6688   {0, (void *) 0}
6689 };
6690
6691 /* This works around a problem in FreeBSD linker */
6692 #ifdef FREEBSD_WORKAROUND
6693 static const void *lt_preloaded_setup() {
6694   return lt__PROGRAM__LTX_preloaded_symbols;
6695 }
6696 #endif
6697
6698 #ifdef __cplusplus
6699 }
6700 #endif
6701 _LT_EOF
6702           # Now try linking the two files.
6703           mv conftest.$ac_objext conftstm.$ac_objext
6704           lt_globsym_save_LIBS=$LIBS
6705           lt_globsym_save_CFLAGS=$CFLAGS
6706           LIBS="conftstm.$ac_objext"
6707           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6708           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6709   (eval $ac_link) 2>&5
6710   ac_status=$?
6711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6713             pipe_works=yes
6714           fi
6715           LIBS=$lt_globsym_save_LIBS
6716           CFLAGS=$lt_globsym_save_CFLAGS
6717         else
6718           echo "cannot find nm_test_func in $nlist" >&5
6719         fi
6720       else
6721         echo "cannot find nm_test_var in $nlist" >&5
6722       fi
6723     else
6724       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6725     fi
6726   else
6727     echo "$progname: failed program was:" >&5
6728     cat conftest.$ac_ext >&5
6729   fi
6730   rm -rf conftest* conftst*
6731
6732   # Do not use the global_symbol_pipe unless it works.
6733   if test "$pipe_works" = yes; then
6734     break
6735   else
6736     lt_cv_sys_global_symbol_pipe=
6737   fi
6738 done
6739
6740 fi
6741
6742 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6743   lt_cv_sys_global_symbol_to_cdecl=
6744 fi
6745 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6747 $as_echo "failed" >&6; }
6748 else
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6750 $as_echo "ok" >&6; }
6751 fi
6752
6753 # Response file support.
6754 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6755   nm_file_list_spec='@'
6756 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6757   nm_file_list_spec='@'
6758 fi
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
6785
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6787 $as_echo_n "checking for sysroot... " >&6; }
6788
6789 # Check whether --with-sysroot was given.
6790 if test "${with_sysroot+set}" = set; then :
6791   withval=$with_sysroot;
6792 else
6793   with_sysroot=no
6794 fi
6795
6796
6797 lt_sysroot=
6798 case ${with_sysroot} in #(
6799  yes)
6800    if test "$GCC" = yes; then
6801      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6802    fi
6803    ;; #(
6804  /*)
6805    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6806    ;; #(
6807  no|'')
6808    ;; #(
6809  *)
6810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6811 $as_echo "${with_sysroot}" >&6; }
6812    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6813    ;;
6814 esac
6815
6816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6817 $as_echo "${lt_sysroot:-no}" >&6; }
6818
6819
6820
6821
6822
6823 # Check whether --enable-libtool-lock was given.
6824 if test "${enable_libtool_lock+set}" = set; then :
6825   enableval=$enable_libtool_lock;
6826 fi
6827
6828 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6829
6830 # Some flags need to be propagated to the compiler or linker for good
6831 # libtool support.
6832 case $host in
6833 ia64-*-hpux*)
6834   # Find out which ABI we are using.
6835   echo 'int i;' > conftest.$ac_ext
6836   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6837   (eval $ac_compile) 2>&5
6838   ac_status=$?
6839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840   test $ac_status = 0; }; then
6841     case `/usr/bin/file conftest.$ac_objext` in
6842       *ELF-32*)
6843         HPUX_IA64_MODE="32"
6844         ;;
6845       *ELF-64*)
6846         HPUX_IA64_MODE="64"
6847         ;;
6848     esac
6849   fi
6850   rm -rf conftest*
6851   ;;
6852 *-*-irix6*)
6853   # Find out which ABI we are using.
6854   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6855   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856   (eval $ac_compile) 2>&5
6857   ac_status=$?
6858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859   test $ac_status = 0; }; then
6860     if test "$lt_cv_prog_gnu_ld" = yes; then
6861       case `/usr/bin/file conftest.$ac_objext` in
6862         *32-bit*)
6863           LD="${LD-ld} -melf32bsmip"
6864           ;;
6865         *N32*)
6866           LD="${LD-ld} -melf32bmipn32"
6867           ;;
6868         *64-bit*)
6869           LD="${LD-ld} -melf64bmip"
6870         ;;
6871       esac
6872     else
6873       case `/usr/bin/file conftest.$ac_objext` in
6874         *32-bit*)
6875           LD="${LD-ld} -32"
6876           ;;
6877         *N32*)
6878           LD="${LD-ld} -n32"
6879           ;;
6880         *64-bit*)
6881           LD="${LD-ld} -64"
6882           ;;
6883       esac
6884     fi
6885   fi
6886   rm -rf conftest*
6887   ;;
6888
6889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6891   # Find out which ABI we are using.
6892   echo 'int i;' > conftest.$ac_ext
6893   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894   (eval $ac_compile) 2>&5
6895   ac_status=$?
6896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897   test $ac_status = 0; }; then
6898     case `/usr/bin/file conftest.o` in
6899       *32-bit*)
6900         case $host in
6901           x86_64-*kfreebsd*-gnu)
6902             LD="${LD-ld} -m elf_i386_fbsd"
6903             ;;
6904           x86_64-*linux*)
6905             case `/usr/bin/file conftest.o` in
6906               *x86-64*)
6907                  LD="${LD-ld} -m elf32_x86_64"
6908                  ;;
6909               *)
6910                  LD="${LD-ld} -m elf_i386"
6911                  ;;
6912             esac
6913             ;;
6914           ppc64-*linux*|powerpc64-*linux*)
6915             LD="${LD-ld} -m elf32ppclinux"
6916             ;;
6917           s390x-*linux*)
6918             LD="${LD-ld} -m elf_s390"
6919             ;;
6920           sparc64-*linux*)
6921             LD="${LD-ld} -m elf32_sparc"
6922             ;;
6923         esac
6924         ;;
6925       *64-bit*)
6926         case $host in
6927           x86_64-*kfreebsd*-gnu)
6928             LD="${LD-ld} -m elf_x86_64_fbsd"
6929             ;;
6930           x86_64-*linux*)
6931             LD="${LD-ld} -m elf_x86_64"
6932             ;;
6933           ppc*-*linux*|powerpc*-*linux*)
6934             LD="${LD-ld} -m elf64ppc"
6935             ;;
6936           s390*-*linux*|s390*-*tpf*)
6937             LD="${LD-ld} -m elf64_s390"
6938             ;;
6939           sparc*-*linux*)
6940             LD="${LD-ld} -m elf64_sparc"
6941             ;;
6942         esac
6943         ;;
6944     esac
6945   fi
6946   rm -rf conftest*
6947   ;;
6948
6949 *-*-sco3.2v5*)
6950   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6951   SAVE_CFLAGS="$CFLAGS"
6952   CFLAGS="$CFLAGS -belf"
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6954 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6955 if ${lt_cv_cc_needs_belf+:} false; then :
6956   $as_echo_n "(cached) " >&6
6957 else
6958   ac_ext=c
6959 ac_cpp='$CPP $CPPFLAGS'
6960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6963
6964      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h.  */
6966
6967 int
6968 main ()
6969 {
6970
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976   lt_cv_cc_needs_belf=yes
6977 else
6978   lt_cv_cc_needs_belf=no
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext \
6981     conftest$ac_exeext conftest.$ac_ext
6982      ac_ext=c
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6990 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6991   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6992     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6993     CFLAGS="$SAVE_CFLAGS"
6994   fi
6995   ;;
6996 *-*solaris*)
6997   # Find out which ABI we are using.
6998   echo 'int i;' > conftest.$ac_ext
6999   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000   (eval $ac_compile) 2>&5
7001   ac_status=$?
7002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003   test $ac_status = 0; }; then
7004     case `/usr/bin/file conftest.o` in
7005     *64-bit*)
7006       case $lt_cv_prog_gnu_ld in
7007       yes*)
7008         case $host in
7009         i?86-*-solaris*)
7010           LD="${LD-ld} -m elf_x86_64"
7011           ;;
7012         sparc*-*-solaris*)
7013           LD="${LD-ld} -m elf64_sparc"
7014           ;;
7015         esac
7016         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7017         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7018           LD="${LD-ld}_sol2"
7019         fi
7020         ;;
7021       *)
7022         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7023           LD="${LD-ld} -64"
7024         fi
7025         ;;
7026       esac
7027       ;;
7028     esac
7029   fi
7030   rm -rf conftest*
7031   ;;
7032 esac
7033
7034 need_locks="$enable_libtool_lock"
7035
7036 if test -n "$ac_tool_prefix"; then
7037   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}mt; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   if test -n "$MANIFEST_TOOL"; then
7045   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052     for ac_exec_ext in '' $ac_executable_extensions; do
7053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059   done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7065 if test -n "$MANIFEST_TOOL"; then
7066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7067 $as_echo "$MANIFEST_TOOL" >&6; }
7068 else
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073
7074 fi
7075 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7076   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7077   # Extract the first word of "mt", so it can be a program name with args.
7078 set dummy mt; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   if test -n "$ac_ct_MANIFEST_TOOL"; then
7085   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092     for ac_exec_ext in '' $ac_executable_extensions; do
7093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099   done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7105 if test -n "$ac_ct_MANIFEST_TOOL"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7107 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7114     MANIFEST_TOOL=":"
7115   else
7116     case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7123   fi
7124 else
7125   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7126 fi
7127
7128 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7130 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7131 if ${lt_cv_path_mainfest_tool+:} false; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   lt_cv_path_mainfest_tool=no
7135   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7136   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7137   cat conftest.err >&5
7138   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7139     lt_cv_path_mainfest_tool=yes
7140   fi
7141   rm -f conftest*
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7144 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7145 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7146   MANIFEST_TOOL=:
7147 fi
7148
7149
7150
7151
7152
7153
7154   case $host_os in
7155     rhapsody* | darwin*)
7156     if test -n "$ac_tool_prefix"; then
7157   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   if test -n "$DSYMUTIL"; then
7165   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172     for ac_exec_ext in '' $ac_executable_extensions; do
7173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179   done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7185 if test -n "$DSYMUTIL"; then
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7187 $as_echo "$DSYMUTIL" >&6; }
7188 else
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_DSYMUTIL"; then
7196   ac_ct_DSYMUTIL=$DSYMUTIL
7197   # Extract the first word of "dsymutil", so it can be a program name with args.
7198 set dummy dsymutil; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test -n "$ac_ct_DSYMUTIL"; then
7205   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212     for ac_exec_ext in '' $ac_executable_extensions; do
7213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219   done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7225 if test -n "$ac_ct_DSYMUTIL"; then
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7227 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7228 else
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233   if test "x$ac_ct_DSYMUTIL" = x; then
7234     DSYMUTIL=":"
7235   else
7236     case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242     DSYMUTIL=$ac_ct_DSYMUTIL
7243   fi
7244 else
7245   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7246 fi
7247
7248     if test -n "$ac_tool_prefix"; then
7249   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_NMEDIT+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$NMEDIT"; then
7257   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 NMEDIT=$ac_cv_prog_NMEDIT
7277 if test -n "$NMEDIT"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7279 $as_echo "$NMEDIT" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_NMEDIT"; then
7288   ac_ct_NMEDIT=$NMEDIT
7289   # Extract the first word of "nmedit", so it can be a program name with args.
7290 set dummy nmedit; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$ac_ct_NMEDIT"; then
7297   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7317 if test -n "$ac_ct_NMEDIT"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7319 $as_echo "$ac_ct_NMEDIT" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325   if test "x$ac_ct_NMEDIT" = x; then
7326     NMEDIT=":"
7327   else
7328     case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334     NMEDIT=$ac_ct_NMEDIT
7335   fi
7336 else
7337   NMEDIT="$ac_cv_prog_NMEDIT"
7338 fi
7339
7340     if test -n "$ac_tool_prefix"; then
7341   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_LIPO+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$LIPO"; then
7349   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 LIPO=$ac_cv_prog_LIPO
7369 if test -n "$LIPO"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7371 $as_echo "$LIPO" >&6; }
7372 else
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_LIPO"; then
7380   ac_ct_LIPO=$LIPO
7381   # Extract the first word of "lipo", so it can be a program name with args.
7382 set dummy lipo; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   if test -n "$ac_ct_LIPO"; then
7389   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396     for ac_exec_ext in '' $ac_executable_extensions; do
7397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398     ac_cv_prog_ac_ct_LIPO="lipo"
7399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403   done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7409 if test -n "$ac_ct_LIPO"; then
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7411 $as_echo "$ac_ct_LIPO" >&6; }
7412 else
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417   if test "x$ac_ct_LIPO" = x; then
7418     LIPO=":"
7419   else
7420     case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426     LIPO=$ac_ct_LIPO
7427   fi
7428 else
7429   LIPO="$ac_cv_prog_LIPO"
7430 fi
7431
7432     if test -n "$ac_tool_prefix"; then
7433   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}otool; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_OTOOL+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$OTOOL"; then
7441   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 OTOOL=$ac_cv_prog_OTOOL
7461 if test -n "$OTOOL"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7463 $as_echo "$OTOOL" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 fi
7471 if test -z "$ac_cv_prog_OTOOL"; then
7472   ac_ct_OTOOL=$OTOOL
7473   # Extract the first word of "otool", so it can be a program name with args.
7474 set dummy otool; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   if test -n "$ac_ct_OTOOL"; then
7481   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488     for ac_exec_ext in '' $ac_executable_extensions; do
7489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490     ac_cv_prog_ac_ct_OTOOL="otool"
7491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495   done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7501 if test -n "$ac_ct_OTOOL"; then
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7503 $as_echo "$ac_ct_OTOOL" >&6; }
7504 else
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509   if test "x$ac_ct_OTOOL" = x; then
7510     OTOOL=":"
7511   else
7512     case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518     OTOOL=$ac_ct_OTOOL
7519   fi
7520 else
7521   OTOOL="$ac_cv_prog_OTOOL"
7522 fi
7523
7524     if test -n "$ac_tool_prefix"; then
7525   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_OTOOL64+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   if test -n "$OTOOL64"; then
7533   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540     for ac_exec_ext in '' $ac_executable_extensions; do
7541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547   done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 OTOOL64=$ac_cv_prog_OTOOL64
7553 if test -n "$OTOOL64"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7555 $as_echo "$OTOOL64" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562 fi
7563 if test -z "$ac_cv_prog_OTOOL64"; then
7564   ac_ct_OTOOL64=$OTOOL64
7565   # Extract the first word of "otool64", so it can be a program name with args.
7566 set dummy otool64; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   if test -n "$ac_ct_OTOOL64"; then
7573   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580     for ac_exec_ext in '' $ac_executable_extensions; do
7581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582     ac_cv_prog_ac_ct_OTOOL64="otool64"
7583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587   done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7593 if test -n "$ac_ct_OTOOL64"; then
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7595 $as_echo "$ac_ct_OTOOL64" >&6; }
7596 else
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601   if test "x$ac_ct_OTOOL64" = x; then
7602     OTOOL64=":"
7603   else
7604     case $cross_compiling:$ac_tool_warned in
7605 yes:)
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7609 esac
7610     OTOOL64=$ac_ct_OTOOL64
7611   fi
7612 else
7613   OTOOL64="$ac_cv_prog_OTOOL64"
7614 fi
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
7641
7642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7643 $as_echo_n "checking for -single_module linker flag... " >&6; }
7644 if ${lt_cv_apple_cc_single_mod+:} false; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647   lt_cv_apple_cc_single_mod=no
7648       if test -z "${LT_MULTI_MODULE}"; then
7649         # By default we will add the -single_module flag. You can override
7650         # by either setting the environment variable LT_MULTI_MODULE
7651         # non-empty at configure time, or by adding -multi_module to the
7652         # link flags.
7653         rm -rf libconftest.dylib*
7654         echo "int foo(void){return 1;}" > conftest.c
7655         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7656 -dynamiclib -Wl,-single_module conftest.c" >&5
7657         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7658           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7659         _lt_result=$?
7660         # If there is a non-empty error log, and "single_module"
7661         # appears in it, assume the flag caused a linker warning
7662         if test -s conftest.err && $GREP single_module conftest.err; then
7663           cat conftest.err >&5
7664         # Otherwise, if the output was created with a 0 exit code from
7665         # the compiler, it worked.
7666         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7667           lt_cv_apple_cc_single_mod=yes
7668         else
7669           cat conftest.err >&5
7670         fi
7671         rm -rf libconftest.dylib*
7672         rm -f conftest.*
7673       fi
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7676 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7677
7678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7679 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7680 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7681   $as_echo_n "(cached) " >&6
7682 else
7683   lt_cv_ld_exported_symbols_list=no
7684       save_LDFLAGS=$LDFLAGS
7685       echo "_main" > conftest.sym
7686       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7687       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h.  */
7689
7690 int
7691 main ()
7692 {
7693
7694   ;
7695   return 0;
7696 }
7697 _ACEOF
7698 if ac_fn_c_try_link "$LINENO"; then :
7699   lt_cv_ld_exported_symbols_list=yes
7700 else
7701   lt_cv_ld_exported_symbols_list=no
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext \
7704     conftest$ac_exeext conftest.$ac_ext
7705         LDFLAGS="$save_LDFLAGS"
7706
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7709 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7710
7711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7712 $as_echo_n "checking for -force_load linker flag... " >&6; }
7713 if ${lt_cv_ld_force_load+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   lt_cv_ld_force_load=no
7717       cat > conftest.c << _LT_EOF
7718 int forced_loaded() { return 2;}
7719 _LT_EOF
7720       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7721       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7722       echo "$AR cru libconftest.a conftest.o" >&5
7723       $AR cru libconftest.a conftest.o 2>&5
7724       echo "$RANLIB libconftest.a" >&5
7725       $RANLIB libconftest.a 2>&5
7726       cat > conftest.c << _LT_EOF
7727 int main() { return 0;}
7728 _LT_EOF
7729       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7730       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7731       _lt_result=$?
7732       if test -s conftest.err && $GREP force_load conftest.err; then
7733         cat conftest.err >&5
7734       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7735         lt_cv_ld_force_load=yes
7736       else
7737         cat conftest.err >&5
7738       fi
7739         rm -f conftest.err libconftest.a conftest conftest.c
7740         rm -rf conftest.dSYM
7741
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7744 $as_echo "$lt_cv_ld_force_load" >&6; }
7745     case $host_os in
7746     rhapsody* | darwin1.[012])
7747       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7748     darwin1.*)
7749       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7750     darwin*) # darwin 5.x on
7751       # if running on 10.5 or later, the deployment target defaults
7752       # to the OS version, if on x86, and 10.4, the deployment
7753       # target defaults to 10.4. Don't you love it?
7754       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7755         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7756           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7757         10.[012]*)
7758           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7759         10.*)
7760           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7761       esac
7762     ;;
7763   esac
7764     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7765       _lt_dar_single_mod='$single_module'
7766     fi
7767     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7768       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7769     else
7770       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7771     fi
7772     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7773       _lt_dsymutil='~$DSYMUTIL $lib || :'
7774     else
7775       _lt_dsymutil=
7776     fi
7777     ;;
7778   esac
7779
7780 ac_ext=c
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7786 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7787 # On Suns, sometimes $CPP names a directory.
7788 if test -n "$CPP" && test -d "$CPP"; then
7789   CPP=
7790 fi
7791 if test -z "$CPP"; then
7792   if ${ac_cv_prog_CPP+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795       # Double quotes because CPP needs to be expanded
7796     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7797     do
7798       ac_preproc_ok=false
7799 for ac_c_preproc_warn_flag in '' yes
7800 do
7801   # Use a header file that comes with gcc, so configuring glibc
7802   # with a fresh cross-compiler works.
7803   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7804   # <limits.h> exists even on freestanding compilers.
7805   # On the NeXT, cc -E runs the code through the compiler's parser,
7806   # not just through cpp. "Syntax error" is here to catch this case.
7807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h.  */
7809 #ifdef __STDC__
7810 # include <limits.h>
7811 #else
7812 # include <assert.h>
7813 #endif
7814                      Syntax error
7815 _ACEOF
7816 if ac_fn_c_try_cpp "$LINENO"; then :
7817
7818 else
7819   # Broken: fails on valid input.
7820 continue
7821 fi
7822 rm -f conftest.err conftest.i conftest.$ac_ext
7823
7824   # OK, works on sane cases.  Now check whether nonexistent headers
7825   # can be detected and how.
7826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h.  */
7828 #include <ac_nonexistent.h>
7829 _ACEOF
7830 if ac_fn_c_try_cpp "$LINENO"; then :
7831   # Broken: success on invalid input.
7832 continue
7833 else
7834   # Passes both tests.
7835 ac_preproc_ok=:
7836 break
7837 fi
7838 rm -f conftest.err conftest.i conftest.$ac_ext
7839
7840 done
7841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7842 rm -f conftest.i conftest.err conftest.$ac_ext
7843 if $ac_preproc_ok; then :
7844   break
7845 fi
7846
7847     done
7848     ac_cv_prog_CPP=$CPP
7849
7850 fi
7851   CPP=$ac_cv_prog_CPP
7852 else
7853   ac_cv_prog_CPP=$CPP
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7856 $as_echo "$CPP" >&6; }
7857 ac_preproc_ok=false
7858 for ac_c_preproc_warn_flag in '' yes
7859 do
7860   # Use a header file that comes with gcc, so configuring glibc
7861   # with a fresh cross-compiler works.
7862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7863   # <limits.h> exists even on freestanding compilers.
7864   # On the NeXT, cc -E runs the code through the compiler's parser,
7865   # not just through cpp. "Syntax error" is here to catch this case.
7866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868 #ifdef __STDC__
7869 # include <limits.h>
7870 #else
7871 # include <assert.h>
7872 #endif
7873                      Syntax error
7874 _ACEOF
7875 if ac_fn_c_try_cpp "$LINENO"; then :
7876
7877 else
7878   # Broken: fails on valid input.
7879 continue
7880 fi
7881 rm -f conftest.err conftest.i conftest.$ac_ext
7882
7883   # OK, works on sane cases.  Now check whether nonexistent headers
7884   # can be detected and how.
7885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h.  */
7887 #include <ac_nonexistent.h>
7888 _ACEOF
7889 if ac_fn_c_try_cpp "$LINENO"; then :
7890   # Broken: success on invalid input.
7891 continue
7892 else
7893   # Passes both tests.
7894 ac_preproc_ok=:
7895 break
7896 fi
7897 rm -f conftest.err conftest.i conftest.$ac_ext
7898
7899 done
7900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7901 rm -f conftest.i conftest.err conftest.$ac_ext
7902 if $ac_preproc_ok; then :
7903
7904 else
7905   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7907 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7908 See \`config.log' for more details" "$LINENO" 5; }
7909 fi
7910
7911 ac_ext=c
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7919 $as_echo_n "checking for ANSI C header files... " >&6; }
7920 if ${ac_cv_header_stdc+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h.  */
7925 #include <stdlib.h>
7926 #include <stdarg.h>
7927 #include <string.h>
7928 #include <float.h>
7929
7930 int
7931 main ()
7932 {
7933
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939   ac_cv_header_stdc=yes
7940 else
7941   ac_cv_header_stdc=no
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944
7945 if test $ac_cv_header_stdc = yes; then
7946   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h.  */
7949 #include <string.h>
7950
7951 _ACEOF
7952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7953   $EGREP "memchr" >/dev/null 2>&1; then :
7954
7955 else
7956   ac_cv_header_stdc=no
7957 fi
7958 rm -f conftest*
7959
7960 fi
7961
7962 if test $ac_cv_header_stdc = yes; then
7963   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h.  */
7966 #include <stdlib.h>
7967
7968 _ACEOF
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970   $EGREP "free" >/dev/null 2>&1; then :
7971
7972 else
7973   ac_cv_header_stdc=no
7974 fi
7975 rm -f conftest*
7976
7977 fi
7978
7979 if test $ac_cv_header_stdc = yes; then
7980   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7981   if test "$cross_compiling" = yes; then :
7982   :
7983 else
7984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h.  */
7986 #include <ctype.h>
7987 #include <stdlib.h>
7988 #if ((' ' & 0x0FF) == 0x020)
7989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7991 #else
7992 # define ISLOWER(c) \
7993                    (('a' <= (c) && (c) <= 'i') \
7994                      || ('j' <= (c) && (c) <= 'r') \
7995                      || ('s' <= (c) && (c) <= 'z'))
7996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7997 #endif
7998
7999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8000 int
8001 main ()
8002 {
8003   int i;
8004   for (i = 0; i < 256; i++)
8005     if (XOR (islower (i), ISLOWER (i))
8006         || toupper (i) != TOUPPER (i))
8007       return 2;
8008   return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_run "$LINENO"; then :
8012
8013 else
8014   ac_cv_header_stdc=no
8015 fi
8016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8017   conftest.$ac_objext conftest.beam conftest.$ac_ext
8018 fi
8019
8020 fi
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8023 $as_echo "$ac_cv_header_stdc" >&6; }
8024 if test $ac_cv_header_stdc = yes; then
8025
8026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8027
8028 fi
8029
8030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8032                   inttypes.h stdint.h unistd.h
8033 do :
8034   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8036 "
8037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8038   cat >>confdefs.h <<_ACEOF
8039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8040 _ACEOF
8041
8042 fi
8043
8044 done
8045
8046
8047 for ac_header in dlfcn.h
8048 do :
8049   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8050 "
8051 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8052   cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DLFCN_H 1
8054 _ACEOF
8055
8056 fi
8057
8058 done
8059
8060
8061
8062
8063
8064 # Set options
8065
8066
8067
8068         enable_dlopen=no
8069
8070
8071   enable_win32_dll=no
8072
8073
8074             # Check whether --enable-shared was given.
8075 if test "${enable_shared+set}" = set; then :
8076   enableval=$enable_shared; p=${PACKAGE-default}
8077     case $enableval in
8078     yes) enable_shared=yes ;;
8079     no) enable_shared=no ;;
8080     *)
8081       enable_shared=no
8082       # Look at the argument we got.  We use all the common list separators.
8083       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084       for pkg in $enableval; do
8085         IFS="$lt_save_ifs"
8086         if test "X$pkg" = "X$p"; then
8087           enable_shared=yes
8088         fi
8089       done
8090       IFS="$lt_save_ifs"
8091       ;;
8092     esac
8093 else
8094   enable_shared=yes
8095 fi
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105   # Check whether --enable-static was given.
8106 if test "${enable_static+set}" = set; then :
8107   enableval=$enable_static; p=${PACKAGE-default}
8108     case $enableval in
8109     yes) enable_static=yes ;;
8110     no) enable_static=no ;;
8111     *)
8112      enable_static=no
8113       # Look at the argument we got.  We use all the common list separators.
8114       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115       for pkg in $enableval; do
8116         IFS="$lt_save_ifs"
8117         if test "X$pkg" = "X$p"; then
8118           enable_static=yes
8119         fi
8120       done
8121       IFS="$lt_save_ifs"
8122       ;;
8123     esac
8124 else
8125   enable_static=yes
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # Check whether --with-pic was given.
8138 if test "${with_pic+set}" = set; then :
8139   withval=$with_pic; lt_p=${PACKAGE-default}
8140     case $withval in
8141     yes|no) pic_mode=$withval ;;
8142     *)
8143       pic_mode=default
8144       # Look at the argument we got.  We use all the common list separators.
8145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8146       for lt_pkg in $withval; do
8147         IFS="$lt_save_ifs"
8148         if test "X$lt_pkg" = "X$lt_p"; then
8149           pic_mode=yes
8150         fi
8151       done
8152       IFS="$lt_save_ifs"
8153       ;;
8154     esac
8155 else
8156   pic_mode=default
8157 fi
8158
8159
8160 test -z "$pic_mode" && pic_mode=default
8161
8162
8163
8164
8165
8166
8167
8168   # Check whether --enable-fast-install was given.
8169 if test "${enable_fast_install+set}" = set; then :
8170   enableval=$enable_fast_install; p=${PACKAGE-default}
8171     case $enableval in
8172     yes) enable_fast_install=yes ;;
8173     no) enable_fast_install=no ;;
8174     *)
8175       enable_fast_install=no
8176       # Look at the argument we got.  We use all the common list separators.
8177       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178       for pkg in $enableval; do
8179         IFS="$lt_save_ifs"
8180         if test "X$pkg" = "X$p"; then
8181           enable_fast_install=yes
8182         fi
8183       done
8184       IFS="$lt_save_ifs"
8185       ;;
8186     esac
8187 else
8188   enable_fast_install=yes
8189 fi
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201 # This can be used to rebuild libtool when needed
8202 LIBTOOL_DEPS="$ltmain"
8203
8204 # Always use our own libtool.
8205 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8235
8236 test -z "$LN_S" && LN_S="ln -s"
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251 if test -n "${ZSH_VERSION+set}" ; then
8252    setopt NO_GLOB_SUBST
8253 fi
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8256 $as_echo_n "checking for objdir... " >&6; }
8257 if ${lt_cv_objdir+:} false; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   rm -f .libs 2>/dev/null
8261 mkdir .libs 2>/dev/null
8262 if test -d .libs; then
8263   lt_cv_objdir=.libs
8264 else
8265   # MS-DOS does not allow filenames that begin with a dot.
8266   lt_cv_objdir=_libs
8267 fi
8268 rmdir .libs 2>/dev/null
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8271 $as_echo "$lt_cv_objdir" >&6; }
8272 objdir=$lt_cv_objdir
8273
8274
8275
8276
8277
8278 cat >>confdefs.h <<_ACEOF
8279 #define LT_OBJDIR "$lt_cv_objdir/"
8280 _ACEOF
8281
8282
8283
8284
8285 case $host_os in
8286 aix3*)
8287   # AIX sometimes has problems with the GCC collect2 program.  For some
8288   # reason, if we set the COLLECT_NAMES environment variable, the problems
8289   # vanish in a puff of smoke.
8290   if test "X${COLLECT_NAMES+set}" != Xset; then
8291     COLLECT_NAMES=
8292     export COLLECT_NAMES
8293   fi
8294   ;;
8295 esac
8296
8297 # Global variables:
8298 ofile=libtool
8299 can_build_shared=yes
8300
8301 # All known linkers require a `.a' archive for static linking (except MSVC,
8302 # which needs '.lib').
8303 libext=a
8304
8305 with_gnu_ld="$lt_cv_prog_gnu_ld"
8306
8307 old_CC="$CC"
8308 old_CFLAGS="$CFLAGS"
8309
8310 # Set sane defaults for various variables
8311 test -z "$CC" && CC=cc
8312 test -z "$LTCC" && LTCC=$CC
8313 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8314 test -z "$LD" && LD=ld
8315 test -z "$ac_objext" && ac_objext=o
8316
8317 for cc_temp in $compiler""; do
8318   case $cc_temp in
8319     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8320     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8321     \-*) ;;
8322     *) break;;
8323   esac
8324 done
8325 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8326
8327
8328 # Only perform the check for file, if the check method requires it
8329 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8330 case $deplibs_check_method in
8331 file_magic*)
8332   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8334 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8335 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   case $MAGIC_CMD in
8339 [\\/*] |  ?:[\\/]*)
8340   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341   ;;
8342 *)
8343   lt_save_MAGIC_CMD="$MAGIC_CMD"
8344   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8345   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8346   for ac_dir in $ac_dummy; do
8347     IFS="$lt_save_ifs"
8348     test -z "$ac_dir" && ac_dir=.
8349     if test -f $ac_dir/${ac_tool_prefix}file; then
8350       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8351       if test -n "$file_magic_test_file"; then
8352         case $deplibs_check_method in
8353         "file_magic "*)
8354           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8355           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8356           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8357             $EGREP "$file_magic_regex" > /dev/null; then
8358             :
8359           else
8360             cat <<_LT_EOF 1>&2
8361
8362 *** Warning: the command libtool uses to detect shared libraries,
8363 *** $file_magic_cmd, produces output that libtool cannot recognize.
8364 *** The result is that libtool may fail to recognize shared libraries
8365 *** as such.  This will affect the creation of libtool libraries that
8366 *** depend on shared libraries, but programs linked with such libtool
8367 *** libraries will work regardless of this problem.  Nevertheless, you
8368 *** may want to report the problem to your system manager and/or to
8369 *** bug-libtool@gnu.org
8370
8371 _LT_EOF
8372           fi ;;
8373         esac
8374       fi
8375       break
8376     fi
8377   done
8378   IFS="$lt_save_ifs"
8379   MAGIC_CMD="$lt_save_MAGIC_CMD"
8380   ;;
8381 esac
8382 fi
8383
8384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385 if test -n "$MAGIC_CMD"; then
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8387 $as_echo "$MAGIC_CMD" >&6; }
8388 else
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392
8393
8394
8395
8396
8397 if test -z "$lt_cv_path_MAGIC_CMD"; then
8398   if test -n "$ac_tool_prefix"; then
8399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8400 $as_echo_n "checking for file... " >&6; }
8401 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8402   $as_echo_n "(cached) " >&6
8403 else
8404   case $MAGIC_CMD in
8405 [\\/*] |  ?:[\\/]*)
8406   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8407   ;;
8408 *)
8409   lt_save_MAGIC_CMD="$MAGIC_CMD"
8410   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8411   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8412   for ac_dir in $ac_dummy; do
8413     IFS="$lt_save_ifs"
8414     test -z "$ac_dir" && ac_dir=.
8415     if test -f $ac_dir/file; then
8416       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8417       if test -n "$file_magic_test_file"; then
8418         case $deplibs_check_method in
8419         "file_magic "*)
8420           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8421           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8423             $EGREP "$file_magic_regex" > /dev/null; then
8424             :
8425           else
8426             cat <<_LT_EOF 1>&2
8427
8428 *** Warning: the command libtool uses to detect shared libraries,
8429 *** $file_magic_cmd, produces output that libtool cannot recognize.
8430 *** The result is that libtool may fail to recognize shared libraries
8431 *** as such.  This will affect the creation of libtool libraries that
8432 *** depend on shared libraries, but programs linked with such libtool
8433 *** libraries will work regardless of this problem.  Nevertheless, you
8434 *** may want to report the problem to your system manager and/or to
8435 *** bug-libtool@gnu.org
8436
8437 _LT_EOF
8438           fi ;;
8439         esac
8440       fi
8441       break
8442     fi
8443   done
8444   IFS="$lt_save_ifs"
8445   MAGIC_CMD="$lt_save_MAGIC_CMD"
8446   ;;
8447 esac
8448 fi
8449
8450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8451 if test -n "$MAGIC_CMD"; then
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8453 $as_echo "$MAGIC_CMD" >&6; }
8454 else
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8457 fi
8458
8459
8460   else
8461     MAGIC_CMD=:
8462   fi
8463 fi
8464
8465   fi
8466   ;;
8467 esac
8468
8469 # Use C for the default configuration in the libtool script
8470
8471 lt_save_CC="$CC"
8472 ac_ext=c
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8477
8478
8479 # Source file extension for C test sources.
8480 ac_ext=c
8481
8482 # Object file extension for compiled C test sources.
8483 objext=o
8484 objext=$objext
8485
8486 # Code to be used in simple compile tests
8487 lt_simple_compile_test_code="int some_variable = 0;"
8488
8489 # Code to be used in simple link tests
8490 lt_simple_link_test_code='int main(){return(0);}'
8491
8492
8493
8494
8495
8496
8497
8498 # If no C compiler was specified, use CC.
8499 LTCC=${LTCC-"$CC"}
8500
8501 # If no C compiler flags were specified, use CFLAGS.
8502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8503
8504 # Allow CC to be a program name with arguments.
8505 compiler=$CC
8506
8507 # Save the default compiler, since it gets overwritten when the other
8508 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8509 compiler_DEFAULT=$CC
8510
8511 # save warnings/boilerplate of simple test code
8512 ac_outfile=conftest.$ac_objext
8513 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8514 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8515 _lt_compiler_boilerplate=`cat conftest.err`
8516 $RM conftest*
8517
8518 ac_outfile=conftest.$ac_objext
8519 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8520 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521 _lt_linker_boilerplate=`cat conftest.err`
8522 $RM -r conftest*
8523
8524
8525 ## CAVEAT EMPTOR:
8526 ## There is no encapsulation within the following macros, do not change
8527 ## the running order or otherwise move them around unless you know exactly
8528 ## what you are doing...
8529 if test -n "$compiler"; then
8530
8531 lt_prog_compiler_no_builtin_flag=
8532
8533 if test "$GCC" = yes; then
8534   case $cc_basename in
8535   nvcc*)
8536     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8537   *)
8538     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8539   esac
8540
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8542 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8543 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544   $as_echo_n "(cached) " >&6
8545 else
8546   lt_cv_prog_compiler_rtti_exceptions=no
8547    ac_outfile=conftest.$ac_objext
8548    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549    lt_compiler_flag="-fno-rtti -fno-exceptions"
8550    # Insert the option either (1) after the last *FLAGS variable, or
8551    # (2) before a word containing "conftest.", or (3) at the end.
8552    # Note that $ac_compile itself does not contain backslashes and begins
8553    # with a dollar sign (not a hyphen), so the echo should work correctly.
8554    # The option is referenced via a variable to avoid confusing sed.
8555    lt_compile=`echo "$ac_compile" | $SED \
8556    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558    -e 's:$: $lt_compiler_flag:'`
8559    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560    (eval "$lt_compile" 2>conftest.err)
8561    ac_status=$?
8562    cat conftest.err >&5
8563    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564    if (exit $ac_status) && test -s "$ac_outfile"; then
8565      # The compiler can only warn and ignore the option if not recognized
8566      # So say no if there are warnings other than the usual output.
8567      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570        lt_cv_prog_compiler_rtti_exceptions=yes
8571      fi
8572    fi
8573    $RM conftest*
8574
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8577 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8578
8579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8580     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8581 else
8582     :
8583 fi
8584
8585 fi
8586
8587
8588
8589
8590
8591
8592   lt_prog_compiler_wl=
8593 lt_prog_compiler_pic=
8594 lt_prog_compiler_static=
8595
8596
8597   if test "$GCC" = yes; then
8598     lt_prog_compiler_wl='-Wl,'
8599     lt_prog_compiler_static='-static'
8600
8601     case $host_os in
8602       aix*)
8603       # All AIX code is PIC.
8604       if test "$host_cpu" = ia64; then
8605         # AIX 5 now supports IA64 processor
8606         lt_prog_compiler_static='-Bstatic'
8607       fi
8608       ;;
8609
8610     amigaos*)
8611       case $host_cpu in
8612       powerpc)
8613             # see comment about AmigaOS4 .so support
8614             lt_prog_compiler_pic='-fPIC'
8615         ;;
8616       m68k)
8617             # FIXME: we need at least 68020 code to build shared libraries, but
8618             # adding the `-m68020' flag to GCC prevents building anything better,
8619             # like `-m68040'.
8620             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8621         ;;
8622       esac
8623       ;;
8624
8625     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8626       # PIC is the default for these OSes.
8627       ;;
8628
8629     mingw* | cygwin* | pw32* | os2* | cegcc*)
8630       # This hack is so that the source file can tell whether it is being
8631       # built for inclusion in a dll (and should export symbols for example).
8632       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8633       # (--disable-auto-import) libraries
8634       lt_prog_compiler_pic='-DDLL_EXPORT'
8635       ;;
8636
8637     darwin* | rhapsody*)
8638       # PIC is the default on this platform
8639       # Common symbols not allowed in MH_DYLIB files
8640       lt_prog_compiler_pic='-fno-common'
8641       ;;
8642
8643     haiku*)
8644       # PIC is the default for Haiku.
8645       # The "-static" flag exists, but is broken.
8646       lt_prog_compiler_static=
8647       ;;
8648
8649     hpux*)
8650       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8651       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8652       # sets the default TLS model and affects inlining.
8653       case $host_cpu in
8654       hppa*64*)
8655         # +Z the default
8656         ;;
8657       *)
8658         lt_prog_compiler_pic='-fPIC'
8659         ;;
8660       esac
8661       ;;
8662
8663     interix[3-9]*)
8664       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8665       # Instead, we relocate shared libraries at runtime.
8666       ;;
8667
8668     msdosdjgpp*)
8669       # Just because we use GCC doesn't mean we suddenly get shared libraries
8670       # on systems that don't support them.
8671       lt_prog_compiler_can_build_shared=no
8672       enable_shared=no
8673       ;;
8674
8675     *nto* | *qnx*)
8676       # QNX uses GNU C++, but need to define -shared option too, otherwise
8677       # it will coredump.
8678       lt_prog_compiler_pic='-fPIC -shared'
8679       ;;
8680
8681     sysv4*MP*)
8682       if test -d /usr/nec; then
8683         lt_prog_compiler_pic=-Kconform_pic
8684       fi
8685       ;;
8686
8687     *)
8688       lt_prog_compiler_pic='-fPIC'
8689       ;;
8690     esac
8691
8692     case $cc_basename in
8693     nvcc*) # Cuda Compiler Driver 2.2
8694       lt_prog_compiler_wl='-Xlinker '
8695       if test -n "$lt_prog_compiler_pic"; then
8696         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8697       fi
8698       ;;
8699     esac
8700   else
8701     # PORTME Check for flag to pass linker flags through the system compiler.
8702     case $host_os in
8703     aix*)
8704       lt_prog_compiler_wl='-Wl,'
8705       if test "$host_cpu" = ia64; then
8706         # AIX 5 now supports IA64 processor
8707         lt_prog_compiler_static='-Bstatic'
8708       else
8709         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8710       fi
8711       ;;
8712
8713     mingw* | cygwin* | pw32* | os2* | cegcc*)
8714       # This hack is so that the source file can tell whether it is being
8715       # built for inclusion in a dll (and should export symbols for example).
8716       lt_prog_compiler_pic='-DDLL_EXPORT'
8717       ;;
8718
8719     hpux9* | hpux10* | hpux11*)
8720       lt_prog_compiler_wl='-Wl,'
8721       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8722       # not for PA HP-UX.
8723       case $host_cpu in
8724       hppa*64*|ia64*)
8725         # +Z the default
8726         ;;
8727       *)
8728         lt_prog_compiler_pic='+Z'
8729         ;;
8730       esac
8731       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8732       lt_prog_compiler_static='${wl}-a ${wl}archive'
8733       ;;
8734
8735     irix5* | irix6* | nonstopux*)
8736       lt_prog_compiler_wl='-Wl,'
8737       # PIC (with -KPIC) is the default.
8738       lt_prog_compiler_static='-non_shared'
8739       ;;
8740
8741     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8742       case $cc_basename in
8743       # old Intel for x86_64 which still supported -KPIC.
8744       ecc*)
8745         lt_prog_compiler_wl='-Wl,'
8746         lt_prog_compiler_pic='-KPIC'
8747         lt_prog_compiler_static='-static'
8748         ;;
8749       # icc used to be incompatible with GCC.
8750       # ICC 10 doesn't accept -KPIC any more.
8751       icc* | ifort*)
8752         lt_prog_compiler_wl='-Wl,'
8753         lt_prog_compiler_pic='-fPIC'
8754         lt_prog_compiler_static='-static'
8755         ;;
8756       # Lahey Fortran 8.1.
8757       lf95*)
8758         lt_prog_compiler_wl='-Wl,'
8759         lt_prog_compiler_pic='--shared'
8760         lt_prog_compiler_static='--static'
8761         ;;
8762       nagfor*)
8763         # NAG Fortran compiler
8764         lt_prog_compiler_wl='-Wl,-Wl,,'
8765         lt_prog_compiler_pic='-PIC'
8766         lt_prog_compiler_static='-Bstatic'
8767         ;;
8768       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8769         # Portland Group compilers (*not* the Pentium gcc compiler,
8770         # which looks to be a dead project)
8771         lt_prog_compiler_wl='-Wl,'
8772         lt_prog_compiler_pic='-fpic'
8773         lt_prog_compiler_static='-Bstatic'
8774         ;;
8775       ccc*)
8776         lt_prog_compiler_wl='-Wl,'
8777         # All Alpha code is PIC.
8778         lt_prog_compiler_static='-non_shared'
8779         ;;
8780       xl* | bgxl* | bgf* | mpixl*)
8781         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8782         lt_prog_compiler_wl='-Wl,'
8783         lt_prog_compiler_pic='-qpic'
8784         lt_prog_compiler_static='-qstaticlink'
8785         ;;
8786       *)
8787         case `$CC -V 2>&1 | sed 5q` in
8788         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8789           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8790           lt_prog_compiler_pic='-KPIC'
8791           lt_prog_compiler_static='-Bstatic'
8792           lt_prog_compiler_wl=''
8793           ;;
8794         *Sun\ F* | *Sun*Fortran*)
8795           lt_prog_compiler_pic='-KPIC'
8796           lt_prog_compiler_static='-Bstatic'
8797           lt_prog_compiler_wl='-Qoption ld '
8798           ;;
8799         *Sun\ C*)
8800           # Sun C 5.9
8801           lt_prog_compiler_pic='-KPIC'
8802           lt_prog_compiler_static='-Bstatic'
8803           lt_prog_compiler_wl='-Wl,'
8804           ;;
8805         *Intel*\ [CF]*Compiler*)
8806           lt_prog_compiler_wl='-Wl,'
8807           lt_prog_compiler_pic='-fPIC'
8808           lt_prog_compiler_static='-static'
8809           ;;
8810         *Portland\ Group*)
8811           lt_prog_compiler_wl='-Wl,'
8812           lt_prog_compiler_pic='-fpic'
8813           lt_prog_compiler_static='-Bstatic'
8814           ;;
8815         esac
8816         ;;
8817       esac
8818       ;;
8819
8820     newsos6)
8821       lt_prog_compiler_pic='-KPIC'
8822       lt_prog_compiler_static='-Bstatic'
8823       ;;
8824
8825     *nto* | *qnx*)
8826       # QNX uses GNU C++, but need to define -shared option too, otherwise
8827       # it will coredump.
8828       lt_prog_compiler_pic='-fPIC -shared'
8829       ;;
8830
8831     osf3* | osf4* | osf5*)
8832       lt_prog_compiler_wl='-Wl,'
8833       # All OSF/1 code is PIC.
8834       lt_prog_compiler_static='-non_shared'
8835       ;;
8836
8837     rdos*)
8838       lt_prog_compiler_static='-non_shared'
8839       ;;
8840
8841     solaris*)
8842       lt_prog_compiler_pic='-KPIC'
8843       lt_prog_compiler_static='-Bstatic'
8844       case $cc_basename in
8845       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8846         lt_prog_compiler_wl='-Qoption ld ';;
8847       *)
8848         lt_prog_compiler_wl='-Wl,';;
8849       esac
8850       ;;
8851
8852     sunos4*)
8853       lt_prog_compiler_wl='-Qoption ld '
8854       lt_prog_compiler_pic='-PIC'
8855       lt_prog_compiler_static='-Bstatic'
8856       ;;
8857
8858     sysv4 | sysv4.2uw2* | sysv4.3*)
8859       lt_prog_compiler_wl='-Wl,'
8860       lt_prog_compiler_pic='-KPIC'
8861       lt_prog_compiler_static='-Bstatic'
8862       ;;
8863
8864     sysv4*MP*)
8865       if test -d /usr/nec ;then
8866         lt_prog_compiler_pic='-Kconform_pic'
8867         lt_prog_compiler_static='-Bstatic'
8868       fi
8869       ;;
8870
8871     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8872       lt_prog_compiler_wl='-Wl,'
8873       lt_prog_compiler_pic='-KPIC'
8874       lt_prog_compiler_static='-Bstatic'
8875       ;;
8876
8877     unicos*)
8878       lt_prog_compiler_wl='-Wl,'
8879       lt_prog_compiler_can_build_shared=no
8880       ;;
8881
8882     uts4*)
8883       lt_prog_compiler_pic='-pic'
8884       lt_prog_compiler_static='-Bstatic'
8885       ;;
8886
8887     *)
8888       lt_prog_compiler_can_build_shared=no
8889       ;;
8890     esac
8891   fi
8892
8893 case $host_os in
8894   # For platforms which do not support PIC, -DPIC is meaningless:
8895   *djgpp*)
8896     lt_prog_compiler_pic=
8897     ;;
8898   *)
8899     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8900     ;;
8901 esac
8902
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8905 if ${lt_cv_prog_compiler_pic+:} false; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8911 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8912 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8913
8914 #
8915 # Check to make sure the PIC flag actually works.
8916 #
8917 if test -n "$lt_prog_compiler_pic"; then
8918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8920 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   lt_cv_prog_compiler_pic_works=no
8924    ac_outfile=conftest.$ac_objext
8925    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8926    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8927    # Insert the option either (1) after the last *FLAGS variable, or
8928    # (2) before a word containing "conftest.", or (3) at the end.
8929    # Note that $ac_compile itself does not contain backslashes and begins
8930    # with a dollar sign (not a hyphen), so the echo should work correctly.
8931    # The option is referenced via a variable to avoid confusing sed.
8932    lt_compile=`echo "$ac_compile" | $SED \
8933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935    -e 's:$: $lt_compiler_flag:'`
8936    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8937    (eval "$lt_compile" 2>conftest.err)
8938    ac_status=$?
8939    cat conftest.err >&5
8940    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941    if (exit $ac_status) && test -s "$ac_outfile"; then
8942      # The compiler can only warn and ignore the option if not recognized
8943      # So say no if there are warnings other than the usual output.
8944      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8945      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8947        lt_cv_prog_compiler_pic_works=yes
8948      fi
8949    fi
8950    $RM conftest*
8951
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8954 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8955
8956 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8957     case $lt_prog_compiler_pic in
8958      "" | " "*) ;;
8959      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8960      esac
8961 else
8962     lt_prog_compiler_pic=
8963      lt_prog_compiler_can_build_shared=no
8964 fi
8965
8966 fi
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978 #
8979 # Check to make sure the static flag actually works.
8980 #
8981 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8983 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8984 if ${lt_cv_prog_compiler_static_works+:} false; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   lt_cv_prog_compiler_static_works=no
8988    save_LDFLAGS="$LDFLAGS"
8989    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8990    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8991    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8992      # The linker can only warn and ignore the option if not recognized
8993      # So say no if there are warnings
8994      if test -s conftest.err; then
8995        # Append any errors to the config.log.
8996        cat conftest.err 1>&5
8997        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8998        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8999        if diff conftest.exp conftest.er2 >/dev/null; then
9000          lt_cv_prog_compiler_static_works=yes
9001        fi
9002      else
9003        lt_cv_prog_compiler_static_works=yes
9004      fi
9005    fi
9006    $RM -r conftest*
9007    LDFLAGS="$save_LDFLAGS"
9008
9009 fi
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9011 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9012
9013 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9014     :
9015 else
9016     lt_prog_compiler_static=
9017 fi
9018
9019
9020
9021
9022
9023
9024
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9027 if ${lt_cv_prog_compiler_c_o+:} false; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   lt_cv_prog_compiler_c_o=no
9031    $RM -r conftest 2>/dev/null
9032    mkdir conftest
9033    cd conftest
9034    mkdir out
9035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9036
9037    lt_compiler_flag="-o out/conftest2.$ac_objext"
9038    # Insert the option either (1) after the last *FLAGS variable, or
9039    # (2) before a word containing "conftest.", or (3) at the end.
9040    # Note that $ac_compile itself does not contain backslashes and begins
9041    # with a dollar sign (not a hyphen), so the echo should work correctly.
9042    lt_compile=`echo "$ac_compile" | $SED \
9043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9045    -e 's:$: $lt_compiler_flag:'`
9046    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9047    (eval "$lt_compile" 2>out/conftest.err)
9048    ac_status=$?
9049    cat out/conftest.err >&5
9050    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9052    then
9053      # The compiler can only warn and ignore the option if not recognized
9054      # So say no if there are warnings
9055      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9056      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9057      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9058        lt_cv_prog_compiler_c_o=yes
9059      fi
9060    fi
9061    chmod u+w . 2>&5
9062    $RM conftest*
9063    # SGI C++ compiler will create directory out/ii_files/ for
9064    # template instantiation
9065    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9066    $RM out/* && rmdir out
9067    cd ..
9068    $RM -r conftest
9069    $RM conftest*
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9073 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9074
9075
9076
9077
9078
9079
9080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9082 if ${lt_cv_prog_compiler_c_o+:} false; then :
9083   $as_echo_n "(cached) " >&6
9084 else
9085   lt_cv_prog_compiler_c_o=no
9086    $RM -r conftest 2>/dev/null
9087    mkdir conftest
9088    cd conftest
9089    mkdir out
9090    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9091
9092    lt_compiler_flag="-o out/conftest2.$ac_objext"
9093    # Insert the option either (1) after the last *FLAGS variable, or
9094    # (2) before a word containing "conftest.", or (3) at the end.
9095    # Note that $ac_compile itself does not contain backslashes and begins
9096    # with a dollar sign (not a hyphen), so the echo should work correctly.
9097    lt_compile=`echo "$ac_compile" | $SED \
9098    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9099    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9100    -e 's:$: $lt_compiler_flag:'`
9101    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9102    (eval "$lt_compile" 2>out/conftest.err)
9103    ac_status=$?
9104    cat out/conftest.err >&5
9105    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9107    then
9108      # The compiler can only warn and ignore the option if not recognized
9109      # So say no if there are warnings
9110      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9111      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9112      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9113        lt_cv_prog_compiler_c_o=yes
9114      fi
9115    fi
9116    chmod u+w . 2>&5
9117    $RM conftest*
9118    # SGI C++ compiler will create directory out/ii_files/ for
9119    # template instantiation
9120    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9121    $RM out/* && rmdir out
9122    cd ..
9123    $RM -r conftest
9124    $RM conftest*
9125
9126 fi
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9128 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9129
9130
9131
9132
9133 hard_links="nottested"
9134 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9135   # do not overwrite the value of need_locks provided by the user
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9137 $as_echo_n "checking if we can lock with hard links... " >&6; }
9138   hard_links=yes
9139   $RM conftest*
9140   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9141   touch conftest.a
9142   ln conftest.a conftest.b 2>&5 || hard_links=no
9143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9145 $as_echo "$hard_links" >&6; }
9146   if test "$hard_links" = no; then
9147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9149     need_locks=warn
9150   fi
9151 else
9152   need_locks=no
9153 fi
9154
9155
9156
9157
9158
9159
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9162
9163   runpath_var=
9164   allow_undefined_flag=
9165   always_export_symbols=no
9166   archive_cmds=
9167   archive_expsym_cmds=
9168   compiler_needs_object=no
9169   enable_shared_with_static_runtimes=no
9170   export_dynamic_flag_spec=
9171   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9172   hardcode_automatic=no
9173   hardcode_direct=no
9174   hardcode_direct_absolute=no
9175   hardcode_libdir_flag_spec=
9176   hardcode_libdir_separator=
9177   hardcode_minus_L=no
9178   hardcode_shlibpath_var=unsupported
9179   inherit_rpath=no
9180   link_all_deplibs=unknown
9181   module_cmds=
9182   module_expsym_cmds=
9183   old_archive_from_new_cmds=
9184   old_archive_from_expsyms_cmds=
9185   thread_safe_flag_spec=
9186   whole_archive_flag_spec=
9187   # include_expsyms should be a list of space-separated symbols to be *always*
9188   # included in the symbol list
9189   include_expsyms=
9190   # exclude_expsyms can be an extended regexp of symbols to exclude
9191   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9192   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9193   # as well as any symbol that contains `d'.
9194   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9195   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9196   # platforms (ab)use it in PIC code, but their linkers get confused if
9197   # the symbol is explicitly referenced.  Since portable code cannot
9198   # rely on this symbol name, it's probably fine to never include it in
9199   # preloaded symbol tables.
9200   # Exclude shared library initialization/finalization symbols.
9201   extract_expsyms_cmds=
9202
9203   case $host_os in
9204   cygwin* | mingw* | pw32* | cegcc*)
9205     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9206     # When not using gcc, we currently assume that we are using
9207     # Microsoft Visual C++.
9208     if test "$GCC" != yes; then
9209       with_gnu_ld=no
9210     fi
9211     ;;
9212   interix*)
9213     # we just hope/assume this is gcc and not c89 (= MSVC++)
9214     with_gnu_ld=yes
9215     ;;
9216   openbsd*)
9217     with_gnu_ld=no
9218     ;;
9219   esac
9220
9221   ld_shlibs=yes
9222
9223   # On some targets, GNU ld is compatible enough with the native linker
9224   # that we're better off using the native interface for both.
9225   lt_use_gnu_ld_interface=no
9226   if test "$with_gnu_ld" = yes; then
9227     case $host_os in
9228       aix*)
9229         # The AIX port of GNU ld has always aspired to compatibility
9230         # with the native linker.  However, as the warning in the GNU ld
9231         # block says, versions before 2.19.5* couldn't really create working
9232         # shared libraries, regardless of the interface used.
9233         case `$LD -v 2>&1` in
9234           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9235           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9236           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9237           *)
9238             lt_use_gnu_ld_interface=yes
9239             ;;
9240         esac
9241         ;;
9242       *)
9243         lt_use_gnu_ld_interface=yes
9244         ;;
9245     esac
9246   fi
9247
9248   if test "$lt_use_gnu_ld_interface" = yes; then
9249     # If archive_cmds runs LD, not CC, wlarc should be empty
9250     wlarc='${wl}'
9251
9252     # Set some defaults for GNU ld with shared library support. These
9253     # are reset later if shared libraries are not supported. Putting them
9254     # here allows them to be overridden if necessary.
9255     runpath_var=LD_RUN_PATH
9256     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257     export_dynamic_flag_spec='${wl}--export-dynamic'
9258     # ancient GNU ld didn't support --whole-archive et. al.
9259     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9260       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9261     else
9262       whole_archive_flag_spec=
9263     fi
9264     supports_anon_versioning=no
9265     case `$LD -v 2>&1` in
9266       *GNU\ gold*) supports_anon_versioning=yes ;;
9267       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9268       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9269       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9270       *\ 2.11.*) ;; # other 2.11 versions
9271       *) supports_anon_versioning=yes ;;
9272     esac
9273
9274     # See if GNU ld supports shared libraries.
9275     case $host_os in
9276     aix[3-9]*)
9277       # On AIX/PPC, the GNU linker is very broken
9278       if test "$host_cpu" != ia64; then
9279         ld_shlibs=no
9280         cat <<_LT_EOF 1>&2
9281
9282 *** Warning: the GNU linker, at least up to release 2.19, is reported
9283 *** to be unable to reliably create shared libraries on AIX.
9284 *** Therefore, libtool is disabling shared libraries support.  If you
9285 *** really care for shared libraries, you may want to install binutils
9286 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9287 *** You will then need to restart the configuration process.
9288
9289 _LT_EOF
9290       fi
9291       ;;
9292
9293     amigaos*)
9294       case $host_cpu in
9295       powerpc)
9296             # see comment about AmigaOS4 .so support
9297             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298             archive_expsym_cmds=''
9299         ;;
9300       m68k)
9301             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)'
9302             hardcode_libdir_flag_spec='-L$libdir'
9303             hardcode_minus_L=yes
9304         ;;
9305       esac
9306       ;;
9307
9308     beos*)
9309       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310         allow_undefined_flag=unsupported
9311         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9312         # support --undefined.  This deserves some investigation.  FIXME
9313         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314       else
9315         ld_shlibs=no
9316       fi
9317       ;;
9318
9319     cygwin* | mingw* | pw32* | cegcc*)
9320       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9321       # as there is no search path for DLLs.
9322       hardcode_libdir_flag_spec='-L$libdir'
9323       export_dynamic_flag_spec='${wl}--export-all-symbols'
9324       allow_undefined_flag=unsupported
9325       always_export_symbols=no
9326       enable_shared_with_static_runtimes=yes
9327       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'
9328       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9329
9330       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9331         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9332         # If the export-symbols file already is a .def file (1st line
9333         # is EXPORTS), use it as is; otherwise, prepend...
9334         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9335           cp $export_symbols $output_objdir/$soname.def;
9336         else
9337           echo EXPORTS > $output_objdir/$soname.def;
9338           cat $export_symbols >> $output_objdir/$soname.def;
9339         fi~
9340         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9341       else
9342         ld_shlibs=no
9343       fi
9344       ;;
9345
9346     haiku*)
9347       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348       link_all_deplibs=yes
9349       ;;
9350
9351     interix[3-9]*)
9352       hardcode_direct=no
9353       hardcode_shlibpath_var=no
9354       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9355       export_dynamic_flag_spec='${wl}-E'
9356       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9357       # Instead, shared libraries are loaded at an image base (0x10000000 by
9358       # default) and relocated if they conflict, which is a slow very memory
9359       # consuming and fragmenting process.  To avoid this, we pick a random,
9360       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9361       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9362       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9363       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'
9364       ;;
9365
9366     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9367       tmp_diet=no
9368       if test "$host_os" = linux-dietlibc; then
9369         case $cc_basename in
9370           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9371         esac
9372       fi
9373       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9374          && test "$tmp_diet" = no
9375       then
9376         tmp_addflag=' $pic_flag'
9377         tmp_sharedflag='-shared'
9378         case $cc_basename,$host_cpu in
9379         pgcc*)                          # Portland Group C compiler
9380           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'
9381           tmp_addflag=' $pic_flag'
9382           ;;
9383         pgf77* | pgf90* | pgf95* | pgfortran*)
9384                                         # Portland Group f77 and f90 compilers
9385           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9386           tmp_addflag=' $pic_flag -Mnomain' ;;
9387         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9388           tmp_addflag=' -i_dynamic' ;;
9389         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9390           tmp_addflag=' -i_dynamic -nofor_main' ;;
9391         ifc* | ifort*)                  # Intel Fortran compiler
9392           tmp_addflag=' -nofor_main' ;;
9393         lf95*)                          # Lahey Fortran 8.1
9394           whole_archive_flag_spec=
9395           tmp_sharedflag='--shared' ;;
9396         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9397           tmp_sharedflag='-qmkshrobj'
9398           tmp_addflag= ;;
9399         nvcc*)  # Cuda Compiler Driver 2.2
9400           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'
9401           compiler_needs_object=yes
9402           ;;
9403         esac
9404         case `$CC -V 2>&1 | sed 5q` in
9405         *Sun\ C*)                       # Sun C 5.9
9406           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'
9407           compiler_needs_object=yes
9408           tmp_sharedflag='-G' ;;
9409         *Sun\ F*)                       # Sun Fortran 8.3
9410           tmp_sharedflag='-G' ;;
9411         esac
9412         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413
9414         if test "x$supports_anon_versioning" = xyes; then
9415           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9416             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9417             echo "local: *; };" >> $output_objdir/$libname.ver~
9418             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9419         fi
9420
9421         case $cc_basename in
9422         xlf* | bgf* | bgxlf* | mpixlf*)
9423           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9424           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9425           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9427           if test "x$supports_anon_versioning" = xyes; then
9428             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9429               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9430               echo "local: *; };" >> $output_objdir/$libname.ver~
9431               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9432           fi
9433           ;;
9434         esac
9435       else
9436         ld_shlibs=no
9437       fi
9438       ;;
9439
9440     netbsd*)
9441       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9442         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9443         wlarc=
9444       else
9445         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9447       fi
9448       ;;
9449
9450     solaris*)
9451       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9452         ld_shlibs=no
9453         cat <<_LT_EOF 1>&2
9454
9455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9456 *** create shared libraries on Solaris systems.  Therefore, libtool
9457 *** is disabling shared libraries support.  We urge you to upgrade GNU
9458 *** binutils to release 2.9.1 or newer.  Another option is to modify
9459 *** your PATH or compiler configuration so that the native linker is
9460 *** used, and then restart.
9461
9462 _LT_EOF
9463       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466       else
9467         ld_shlibs=no
9468       fi
9469       ;;
9470
9471     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9472       case `$LD -v 2>&1` in
9473         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9474         ld_shlibs=no
9475         cat <<_LT_EOF 1>&2
9476
9477 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9478 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9479 *** is disabling shared libraries support.  We urge you to upgrade GNU
9480 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9481 *** your PATH or compiler configuration so that the native linker is
9482 *** used, and then restart.
9483
9484 _LT_EOF
9485         ;;
9486         *)
9487           # For security reasons, it is highly recommended that you always
9488           # use absolute paths for naming shared libraries, and exclude the
9489           # DT_RUNPATH tag from executables and libraries.  But doing so
9490           # requires that you compile everything twice, which is a pain.
9491           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9495           else
9496             ld_shlibs=no
9497           fi
9498         ;;
9499       esac
9500       ;;
9501
9502     sunos4*)
9503       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9504       wlarc=
9505       hardcode_direct=yes
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     *)
9510       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9511         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9513       else
9514         ld_shlibs=no
9515       fi
9516       ;;
9517     esac
9518
9519     if test "$ld_shlibs" = no; then
9520       runpath_var=
9521       hardcode_libdir_flag_spec=
9522       export_dynamic_flag_spec=
9523       whole_archive_flag_spec=
9524     fi
9525   else
9526     # PORTME fill in a description of your system's linker (not GNU ld)
9527     case $host_os in
9528     aix3*)
9529       allow_undefined_flag=unsupported
9530       always_export_symbols=yes
9531       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'
9532       # Note: this linker hardcodes the directories in LIBPATH if there
9533       # are no directories specified by -L.
9534       hardcode_minus_L=yes
9535       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9536         # Neither direct hardcoding nor static linking is supported with a
9537         # broken collect2.
9538         hardcode_direct=unsupported
9539       fi
9540       ;;
9541
9542     aix[4-9]*)
9543       if test "$host_cpu" = ia64; then
9544         # On IA64, the linker does run time linking by default, so we don't
9545         # have to do anything special.
9546         aix_use_runtimelinking=no
9547         exp_sym_flag='-Bexport'
9548         no_entry_flag=""
9549       else
9550         # If we're using GNU nm, then we don't want the "-C" option.
9551         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9552         # Also, AIX nm treats weak defined symbols like other global
9553         # defined symbols, whereas GNU nm marks them as "W".
9554         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9555           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'
9556         else
9557           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'
9558         fi
9559         aix_use_runtimelinking=no
9560
9561         # Test if we are trying to use run time linking or normal
9562         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9563         # need to do runtime linking.
9564         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9565           for ld_flag in $LDFLAGS; do
9566           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9567             aix_use_runtimelinking=yes
9568             break
9569           fi
9570           done
9571           ;;
9572         esac
9573
9574         exp_sym_flag='-bexport'
9575         no_entry_flag='-bnoentry'
9576       fi
9577
9578       # When large executables or shared objects are built, AIX ld can
9579       # have problems creating the table of contents.  If linking a library
9580       # or program results in "error TOC overflow" add -mminimal-toc to
9581       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9582       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9583
9584       archive_cmds=''
9585       hardcode_direct=yes
9586       hardcode_direct_absolute=yes
9587       hardcode_libdir_separator=':'
9588       link_all_deplibs=yes
9589       file_list_spec='${wl}-f,'
9590
9591       if test "$GCC" = yes; then
9592         case $host_os in aix4.[012]|aix4.[012].*)
9593         # We only want to do this on AIX 4.2 and lower, the check
9594         # below for broken collect2 doesn't work under 4.3+
9595           collect2name=`${CC} -print-prog-name=collect2`
9596           if test -f "$collect2name" &&
9597            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9598           then
9599           # We have reworked collect2
9600           :
9601           else
9602           # We have old collect2
9603           hardcode_direct=unsupported
9604           # It fails to find uninstalled libraries when the uninstalled
9605           # path is not listed in the libpath.  Setting hardcode_minus_L
9606           # to unsupported forces relinking
9607           hardcode_minus_L=yes
9608           hardcode_libdir_flag_spec='-L$libdir'
9609           hardcode_libdir_separator=
9610           fi
9611           ;;
9612         esac
9613         shared_flag='-shared'
9614         if test "$aix_use_runtimelinking" = yes; then
9615           shared_flag="$shared_flag "'${wl}-G'
9616         fi
9617       else
9618         # not using gcc
9619         if test "$host_cpu" = ia64; then
9620         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9621         # chokes on -Wl,-G. The following line is correct:
9622           shared_flag='-G'
9623         else
9624           if test "$aix_use_runtimelinking" = yes; then
9625             shared_flag='${wl}-G'
9626           else
9627             shared_flag='${wl}-bM:SRE'
9628           fi
9629         fi
9630       fi
9631
9632       export_dynamic_flag_spec='${wl}-bexpall'
9633       # It seems that -bexpall does not export symbols beginning with
9634       # underscore (_), so it is better to generate a list of symbols to export.
9635       always_export_symbols=yes
9636       if test "$aix_use_runtimelinking" = yes; then
9637         # Warning - without using the other runtime loading flags (-brtl),
9638         # -berok will link without error, but may produce a broken library.
9639         allow_undefined_flag='-berok'
9640         # Determine the default libpath from the value encoded in an
9641         # empty executable.
9642         if test "${lt_cv_aix_libpath+set}" = set; then
9643   aix_libpath=$lt_cv_aix_libpath
9644 else
9645   if ${lt_cv_aix_libpath_+:} false; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h.  */
9650
9651 int
9652 main ()
9653 {
9654
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660
9661   lt_aix_libpath_sed='
9662       /Import File Strings/,/^$/ {
9663           /^0/ {
9664               s/^0  *\([^ ]*\) *$/\1/
9665               p
9666           }
9667       }'
9668   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669   # Check for a 64-bit object if we didn't find anything.
9670   if test -z "$lt_cv_aix_libpath_"; then
9671     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672   fi
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext \
9675     conftest$ac_exeext conftest.$ac_ext
9676   if test -z "$lt_cv_aix_libpath_"; then
9677     lt_cv_aix_libpath_="/usr/lib:/lib"
9678   fi
9679
9680 fi
9681
9682   aix_libpath=$lt_cv_aix_libpath_
9683 fi
9684
9685         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9686         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"
9687       else
9688         if test "$host_cpu" = ia64; then
9689           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9690           allow_undefined_flag="-z nodefs"
9691           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"
9692         else
9693          # Determine the default libpath from the value encoded in an
9694          # empty executable.
9695          if test "${lt_cv_aix_libpath+set}" = set; then
9696   aix_libpath=$lt_cv_aix_libpath
9697 else
9698   if ${lt_cv_aix_libpath_+:} false; then :
9699   $as_echo_n "(cached) " >&6
9700 else
9701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h.  */
9703
9704 int
9705 main ()
9706 {
9707
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 if ac_fn_c_try_link "$LINENO"; then :
9713
9714   lt_aix_libpath_sed='
9715       /Import File Strings/,/^$/ {
9716           /^0/ {
9717               s/^0  *\([^ ]*\) *$/\1/
9718               p
9719           }
9720       }'
9721   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9722   # Check for a 64-bit object if we didn't find anything.
9723   if test -z "$lt_cv_aix_libpath_"; then
9724     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725   fi
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext \
9728     conftest$ac_exeext conftest.$ac_ext
9729   if test -z "$lt_cv_aix_libpath_"; then
9730     lt_cv_aix_libpath_="/usr/lib:/lib"
9731   fi
9732
9733 fi
9734
9735   aix_libpath=$lt_cv_aix_libpath_
9736 fi
9737
9738          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9739           # Warning - without using the other run time loading flags,
9740           # -berok will link without error, but may produce a broken library.
9741           no_undefined_flag=' ${wl}-bernotok'
9742           allow_undefined_flag=' ${wl}-berok'
9743           if test "$with_gnu_ld" = yes; then
9744             # We only use this code for GNU lds that support --whole-archive.
9745             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9746           else
9747             # Exported symbols can be pulled into shared objects from archives
9748             whole_archive_flag_spec='$convenience'
9749           fi
9750           archive_cmds_need_lc=yes
9751           # This is similar to how AIX traditionally builds its shared libraries.
9752           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'
9753         fi
9754       fi
9755       ;;
9756
9757     amigaos*)
9758       case $host_cpu in
9759       powerpc)
9760             # see comment about AmigaOS4 .so support
9761             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762             archive_expsym_cmds=''
9763         ;;
9764       m68k)
9765             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)'
9766             hardcode_libdir_flag_spec='-L$libdir'
9767             hardcode_minus_L=yes
9768         ;;
9769       esac
9770       ;;
9771
9772     bsdi[45]*)
9773       export_dynamic_flag_spec=-rdynamic
9774       ;;
9775
9776     cygwin* | mingw* | pw32* | cegcc*)
9777       # When not using gcc, we currently assume that we are using
9778       # Microsoft Visual C++.
9779       # hardcode_libdir_flag_spec is actually meaningless, as there is
9780       # no search path for DLLs.
9781       case $cc_basename in
9782       cl*)
9783         # Native MSVC
9784         hardcode_libdir_flag_spec=' '
9785         allow_undefined_flag=unsupported
9786         always_export_symbols=yes
9787         file_list_spec='@'
9788         # Tell ltmain to make .lib files, not .a files.
9789         libext=lib
9790         # Tell ltmain to make .dll files, not .so files.
9791         shrext_cmds=".dll"
9792         # FIXME: Setting linknames here is a bad hack.
9793         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9794         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9795             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9796           else
9797             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9798           fi~
9799           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9800           linknames='
9801         # The linker will not automatically build a static lib if we build a DLL.
9802         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9803         enable_shared_with_static_runtimes=yes
9804         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9805         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9806         # Don't use ranlib
9807         old_postinstall_cmds='chmod 644 $oldlib'
9808         postlink_cmds='lt_outputfile="@OUTPUT@"~
9809           lt_tool_outputfile="@TOOL_OUTPUT@"~
9810           case $lt_outputfile in
9811             *.exe|*.EXE) ;;
9812             *)
9813               lt_outputfile="$lt_outputfile.exe"
9814               lt_tool_outputfile="$lt_tool_outputfile.exe"
9815               ;;
9816           esac~
9817           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9818             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9819             $RM "$lt_outputfile.manifest";
9820           fi'
9821         ;;
9822       *)
9823         # Assume MSVC wrapper
9824         hardcode_libdir_flag_spec=' '
9825         allow_undefined_flag=unsupported
9826         # Tell ltmain to make .lib files, not .a files.
9827         libext=lib
9828         # Tell ltmain to make .dll files, not .so files.
9829         shrext_cmds=".dll"
9830         # FIXME: Setting linknames here is a bad hack.
9831         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9832         # The linker will automatically build a .lib file if we build a DLL.
9833         old_archive_from_new_cmds='true'
9834         # FIXME: Should let the user specify the lib program.
9835         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9836         enable_shared_with_static_runtimes=yes
9837         ;;
9838       esac
9839       ;;
9840
9841     darwin* | rhapsody*)
9842
9843
9844   archive_cmds_need_lc=no
9845   hardcode_direct=no
9846   hardcode_automatic=yes
9847   hardcode_shlibpath_var=unsupported
9848   if test "$lt_cv_ld_force_load" = "yes"; then
9849     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\"`'
9850
9851   else
9852     whole_archive_flag_spec=''
9853   fi
9854   link_all_deplibs=yes
9855   allow_undefined_flag="$_lt_dar_allow_undefined"
9856   case $cc_basename in
9857      ifort*) _lt_dar_can_shared=yes ;;
9858      *) _lt_dar_can_shared=$GCC ;;
9859   esac
9860   if test "$_lt_dar_can_shared" = "yes"; then
9861     output_verbose_link_cmd=func_echo_all
9862     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9863     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9864     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}"
9865     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}"
9866
9867   else
9868   ld_shlibs=no
9869   fi
9870
9871       ;;
9872
9873     dgux*)
9874       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875       hardcode_libdir_flag_spec='-L$libdir'
9876       hardcode_shlibpath_var=no
9877       ;;
9878
9879     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9880     # support.  Future versions do this automatically, but an explicit c++rt0.o
9881     # does not break anything, and helps significantly (at the cost of a little
9882     # extra space).
9883     freebsd2.2*)
9884       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9885       hardcode_libdir_flag_spec='-R$libdir'
9886       hardcode_direct=yes
9887       hardcode_shlibpath_var=no
9888       ;;
9889
9890     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9891     freebsd2.*)
9892       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9893       hardcode_direct=yes
9894       hardcode_minus_L=yes
9895       hardcode_shlibpath_var=no
9896       ;;
9897
9898     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9899     freebsd* | dragonfly*)
9900       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9901       hardcode_libdir_flag_spec='-R$libdir'
9902       hardcode_direct=yes
9903       hardcode_shlibpath_var=no
9904       ;;
9905
9906     hpux9*)
9907       if test "$GCC" = yes; then
9908         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'
9909       else
9910         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'
9911       fi
9912       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913       hardcode_libdir_separator=:
9914       hardcode_direct=yes
9915
9916       # hardcode_minus_L: Not really in the search PATH,
9917       # but as the default location of the library.
9918       hardcode_minus_L=yes
9919       export_dynamic_flag_spec='${wl}-E'
9920       ;;
9921
9922     hpux10*)
9923       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9924         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9925       else
9926         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9927       fi
9928       if test "$with_gnu_ld" = no; then
9929         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9930         hardcode_libdir_separator=:
9931         hardcode_direct=yes
9932         hardcode_direct_absolute=yes
9933         export_dynamic_flag_spec='${wl}-E'
9934         # hardcode_minus_L: Not really in the search PATH,
9935         # but as the default location of the library.
9936         hardcode_minus_L=yes
9937       fi
9938       ;;
9939
9940     hpux11*)
9941       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9942         case $host_cpu in
9943         hppa*64*)
9944           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9945           ;;
9946         ia64*)
9947           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948           ;;
9949         *)
9950           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9951           ;;
9952         esac
9953       else
9954         case $host_cpu in
9955         hppa*64*)
9956           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9957           ;;
9958         ia64*)
9959           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9960           ;;
9961         *)
9962
9963           # Older versions of the 11.00 compiler do not understand -b yet
9964           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9965           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9966 $as_echo_n "checking if $CC understands -b... " >&6; }
9967 if ${lt_cv_prog_compiler__b+:} false; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   lt_cv_prog_compiler__b=no
9971    save_LDFLAGS="$LDFLAGS"
9972    LDFLAGS="$LDFLAGS -b"
9973    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9974    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9975      # The linker can only warn and ignore the option if not recognized
9976      # So say no if there are warnings
9977      if test -s conftest.err; then
9978        # Append any errors to the config.log.
9979        cat conftest.err 1>&5
9980        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9981        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9982        if diff conftest.exp conftest.er2 >/dev/null; then
9983          lt_cv_prog_compiler__b=yes
9984        fi
9985      else
9986        lt_cv_prog_compiler__b=yes
9987      fi
9988    fi
9989    $RM -r conftest*
9990    LDFLAGS="$save_LDFLAGS"
9991
9992 fi
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9994 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9995
9996 if test x"$lt_cv_prog_compiler__b" = xyes; then
9997     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9998 else
9999     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10000 fi
10001
10002           ;;
10003         esac
10004       fi
10005       if test "$with_gnu_ld" = no; then
10006         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10007         hardcode_libdir_separator=:
10008
10009         case $host_cpu in
10010         hppa*64*|ia64*)
10011           hardcode_direct=no
10012           hardcode_shlibpath_var=no
10013           ;;
10014         *)
10015           hardcode_direct=yes
10016           hardcode_direct_absolute=yes
10017           export_dynamic_flag_spec='${wl}-E'
10018
10019           # hardcode_minus_L: Not really in the search PATH,
10020           # but as the default location of the library.
10021           hardcode_minus_L=yes
10022           ;;
10023         esac
10024       fi
10025       ;;
10026
10027     irix5* | irix6* | nonstopux*)
10028       if test "$GCC" = yes; then
10029         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'
10030         # Try to use the -exported_symbol ld option, if it does not
10031         # work, assume that -exports_file does not work either and
10032         # implicitly export all symbols.
10033         # This should be the same for all languages, so no per-tag cache variable.
10034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10035 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10036 if ${lt_cv_irix_exported_symbol+:} false; then :
10037   $as_echo_n "(cached) " >&6
10038 else
10039   save_LDFLAGS="$LDFLAGS"
10040            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10041            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h.  */
10043 int foo (void) { return 0; }
10044 _ACEOF
10045 if ac_fn_c_try_link "$LINENO"; then :
10046   lt_cv_irix_exported_symbol=yes
10047 else
10048   lt_cv_irix_exported_symbol=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext \
10051     conftest$ac_exeext conftest.$ac_ext
10052            LDFLAGS="$save_LDFLAGS"
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10055 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10056         if test "$lt_cv_irix_exported_symbol" = yes; then
10057           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'
10058         fi
10059       else
10060         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'
10061         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'
10062       fi
10063       archive_cmds_need_lc='no'
10064       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065       hardcode_libdir_separator=:
10066       inherit_rpath=yes
10067       link_all_deplibs=yes
10068       ;;
10069
10070     netbsd*)
10071       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10072         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10073       else
10074         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10075       fi
10076       hardcode_libdir_flag_spec='-R$libdir'
10077       hardcode_direct=yes
10078       hardcode_shlibpath_var=no
10079       ;;
10080
10081     newsos6)
10082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083       hardcode_direct=yes
10084       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085       hardcode_libdir_separator=:
10086       hardcode_shlibpath_var=no
10087       ;;
10088
10089     *nto* | *qnx*)
10090       ;;
10091
10092     openbsd*)
10093       if test -f /usr/libexec/ld.so; then
10094         hardcode_direct=yes
10095         hardcode_shlibpath_var=no
10096         hardcode_direct_absolute=yes
10097         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10098           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10099           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10100           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10101           export_dynamic_flag_spec='${wl}-E'
10102         else
10103           case $host_os in
10104            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10105              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10106              hardcode_libdir_flag_spec='-R$libdir'
10107              ;;
10108            *)
10109              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10110              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10111              ;;
10112           esac
10113         fi
10114       else
10115         ld_shlibs=no
10116       fi
10117       ;;
10118
10119     os2*)
10120       hardcode_libdir_flag_spec='-L$libdir'
10121       hardcode_minus_L=yes
10122       allow_undefined_flag=unsupported
10123       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'
10124       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10125       ;;
10126
10127     osf3*)
10128       if test "$GCC" = yes; then
10129         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10130         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'
10131       else
10132         allow_undefined_flag=' -expect_unresolved \*'
10133         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'
10134       fi
10135       archive_cmds_need_lc='no'
10136       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137       hardcode_libdir_separator=:
10138       ;;
10139
10140     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10141       if test "$GCC" = yes; then
10142         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10143         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'
10144         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10145       else
10146         allow_undefined_flag=' -expect_unresolved \*'
10147         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'
10148         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~
10149         $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'
10150
10151         # Both c and cxx compiler support -rpath directly
10152         hardcode_libdir_flag_spec='-rpath $libdir'
10153       fi
10154       archive_cmds_need_lc='no'
10155       hardcode_libdir_separator=:
10156       ;;
10157
10158     solaris*)
10159       no_undefined_flag=' -z defs'
10160       if test "$GCC" = yes; then
10161         wlarc='${wl}'
10162         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10163         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10164           $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'
10165       else
10166         case `$CC -V 2>&1` in
10167         *"Compilers 5.0"*)
10168           wlarc=''
10169           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10171           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10172           ;;
10173         *)
10174           wlarc='${wl}'
10175           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10176           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10177           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10178           ;;
10179         esac
10180       fi
10181       hardcode_libdir_flag_spec='-R$libdir'
10182       hardcode_shlibpath_var=no
10183       case $host_os in
10184       solaris2.[0-5] | solaris2.[0-5].*) ;;
10185       *)
10186         # The compiler driver will combine and reorder linker options,
10187         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10188         # but is careful enough not to reorder.
10189         # Supported since Solaris 2.6 (maybe 2.5.1?)
10190         if test "$GCC" = yes; then
10191           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10192         else
10193           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10194         fi
10195         ;;
10196       esac
10197       link_all_deplibs=yes
10198       ;;
10199
10200     sunos4*)
10201       if test "x$host_vendor" = xsequent; then
10202         # Use $CC to link under sequent, because it throws in some extra .o
10203         # files that make .init and .fini sections work.
10204         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10205       else
10206         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10207       fi
10208       hardcode_libdir_flag_spec='-L$libdir'
10209       hardcode_direct=yes
10210       hardcode_minus_L=yes
10211       hardcode_shlibpath_var=no
10212       ;;
10213
10214     sysv4)
10215       case $host_vendor in
10216         sni)
10217           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218           hardcode_direct=yes # is this really true???
10219         ;;
10220         siemens)
10221           ## LD is ld it makes a PLAMLIB
10222           ## CC just makes a GrossModule.
10223           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10224           reload_cmds='$CC -r -o $output$reload_objs'
10225           hardcode_direct=no
10226         ;;
10227         motorola)
10228           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10230         ;;
10231       esac
10232       runpath_var='LD_RUN_PATH'
10233       hardcode_shlibpath_var=no
10234       ;;
10235
10236     sysv4.3*)
10237       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238       hardcode_shlibpath_var=no
10239       export_dynamic_flag_spec='-Bexport'
10240       ;;
10241
10242     sysv4*MP*)
10243       if test -d /usr/nec; then
10244         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245         hardcode_shlibpath_var=no
10246         runpath_var=LD_RUN_PATH
10247         hardcode_runpath_var=yes
10248         ld_shlibs=yes
10249       fi
10250       ;;
10251
10252     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10253       no_undefined_flag='${wl}-z,text'
10254       archive_cmds_need_lc=no
10255       hardcode_shlibpath_var=no
10256       runpath_var='LD_RUN_PATH'
10257
10258       if test "$GCC" = yes; then
10259         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261       else
10262         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264       fi
10265       ;;
10266
10267     sysv5* | sco3.2v5* | sco5v6*)
10268       # Note: We can NOT use -z defs as we might desire, because we do not
10269       # link with -lc, and that would cause any symbols used from libc to
10270       # always be unresolved, which means just about no library would
10271       # ever link correctly.  If we're not using GNU ld we use -z text
10272       # though, which does catch some bad symbols but isn't as heavy-handed
10273       # as -z defs.
10274       no_undefined_flag='${wl}-z,text'
10275       allow_undefined_flag='${wl}-z,nodefs'
10276       archive_cmds_need_lc=no
10277       hardcode_shlibpath_var=no
10278       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10279       hardcode_libdir_separator=':'
10280       link_all_deplibs=yes
10281       export_dynamic_flag_spec='${wl}-Bexport'
10282       runpath_var='LD_RUN_PATH'
10283
10284       if test "$GCC" = yes; then
10285         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287       else
10288         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290       fi
10291       ;;
10292
10293     uts4*)
10294       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295       hardcode_libdir_flag_spec='-L$libdir'
10296       hardcode_shlibpath_var=no
10297       ;;
10298
10299     *)
10300       ld_shlibs=no
10301       ;;
10302     esac
10303
10304     if test x$host_vendor = xsni; then
10305       case $host in
10306       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10307         export_dynamic_flag_spec='${wl}-Blargedynsym'
10308         ;;
10309       esac
10310     fi
10311   fi
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10314 $as_echo "$ld_shlibs" >&6; }
10315 test "$ld_shlibs" = no && can_build_shared=no
10316
10317 with_gnu_ld=$with_gnu_ld
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333 #
10334 # Do we need to explicitly link libc?
10335 #
10336 case "x$archive_cmds_need_lc" in
10337 x|xyes)
10338   # Assume -lc should be added
10339   archive_cmds_need_lc=yes
10340
10341   if test "$enable_shared" = yes && test "$GCC" = yes; then
10342     case $archive_cmds in
10343     *'~'*)
10344       # FIXME: we may have to deal with multi-command sequences.
10345       ;;
10346     '$CC '*)
10347       # Test whether the compiler implicitly links with -lc since on some
10348       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10349       # to ld, don't add -lc before -lgcc.
10350       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10351 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10352 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   $RM conftest*
10356         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10357
10358         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10359   (eval $ac_compile) 2>&5
10360   ac_status=$?
10361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10362   test $ac_status = 0; } 2>conftest.err; then
10363           soname=conftest
10364           lib=conftest
10365           libobjs=conftest.$ac_objext
10366           deplibs=
10367           wl=$lt_prog_compiler_wl
10368           pic_flag=$lt_prog_compiler_pic
10369           compiler_flags=-v
10370           linker_flags=-v
10371           verstring=
10372           output_objdir=.
10373           libname=conftest
10374           lt_save_allow_undefined_flag=$allow_undefined_flag
10375           allow_undefined_flag=
10376           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10377   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10378   ac_status=$?
10379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10380   test $ac_status = 0; }
10381           then
10382             lt_cv_archive_cmds_need_lc=no
10383           else
10384             lt_cv_archive_cmds_need_lc=yes
10385           fi
10386           allow_undefined_flag=$lt_save_allow_undefined_flag
10387         else
10388           cat conftest.err 1>&5
10389         fi
10390         $RM conftest*
10391
10392 fi
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10394 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10395       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10396       ;;
10397     esac
10398   fi
10399   ;;
10400 esac
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
10552
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10554 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10555
10556 if test "$GCC" = yes; then
10557   case $host_os in
10558     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10559     *) lt_awk_arg="/^libraries:/" ;;
10560   esac
10561   case $host_os in
10562     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10563     *) lt_sed_strip_eq="s,=/,/,g" ;;
10564   esac
10565   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10566   case $lt_search_path_spec in
10567   *\;*)
10568     # if the path contains ";" then we assume it to be the separator
10569     # otherwise default to the standard path separator (i.e. ":") - it is
10570     # assumed that no part of a normal pathname contains ";" but that should
10571     # okay in the real world where ";" in dirpaths is itself problematic.
10572     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10573     ;;
10574   *)
10575     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10576     ;;
10577   esac
10578   # Ok, now we have the path, separated by spaces, we can step through it
10579   # and add multilib dir if necessary.
10580   lt_tmp_lt_search_path_spec=
10581   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10582   for lt_sys_path in $lt_search_path_spec; do
10583     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10584       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10585     else
10586       test -d "$lt_sys_path" && \
10587         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10588     fi
10589   done
10590   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10591 BEGIN {RS=" "; FS="/|\n";} {
10592   lt_foo="";
10593   lt_count=0;
10594   for (lt_i = NF; lt_i > 0; lt_i--) {
10595     if ($lt_i != "" && $lt_i != ".") {
10596       if ($lt_i == "..") {
10597         lt_count++;
10598       } else {
10599         if (lt_count == 0) {
10600           lt_foo="/" $lt_i lt_foo;
10601         } else {
10602           lt_count--;
10603         }
10604       }
10605     }
10606   }
10607   if (lt_foo != "") { lt_freq[lt_foo]++; }
10608   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10609 }'`
10610   # AWK program above erroneously prepends '/' to C:/dos/paths
10611   # for these hosts.
10612   case $host_os in
10613     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10614       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10615   esac
10616   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10617 else
10618   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10619 fi
10620 library_names_spec=
10621 libname_spec='lib$name'
10622 soname_spec=
10623 shrext_cmds=".so"
10624 postinstall_cmds=
10625 postuninstall_cmds=
10626 finish_cmds=
10627 finish_eval=
10628 shlibpath_var=
10629 shlibpath_overrides_runpath=unknown
10630 version_type=none
10631 dynamic_linker="$host_os ld.so"
10632 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10633 need_lib_prefix=unknown
10634 hardcode_into_libs=no
10635
10636 # when you set need_version to no, make sure it does not cause -set_version
10637 # flags to be left without arguments
10638 need_version=unknown
10639
10640 case $host_os in
10641 aix3*)
10642   version_type=linux # correct to gnu/linux during the next big refactor
10643   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10644   shlibpath_var=LIBPATH
10645
10646   # AIX 3 has no versioning support, so we append a major version to the name.
10647   soname_spec='${libname}${release}${shared_ext}$major'
10648   ;;
10649
10650 aix[4-9]*)
10651   version_type=linux # correct to gnu/linux during the next big refactor
10652   need_lib_prefix=no
10653   need_version=no
10654   hardcode_into_libs=yes
10655   if test "$host_cpu" = ia64; then
10656     # AIX 5 supports IA64
10657     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10658     shlibpath_var=LD_LIBRARY_PATH
10659   else
10660     # With GCC up to 2.95.x, collect2 would create an import file
10661     # for dependence libraries.  The import file would start with
10662     # the line `#! .'.  This would cause the generated library to
10663     # depend on `.', always an invalid library.  This was fixed in
10664     # development snapshots of GCC prior to 3.0.
10665     case $host_os in
10666       aix4 | aix4.[01] | aix4.[01].*)
10667       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10668            echo ' yes '
10669            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10670         :
10671       else
10672         can_build_shared=no
10673       fi
10674       ;;
10675     esac
10676     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10677     # soname into executable. Probably we can add versioning support to
10678     # collect2, so additional links can be useful in future.
10679     if test "$aix_use_runtimelinking" = yes; then
10680       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10681       # instead of lib<name>.a to let people know that these are not
10682       # typical AIX shared libraries.
10683       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684     else
10685       # We preserve .a as extension for shared libraries through AIX4.2
10686       # and later when we are not doing run time linking.
10687       library_names_spec='${libname}${release}.a $libname.a'
10688       soname_spec='${libname}${release}${shared_ext}$major'
10689     fi
10690     shlibpath_var=LIBPATH
10691   fi
10692   ;;
10693
10694 amigaos*)
10695   case $host_cpu in
10696   powerpc)
10697     # Since July 2007 AmigaOS4 officially supports .so libraries.
10698     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700     ;;
10701   m68k)
10702     library_names_spec='$libname.ixlibrary $libname.a'
10703     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10704     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'
10705     ;;
10706   esac
10707   ;;
10708
10709 beos*)
10710   library_names_spec='${libname}${shared_ext}'
10711   dynamic_linker="$host_os ld.so"
10712   shlibpath_var=LIBRARY_PATH
10713   ;;
10714
10715 bsdi[45]*)
10716   version_type=linux # correct to gnu/linux during the next big refactor
10717   need_version=no
10718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719   soname_spec='${libname}${release}${shared_ext}$major'
10720   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10721   shlibpath_var=LD_LIBRARY_PATH
10722   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10723   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10724   # the default ld.so.conf also contains /usr/contrib/lib and
10725   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10726   # libtool to hard-code these into programs
10727   ;;
10728
10729 cygwin* | mingw* | pw32* | cegcc*)
10730   version_type=windows
10731   shrext_cmds=".dll"
10732   need_version=no
10733   need_lib_prefix=no
10734
10735   case $GCC,$cc_basename in
10736   yes,*)
10737     # gcc
10738     library_names_spec='$libname.dll.a'
10739     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10740     postinstall_cmds='base_file=`basename \${file}`~
10741       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10742       dldir=$destdir/`dirname \$dlpath`~
10743       test -d \$dldir || mkdir -p \$dldir~
10744       $install_prog $dir/$dlname \$dldir/$dlname~
10745       chmod a+x \$dldir/$dlname~
10746       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10747         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10748       fi'
10749     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10750       dlpath=$dir/\$dldll~
10751        $RM \$dlpath'
10752     shlibpath_overrides_runpath=yes
10753
10754     case $host_os in
10755     cygwin*)
10756       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10757       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10758
10759       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10760       ;;
10761     mingw* | cegcc*)
10762       # MinGW DLLs use traditional 'lib' prefix
10763       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10764       ;;
10765     pw32*)
10766       # pw32 DLLs use 'pw' prefix rather than 'lib'
10767       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768       ;;
10769     esac
10770     dynamic_linker='Win32 ld.exe'
10771     ;;
10772
10773   *,cl*)
10774     # Native MSVC
10775     libname_spec='$name'
10776     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777     library_names_spec='${libname}.dll.lib'
10778
10779     case $build_os in
10780     mingw*)
10781       sys_lib_search_path_spec=
10782       lt_save_ifs=$IFS
10783       IFS=';'
10784       for lt_path in $LIB
10785       do
10786         IFS=$lt_save_ifs
10787         # Let DOS variable expansion print the short 8.3 style file name.
10788         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10789         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10790       done
10791       IFS=$lt_save_ifs
10792       # Convert to MSYS style.
10793       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10794       ;;
10795     cygwin*)
10796       # Convert to unix form, then to dos form, then back to unix form
10797       # but this time dos style (no spaces!) so that the unix form looks
10798       # like /cygdrive/c/PROGRA~1:/cygdr...
10799       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10800       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10801       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10802       ;;
10803     *)
10804       sys_lib_search_path_spec="$LIB"
10805       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10806         # It is most probably a Windows format PATH.
10807         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10808       else
10809         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10810       fi
10811       # FIXME: find the short name or the path components, as spaces are
10812       # common. (e.g. "Program Files" -> "PROGRA~1")
10813       ;;
10814     esac
10815
10816     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10817     postinstall_cmds='base_file=`basename \${file}`~
10818       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10819       dldir=$destdir/`dirname \$dlpath`~
10820       test -d \$dldir || mkdir -p \$dldir~
10821       $install_prog $dir/$dlname \$dldir/$dlname'
10822     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10823       dlpath=$dir/\$dldll~
10824        $RM \$dlpath'
10825     shlibpath_overrides_runpath=yes
10826     dynamic_linker='Win32 link.exe'
10827     ;;
10828
10829   *)
10830     # Assume MSVC wrapper
10831     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10832     dynamic_linker='Win32 ld.exe'
10833     ;;
10834   esac
10835   # FIXME: first we should search . and the directory the executable is in
10836   shlibpath_var=PATH
10837   ;;
10838
10839 darwin* | rhapsody*)
10840   dynamic_linker="$host_os dyld"
10841   version_type=darwin
10842   need_lib_prefix=no
10843   need_version=no
10844   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10845   soname_spec='${libname}${release}${major}$shared_ext'
10846   shlibpath_overrides_runpath=yes
10847   shlibpath_var=DYLD_LIBRARY_PATH
10848   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10849
10850   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10851   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10852   ;;
10853
10854 dgux*)
10855   version_type=linux # correct to gnu/linux during the next big refactor
10856   need_lib_prefix=no
10857   need_version=no
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   shlibpath_var=LD_LIBRARY_PATH
10861   ;;
10862
10863 freebsd* | dragonfly*)
10864   # DragonFly does not have aout.  When/if they implement a new
10865   # versioning mechanism, adjust this.
10866   if test -x /usr/bin/objformat; then
10867     objformat=`/usr/bin/objformat`
10868   else
10869     case $host_os in
10870     freebsd[23].*) objformat=aout ;;
10871     *) objformat=elf ;;
10872     esac
10873   fi
10874   version_type=freebsd-$objformat
10875   case $version_type in
10876     freebsd-elf*)
10877       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10878       need_version=no
10879       need_lib_prefix=no
10880       ;;
10881     freebsd-*)
10882       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10883       need_version=yes
10884       ;;
10885   esac
10886   shlibpath_var=LD_LIBRARY_PATH
10887   case $host_os in
10888   freebsd2.*)
10889     shlibpath_overrides_runpath=yes
10890     ;;
10891   freebsd3.[01]* | freebsdelf3.[01]*)
10892     shlibpath_overrides_runpath=yes
10893     hardcode_into_libs=yes
10894     ;;
10895   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10896   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10897     shlibpath_overrides_runpath=no
10898     hardcode_into_libs=yes
10899     ;;
10900   *) # from 4.6 on, and DragonFly
10901     shlibpath_overrides_runpath=yes
10902     hardcode_into_libs=yes
10903     ;;
10904   esac
10905   ;;
10906
10907 gnu*)
10908   version_type=linux # correct to gnu/linux during the next big refactor
10909   need_lib_prefix=no
10910   need_version=no
10911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10912   soname_spec='${libname}${release}${shared_ext}$major'
10913   shlibpath_var=LD_LIBRARY_PATH
10914   shlibpath_overrides_runpath=no
10915   hardcode_into_libs=yes
10916   ;;
10917
10918 haiku*)
10919   version_type=linux # correct to gnu/linux during the next big refactor
10920   need_lib_prefix=no
10921   need_version=no
10922   dynamic_linker="$host_os runtime_loader"
10923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10924   soname_spec='${libname}${release}${shared_ext}$major'
10925   shlibpath_var=LIBRARY_PATH
10926   shlibpath_overrides_runpath=yes
10927   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10928   hardcode_into_libs=yes
10929   ;;
10930
10931 hpux9* | hpux10* | hpux11*)
10932   # Give a soname corresponding to the major version so that dld.sl refuses to
10933   # link against other versions.
10934   version_type=sunos
10935   need_lib_prefix=no
10936   need_version=no
10937   case $host_cpu in
10938   ia64*)
10939     shrext_cmds='.so'
10940     hardcode_into_libs=yes
10941     dynamic_linker="$host_os dld.so"
10942     shlibpath_var=LD_LIBRARY_PATH
10943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945     soname_spec='${libname}${release}${shared_ext}$major'
10946     if test "X$HPUX_IA64_MODE" = X32; then
10947       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948     else
10949       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10950     fi
10951     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10952     ;;
10953   hppa*64*)
10954     shrext_cmds='.sl'
10955     hardcode_into_libs=yes
10956     dynamic_linker="$host_os dld.sl"
10957     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960     soname_spec='${libname}${release}${shared_ext}$major'
10961     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10963     ;;
10964   *)
10965     shrext_cmds='.sl'
10966     dynamic_linker="$host_os dld.sl"
10967     shlibpath_var=SHLIB_PATH
10968     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970     soname_spec='${libname}${release}${shared_ext}$major'
10971     ;;
10972   esac
10973   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10974   postinstall_cmds='chmod 555 $lib'
10975   # or fails outright, so override atomically:
10976   install_override_mode=555
10977   ;;
10978
10979 interix[3-9]*)
10980   version_type=linux # correct to gnu/linux during the next big refactor
10981   need_lib_prefix=no
10982   need_version=no
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   shlibpath_overrides_runpath=no
10988   hardcode_into_libs=yes
10989   ;;
10990
10991 irix5* | irix6* | nonstopux*)
10992   case $host_os in
10993     nonstopux*) version_type=nonstopux ;;
10994     *)
10995         if test "$lt_cv_prog_gnu_ld" = yes; then
10996                 version_type=linux # correct to gnu/linux during the next big refactor
10997         else
10998                 version_type=irix
10999         fi ;;
11000   esac
11001   need_lib_prefix=no
11002   need_version=no
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11005   case $host_os in
11006   irix5* | nonstopux*)
11007     libsuff= shlibsuff=
11008     ;;
11009   *)
11010     case $LD in # libtool.m4 will add one of these switches to LD
11011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012       libsuff= shlibsuff= libmagic=32-bit;;
11013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014       libsuff=32 shlibsuff=N32 libmagic=N32;;
11015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017     *) libsuff= shlibsuff= libmagic=never-match;;
11018     esac
11019     ;;
11020   esac
11021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022   shlibpath_overrides_runpath=no
11023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025   hardcode_into_libs=yes
11026   ;;
11027
11028 # No shared lib support for Linux oldld, aout, or coff.
11029 linux*oldld* | linux*aout* | linux*coff*)
11030   dynamic_linker=no
11031   ;;
11032
11033 # This must be glibc/ELF.
11034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11035   version_type=linux # correct to gnu/linux during the next big refactor
11036   need_lib_prefix=no
11037   need_version=no
11038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039   soname_spec='${libname}${release}${shared_ext}$major'
11040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041   shlibpath_var=LD_LIBRARY_PATH
11042   shlibpath_overrides_runpath=no
11043
11044   # Some binutils ld are patched to set DT_RUNPATH
11045   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11046   $as_echo_n "(cached) " >&6
11047 else
11048   lt_cv_shlibpath_overrides_runpath=no
11049     save_LDFLAGS=$LDFLAGS
11050     save_libdir=$libdir
11051     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11052          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h.  */
11055
11056 int
11057 main ()
11058 {
11059
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11066   lt_cv_shlibpath_overrides_runpath=yes
11067 fi
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext \
11070     conftest$ac_exeext conftest.$ac_ext
11071     LDFLAGS=$save_LDFLAGS
11072     libdir=$save_libdir
11073
11074 fi
11075
11076   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11077
11078   # This implies no fast_install, which is unacceptable.
11079   # Some rework will be needed to allow for fast_install
11080   # before this can be enabled.
11081   hardcode_into_libs=yes
11082
11083   # Add ABI-specific directories to the system library path.
11084   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11085
11086   # Append ld.so.conf contents to the search path
11087   if test -f /etc/ld.so.conf; then
11088     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' ' '`
11089     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11090
11091   fi
11092
11093   # We used to test for /lib/ld.so.1 and disable shared libraries on
11094   # powerpc, because MkLinux only supported shared libraries with the
11095   # GNU dynamic linker.  Since this was broken with cross compilers,
11096   # most powerpc-linux boxes support dynamic linking these days and
11097   # people can always --disable-shared, the test was removed, and we
11098   # assume the GNU/Linux dynamic linker is in use.
11099   dynamic_linker='GNU/Linux ld.so'
11100   ;;
11101
11102 netbsd*)
11103   version_type=sunos
11104   need_lib_prefix=no
11105   need_version=no
11106   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11108     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109     dynamic_linker='NetBSD (a.out) ld.so'
11110   else
11111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11112     soname_spec='${libname}${release}${shared_ext}$major'
11113     dynamic_linker='NetBSD ld.elf_so'
11114   fi
11115   shlibpath_var=LD_LIBRARY_PATH
11116   shlibpath_overrides_runpath=yes
11117   hardcode_into_libs=yes
11118   ;;
11119
11120 newsos6)
11121   version_type=linux # correct to gnu/linux during the next big refactor
11122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=yes
11125   ;;
11126
11127 *nto* | *qnx*)
11128   version_type=qnx
11129   need_lib_prefix=no
11130   need_version=no
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132   soname_spec='${libname}${release}${shared_ext}$major'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   shlibpath_overrides_runpath=no
11135   hardcode_into_libs=yes
11136   dynamic_linker='ldqnx.so'
11137   ;;
11138
11139 openbsd*)
11140   version_type=sunos
11141   sys_lib_dlsearch_path_spec="/usr/lib"
11142   need_lib_prefix=no
11143   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11144   case $host_os in
11145     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11146     *)                          need_version=no  ;;
11147   esac
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150   shlibpath_var=LD_LIBRARY_PATH
11151   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11152     case $host_os in
11153       openbsd2.[89] | openbsd2.[89].*)
11154         shlibpath_overrides_runpath=no
11155         ;;
11156       *)
11157         shlibpath_overrides_runpath=yes
11158         ;;
11159       esac
11160   else
11161     shlibpath_overrides_runpath=yes
11162   fi
11163   ;;
11164
11165 os2*)
11166   libname_spec='$name'
11167   shrext_cmds=".dll"
11168   need_lib_prefix=no
11169   library_names_spec='$libname${shared_ext} $libname.a'
11170   dynamic_linker='OS/2 ld.exe'
11171   shlibpath_var=LIBPATH
11172   ;;
11173
11174 osf3* | osf4* | osf5*)
11175   version_type=osf
11176   need_lib_prefix=no
11177   need_version=no
11178   soname_spec='${libname}${release}${shared_ext}$major'
11179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180   shlibpath_var=LD_LIBRARY_PATH
11181   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11182   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11183   ;;
11184
11185 rdos*)
11186   dynamic_linker=no
11187   ;;
11188
11189 solaris*)
11190   version_type=linux # correct to gnu/linux during the next big refactor
11191   need_lib_prefix=no
11192   need_version=no
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194   soname_spec='${libname}${release}${shared_ext}$major'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=yes
11197   hardcode_into_libs=yes
11198   # ldd complains unless libraries are executable
11199   postinstall_cmds='chmod +x $lib'
11200   ;;
11201
11202 sunos4*)
11203   version_type=sunos
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11205   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11206   shlibpath_var=LD_LIBRARY_PATH
11207   shlibpath_overrides_runpath=yes
11208   if test "$with_gnu_ld" = yes; then
11209     need_lib_prefix=no
11210   fi
11211   need_version=yes
11212   ;;
11213
11214 sysv4 | sysv4.3*)
11215   version_type=linux # correct to gnu/linux during the next big refactor
11216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217   soname_spec='${libname}${release}${shared_ext}$major'
11218   shlibpath_var=LD_LIBRARY_PATH
11219   case $host_vendor in
11220     sni)
11221       shlibpath_overrides_runpath=no
11222       need_lib_prefix=no
11223       runpath_var=LD_RUN_PATH
11224       ;;
11225     siemens)
11226       need_lib_prefix=no
11227       ;;
11228     motorola)
11229       need_lib_prefix=no
11230       need_version=no
11231       shlibpath_overrides_runpath=no
11232       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11233       ;;
11234   esac
11235   ;;
11236
11237 sysv4*MP*)
11238   if test -d /usr/nec ;then
11239     version_type=linux # correct to gnu/linux during the next big refactor
11240     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11241     soname_spec='$libname${shared_ext}.$major'
11242     shlibpath_var=LD_LIBRARY_PATH
11243   fi
11244   ;;
11245
11246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11247   version_type=freebsd-elf
11248   need_lib_prefix=no
11249   need_version=no
11250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11251   soname_spec='${libname}${release}${shared_ext}$major'
11252   shlibpath_var=LD_LIBRARY_PATH
11253   shlibpath_overrides_runpath=yes
11254   hardcode_into_libs=yes
11255   if test "$with_gnu_ld" = yes; then
11256     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11257   else
11258     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11259     case $host_os in
11260       sco3.2v5*)
11261         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11262         ;;
11263     esac
11264   fi
11265   sys_lib_dlsearch_path_spec='/usr/lib'
11266   ;;
11267
11268 tpf*)
11269   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11270   version_type=linux # correct to gnu/linux during the next big refactor
11271   need_lib_prefix=no
11272   need_version=no
11273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274   shlibpath_var=LD_LIBRARY_PATH
11275   shlibpath_overrides_runpath=no
11276   hardcode_into_libs=yes
11277   ;;
11278
11279 uts4*)
11280   version_type=linux # correct to gnu/linux during the next big refactor
11281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282   soname_spec='${libname}${release}${shared_ext}$major'
11283   shlibpath_var=LD_LIBRARY_PATH
11284   ;;
11285
11286 *)
11287   dynamic_linker=no
11288   ;;
11289 esac
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11291 $as_echo "$dynamic_linker" >&6; }
11292 test "$dynamic_linker" = no && can_build_shared=no
11293
11294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11295 if test "$GCC" = yes; then
11296   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11297 fi
11298
11299 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11300   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11301 fi
11302 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11303   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11304 fi
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
11396
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11398 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11399 hardcode_action=
11400 if test -n "$hardcode_libdir_flag_spec" ||
11401    test -n "$runpath_var" ||
11402    test "X$hardcode_automatic" = "Xyes" ; then
11403
11404   # We can hardcode non-existent directories.
11405   if test "$hardcode_direct" != no &&
11406      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11407      # have to relink, otherwise we might link with an installed library
11408      # when we should be linking with a yet-to-be-installed one
11409      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11410      test "$hardcode_minus_L" != no; then
11411     # Linking always hardcodes the temporary library directory.
11412     hardcode_action=relink
11413   else
11414     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11415     hardcode_action=immediate
11416   fi
11417 else
11418   # We cannot hardcode anything, or else we can only hardcode existing
11419   # directories.
11420   hardcode_action=unsupported
11421 fi
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11423 $as_echo "$hardcode_action" >&6; }
11424
11425 if test "$hardcode_action" = relink ||
11426    test "$inherit_rpath" = yes; then
11427   # Fast installation is not supported
11428   enable_fast_install=no
11429 elif test "$shlibpath_overrides_runpath" = yes ||
11430      test "$enable_shared" = no; then
11431   # Fast installation is not necessary
11432   enable_fast_install=needless
11433 fi
11434
11435
11436
11437
11438
11439
11440   if test "x$enable_dlopen" != xyes; then
11441   enable_dlopen=unknown
11442   enable_dlopen_self=unknown
11443   enable_dlopen_self_static=unknown
11444 else
11445   lt_cv_dlopen=no
11446   lt_cv_dlopen_libs=
11447
11448   case $host_os in
11449   beos*)
11450     lt_cv_dlopen="load_add_on"
11451     lt_cv_dlopen_libs=
11452     lt_cv_dlopen_self=yes
11453     ;;
11454
11455   mingw* | pw32* | cegcc*)
11456     lt_cv_dlopen="LoadLibrary"
11457     lt_cv_dlopen_libs=
11458     ;;
11459
11460   cygwin*)
11461     lt_cv_dlopen="dlopen"
11462     lt_cv_dlopen_libs=
11463     ;;
11464
11465   darwin*)
11466   # if libdl is installed we need to link against it
11467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11468 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11469 if ${ac_cv_lib_dl_dlopen+:} false; then :
11470   $as_echo_n "(cached) " >&6
11471 else
11472   ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-ldl  $LIBS"
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h.  */
11476
11477 /* Override any GCC internal prototype to avoid an error.
11478    Use char because int might match the return type of a GCC
11479    builtin and then its argument prototype would still apply.  */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 char dlopen ();
11484 int
11485 main ()
11486 {
11487 return dlopen ();
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 if ac_fn_c_try_link "$LINENO"; then :
11493   ac_cv_lib_dl_dlopen=yes
11494 else
11495   ac_cv_lib_dl_dlopen=no
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext \
11498     conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_lib_save_LIBS
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11502 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11503 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11504   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11505 else
11506
11507     lt_cv_dlopen="dyld"
11508     lt_cv_dlopen_libs=
11509     lt_cv_dlopen_self=yes
11510
11511 fi
11512
11513     ;;
11514
11515   *)
11516     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11517 if test "x$ac_cv_func_shl_load" = xyes; then :
11518   lt_cv_dlopen="shl_load"
11519 else
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11521 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11522 if ${ac_cv_lib_dld_shl_load+:} false; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525   ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-ldld  $LIBS"
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h.  */
11529
11530 /* Override any GCC internal prototype to avoid an error.
11531    Use char because int might match the return type of a GCC
11532    builtin and then its argument prototype would still apply.  */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char shl_load ();
11537 int
11538 main ()
11539 {
11540 return shl_load ();
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 if ac_fn_c_try_link "$LINENO"; then :
11546   ac_cv_lib_dld_shl_load=yes
11547 else
11548   ac_cv_lib_dld_shl_load=no
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext \
11551     conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_check_lib_save_LIBS
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11555 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11556 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11557   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11558 else
11559   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11560 if test "x$ac_cv_func_dlopen" = xyes; then :
11561   lt_cv_dlopen="dlopen"
11562 else
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11564 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11565 if ${ac_cv_lib_dl_dlopen+:} false; then :
11566   $as_echo_n "(cached) " >&6
11567 else
11568   ac_check_lib_save_LIBS=$LIBS
11569 LIBS="-ldl  $LIBS"
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h.  */
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574    Use char because int might match the return type of a GCC
11575    builtin and then its argument prototype would still apply.  */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char dlopen ();
11580 int
11581 main ()
11582 {
11583 return dlopen ();
11584   ;
11585   return 0;
11586 }
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589   ac_cv_lib_dl_dlopen=yes
11590 else
11591   ac_cv_lib_dl_dlopen=no
11592 fi
11593 rm -f core conftest.err conftest.$ac_objext \
11594     conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11598 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11599 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11600   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11601 else
11602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11603 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11604 if ${ac_cv_lib_svld_dlopen+:} false; then :
11605   $as_echo_n "(cached) " >&6
11606 else
11607   ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-lsvld  $LIBS"
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h.  */
11611
11612 /* Override any GCC internal prototype to avoid an error.
11613    Use char because int might match the return type of a GCC
11614    builtin and then its argument prototype would still apply.  */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 char dlopen ();
11619 int
11620 main ()
11621 {
11622 return dlopen ();
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11628   ac_cv_lib_svld_dlopen=yes
11629 else
11630   ac_cv_lib_svld_dlopen=no
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext \
11633     conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11637 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11638 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11639   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11640 else
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11643 if ${ac_cv_lib_dld_dld_link+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-ldld  $LIBS"
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h.  */
11650
11651 /* Override any GCC internal prototype to avoid an error.
11652    Use char because int might match the return type of a GCC
11653    builtin and then its argument prototype would still apply.  */
11654 #ifdef __cplusplus
11655 extern "C"
11656 #endif
11657 char dld_link ();
11658 int
11659 main ()
11660 {
11661 return dld_link ();
11662   ;
11663   return 0;
11664 }
11665 _ACEOF
11666 if ac_fn_c_try_link "$LINENO"; then :
11667   ac_cv_lib_dld_dld_link=yes
11668 else
11669   ac_cv_lib_dld_dld_link=no
11670 fi
11671 rm -f core conftest.err conftest.$ac_objext \
11672     conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11678   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11679 fi
11680
11681
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690
11691 fi
11692
11693
11694 fi
11695
11696     ;;
11697   esac
11698
11699   if test "x$lt_cv_dlopen" != xno; then
11700     enable_dlopen=yes
11701   else
11702     enable_dlopen=no
11703   fi
11704
11705   case $lt_cv_dlopen in
11706   dlopen)
11707     save_CPPFLAGS="$CPPFLAGS"
11708     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11709
11710     save_LDFLAGS="$LDFLAGS"
11711     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11712
11713     save_LIBS="$LIBS"
11714     LIBS="$lt_cv_dlopen_libs $LIBS"
11715
11716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11717 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11718 if ${lt_cv_dlopen_self+:} false; then :
11719   $as_echo_n "(cached) " >&6
11720 else
11721           if test "$cross_compiling" = yes; then :
11722   lt_cv_dlopen_self=cross
11723 else
11724   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11725   lt_status=$lt_dlunknown
11726   cat > conftest.$ac_ext <<_LT_EOF
11727 #line $LINENO "configure"
11728 #include "confdefs.h"
11729
11730 #if HAVE_DLFCN_H
11731 #include <dlfcn.h>
11732 #endif
11733
11734 #include <stdio.h>
11735
11736 #ifdef RTLD_GLOBAL
11737 #  define LT_DLGLOBAL           RTLD_GLOBAL
11738 #else
11739 #  ifdef DL_GLOBAL
11740 #    define LT_DLGLOBAL         DL_GLOBAL
11741 #  else
11742 #    define LT_DLGLOBAL         0
11743 #  endif
11744 #endif
11745
11746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11747    find out it does not work in some platform. */
11748 #ifndef LT_DLLAZY_OR_NOW
11749 #  ifdef RTLD_LAZY
11750 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11751 #  else
11752 #    ifdef DL_LAZY
11753 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11754 #    else
11755 #      ifdef RTLD_NOW
11756 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11757 #      else
11758 #        ifdef DL_NOW
11759 #          define LT_DLLAZY_OR_NOW      DL_NOW
11760 #        else
11761 #          define LT_DLLAZY_OR_NOW      0
11762 #        endif
11763 #      endif
11764 #    endif
11765 #  endif
11766 #endif
11767
11768 /* When -fvisbility=hidden is used, assume the code has been annotated
11769    correspondingly for the symbols needed.  */
11770 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11771 int fnord () __attribute__((visibility("default")));
11772 #endif
11773
11774 int fnord () { return 42; }
11775 int main ()
11776 {
11777   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778   int status = $lt_dlunknown;
11779
11780   if (self)
11781     {
11782       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11783       else
11784         {
11785           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11786           else puts (dlerror ());
11787         }
11788       /* dlclose (self); */
11789     }
11790   else
11791     puts (dlerror ());
11792
11793   return status;
11794 }
11795 _LT_EOF
11796   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11797   (eval $ac_link) 2>&5
11798   ac_status=$?
11799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11801     (./conftest; exit; ) >&5 2>/dev/null
11802     lt_status=$?
11803     case x$lt_status in
11804       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11805       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11806       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11807     esac
11808   else :
11809     # compilation failed
11810     lt_cv_dlopen_self=no
11811   fi
11812 fi
11813 rm -fr conftest*
11814
11815
11816 fi
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11818 $as_echo "$lt_cv_dlopen_self" >&6; }
11819
11820     if test "x$lt_cv_dlopen_self" = xyes; then
11821       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11822       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11823 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11824 if ${lt_cv_dlopen_self_static+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827           if test "$cross_compiling" = yes; then :
11828   lt_cv_dlopen_self_static=cross
11829 else
11830   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11831   lt_status=$lt_dlunknown
11832   cat > conftest.$ac_ext <<_LT_EOF
11833 #line $LINENO "configure"
11834 #include "confdefs.h"
11835
11836 #if HAVE_DLFCN_H
11837 #include <dlfcn.h>
11838 #endif
11839
11840 #include <stdio.h>
11841
11842 #ifdef RTLD_GLOBAL
11843 #  define LT_DLGLOBAL           RTLD_GLOBAL
11844 #else
11845 #  ifdef DL_GLOBAL
11846 #    define LT_DLGLOBAL         DL_GLOBAL
11847 #  else
11848 #    define LT_DLGLOBAL         0
11849 #  endif
11850 #endif
11851
11852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11853    find out it does not work in some platform. */
11854 #ifndef LT_DLLAZY_OR_NOW
11855 #  ifdef RTLD_LAZY
11856 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11857 #  else
11858 #    ifdef DL_LAZY
11859 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11860 #    else
11861 #      ifdef RTLD_NOW
11862 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11863 #      else
11864 #        ifdef DL_NOW
11865 #          define LT_DLLAZY_OR_NOW      DL_NOW
11866 #        else
11867 #          define LT_DLLAZY_OR_NOW      0
11868 #        endif
11869 #      endif
11870 #    endif
11871 #  endif
11872 #endif
11873
11874 /* When -fvisbility=hidden is used, assume the code has been annotated
11875    correspondingly for the symbols needed.  */
11876 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11877 int fnord () __attribute__((visibility("default")));
11878 #endif
11879
11880 int fnord () { return 42; }
11881 int main ()
11882 {
11883   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11884   int status = $lt_dlunknown;
11885
11886   if (self)
11887     {
11888       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11889       else
11890         {
11891           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11892           else puts (dlerror ());
11893         }
11894       /* dlclose (self); */
11895     }
11896   else
11897     puts (dlerror ());
11898
11899   return status;
11900 }
11901 _LT_EOF
11902   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11903   (eval $ac_link) 2>&5
11904   ac_status=$?
11905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11907     (./conftest; exit; ) >&5 2>/dev/null
11908     lt_status=$?
11909     case x$lt_status in
11910       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11911       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11912       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11913     esac
11914   else :
11915     # compilation failed
11916     lt_cv_dlopen_self_static=no
11917   fi
11918 fi
11919 rm -fr conftest*
11920
11921
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11924 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11925     fi
11926
11927     CPPFLAGS="$save_CPPFLAGS"
11928     LDFLAGS="$save_LDFLAGS"
11929     LIBS="$save_LIBS"
11930     ;;
11931   esac
11932
11933   case $lt_cv_dlopen_self in
11934   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11935   *) enable_dlopen_self=unknown ;;
11936   esac
11937
11938   case $lt_cv_dlopen_self_static in
11939   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11940   *) enable_dlopen_self_static=unknown ;;
11941   esac
11942 fi
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960 striplib=
11961 old_striplib=
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11963 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11964 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11965   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11966   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968 $as_echo "yes" >&6; }
11969 else
11970 # FIXME - insert some real tests, host_os isn't really good enough
11971   case $host_os in
11972   darwin*)
11973     if test -n "$STRIP" ; then
11974       striplib="$STRIP -x"
11975       old_striplib="$STRIP -S"
11976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11977 $as_echo "yes" >&6; }
11978     else
11979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981     fi
11982     ;;
11983   *)
11984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986     ;;
11987   esac
11988 fi
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001   # Report which library types will actually be built
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12003 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12005 $as_echo "$can_build_shared" >&6; }
12006
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12008 $as_echo_n "checking whether to build shared libraries... " >&6; }
12009   test "$can_build_shared" = "no" && enable_shared=no
12010
12011   # On AIX, shared libraries and static libraries use the same namespace, and
12012   # are all built from PIC.
12013   case $host_os in
12014   aix3*)
12015     test "$enable_shared" = yes && enable_static=no
12016     if test -n "$RANLIB"; then
12017       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12018       postinstall_cmds='$RANLIB $lib'
12019     fi
12020     ;;
12021
12022   aix[4-9]*)
12023     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12024       test "$enable_shared" = yes && enable_static=no
12025     fi
12026     ;;
12027   esac
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12029 $as_echo "$enable_shared" >&6; }
12030
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12032 $as_echo_n "checking whether to build static libraries... " >&6; }
12033   # Make sure either enable_shared or enable_static is yes.
12034   test "$enable_shared" = yes || enable_static=yes
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12036 $as_echo "$enable_static" >&6; }
12037
12038
12039
12040
12041 fi
12042 ac_ext=c
12043 ac_cpp='$CPP $CPPFLAGS'
12044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12047
12048 CC="$lt_save_CC"
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064         ac_config_commands="$ac_config_commands libtool"
12065
12066
12067
12068
12069 # Only expand once:
12070
12071
12072
12073
12074 # Test for 64-bit build.
12075 # The cast to long int works around a bug in the HP C Compiler
12076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12078 # This bug is HP SR number 8606223364.
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12080 $as_echo_n "checking size of size_t... " >&6; }
12081 if ${ac_cv_sizeof_size_t+:} false; then :
12082   $as_echo_n "(cached) " >&6
12083 else
12084   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12085
12086 else
12087   if test "$ac_cv_type_size_t" = yes; then
12088      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12090 as_fn_error 77 "cannot compute sizeof (size_t)
12091 See \`config.log' for more details" "$LINENO" 5; }
12092    else
12093      ac_cv_sizeof_size_t=0
12094    fi
12095 fi
12096
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12099 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12100
12101
12102
12103 cat >>confdefs.h <<_ACEOF
12104 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12105 _ACEOF
12106
12107
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12110 $as_echo_n "checking for C compiler vendor... " >&6; }
12111 if ${ax_cv_c_compiler_vendor+:} false; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114   # note: don't check for gcc first since some other compilers define __GNUC__
12115   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12116            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12117            pathscale: __PATHCC__,__PATHSCALE__
12118            clang:     __clang__
12119            gnu:       __GNUC__
12120            sun:       __SUNPRO_C,__SUNPRO_CC
12121            hp:        __HP_cc,__HP_aCC
12122            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12123            borland:   __BORLANDC__,__TURBOC__
12124            comeau:    __COMO__
12125            cray:      _CRAYC
12126            kai:       __KCC
12127            lcc:       __LCC__
12128            sgi:       __sgi,sgi
12129            microsoft: _MSC_VER
12130            metrowerks: __MWERKS__
12131            watcom:    __WATCOMC__
12132            portland:  __PGI
12133            unknown:   UNKNOWN"
12134   for ventest in $vendors; do
12135     case $ventest in
12136       *:) vendor=$ventest; continue ;;
12137       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12138     esac
12139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141
12142 int
12143 main ()
12144 {
12145
12146       #if !($vencpp)
12147         thisisanerror;
12148       #endif
12149
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155   break
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158   done
12159   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12160
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12163 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12164
12165
12166
12167
12168
12169
12170 # Check whether --enable-portable-binary was given.
12171 if test "${enable_portable_binary+set}" = set; then :
12172   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12173 else
12174   acx_maxopt_portable=no
12175 fi
12176
12177
12178 # Try to determine "good" native compiler flags if none specified via CFLAGS
12179 if test "$ac_test_CFLAGS" != "set"; then
12180   CFLAGS=""
12181   case $ax_cv_c_compiler_vendor in
12182     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12183          if test "x$acx_maxopt_portable" = xno; then
12184            CFLAGS="$CFLAGS -arch host"
12185          fi;;
12186
12187     sun) CFLAGS="-native -fast -xO5 -dalign"
12188          if test "x$acx_maxopt_portable" = xyes; then
12189            CFLAGS="$CFLAGS -xarch=generic"
12190          fi;;
12191
12192     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12193          if test "x$acx_maxopt_portable" = xyes; then
12194            CFLAGS="$CFLAGS +DAportable"
12195          fi;;
12196
12197     ibm) if test "x$acx_maxopt_portable" = xno; then
12198            xlc_opt="-qarch=auto -qtune=auto"
12199          else
12200            xlc_opt="-qtune=auto"
12201          fi
12202          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12204 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12205 if eval \${$as_CACHEVAR+:} false; then :
12206   $as_echo_n "(cached) " >&6
12207 else
12208
12209   ax_check_save_flags=$CFLAGS
12210   CFLAGS="$CFLAGS  $xlc_opt"
12211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h.  */
12213
12214 int
12215 main ()
12216 {
12217
12218   ;
12219   return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223   eval "$as_CACHEVAR=yes"
12224 else
12225   eval "$as_CACHEVAR=no"
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228   CFLAGS=$ax_check_save_flags
12229 fi
12230 eval ac_res=\$$as_CACHEVAR
12231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12232 $as_echo "$ac_res" >&6; }
12233 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12234   CFLAGS="-O3 -qansialias -w $xlc_opt"
12235 else
12236   CFLAGS="-O3 -qansialias -w"
12237                 echo "******************************************************"
12238                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12239                 echo "*  recommended for best performance that you use:    *"
12240                 echo "*                                                    *"
12241                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12242                 echo "*                      ^^^        ^^^                *"
12243                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12244                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12245                 echo "*  and re-run configure.)  For more info, man cc.    *"
12246                 echo "******************************************************"
12247 fi
12248
12249          ;;
12250
12251     intel) CFLAGS="-O3 -ansi_alias"
12252         if test "x$acx_maxopt_portable" = xno; then
12253           icc_archflag=unknown
12254           icc_flags=""
12255           case $host_cpu in
12256             i686*|x86_64*)
12257               # icc accepts gcc assembly syntax, so these should work:
12258
12259 ac_ext=c
12260 ac_cpp='$CPP $CPPFLAGS'
12261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12264
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12266 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12267 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270   if test "$cross_compiling" = yes; then :
12271   ax_cv_gcc_x86_cpuid_0=unknown
12272 else
12273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h.  */
12275 #include <stdio.h>
12276 int
12277 main ()
12278 {
12279
12280      int op = 0, eax, ebx, ecx, edx;
12281      FILE *f;
12282       __asm__("cpuid"
12283         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12284         : "a" (op));
12285      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12286      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12287      fclose(f);
12288      return 0;
12289
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 if ac_fn_c_try_run "$LINENO"; then :
12295   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12296 else
12297   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12298 fi
12299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12300   conftest.$ac_objext conftest.beam conftest.$ac_ext
12301 fi
12302
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12305 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12306 ac_ext=c
12307 ac_cpp='$CPP $CPPFLAGS'
12308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12311
12312
12313
12314 ac_ext=c
12315 ac_cpp='$CPP $CPPFLAGS'
12316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12319
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12321 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12322 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   if test "$cross_compiling" = yes; then :
12326   ax_cv_gcc_x86_cpuid_1=unknown
12327 else
12328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h.  */
12330 #include <stdio.h>
12331 int
12332 main ()
12333 {
12334
12335      int op = 1, eax, ebx, ecx, edx;
12336      FILE *f;
12337       __asm__("cpuid"
12338         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12339         : "a" (op));
12340      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12341      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12342      fclose(f);
12343      return 0;
12344
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_run "$LINENO"; then :
12350   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12351 else
12352   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12353 fi
12354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355   conftest.$ac_objext conftest.beam conftest.$ac_ext
12356 fi
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12360 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12361 ac_ext=c
12362 ac_cpp='$CPP $CPPFLAGS'
12363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12366
12367
12368               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12369                 *:756e6547:*:*) # Intel
12370                   case $ax_cv_gcc_x86_cpuid_1 in
12371                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12372                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12373                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12374                   esac ;;
12375               esac ;;
12376           esac
12377           if test "x$icc_flags" != x; then
12378             for flag in $icc_flags; do
12379               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12381 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12382 if eval \${$as_CACHEVAR+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385
12386   ax_check_save_flags=$CFLAGS
12387   CFLAGS="$CFLAGS  $flag"
12388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h.  */
12390
12391 int
12392 main ()
12393 {
12394
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400   eval "$as_CACHEVAR=yes"
12401 else
12402   eval "$as_CACHEVAR=no"
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405   CFLAGS=$ax_check_save_flags
12406 fi
12407 eval ac_res=\$$as_CACHEVAR
12408                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12409 $as_echo "$ac_res" >&6; }
12410 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12411   icc_archflag=$flag; break
12412 else
12413   :
12414 fi
12415
12416             done
12417           fi
12418           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12419 $as_echo_n "checking for icc architecture flag... " >&6; }
12420           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12421 $as_echo "$icc_archflag" >&6; }
12422           if test "x$icc_archflag" != xunknown; then
12423             CFLAGS="$CFLAGS $icc_archflag"
12424           fi
12425         fi
12426         ;;
12427
12428     gnu)
12429      # default optimization flags for gcc on all systems
12430      CFLAGS="-O3 -fomit-frame-pointer"
12431
12432      # -malign-double for x86 systems
12433      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12434      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12435
12436      #  -fstrict-aliasing for gcc-2.95+
12437      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12438 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12439 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12440   $as_echo_n "(cached) " >&6
12441 else
12442
12443   ax_check_save_flags=$CFLAGS
12444   CFLAGS="$CFLAGS  -fstrict-aliasing"
12445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h.  */
12447
12448 int
12449 main ()
12450 {
12451
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_compile "$LINENO"; then :
12457   ax_cv_check_cflags___fstrict_aliasing=yes
12458 else
12459   ax_cv_check_cflags___fstrict_aliasing=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462   CFLAGS=$ax_check_save_flags
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12465 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12466 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12467   CFLAGS="$CFLAGS -fstrict-aliasing"
12468 else
12469   :
12470 fi
12471
12472
12473      # note that we enable "unsafe" fp optimization with other compilers, too
12474      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12475 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12476 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12477   $as_echo_n "(cached) " >&6
12478 else
12479
12480   ax_check_save_flags=$CFLAGS
12481   CFLAGS="$CFLAGS  -ffast-math"
12482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h.  */
12484
12485 int
12486 main ()
12487 {
12488
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 if ac_fn_c_try_compile "$LINENO"; then :
12494   ax_cv_check_cflags___ffast_math=yes
12495 else
12496   ax_cv_check_cflags___ffast_math=no
12497 fi
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499   CFLAGS=$ax_check_save_flags
12500 fi
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12502 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12503 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12504   CFLAGS="$CFLAGS -ffast-math"
12505 else
12506   :
12507 fi
12508
12509
12510
12511
12512
12513
12514 # Check whether --with-gcc-arch was given.
12515 if test "${with_gcc_arch+set}" = set; then :
12516   withval=$with_gcc_arch; ax_gcc_arch=$withval
12517 else
12518   ax_gcc_arch=yes
12519 fi
12520
12521
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12523 $as_echo_n "checking for gcc architecture flag... " >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12525 $as_echo "" >&6; }
12526 if ${ax_cv_gcc_archflag+:} false; then :
12527   $as_echo_n "(cached) " >&6
12528 else
12529
12530 ax_cv_gcc_archflag="unknown"
12531
12532 if test "$GCC" = yes; then
12533
12534 if test "x$ax_gcc_arch" = xyes; then
12535 ax_gcc_arch=""
12536 if test "$cross_compiling" = no; then
12537 case $host_cpu in
12538   i[3456]86*|x86_64*) # use cpuid codes
12539
12540 ac_ext=c
12541 ac_cpp='$CPP $CPPFLAGS'
12542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12545
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12547 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12548 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12549   $as_echo_n "(cached) " >&6
12550 else
12551   if test "$cross_compiling" = yes; then :
12552   ax_cv_gcc_x86_cpuid_0=unknown
12553 else
12554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h.  */
12556 #include <stdio.h>
12557 int
12558 main ()
12559 {
12560
12561      int op = 0, eax, ebx, ecx, edx;
12562      FILE *f;
12563       __asm__("cpuid"
12564         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12565         : "a" (op));
12566      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12567      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12568      fclose(f);
12569      return 0;
12570
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_c_try_run "$LINENO"; then :
12576   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12577 else
12578   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12579 fi
12580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12581   conftest.$ac_objext conftest.beam conftest.$ac_ext
12582 fi
12583
12584 fi
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12586 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12587 ac_ext=c
12588 ac_cpp='$CPP $CPPFLAGS'
12589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592
12593
12594
12595 ac_ext=c
12596 ac_cpp='$CPP $CPPFLAGS'
12597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12600
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12602 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12603 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606   if test "$cross_compiling" = yes; then :
12607   ax_cv_gcc_x86_cpuid_1=unknown
12608 else
12609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h.  */
12611 #include <stdio.h>
12612 int
12613 main ()
12614 {
12615
12616      int op = 1, eax, ebx, ecx, edx;
12617      FILE *f;
12618       __asm__("cpuid"
12619         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12620         : "a" (op));
12621      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12622      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12623      fclose(f);
12624      return 0;
12625
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 if ac_fn_c_try_run "$LINENO"; then :
12631   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12632 else
12633   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12634 fi
12635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12636   conftest.$ac_objext conftest.beam conftest.$ac_ext
12637 fi
12638
12639 fi
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12641 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12642 ac_ext=c
12643 ac_cpp='$CPP $CPPFLAGS'
12644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647
12648
12649      case $ax_cv_gcc_x86_cpuid_0 in
12650        *:756e6547:*:*) # Intel
12651           case $ax_cv_gcc_x86_cpuid_1 in
12652             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12653             *5??:*:*:*) ax_gcc_arch=pentium ;;
12654             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12655             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12656             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12657             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12658             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12659             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12660             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12661             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12662             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12663             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12664             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12665             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12666             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12667                 case $host_cpu in
12668                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12669                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12670                 esac ;;
12671             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12672           esac ;;
12673        *:68747541:*:*) # AMD
12674           case $ax_cv_gcc_x86_cpuid_1 in
12675             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12676             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12677             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12678             *60?:*:*:*) ax_gcc_arch=k7 ;;
12679             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12680             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12681             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12682             *6[68a]?:*:*:*)
12683
12684 ac_ext=c
12685 ac_cpp='$CPP $CPPFLAGS'
12686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12689
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12691 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12692 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12693   $as_echo_n "(cached) " >&6
12694 else
12695   if test "$cross_compiling" = yes; then :
12696   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12697 else
12698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h.  */
12700 #include <stdio.h>
12701 int
12702 main ()
12703 {
12704
12705      int op = 0x80000006, eax, ebx, ecx, edx;
12706      FILE *f;
12707       __asm__("cpuid"
12708         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12709         : "a" (op));
12710      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12711      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12712      fclose(f);
12713      return 0;
12714
12715   ;
12716   return 0;
12717 }
12718 _ACEOF
12719 if ac_fn_c_try_run "$LINENO"; then :
12720   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12721 else
12722   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12723 fi
12724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12725   conftest.$ac_objext conftest.beam conftest.$ac_ext
12726 fi
12727
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12730 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12731 ac_ext=c
12732 ac_cpp='$CPP $CPPFLAGS'
12733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12736
12737  # L2 cache size
12738                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12739                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12740                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12741                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12742                esac ;;
12743             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12744             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12745             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12746             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12747             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12748             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12749             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12750           esac ;;
12751         *:746e6543:*:*) # IDT
12752            case $ax_cv_gcc_x86_cpuid_1 in
12753              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12754              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12755              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12756              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12757            esac ;;
12758      esac
12759      if test x"$ax_gcc_arch" = x; then # fallback
12760         case $host_cpu in
12761           i586*) ax_gcc_arch=pentium ;;
12762           i686*) ax_gcc_arch=pentiumpro ;;
12763         esac
12764      fi
12765      ;;
12766
12767   sparc*)
12768      # Extract the first word of "prtdiag", so it can be a program name with args.
12769 set dummy prtdiag; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if ${ac_cv_path_PRTDIAG+:} false; then :
12773   $as_echo_n "(cached) " >&6
12774 else
12775   case $PRTDIAG in
12776   [\\/]* | ?:[\\/]*)
12777   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12778   ;;
12779   *)
12780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12782 for as_dir in $as_dummy
12783 do
12784   IFS=$as_save_IFS
12785   test -z "$as_dir" && as_dir=.
12786     for ac_exec_ext in '' $ac_executable_extensions; do
12787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790     break 2
12791   fi
12792 done
12793   done
12794 IFS=$as_save_IFS
12795
12796   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12797   ;;
12798 esac
12799 fi
12800 PRTDIAG=$ac_cv_path_PRTDIAG
12801 if test -n "$PRTDIAG"; then
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12803 $as_echo "$PRTDIAG" >&6; }
12804 else
12805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12807 fi
12808
12809
12810      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`
12811      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12812      case $cputype in
12813          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12814          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12815          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12816          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12817          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12818          *cypress*) ax_gcc_arch=cypress ;;
12819      esac ;;
12820
12821   alphaev5) ax_gcc_arch=ev5 ;;
12822   alphaev56) ax_gcc_arch=ev56 ;;
12823   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12824   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12825   alphaev6) ax_gcc_arch=ev6 ;;
12826   alphaev67) ax_gcc_arch=ev67 ;;
12827   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12828   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12829   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12830   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12831
12832   powerpc*)
12833      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`
12834      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12835      case $cputype in
12836        *750*) ax_gcc_arch="750 G3" ;;
12837        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12838        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12839        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12840        *970*) ax_gcc_arch="970 G5 power4";;
12841        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12842        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12843        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12844        *) ax_gcc_arch=$cputype ;;
12845      esac
12846      ax_gcc_arch="$ax_gcc_arch powerpc"
12847      ;;
12848 esac
12849 fi # not cross-compiling
12850 fi # guess arch
12851
12852 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12853 for arch in $ax_gcc_arch; do
12854   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12855     flags="-mtune=$arch"
12856     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12857     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12858     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12859   else
12860     flags="-march=$arch -mcpu=$arch -m$arch"
12861   fi
12862   for flag in $flags; do
12863     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12865 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12866 if eval \${$as_CACHEVAR+:} false; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869
12870   ax_check_save_flags=$CFLAGS
12871   CFLAGS="$CFLAGS  $flag"
12872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h.  */
12874
12875 int
12876 main ()
12877 {
12878
12879   ;
12880   return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_compile "$LINENO"; then :
12884   eval "$as_CACHEVAR=yes"
12885 else
12886   eval "$as_CACHEVAR=no"
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889   CFLAGS=$ax_check_save_flags
12890 fi
12891 eval ac_res=\$$as_CACHEVAR
12892                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12893 $as_echo "$ac_res" >&6; }
12894 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12895   ax_cv_gcc_archflag=$flag; break
12896 else
12897   :
12898 fi
12899
12900   done
12901   test "x$ax_cv_gcc_archflag" = xunknown || break
12902 done
12903 fi
12904
12905 fi # $GCC=yes
12906
12907 fi
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12910 $as_echo_n "checking for gcc architecture flag... " >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12912 $as_echo "$ax_cv_gcc_archflag" >&6; }
12913 if test "x$ax_cv_gcc_archflag" = xunknown; then
12914   :
12915 else
12916   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12917 fi
12918
12919      ;;
12920   esac
12921
12922   if test -z "$CFLAGS"; then
12923         echo ""
12924         echo "********************************************************"
12925         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12926         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12927         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12928         echo "********************************************************"
12929         echo ""
12930         CFLAGS="-O3"
12931   fi
12932
12933   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12935 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12936 if eval \${$as_CACHEVAR+:} false; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939
12940   ax_check_save_flags=$CFLAGS
12941   CFLAGS="$CFLAGS  $CFLAGS"
12942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h.  */
12944
12945 int
12946 main ()
12947 {
12948
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954   eval "$as_CACHEVAR=yes"
12955 else
12956   eval "$as_CACHEVAR=no"
12957 fi
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959   CFLAGS=$ax_check_save_flags
12960 fi
12961 eval ac_res=\$$as_CACHEVAR
12962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12963 $as_echo "$ac_res" >&6; }
12964 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12965   :
12966 else
12967
12968         echo ""
12969         echo "********************************************************"
12970         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12971         echo "* your compiler.                                       *"
12972         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12973         echo "********************************************************"
12974         echo ""
12975         CFLAGS=""
12976
12977 fi
12978
12979
12980 fi
12981
12982 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12983 # compiler.
12984 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12985   if ${CFLAGS+:} false; then :
12986   case " $CFLAGS " in
12987     *"  "*)
12988       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12989   (: CFLAGS already contains ) 2>&5
12990   ac_status=$?
12991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992   test $ac_status = 0; }
12993       ;;
12994     *)
12995       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12996   (: CFLAGS="$CFLAGS ") 2>&5
12997   ac_status=$?
12998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12999   test $ac_status = 0; }
13000       CFLAGS="$CFLAGS "
13001       ;;
13002    esac
13003 else
13004   CFLAGS=""
13005 fi
13006
13007 ac_ext=c
13008 ac_cpp='$CPP $CPPFLAGS'
13009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13014 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13015 if ${ac_cv_cflags_warn_all+:} false; then :
13016   $as_echo_n "(cached) " >&6
13017 else
13018   ac_cv_cflags_warn_all="no, unknown"
13019 ac_save_CFLAGS="$CFLAGS"
13020 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"    #
13021 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h.  */
13024
13025 int
13026 main ()
13027 {
13028
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_c_try_compile "$LINENO"; then :
13034   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13035 fi
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 done
13038 CFLAGS="$ac_save_CFLAGS"
13039
13040 fi
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13042 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13043
13044 case ".$ac_cv_cflags_warn_all" in
13045      .ok|.ok,*)  ;;
13046    .|.no|.no,*)  ;;
13047    *) if ${CFLAGS+:} false; then :
13048   case " $CFLAGS " in
13049     *" $ac_cv_cflags_warn_all "*)
13050       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13051   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13052   ac_status=$?
13053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054   test $ac_status = 0; }
13055       ;;
13056     *)
13057       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13058   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13059   ac_status=$?
13060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13061   test $ac_status = 0; }
13062       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13063       ;;
13064    esac
13065 else
13066   CFLAGS="$ac_cv_cflags_warn_all"
13067 fi
13068  ;;
13069 esac
13070
13071 ac_ext=c
13072 ac_cpp='$CPP $CPPFLAGS'
13073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13076
13077
13078 fi
13079
13080 if test "x$GCC" = "xyes"; then
13081   CFLAGS="$CFLAGS -fexceptions"
13082   touch local.exp
13083 else
13084   cat > local.exp <<EOF
13085 set CC_FOR_TARGET "$CC"
13086 EOF
13087 fi
13088
13089
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13092     # Check whether --enable-maintainer-mode was given.
13093 if test "${enable_maintainer_mode+set}" = set; then :
13094   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13095 else
13096   USE_MAINTAINER_MODE=no
13097 fi
13098
13099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13101    if test $USE_MAINTAINER_MODE = yes; then
13102   MAINTAINER_MODE_TRUE=
13103   MAINTAINER_MODE_FALSE='#'
13104 else
13105   MAINTAINER_MODE_TRUE='#'
13106   MAINTAINER_MODE_FALSE=
13107 fi
13108
13109   MAINT=$MAINTAINER_MODE_TRUE
13110
13111
13112
13113 for ac_header in sys/mman.h
13114 do :
13115   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13116 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13117   cat >>confdefs.h <<_ACEOF
13118 #define HAVE_SYS_MMAN_H 1
13119 _ACEOF
13120
13121 fi
13122
13123 done
13124
13125 for ac_func in mmap
13126 do :
13127   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13128 if test "x$ac_cv_func_mmap" = xyes; then :
13129   cat >>confdefs.h <<_ACEOF
13130 #define HAVE_MMAP 1
13131 _ACEOF
13132
13133 fi
13134 done
13135
13136
13137 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13138 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13139   libffi_header_sys_mman_h=yes
13140 else
13141   libffi_header_sys_mman_h=no
13142 fi
13143
13144
13145 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13146 if test "x$ac_cv_func_mmap" = xyes; then :
13147   libffi_func_mmap=yes
13148 else
13149   libffi_func_mmap=no
13150 fi
13151
13152 if test "$libffi_header_sys_mman_h" != yes \
13153  || test "$libffi_func_mmap" != yes; then
13154    ac_cv_func_mmap_file=no
13155    ac_cv_func_mmap_dev_zero=no
13156    ac_cv_func_mmap_anon=no
13157 else
13158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13159 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13160 if ${ac_cv_func_mmap_file+:} false; then :
13161   $as_echo_n "(cached) " >&6
13162 else
13163   # Add a system to this blacklist if
13164    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13165    # memory area containing the same data that you'd get if you applied
13166    # read() to the same fd.  The only system known to have a problem here
13167    # is VMS, where text files have record structure.
13168    case "$host_os" in
13169      vms* | ultrix*)
13170         ac_cv_func_mmap_file=no ;;
13171      *)
13172         ac_cv_func_mmap_file=yes;;
13173    esac
13174 fi
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13176 $as_echo "$ac_cv_func_mmap_file" >&6; }
13177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13178 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13179 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13180   $as_echo_n "(cached) " >&6
13181 else
13182   # Add a system to this blacklist if it has mmap() but /dev/zero
13183    # does not exist, or if mmapping /dev/zero does not give anonymous
13184    # zeroed pages with both the following properties:
13185    # 1. If you map N consecutive pages in with one call, and then
13186    #    unmap any subset of those pages, the pages that were not
13187    #    explicitly unmapped remain accessible.
13188    # 2. If you map two adjacent blocks of memory and then unmap them
13189    #    both at once, they must both go away.
13190    # Systems known to be in this category are Windows (all variants),
13191    # VMS, and Darwin.
13192    case "$host_os" in
13193      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13194         ac_cv_func_mmap_dev_zero=no ;;
13195      *)
13196         ac_cv_func_mmap_dev_zero=yes;;
13197    esac
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13200 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13201
13202    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13204 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13205 if ${ac_cv_decl_map_anon+:} false; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h.  */
13210 #include <sys/types.h>
13211 #include <sys/mman.h>
13212 #include <unistd.h>
13213
13214 #ifndef MAP_ANONYMOUS
13215 #define MAP_ANONYMOUS MAP_ANON
13216 #endif
13217
13218 int
13219 main ()
13220 {
13221 int n = MAP_ANONYMOUS;
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 if ac_fn_c_try_compile "$LINENO"; then :
13227   ac_cv_decl_map_anon=yes
13228 else
13229   ac_cv_decl_map_anon=no
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 fi
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13234 $as_echo "$ac_cv_decl_map_anon" >&6; }
13235
13236    if test $ac_cv_decl_map_anon = no; then
13237      ac_cv_func_mmap_anon=no
13238    else
13239      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13240 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13241 if ${ac_cv_func_mmap_anon+:} false; then :
13242   $as_echo_n "(cached) " >&6
13243 else
13244   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13245    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13246    # doesn't give anonymous zeroed pages with the same properties listed
13247    # above for use of /dev/zero.
13248    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13249    case "$host_os" in
13250      vms* | cygwin* | pe | mingw* | sco* | udk* )
13251         ac_cv_func_mmap_anon=no ;;
13252      *)
13253         ac_cv_func_mmap_anon=yes;;
13254    esac
13255 fi
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13257 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13258    fi
13259 fi
13260
13261 if test $ac_cv_func_mmap_file = yes; then
13262
13263 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13264
13265 fi
13266 if test $ac_cv_func_mmap_dev_zero = yes; then
13267
13268 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13269
13270 fi
13271 if test $ac_cv_func_mmap_anon = yes; then
13272
13273 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13274
13275 fi
13276
13277
13278  if test -d $srcdir/testsuite; then
13279   TESTSUBDIR_TRUE=
13280   TESTSUBDIR_FALSE='#'
13281 else
13282   TESTSUBDIR_TRUE='#'
13283   TESTSUBDIR_FALSE=
13284 fi
13285
13286
13287 TARGETDIR="unknown"
13288
13289 case "$host" in
13290   aarch64*-*-*)
13291         TARGET=AARCH64; TARGETDIR=aarch64
13292         ;;
13293
13294   alpha*-*-*)
13295         TARGET=ALPHA; TARGETDIR=alpha;
13296         # Support 128-bit long double, changeable via command-line switch.
13297         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13298         ;;
13299
13300   arm*-*-*)
13301         TARGET=ARM; TARGETDIR=arm
13302         ;;
13303
13304   amd64-*-freebsd* | amd64-*-openbsd*)
13305         TARGET=X86_64; TARGETDIR=x86
13306         ;;
13307
13308   amd64-*-freebsd*)
13309         TARGET=X86_64; TARGETDIR=x86
13310         ;;
13311
13312   amd64-*-freebsd*)
13313         TARGET=X86_64; TARGETDIR=x86
13314         ;;
13315
13316   avr32*-*-*)
13317         TARGET=AVR32; TARGETDIR=avr32
13318         ;;
13319
13320   bfin*)
13321         TARGET=BFIN; TARGETDIR=bfin
13322         ;;
13323
13324   cris-*-*)
13325         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13326         ;;
13327
13328   frv-*-*)
13329         TARGET=FRV; TARGETDIR=frv
13330         ;;
13331
13332   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13333         TARGET=PA_LINUX; TARGETDIR=pa
13334         ;;
13335   hppa*64-*-hpux*)
13336         TARGET=PA64_HPUX; TARGETDIR=pa
13337         ;;
13338   hppa*-*-hpux*)
13339         TARGET=PA_HPUX; TARGETDIR=pa
13340         ;;
13341
13342   i?86-*-freebsd* | i?86-*-openbsd*)
13343         TARGET=X86_FREEBSD; TARGETDIR=x86
13344         ;;
13345   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13346         TARGET=X86_WIN32; TARGETDIR=x86
13347         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13348         # We must also check with_cross_host to decide if this is a native
13349         # or cross-build and select where to install dlls appropriately.
13350         if test -n "$with_cross_host" &&
13351            test x"$with_cross_host" != x"no"; then
13352           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13353         else
13354           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13355         fi
13356         ;;
13357   i?86-*-darwin*)
13358         TARGET=X86_DARWIN; TARGETDIR=x86
13359         ;;
13360   i?86-*-solaris2.1[0-9]*)
13361         TARGETDIR=x86
13362         if test $ac_cv_sizeof_size_t = 4; then
13363           TARGET=X86;
13364         else
13365           TARGET=X86_64;
13366         fi
13367         ;;
13368
13369   x86_64-*-darwin12.2.0)
13370         TARGET=X86_DARWIN; TARGETDIR=x86
13371         ;;
13372
13373   x86_64-*-cygwin* | x86_64-*-mingw*)
13374         TARGET=X86_WIN64; TARGETDIR=x86
13375         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13376         # We must also check with_cross_host to decide if this is a native
13377         # or cross-build and select where to install dlls appropriately.
13378         if test -n "$with_cross_host" &&
13379            test x"$with_cross_host" != x"no"; then
13380           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13381         else
13382           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13383         fi
13384         ;;
13385
13386   i?86-*-* | x86_64-*-*)
13387         TARGETDIR=x86
13388         if test $ac_cv_sizeof_size_t = 4; then
13389           TARGET=X86;
13390         else
13391           TARGET=X86_64;
13392         fi
13393         ;;
13394
13395   ia64*-*-*)
13396         TARGET=IA64; TARGETDIR=ia64
13397         ;;
13398
13399   m32r*-*-*)
13400         TARGET=M32R; TARGETDIR=m32r
13401         ;;
13402
13403   m68k-*-*)
13404         TARGET=M68K; TARGETDIR=m68k
13405         ;;
13406
13407   microblaze*-*-*)
13408         TARGET=MICROBLAZE; TARGETDIR=microblaze
13409         ;;
13410
13411   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13412         TARGET=MIPS; TARGETDIR=mips
13413         ;;
13414   mips*-*-linux* | mips*-*-openbsd*)
13415         # Support 128-bit long double for NewABI.
13416         HAVE_LONG_DOUBLE='defined(__mips64)'
13417         TARGET=MIPS; TARGETDIR=mips
13418         ;;
13419
13420   powerpc*-*-linux* | powerpc-*-sysv*)
13421         TARGET=POWERPC; TARGETDIR=powerpc
13422         ;;
13423   powerpc-*-amigaos*)
13424         TARGET=POWERPC; TARGETDIR=powerpc
13425         ;;
13426   powerpc-*-beos*)
13427         TARGET=POWERPC; TARGETDIR=powerpc
13428         ;;
13429   powerpc-*-darwin* | powerpc64-*-darwin*)
13430         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13431         ;;
13432   powerpc-*-aix* | rs6000-*-aix*)
13433         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13434         ;;
13435   powerpc-*-freebsd* | powerpc-*-openbsd*)
13436         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13437         ;;
13438   powerpc64-*-freebsd*)
13439         TARGET=POWERPC; TARGETDIR=powerpc
13440         ;;
13441   powerpc*-*-rtems*)
13442         TARGET=POWERPC; TARGETDIR=powerpc
13443         ;;
13444
13445   s390-*-* | s390x-*-*)
13446         TARGET=S390; TARGETDIR=s390
13447         ;;
13448
13449   sh-*-* | sh[34]*-*-*)
13450         TARGET=SH; TARGETDIR=sh
13451         ;;
13452   sh64-*-* | sh5*-*-*)
13453         TARGET=SH64; TARGETDIR=sh64
13454         ;;
13455
13456   sparc*-*-*)
13457         TARGET=SPARC; TARGETDIR=sparc
13458         ;;
13459
13460   tile*-*)
13461         TARGET=TILE; TARGETDIR=tile
13462         ;;
13463
13464   xtensa*-*)
13465         TARGET=XTENSA; TARGETDIR=xtensa
13466         ;;
13467
13468 esac
13469
13470
13471
13472
13473 if test $TARGETDIR = unknown; then
13474   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13475 fi
13476
13477  if test x$TARGET = xMIPS; then
13478   MIPS_TRUE=
13479   MIPS_FALSE='#'
13480 else
13481   MIPS_TRUE='#'
13482   MIPS_FALSE=
13483 fi
13484
13485  if test x$TARGET = xBFIN; then
13486   BFIN_TRUE=
13487   BFIN_FALSE='#'
13488 else
13489   BFIN_TRUE='#'
13490   BFIN_FALSE=
13491 fi
13492
13493  if test x$TARGET = xSPARC; then
13494   SPARC_TRUE=
13495   SPARC_FALSE='#'
13496 else
13497   SPARC_TRUE='#'
13498   SPARC_FALSE=
13499 fi
13500
13501  if test x$TARGET = xX86; then
13502   X86_TRUE=
13503   X86_FALSE='#'
13504 else
13505   X86_TRUE='#'
13506   X86_FALSE=
13507 fi
13508
13509  if test x$TARGET = xX86_FREEBSD; then
13510   X86_FREEBSD_TRUE=
13511   X86_FREEBSD_FALSE='#'
13512 else
13513   X86_FREEBSD_TRUE='#'
13514   X86_FREEBSD_FALSE=
13515 fi
13516
13517  if test x$TARGET = xX86_WIN32; then
13518   X86_WIN32_TRUE=
13519   X86_WIN32_FALSE='#'
13520 else
13521   X86_WIN32_TRUE='#'
13522   X86_WIN32_FALSE=
13523 fi
13524
13525  if test x$TARGET = xX86_WIN64; then
13526   X86_WIN64_TRUE=
13527   X86_WIN64_FALSE='#'
13528 else
13529   X86_WIN64_TRUE='#'
13530   X86_WIN64_FALSE=
13531 fi
13532
13533  if test x$TARGET = xX86_DARWIN; then
13534   X86_DARWIN_TRUE=
13535   X86_DARWIN_FALSE='#'
13536 else
13537   X86_DARWIN_TRUE='#'
13538   X86_DARWIN_FALSE=
13539 fi
13540
13541  if test x$TARGET = xALPHA; then
13542   ALPHA_TRUE=
13543   ALPHA_FALSE='#'
13544 else
13545   ALPHA_TRUE='#'
13546   ALPHA_FALSE=
13547 fi
13548
13549  if test x$TARGET = xIA64; then
13550   IA64_TRUE=
13551   IA64_FALSE='#'
13552 else
13553   IA64_TRUE='#'
13554   IA64_FALSE=
13555 fi
13556
13557  if test x$TARGET = xM32R; then
13558   M32R_TRUE=
13559   M32R_FALSE='#'
13560 else
13561   M32R_TRUE='#'
13562   M32R_FALSE=
13563 fi
13564
13565  if test x$TARGET = xM68K; then
13566   M68K_TRUE=
13567   M68K_FALSE='#'
13568 else
13569   M68K_TRUE='#'
13570   M68K_FALSE=
13571 fi
13572
13573  if test x$TARGET = xMICROBLAZE; then
13574   MICROBLAZE_TRUE=
13575   MICROBLAZE_FALSE='#'
13576 else
13577   MICROBLAZE_TRUE='#'
13578   MICROBLAZE_FALSE=
13579 fi
13580
13581  if test x$TARGET = xMOXIE; then
13582   MOXIE_TRUE=
13583   MOXIE_FALSE='#'
13584 else
13585   MOXIE_TRUE='#'
13586   MOXIE_FALSE=
13587 fi
13588
13589  if test x$TARGET = xPOWERPC; then
13590   POWERPC_TRUE=
13591   POWERPC_FALSE='#'
13592 else
13593   POWERPC_TRUE='#'
13594   POWERPC_FALSE=
13595 fi
13596
13597  if test x$TARGET = xPOWERPC_AIX; then
13598   POWERPC_AIX_TRUE=
13599   POWERPC_AIX_FALSE='#'
13600 else
13601   POWERPC_AIX_TRUE='#'
13602   POWERPC_AIX_FALSE=
13603 fi
13604
13605  if test x$TARGET = xPOWERPC_DARWIN; then
13606   POWERPC_DARWIN_TRUE=
13607   POWERPC_DARWIN_FALSE='#'
13608 else
13609   POWERPC_DARWIN_TRUE='#'
13610   POWERPC_DARWIN_FALSE=
13611 fi
13612
13613  if test x$TARGET = xPOWERPC_FREEBSD; then
13614   POWERPC_FREEBSD_TRUE=
13615   POWERPC_FREEBSD_FALSE='#'
13616 else
13617   POWERPC_FREEBSD_TRUE='#'
13618   POWERPC_FREEBSD_FALSE=
13619 fi
13620
13621  if test x$TARGET = xAARCH64; then
13622   AARCH64_TRUE=
13623   AARCH64_FALSE='#'
13624 else
13625   AARCH64_TRUE='#'
13626   AARCH64_FALSE=
13627 fi
13628
13629  if test x$TARGET = xARM; then
13630   ARM_TRUE=
13631   ARM_FALSE='#'
13632 else
13633   ARM_TRUE='#'
13634   ARM_FALSE=
13635 fi
13636
13637  if test x$TARGET = xAVR32; then
13638   AVR32_TRUE=
13639   AVR32_FALSE='#'
13640 else
13641   AVR32_TRUE='#'
13642   AVR32_FALSE=
13643 fi
13644
13645  if test x$TARGET = xLIBFFI_CRIS; then
13646   LIBFFI_CRIS_TRUE=
13647   LIBFFI_CRIS_FALSE='#'
13648 else
13649   LIBFFI_CRIS_TRUE='#'
13650   LIBFFI_CRIS_FALSE=
13651 fi
13652
13653  if test x$TARGET = xFRV; then
13654   FRV_TRUE=
13655   FRV_FALSE='#'
13656 else
13657   FRV_TRUE='#'
13658   FRV_FALSE=
13659 fi
13660
13661  if test x$TARGET = xS390; then
13662   S390_TRUE=
13663   S390_FALSE='#'
13664 else
13665   S390_TRUE='#'
13666   S390_FALSE=
13667 fi
13668
13669  if test x$TARGET = xX86_64; then
13670   X86_64_TRUE=
13671   X86_64_FALSE='#'
13672 else
13673   X86_64_TRUE='#'
13674   X86_64_FALSE=
13675 fi
13676
13677  if test x$TARGET = xSH; then
13678   SH_TRUE=
13679   SH_FALSE='#'
13680 else
13681   SH_TRUE='#'
13682   SH_FALSE=
13683 fi
13684
13685  if test x$TARGET = xSH64; then
13686   SH64_TRUE=
13687   SH64_FALSE='#'
13688 else
13689   SH64_TRUE='#'
13690   SH64_FALSE=
13691 fi
13692
13693  if test x$TARGET = xPA_LINUX; then
13694   PA_LINUX_TRUE=
13695   PA_LINUX_FALSE='#'
13696 else
13697   PA_LINUX_TRUE='#'
13698   PA_LINUX_FALSE=
13699 fi
13700
13701  if test x$TARGET = xPA_HPUX; then
13702   PA_HPUX_TRUE=
13703   PA_HPUX_FALSE='#'
13704 else
13705   PA_HPUX_TRUE='#'
13706   PA_HPUX_FALSE=
13707 fi
13708
13709  if test x$TARGET = xPA64_HPUX; then
13710   PA64_HPUX_TRUE=
13711   PA64_HPUX_FALSE='#'
13712 else
13713   PA64_HPUX_TRUE='#'
13714   PA64_HPUX_FALSE=
13715 fi
13716
13717  if test x$TARGET = xTILE; then
13718   TILE_TRUE=
13719   TILE_FALSE='#'
13720 else
13721   TILE_TRUE='#'
13722   TILE_FALSE=
13723 fi
13724
13725  if test x$TARGET = xXTENSA; then
13726   XTENSA_TRUE=
13727   XTENSA_FALSE='#'
13728 else
13729   XTENSA_TRUE='#'
13730   XTENSA_FALSE=
13731 fi
13732
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13735 $as_echo_n "checking for ANSI C header files... " >&6; }
13736 if ${ac_cv_header_stdc+:} false; then :
13737   $as_echo_n "(cached) " >&6
13738 else
13739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h.  */
13741 #include <stdlib.h>
13742 #include <stdarg.h>
13743 #include <string.h>
13744 #include <float.h>
13745
13746 int
13747 main ()
13748 {
13749
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 if ac_fn_c_try_compile "$LINENO"; then :
13755   ac_cv_header_stdc=yes
13756 else
13757   ac_cv_header_stdc=no
13758 fi
13759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760
13761 if test $ac_cv_header_stdc = yes; then
13762   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h.  */
13765 #include <string.h>
13766
13767 _ACEOF
13768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13769   $EGREP "memchr" >/dev/null 2>&1; then :
13770
13771 else
13772   ac_cv_header_stdc=no
13773 fi
13774 rm -f conftest*
13775
13776 fi
13777
13778 if test $ac_cv_header_stdc = yes; then
13779   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h.  */
13782 #include <stdlib.h>
13783
13784 _ACEOF
13785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13786   $EGREP "free" >/dev/null 2>&1; then :
13787
13788 else
13789   ac_cv_header_stdc=no
13790 fi
13791 rm -f conftest*
13792
13793 fi
13794
13795 if test $ac_cv_header_stdc = yes; then
13796   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13797   if test "$cross_compiling" = yes; then :
13798   :
13799 else
13800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h.  */
13802 #include <ctype.h>
13803 #include <stdlib.h>
13804 #if ((' ' & 0x0FF) == 0x020)
13805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13807 #else
13808 # define ISLOWER(c) \
13809                    (('a' <= (c) && (c) <= 'i') \
13810                      || ('j' <= (c) && (c) <= 'r') \
13811                      || ('s' <= (c) && (c) <= 'z'))
13812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13813 #endif
13814
13815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13816 int
13817 main ()
13818 {
13819   int i;
13820   for (i = 0; i < 256; i++)
13821     if (XOR (islower (i), ISLOWER (i))
13822         || toupper (i) != TOUPPER (i))
13823       return 2;
13824   return 0;
13825 }
13826 _ACEOF
13827 if ac_fn_c_try_run "$LINENO"; then :
13828
13829 else
13830   ac_cv_header_stdc=no
13831 fi
13832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13833   conftest.$ac_objext conftest.beam conftest.$ac_ext
13834 fi
13835
13836 fi
13837 fi
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13839 $as_echo "$ac_cv_header_stdc" >&6; }
13840 if test $ac_cv_header_stdc = yes; then
13841
13842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13843
13844 fi
13845
13846 for ac_func in memcpy
13847 do :
13848   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13849 if test "x$ac_cv_func_memcpy" = xyes; then :
13850   cat >>confdefs.h <<_ACEOF
13851 #define HAVE_MEMCPY 1
13852 _ACEOF
13853
13854 fi
13855 done
13856
13857 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13858 if test "x$ac_cv_type_size_t" = xyes; then :
13859
13860 else
13861
13862 cat >>confdefs.h <<_ACEOF
13863 #define size_t unsigned int
13864 _ACEOF
13865
13866 fi
13867
13868 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13869 # for constant arguments.  Useless!
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13871 $as_echo_n "checking for working alloca.h... " >&6; }
13872 if ${ac_cv_working_alloca_h+:} false; then :
13873   $as_echo_n "(cached) " >&6
13874 else
13875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h.  */
13877 #include <alloca.h>
13878 int
13879 main ()
13880 {
13881 char *p = (char *) alloca (2 * sizeof (int));
13882                           if (p) return 0;
13883   ;
13884   return 0;
13885 }
13886 _ACEOF
13887 if ac_fn_c_try_link "$LINENO"; then :
13888   ac_cv_working_alloca_h=yes
13889 else
13890   ac_cv_working_alloca_h=no
13891 fi
13892 rm -f core conftest.err conftest.$ac_objext \
13893     conftest$ac_exeext conftest.$ac_ext
13894 fi
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13896 $as_echo "$ac_cv_working_alloca_h" >&6; }
13897 if test $ac_cv_working_alloca_h = yes; then
13898
13899 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13900
13901 fi
13902
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13904 $as_echo_n "checking for alloca... " >&6; }
13905 if ${ac_cv_func_alloca_works+:} false; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h.  */
13910 #ifdef __GNUC__
13911 # define alloca __builtin_alloca
13912 #else
13913 # ifdef _MSC_VER
13914 #  include <malloc.h>
13915 #  define alloca _alloca
13916 # else
13917 #  ifdef HAVE_ALLOCA_H
13918 #   include <alloca.h>
13919 #  else
13920 #   ifdef _AIX
13921  #pragma alloca
13922 #   else
13923 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13924 void *alloca (size_t);
13925 #    endif
13926 #   endif
13927 #  endif
13928 # endif
13929 #endif
13930
13931 int
13932 main ()
13933 {
13934 char *p = (char *) alloca (1);
13935                                     if (p) return 0;
13936   ;
13937   return 0;
13938 }
13939 _ACEOF
13940 if ac_fn_c_try_link "$LINENO"; then :
13941   ac_cv_func_alloca_works=yes
13942 else
13943   ac_cv_func_alloca_works=no
13944 fi
13945 rm -f core conftest.err conftest.$ac_objext \
13946     conftest$ac_exeext conftest.$ac_ext
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13949 $as_echo "$ac_cv_func_alloca_works" >&6; }
13950
13951 if test $ac_cv_func_alloca_works = yes; then
13952
13953 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13954
13955 else
13956   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13957 # that cause trouble.  Some versions do not even contain alloca or
13958 # contain a buggy version.  If you still want to use their alloca,
13959 # use ar to extract alloca.o from them instead of compiling alloca.c.
13960
13961 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13962
13963 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13964
13965
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13967 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13968 if ${ac_cv_os_cray+:} false; then :
13969   $as_echo_n "(cached) " >&6
13970 else
13971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h.  */
13973 #if defined CRAY && ! defined CRAY2
13974 webecray
13975 #else
13976 wenotbecray
13977 #endif
13978
13979 _ACEOF
13980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13981   $EGREP "webecray" >/dev/null 2>&1; then :
13982   ac_cv_os_cray=yes
13983 else
13984   ac_cv_os_cray=no
13985 fi
13986 rm -f conftest*
13987
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13990 $as_echo "$ac_cv_os_cray" >&6; }
13991 if test $ac_cv_os_cray = yes; then
13992   for ac_func in _getb67 GETB67 getb67; do
13993     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13995 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13996
13997 cat >>confdefs.h <<_ACEOF
13998 #define CRAY_STACKSEG_END $ac_func
13999 _ACEOF
14000
14001     break
14002 fi
14003
14004   done
14005 fi
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14008 $as_echo_n "checking stack direction for C alloca... " >&6; }
14009 if ${ac_cv_c_stack_direction+:} false; then :
14010   $as_echo_n "(cached) " >&6
14011 else
14012   if test "$cross_compiling" = yes; then :
14013   ac_cv_c_stack_direction=0
14014 else
14015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h.  */
14017 $ac_includes_default
14018 int
14019 find_stack_direction (int *addr, int depth)
14020 {
14021   int dir, dummy = 0;
14022   if (! addr)
14023     addr = &dummy;
14024   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14025   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14026   return dir + dummy;
14027 }
14028
14029 int
14030 main (int argc, char **argv)
14031 {
14032   return find_stack_direction (0, argc + !argv + 20) < 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_run "$LINENO"; then :
14036   ac_cv_c_stack_direction=1
14037 else
14038   ac_cv_c_stack_direction=-1
14039 fi
14040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14041   conftest.$ac_objext conftest.beam conftest.$ac_ext
14042 fi
14043
14044 fi
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14046 $as_echo "$ac_cv_c_stack_direction" >&6; }
14047 cat >>confdefs.h <<_ACEOF
14048 #define STACK_DIRECTION $ac_cv_c_stack_direction
14049 _ACEOF
14050
14051
14052 fi
14053
14054
14055 # The cast to long int works around a bug in the HP C Compiler
14056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14058 # This bug is HP SR number 8606223364.
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14060 $as_echo_n "checking size of double... " >&6; }
14061 if ${ac_cv_sizeof_double+:} false; then :
14062   $as_echo_n "(cached) " >&6
14063 else
14064   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14065
14066 else
14067   if test "$ac_cv_type_double" = yes; then
14068      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14070 as_fn_error 77 "cannot compute sizeof (double)
14071 See \`config.log' for more details" "$LINENO" 5; }
14072    else
14073      ac_cv_sizeof_double=0
14074    fi
14075 fi
14076
14077 fi
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14079 $as_echo "$ac_cv_sizeof_double" >&6; }
14080
14081
14082
14083 cat >>confdefs.h <<_ACEOF
14084 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14085 _ACEOF
14086
14087
14088 # The cast to long int works around a bug in the HP C Compiler
14089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14091 # This bug is HP SR number 8606223364.
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14093 $as_echo_n "checking size of long double... " >&6; }
14094 if ${ac_cv_sizeof_long_double+:} false; then :
14095   $as_echo_n "(cached) " >&6
14096 else
14097   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14098
14099 else
14100   if test "$ac_cv_type_long_double" = yes; then
14101      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14103 as_fn_error 77 "cannot compute sizeof (long double)
14104 See \`config.log' for more details" "$LINENO" 5; }
14105    else
14106      ac_cv_sizeof_long_double=0
14107    fi
14108 fi
14109
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14112 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14113
14114
14115
14116 cat >>confdefs.h <<_ACEOF
14117 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14118 _ACEOF
14119
14120
14121
14122 # Also AC_SUBST this variable for ffi.h.
14123 if test -z "$HAVE_LONG_DOUBLE"; then
14124   HAVE_LONG_DOUBLE=0
14125   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14126     if test $ac_cv_sizeof_long_double != 0; then
14127       HAVE_LONG_DOUBLE=1
14128
14129 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14130
14131     fi
14132   fi
14133 fi
14134
14135
14136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14137 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14138 if ${ac_cv_c_bigendian+:} false; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   ac_cv_c_bigendian=unknown
14142     # See if we're dealing with a universal compiler.
14143     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h.  */
14145 #ifndef __APPLE_CC__
14146                not a universal capable compiler
14147              #endif
14148              typedef int dummy;
14149
14150 _ACEOF
14151 if ac_fn_c_try_compile "$LINENO"; then :
14152
14153         # Check for potential -arch flags.  It is not universal unless
14154         # there are at least two -arch flags with different values.
14155         ac_arch=
14156         ac_prev=
14157         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14158          if test -n "$ac_prev"; then
14159            case $ac_word in
14160              i?86 | x86_64 | ppc | ppc64)
14161                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14162                  ac_arch=$ac_word
14163                else
14164                  ac_cv_c_bigendian=universal
14165                  break
14166                fi
14167                ;;
14168            esac
14169            ac_prev=
14170          elif test "x$ac_word" = "x-arch"; then
14171            ac_prev=arch
14172          fi
14173        done
14174 fi
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176     if test $ac_cv_c_bigendian = unknown; then
14177       # See if sys/param.h defines the BYTE_ORDER macro.
14178       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h.  */
14180 #include <sys/types.h>
14181              #include <sys/param.h>
14182
14183 int
14184 main ()
14185 {
14186 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14187                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14188                      && LITTLE_ENDIAN)
14189               bogus endian macros
14190              #endif
14191
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 if ac_fn_c_try_compile "$LINENO"; then :
14197   # It does; now see whether it defined to BIG_ENDIAN or not.
14198          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h.  */
14200 #include <sys/types.h>
14201                 #include <sys/param.h>
14202
14203 int
14204 main ()
14205 {
14206 #if BYTE_ORDER != BIG_ENDIAN
14207                  not big endian
14208                 #endif
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 if ac_fn_c_try_compile "$LINENO"; then :
14215   ac_cv_c_bigendian=yes
14216 else
14217   ac_cv_c_bigendian=no
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222     fi
14223     if test $ac_cv_c_bigendian = unknown; then
14224       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14225       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h.  */
14227 #include <limits.h>
14228
14229 int
14230 main ()
14231 {
14232 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14233               bogus endian macros
14234              #endif
14235
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 if ac_fn_c_try_compile "$LINENO"; then :
14241   # It does; now see whether it defined to _BIG_ENDIAN or not.
14242          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h.  */
14244 #include <limits.h>
14245
14246 int
14247 main ()
14248 {
14249 #ifndef _BIG_ENDIAN
14250                  not big endian
14251                 #endif
14252
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 if ac_fn_c_try_compile "$LINENO"; then :
14258   ac_cv_c_bigendian=yes
14259 else
14260   ac_cv_c_bigendian=no
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265     fi
14266     if test $ac_cv_c_bigendian = unknown; then
14267       # Compile a test program.
14268       if test "$cross_compiling" = yes; then :
14269   # Try to guess by grepping values from an object file.
14270          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h.  */
14272 short int ascii_mm[] =
14273                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14274                 short int ascii_ii[] =
14275                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14276                 int use_ascii (int i) {
14277                   return ascii_mm[i] + ascii_ii[i];
14278                 }
14279                 short int ebcdic_ii[] =
14280                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14281                 short int ebcdic_mm[] =
14282                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14283                 int use_ebcdic (int i) {
14284                   return ebcdic_mm[i] + ebcdic_ii[i];
14285                 }
14286                 extern int foo;
14287
14288 int
14289 main ()
14290 {
14291 return use_ascii (foo) == use_ebcdic (foo);
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_compile "$LINENO"; then :
14297   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14298               ac_cv_c_bigendian=yes
14299             fi
14300             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14301               if test "$ac_cv_c_bigendian" = unknown; then
14302                 ac_cv_c_bigendian=no
14303               else
14304                 # finding both strings is unlikely to happen, but who knows?
14305                 ac_cv_c_bigendian=unknown
14306               fi
14307             fi
14308 fi
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 else
14311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h.  */
14313 $ac_includes_default
14314 int
14315 main ()
14316 {
14317
14318              /* Are we little or big endian?  From Harbison&Steele.  */
14319              union
14320              {
14321                long int l;
14322                char c[sizeof (long int)];
14323              } u;
14324              u.l = 1;
14325              return u.c[sizeof (long int) - 1] == 1;
14326
14327   ;
14328   return 0;
14329 }
14330 _ACEOF
14331 if ac_fn_c_try_run "$LINENO"; then :
14332   ac_cv_c_bigendian=no
14333 else
14334   ac_cv_c_bigendian=yes
14335 fi
14336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14337   conftest.$ac_objext conftest.beam conftest.$ac_ext
14338 fi
14339
14340     fi
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14343 $as_echo "$ac_cv_c_bigendian" >&6; }
14344  case $ac_cv_c_bigendian in #(
14345    yes)
14346      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14347 ;; #(
14348    no)
14349       ;; #(
14350    universal)
14351
14352 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14353
14354      ;; #(
14355    *)
14356      as_fn_error $? "unknown endianness
14357  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14358  esac
14359
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14362 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14363 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14364   $as_echo_n "(cached) " >&6
14365 else
14366
14367     gcc_cv_as_cfi_pseudo_op=unknown
14368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h.  */
14370 asm (".cfi_startproc\n\t.cfi_endproc");
14371 int
14372 main ()
14373 {
14374
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_c_try_compile "$LINENO"; then :
14380   gcc_cv_as_cfi_pseudo_op=yes
14381 else
14382   gcc_cv_as_cfi_pseudo_op=no
14383 fi
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385
14386 fi
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14388 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14389  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14390
14391 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14392
14393  fi
14394
14395
14396 if test x$TARGET = xSPARC; then
14397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14398 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14399 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14400   $as_echo_n "(cached) " >&6
14401 else
14402
14403         save_CFLAGS="$CFLAGS"
14404         save_LDFLAGS="$LDFLAGS"
14405         CFLAGS="$CFLAGS -fpic"
14406         LDFLAGS="$LDFLAGS -shared"
14407         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h.  */
14409 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14410 int
14411 main ()
14412 {
14413
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_link "$LINENO"; then :
14419   libffi_cv_as_sparc_ua_pcrel=yes
14420 else
14421   libffi_cv_as_sparc_ua_pcrel=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext \
14424     conftest$ac_exeext conftest.$ac_ext
14425         CFLAGS="$save_CFLAGS"
14426         LDFLAGS="$save_LDFLAGS"
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14429 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14430     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14431
14432 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14433
14434     fi
14435
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14437 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14438 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441
14442        libffi_cv_as_register_pseudo_op=unknown
14443        # Check if we have .register
14444        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h.  */
14446 asm (".register %g2, #scratch");
14447 int
14448 main ()
14449 {
14450
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 if ac_fn_c_try_compile "$LINENO"; then :
14456   libffi_cv_as_register_pseudo_op=yes
14457 else
14458   libffi_cv_as_register_pseudo_op=no
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14464 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14465     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14466
14467 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14468
14469     fi
14470 fi
14471
14472 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14474 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14475 if ${libffi_cv_as_x86_pcrel+:} false; then :
14476   $as_echo_n "(cached) " >&6
14477 else
14478
14479         libffi_cv_as_x86_pcrel=no
14480         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14481         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14482             libffi_cv_as_x86_pcrel=yes
14483         fi
14484
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14487 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14488     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14489
14490 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14491
14492     fi
14493
14494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14495 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14496 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14497   $as_echo_n "(cached) " >&6
14498 else
14499
14500        libffi_cv_as_ascii_pseudo_op=unknown
14501        # Check if we have .ascii
14502        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h.  */
14504 asm (".ascii \\"string\\"");
14505 int
14506 main ()
14507 {
14508
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514   libffi_cv_as_ascii_pseudo_op=yes
14515 else
14516   libffi_cv_as_ascii_pseudo_op=no
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519
14520 fi
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14522 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14523     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14524
14525 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14526
14527     fi
14528
14529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14530 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14531 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534
14535        libffi_cv_as_string_pseudo_op=unknown
14536        # Check if we have .string
14537        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h.  */
14539 asm (".string \\"string\\"");
14540 int
14541 main ()
14542 {
14543
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549   libffi_cv_as_string_pseudo_op=yes
14550 else
14551   libffi_cv_as_string_pseudo_op=no
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14557 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14558     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14559
14560 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14561
14562     fi
14563 fi
14564
14565 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14566 # Check whether --enable-pax_emutramp was given.
14567 if test "${enable_pax_emutramp+set}" = set; then :
14568   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14569
14570 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14571
14572   fi
14573 fi
14574
14575
14576 if test x$TARGET = xX86_WIN64; then
14577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14578 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14579 if ${lt_cv_sys_symbol_underscore+:} false; then :
14580   $as_echo_n "(cached) " >&6
14581 else
14582   lt_cv_sys_symbol_underscore=no
14583   cat > conftest.$ac_ext <<_LT_EOF
14584 void nm_test_func(){}
14585 int main(){nm_test_func;return 0;}
14586 _LT_EOF
14587   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588   (eval $ac_compile) 2>&5
14589   ac_status=$?
14590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591   test $ac_status = 0; }; then
14592     # Now try to grab the symbols.
14593     ac_nlist=conftest.nm
14594     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14595   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14596   ac_status=$?
14597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598   test $ac_status = 0; } && test -s "$ac_nlist"; then
14599       # See whether the symbols have a leading underscore.
14600       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14601         lt_cv_sys_symbol_underscore=yes
14602       else
14603         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14604           :
14605         else
14606           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14607         fi
14608       fi
14609     else
14610       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14611     fi
14612   else
14613     echo "configure: failed program was:" >&5
14614     cat conftest.c >&5
14615   fi
14616   rm -rf conftest*
14617
14618 fi
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14620 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14621   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14622
14623
14624     if test "x$sys_symbol_underscore" = xyes; then
14625
14626 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14627
14628     fi
14629 fi
14630
14631 FFI_EXEC_TRAMPOLINE_TABLE=0
14632 case "$target" in
14633      *arm*-apple-darwin*)
14634        FFI_EXEC_TRAMPOLINE_TABLE=1
14635
14636 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14637
14638      ;;
14639      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14640
14641 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14642
14643      ;;
14644 esac
14645  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14646   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14647   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14648 else
14649   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14650   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14651 fi
14652
14653
14654
14655 if test x$TARGET = xX86_64; then
14656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14657 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14658 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14659   $as_echo_n "(cached) " >&6
14660 else
14661
14662         libffi_cv_as_x86_64_unwind_section_type=yes
14663         echo '.section .eh_frame,"a",@unwind' > conftest.s
14664         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14665             libffi_cv_as_x86_64_unwind_section_type=no
14666         fi
14667
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14670 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14671     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14672
14673 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14674
14675     fi
14676 fi
14677
14678 if test "x$GCC" = "xyes"; then
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14680 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14681 if ${libffi_cv_ro_eh_frame+:} false; then :
14682   $as_echo_n "(cached) " >&6
14683 else
14684
14685         libffi_cv_ro_eh_frame=no
14686         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14687         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14688             objdump -h conftest.o > conftest.dump 2>&1
14689             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14690             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14691             sed -n $libffi_test_line conftest.dump > conftest.line
14692             if grep READONLY conftest.line > /dev/null; then
14693                 libffi_cv_ro_eh_frame=yes
14694             fi
14695         fi
14696         rm -f conftest.*
14697
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14700 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14701   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14702
14703 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14704
14705
14706 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14707
14708   else
14709
14710 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14711
14712   fi
14713
14714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14715 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14716 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14717   $as_echo_n "(cached) " >&6
14718 else
14719
14720         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14721         libffi_cv_hidden_visibility_attribute=no
14722         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14723   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14724   (eval $ac_try) 2>&5
14725   ac_status=$?
14726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14727   test $ac_status = 0; }; }; then
14728             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14729                 libffi_cv_hidden_visibility_attribute=yes
14730             fi
14731         fi
14732         rm -f conftest.*
14733
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14736 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14737   if test $libffi_cv_hidden_visibility_attribute = yes; then
14738
14739 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14740
14741   fi
14742 fi
14743
14744
14745
14746
14747
14748
14749
14750
14751 # Check whether --enable-debug was given.
14752 if test "${enable_debug+set}" = set; then :
14753   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14754
14755 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14756
14757   fi
14758 fi
14759
14760  if test "$enable_debug" = "yes"; then
14761   FFI_DEBUG_TRUE=
14762   FFI_DEBUG_FALSE='#'
14763 else
14764   FFI_DEBUG_TRUE='#'
14765   FFI_DEBUG_FALSE=
14766 fi
14767
14768
14769 # Check whether --enable-structs was given.
14770 if test "${enable_structs+set}" = set; then :
14771   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14772
14773 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14774
14775   fi
14776 fi
14777
14778  if test "$enable_debug" = "yes"; then
14779   FFI_DEBUG_TRUE=
14780   FFI_DEBUG_FALSE='#'
14781 else
14782   FFI_DEBUG_TRUE='#'
14783   FFI_DEBUG_FALSE=
14784 fi
14785
14786
14787 # Check whether --enable-raw-api was given.
14788 if test "${enable_raw_api+set}" = set; then :
14789   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14790
14791 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14792
14793   fi
14794 fi
14795
14796
14797 # Check whether --enable-purify-safety was given.
14798 if test "${enable_purify_safety+set}" = set; then :
14799   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14800
14801 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14802
14803   fi
14804 fi
14805
14806
14807 # These variables are only ever used when we cross-build to X86_WIN32.
14808 # And we only support this with GCC, so...
14809 if test x"$GCC" != x"no"; then
14810   if test -n "$with_cross_host" &&
14811      test x"$with_cross_host" != x"no"; then
14812     toolexecdir='$(exec_prefix)/$(target_alias)'
14813     toolexeclibdir='$(toolexecdir)/lib'
14814   else
14815     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14816     toolexeclibdir='$(libdir)'
14817   fi
14818   multi_os_directory=`$CC -print-multi-os-directory`
14819   case $multi_os_directory in
14820     .) ;; # Avoid trailing /.
14821     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14822   esac
14823
14824
14825 fi
14826
14827 ac_config_commands="$ac_config_commands include"
14828
14829 ac_config_commands="$ac_config_commands src"
14830
14831
14832 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14833
14834
14835 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14836
14837
14838 cat >confcache <<\_ACEOF
14839 # This file is a shell script that caches the results of configure
14840 # tests run on this system so they can be shared between configure
14841 # scripts and configure runs, see configure's option --config-cache.
14842 # It is not useful on other systems.  If it contains results you don't
14843 # want to keep, you may remove or edit it.
14844 #
14845 # config.status only pays attention to the cache file if you give it
14846 # the --recheck option to rerun configure.
14847 #
14848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14850 # following values.
14851
14852 _ACEOF
14853
14854 # The following way of writing the cache mishandles newlines in values,
14855 # but we know of no workaround that is simple, portable, and efficient.
14856 # So, we kill variables containing newlines.
14857 # Ultrix sh set writes to stderr and can't be redirected directly,
14858 # and sets the high bit in the cache file unless we assign to the vars.
14859 (
14860   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14861     eval ac_val=\$$ac_var
14862     case $ac_val in #(
14863     *${as_nl}*)
14864       case $ac_var in #(
14865       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14867       esac
14868       case $ac_var in #(
14869       _ | IFS | as_nl) ;; #(
14870       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14871       *) { eval $ac_var=; unset $ac_var;} ;;
14872       esac ;;
14873     esac
14874   done
14875
14876   (set) 2>&1 |
14877     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14878     *${as_nl}ac_space=\ *)
14879       # `set' does not quote correctly, so add quotes: double-quote
14880       # substitution turns \\\\ into \\, and sed turns \\ into \.
14881       sed -n \
14882         "s/'/'\\\\''/g;
14883           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14884       ;; #(
14885     *)
14886       # `set' quotes correctly as required by POSIX, so do not add quotes.
14887       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14888       ;;
14889     esac |
14890     sort
14891 ) |
14892   sed '
14893      /^ac_cv_env_/b end
14894      t clear
14895      :clear
14896      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14897      t end
14898      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14899      :end' >>confcache
14900 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14901   if test -w "$cache_file"; then
14902     if test "x$cache_file" != "x/dev/null"; then
14903       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14904 $as_echo "$as_me: updating cache $cache_file" >&6;}
14905       if test ! -f "$cache_file" || test -h "$cache_file"; then
14906         cat confcache >"$cache_file"
14907       else
14908         case $cache_file in #(
14909         */* | ?:*)
14910           mv -f confcache "$cache_file"$$ &&
14911           mv -f "$cache_file"$$ "$cache_file" ;; #(
14912         *)
14913           mv -f confcache "$cache_file" ;;
14914         esac
14915       fi
14916     fi
14917   else
14918     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14920   fi
14921 fi
14922 rm -f confcache
14923
14924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14925 # Let make expand exec_prefix.
14926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14927
14928 DEFS=-DHAVE_CONFIG_H
14929
14930 ac_libobjs=
14931 ac_ltlibobjs=
14932 U=
14933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14934   # 1. Remove the extension, and $U if already installed.
14935   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14936   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14937   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14938   #    will be set to the directory where LIBOBJS objects are built.
14939   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14940   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14941 done
14942 LIBOBJS=$ac_libobjs
14943
14944 LTLIBOBJS=$ac_ltlibobjs
14945
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14948 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14949    if test -n "$am_sleep_pid"; then
14950      # Hide warnings about reused PIDs.
14951      wait $am_sleep_pid 2>/dev/null
14952    fi
14953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14954 $as_echo "done" >&6; }
14955  if test -n "$EXEEXT"; then
14956   am__EXEEXT_TRUE=
14957   am__EXEEXT_FALSE='#'
14958 else
14959   am__EXEEXT_TRUE='#'
14960   am__EXEEXT_FALSE=
14961 fi
14962
14963 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14964   as_fn_error $? "conditional \"AMDEP\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14966 fi
14967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14968   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14970 fi
14971 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14972   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14974 fi
14975 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14976   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14978 fi
14979 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14980   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14982 fi
14983 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14984   as_fn_error $? "conditional \"MIPS\" was never defined.
14985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14986 fi
14987 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14988   as_fn_error $? "conditional \"BFIN\" was never defined.
14989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990 fi
14991 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14992   as_fn_error $? "conditional \"SPARC\" was never defined.
14993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 fi
14995 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14996   as_fn_error $? "conditional \"X86\" was never defined.
14997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14998 fi
14999 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15000   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15002 fi
15003 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15004   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006 fi
15007 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15008   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15010 fi
15011 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15012   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15014 fi
15015 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15016   as_fn_error $? "conditional \"ALPHA\" was never defined.
15017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15018 fi
15019 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15020   as_fn_error $? "conditional \"IA64\" was never defined.
15021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15022 fi
15023 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15024   as_fn_error $? "conditional \"M32R\" was never defined.
15025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15026 fi
15027 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15028   as_fn_error $? "conditional \"M68K\" was never defined.
15029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030 fi
15031 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15032   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034 fi
15035 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15036   as_fn_error $? "conditional \"MOXIE\" was never defined.
15037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 fi
15039 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15040   as_fn_error $? "conditional \"POWERPC\" was never defined.
15041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15042 fi
15043 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15044   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15046 fi
15047 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15048   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15050 fi
15051 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15052   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15054 fi
15055 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15056   as_fn_error $? "conditional \"AARCH64\" was never defined.
15057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15058 fi
15059 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15060   as_fn_error $? "conditional \"ARM\" was never defined.
15061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15062 fi
15063 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15064   as_fn_error $? "conditional \"AVR32\" was never defined.
15065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15066 fi
15067 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15068   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15070 fi
15071 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15072   as_fn_error $? "conditional \"FRV\" was never defined.
15073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15074 fi
15075 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15076   as_fn_error $? "conditional \"S390\" was never defined.
15077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15078 fi
15079 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15080   as_fn_error $? "conditional \"X86_64\" was never defined.
15081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082 fi
15083 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15084   as_fn_error $? "conditional \"SH\" was never defined.
15085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 fi
15087 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15088   as_fn_error $? "conditional \"SH64\" was never defined.
15089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 fi
15091 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15092   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 fi
15095 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15096   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 fi
15099 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15100   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102 fi
15103 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15104   as_fn_error $? "conditional \"TILE\" was never defined.
15105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 fi
15107 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15108   as_fn_error $? "conditional \"XTENSA\" was never defined.
15109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 fi
15111
15112 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15113   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 fi
15116 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15117   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 fi
15120 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15121   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123 fi
15124
15125 : "${CONFIG_STATUS=./config.status}"
15126 ac_write_fail=0
15127 ac_clean_files_save=$ac_clean_files
15128 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15130 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15131 as_write_fail=0
15132 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15133 #! $SHELL
15134 # Generated by $as_me.
15135 # Run this file to recreate the current configuration.
15136 # Compiler output produced by configure, useful for debugging
15137 # configure, is in config.log if it exists.
15138
15139 debug=false
15140 ac_cs_recheck=false
15141 ac_cs_silent=false
15142
15143 SHELL=\${CONFIG_SHELL-$SHELL}
15144 export SHELL
15145 _ASEOF
15146 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15147 ## -------------------- ##
15148 ## M4sh Initialization. ##
15149 ## -------------------- ##
15150
15151 # Be more Bourne compatible
15152 DUALCASE=1; export DUALCASE # for MKS sh
15153 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15154   emulate sh
15155   NULLCMD=:
15156   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15157   # is contrary to our usage.  Disable this feature.
15158   alias -g '${1+"$@"}'='"$@"'
15159   setopt NO_GLOB_SUBST
15160 else
15161   case `(set -o) 2>/dev/null` in #(
15162   *posix*) :
15163     set -o posix ;; #(
15164   *) :
15165      ;;
15166 esac
15167 fi
15168
15169
15170 as_nl='
15171 '
15172 export as_nl
15173 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15174 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15177 # Prefer a ksh shell builtin over an external printf program on Solaris,
15178 # but without wasting forks for bash or zsh.
15179 if test -z "$BASH_VERSION$ZSH_VERSION" \
15180     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15181   as_echo='print -r --'
15182   as_echo_n='print -rn --'
15183 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15184   as_echo='printf %s\n'
15185   as_echo_n='printf %s'
15186 else
15187   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15188     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15189     as_echo_n='/usr/ucb/echo -n'
15190   else
15191     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15192     as_echo_n_body='eval
15193       arg=$1;
15194       case $arg in #(
15195       *"$as_nl"*)
15196         expr "X$arg" : "X\\(.*\\)$as_nl";
15197         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15198       esac;
15199       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15200     '
15201     export as_echo_n_body
15202     as_echo_n='sh -c $as_echo_n_body as_echo'
15203   fi
15204   export as_echo_body
15205   as_echo='sh -c $as_echo_body as_echo'
15206 fi
15207
15208 # The user is always right.
15209 if test "${PATH_SEPARATOR+set}" != set; then
15210   PATH_SEPARATOR=:
15211   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15212     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15213       PATH_SEPARATOR=';'
15214   }
15215 fi
15216
15217
15218 # IFS
15219 # We need space, tab and new line, in precisely that order.  Quoting is
15220 # there to prevent editors from complaining about space-tab.
15221 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15222 # splitting by setting IFS to empty value.)
15223 IFS=" ""        $as_nl"
15224
15225 # Find who we are.  Look in the path if we contain no directory separator.
15226 as_myself=
15227 case $0 in #((
15228   *[\\/]* ) as_myself=$0 ;;
15229   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $PATH
15231 do
15232   IFS=$as_save_IFS
15233   test -z "$as_dir" && as_dir=.
15234     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15235   done
15236 IFS=$as_save_IFS
15237
15238      ;;
15239 esac
15240 # We did not find ourselves, most probably we were run as `sh COMMAND'
15241 # in which case we are not to be found in the path.
15242 if test "x$as_myself" = x; then
15243   as_myself=$0
15244 fi
15245 if test ! -f "$as_myself"; then
15246   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15247   exit 1
15248 fi
15249
15250 # Unset variables that we do not need and which cause bugs (e.g. in
15251 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15252 # suppresses any "Segmentation fault" message there.  '((' could
15253 # trigger a bug in pdksh 5.2.14.
15254 for as_var in BASH_ENV ENV MAIL MAILPATH
15255 do eval test x\${$as_var+set} = xset \
15256   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15257 done
15258 PS1='$ '
15259 PS2='> '
15260 PS4='+ '
15261
15262 # NLS nuisances.
15263 LC_ALL=C
15264 export LC_ALL
15265 LANGUAGE=C
15266 export LANGUAGE
15267
15268 # CDPATH.
15269 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15270
15271
15272 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15273 # ----------------------------------------
15274 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15275 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15276 # script with STATUS, using 1 if that was 0.
15277 as_fn_error ()
15278 {
15279   as_status=$1; test $as_status -eq 0 && as_status=1
15280   if test "$4"; then
15281     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15282     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15283   fi
15284   $as_echo "$as_me: error: $2" >&2
15285   as_fn_exit $as_status
15286 } # as_fn_error
15287
15288
15289 # as_fn_set_status STATUS
15290 # -----------------------
15291 # Set $? to STATUS, without forking.
15292 as_fn_set_status ()
15293 {
15294   return $1
15295 } # as_fn_set_status
15296
15297 # as_fn_exit STATUS
15298 # -----------------
15299 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15300 as_fn_exit ()
15301 {
15302   set +e
15303   as_fn_set_status $1
15304   exit $1
15305 } # as_fn_exit
15306
15307 # as_fn_unset VAR
15308 # ---------------
15309 # Portably unset VAR.
15310 as_fn_unset ()
15311 {
15312   { eval $1=; unset $1;}
15313 }
15314 as_unset=as_fn_unset
15315 # as_fn_append VAR VALUE
15316 # ----------------------
15317 # Append the text in VALUE to the end of the definition contained in VAR. Take
15318 # advantage of any shell optimizations that allow amortized linear growth over
15319 # repeated appends, instead of the typical quadratic growth present in naive
15320 # implementations.
15321 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15322   eval 'as_fn_append ()
15323   {
15324     eval $1+=\$2
15325   }'
15326 else
15327   as_fn_append ()
15328   {
15329     eval $1=\$$1\$2
15330   }
15331 fi # as_fn_append
15332
15333 # as_fn_arith ARG...
15334 # ------------------
15335 # Perform arithmetic evaluation on the ARGs, and store the result in the
15336 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15337 # must be portable across $(()) and expr.
15338 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15339   eval 'as_fn_arith ()
15340   {
15341     as_val=$(( $* ))
15342   }'
15343 else
15344   as_fn_arith ()
15345   {
15346     as_val=`expr "$@" || test $? -eq 1`
15347   }
15348 fi # as_fn_arith
15349
15350
15351 if expr a : '\(a\)' >/dev/null 2>&1 &&
15352    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15353   as_expr=expr
15354 else
15355   as_expr=false
15356 fi
15357
15358 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15359   as_basename=basename
15360 else
15361   as_basename=false
15362 fi
15363
15364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15365   as_dirname=dirname
15366 else
15367   as_dirname=false
15368 fi
15369
15370 as_me=`$as_basename -- "$0" ||
15371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15372          X"$0" : 'X\(//\)$' \| \
15373          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15374 $as_echo X/"$0" |
15375     sed '/^.*\/\([^/][^/]*\)\/*$/{
15376             s//\1/
15377             q
15378           }
15379           /^X\/\(\/\/\)$/{
15380             s//\1/
15381             q
15382           }
15383           /^X\/\(\/\).*/{
15384             s//\1/
15385             q
15386           }
15387           s/.*/./; q'`
15388
15389 # Avoid depending upon Character Ranges.
15390 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15391 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15392 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15393 as_cr_digits='0123456789'
15394 as_cr_alnum=$as_cr_Letters$as_cr_digits
15395
15396 ECHO_C= ECHO_N= ECHO_T=
15397 case `echo -n x` in #(((((
15398 -n*)
15399   case `echo 'xy\c'` in
15400   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15401   xy)  ECHO_C='\c';;
15402   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15403        ECHO_T=' ';;
15404   esac;;
15405 *)
15406   ECHO_N='-n';;
15407 esac
15408
15409 rm -f conf$$ conf$$.exe conf$$.file
15410 if test -d conf$$.dir; then
15411   rm -f conf$$.dir/conf$$.file
15412 else
15413   rm -f conf$$.dir
15414   mkdir conf$$.dir 2>/dev/null
15415 fi
15416 if (echo >conf$$.file) 2>/dev/null; then
15417   if ln -s conf$$.file conf$$ 2>/dev/null; then
15418     as_ln_s='ln -s'
15419     # ... but there are two gotchas:
15420     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15421     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15422     # In both cases, we have to default to `cp -pR'.
15423     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15424       as_ln_s='cp -pR'
15425   elif ln conf$$.file conf$$ 2>/dev/null; then
15426     as_ln_s=ln
15427   else
15428     as_ln_s='cp -pR'
15429   fi
15430 else
15431   as_ln_s='cp -pR'
15432 fi
15433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15434 rmdir conf$$.dir 2>/dev/null
15435
15436
15437 # as_fn_mkdir_p
15438 # -------------
15439 # Create "$as_dir" as a directory, including parents if necessary.
15440 as_fn_mkdir_p ()
15441 {
15442
15443   case $as_dir in #(
15444   -*) as_dir=./$as_dir;;
15445   esac
15446   test -d "$as_dir" || eval $as_mkdir_p || {
15447     as_dirs=
15448     while :; do
15449       case $as_dir in #(
15450       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15451       *) as_qdir=$as_dir;;
15452       esac
15453       as_dirs="'$as_qdir' $as_dirs"
15454       as_dir=`$as_dirname -- "$as_dir" ||
15455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15456          X"$as_dir" : 'X\(//\)[^/]' \| \
15457          X"$as_dir" : 'X\(//\)$' \| \
15458          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15459 $as_echo X"$as_dir" |
15460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15461             s//\1/
15462             q
15463           }
15464           /^X\(\/\/\)[^/].*/{
15465             s//\1/
15466             q
15467           }
15468           /^X\(\/\/\)$/{
15469             s//\1/
15470             q
15471           }
15472           /^X\(\/\).*/{
15473             s//\1/
15474             q
15475           }
15476           s/.*/./; q'`
15477       test -d "$as_dir" && break
15478     done
15479     test -z "$as_dirs" || eval "mkdir $as_dirs"
15480   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15481
15482
15483 } # as_fn_mkdir_p
15484 if mkdir -p . 2>/dev/null; then
15485   as_mkdir_p='mkdir -p "$as_dir"'
15486 else
15487   test -d ./-p && rmdir ./-p
15488   as_mkdir_p=false
15489 fi
15490
15491
15492 # as_fn_executable_p FILE
15493 # -----------------------
15494 # Test if FILE is an executable regular file.
15495 as_fn_executable_p ()
15496 {
15497   test -f "$1" && test -x "$1"
15498 } # as_fn_executable_p
15499 as_test_x='test -x'
15500 as_executable_p=as_fn_executable_p
15501
15502 # Sed expression to map a string onto a valid CPP name.
15503 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15504
15505 # Sed expression to map a string onto a valid variable name.
15506 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15507
15508
15509 exec 6>&1
15510 ## ----------------------------------- ##
15511 ## Main body of $CONFIG_STATUS script. ##
15512 ## ----------------------------------- ##
15513 _ASEOF
15514 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15515
15516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15517 # Save the log message, to keep $0 and so on meaningful, and to
15518 # report actual input values of CONFIG_FILES etc. instead of their
15519 # values after options handling.
15520 ac_log="
15521 This file was extended by libffi $as_me 3.0.12-rc0, which was
15522 generated by GNU Autoconf 2.69.  Invocation command line was
15523
15524   CONFIG_FILES    = $CONFIG_FILES
15525   CONFIG_HEADERS  = $CONFIG_HEADERS
15526   CONFIG_LINKS    = $CONFIG_LINKS
15527   CONFIG_COMMANDS = $CONFIG_COMMANDS
15528   $ $0 $@
15529
15530 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15531 "
15532
15533 _ACEOF
15534
15535 case $ac_config_files in *"
15536 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15537 esac
15538
15539 case $ac_config_headers in *"
15540 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15541 esac
15542
15543
15544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 # Files that config.status was made for.
15546 config_files="$ac_config_files"
15547 config_headers="$ac_config_headers"
15548 config_links="$ac_config_links"
15549 config_commands="$ac_config_commands"
15550
15551 _ACEOF
15552
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 ac_cs_usage="\
15555 \`$as_me' instantiates files and other configuration actions
15556 from templates according to the current configuration.  Unless the files
15557 and actions are specified as TAGs, all are instantiated by default.
15558
15559 Usage: $0 [OPTION]... [TAG]...
15560
15561   -h, --help       print this help, then exit
15562   -V, --version    print version number and configuration settings, then exit
15563       --config     print configuration, then exit
15564   -q, --quiet, --silent
15565                    do not print progress messages
15566   -d, --debug      don't remove temporary files
15567       --recheck    update $as_me by reconfiguring in the same conditions
15568       --file=FILE[:TEMPLATE]
15569                    instantiate the configuration file FILE
15570       --header=FILE[:TEMPLATE]
15571                    instantiate the configuration header FILE
15572
15573 Configuration files:
15574 $config_files
15575
15576 Configuration headers:
15577 $config_headers
15578
15579 Configuration links:
15580 $config_links
15581
15582 Configuration commands:
15583 $config_commands
15584
15585 Report bugs to <http://gcc.gnu.org/bugs.html>."
15586
15587 _ACEOF
15588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15590 ac_cs_version="\\
15591 libffi config.status 3.0.12-rc0
15592 configured by $0, generated by GNU Autoconf 2.69,
15593   with options \\"\$ac_cs_config\\"
15594
15595 Copyright (C) 2012 Free Software Foundation, Inc.
15596 This config.status script is free software; the Free Software Foundation
15597 gives unlimited permission to copy, distribute and modify it."
15598
15599 ac_pwd='$ac_pwd'
15600 srcdir='$srcdir'
15601 INSTALL='$INSTALL'
15602 MKDIR_P='$MKDIR_P'
15603 AWK='$AWK'
15604 test -n "\$AWK" || AWK=awk
15605 _ACEOF
15606
15607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15608 # The default lists apply if the user does not specify any file.
15609 ac_need_defaults=:
15610 while test $# != 0
15611 do
15612   case $1 in
15613   --*=?*)
15614     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15615     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15616     ac_shift=:
15617     ;;
15618   --*=)
15619     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15620     ac_optarg=
15621     ac_shift=:
15622     ;;
15623   *)
15624     ac_option=$1
15625     ac_optarg=$2
15626     ac_shift=shift
15627     ;;
15628   esac
15629
15630   case $ac_option in
15631   # Handling of the options.
15632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15633     ac_cs_recheck=: ;;
15634   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15635     $as_echo "$ac_cs_version"; exit ;;
15636   --config | --confi | --conf | --con | --co | --c )
15637     $as_echo "$ac_cs_config"; exit ;;
15638   --debug | --debu | --deb | --de | --d | -d )
15639     debug=: ;;
15640   --file | --fil | --fi | --f )
15641     $ac_shift
15642     case $ac_optarg in
15643     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15644     '') as_fn_error $? "missing file argument" ;;
15645     esac
15646     as_fn_append CONFIG_FILES " '$ac_optarg'"
15647     ac_need_defaults=false;;
15648   --header | --heade | --head | --hea )
15649     $ac_shift
15650     case $ac_optarg in
15651     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15652     esac
15653     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15654     ac_need_defaults=false;;
15655   --he | --h)
15656     # Conflict between --help and --header
15657     as_fn_error $? "ambiguous option: \`$1'
15658 Try \`$0 --help' for more information.";;
15659   --help | --hel | -h )
15660     $as_echo "$ac_cs_usage"; exit ;;
15661   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15662   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15663     ac_cs_silent=: ;;
15664
15665   # This is an error.
15666   -*) as_fn_error $? "unrecognized option: \`$1'
15667 Try \`$0 --help' for more information." ;;
15668
15669   *) as_fn_append ac_config_targets " $1"
15670      ac_need_defaults=false ;;
15671
15672   esac
15673   shift
15674 done
15675
15676 ac_configure_extra_args=
15677
15678 if $ac_cs_silent; then
15679   exec 6>/dev/null
15680   ac_configure_extra_args="$ac_configure_extra_args --silent"
15681 fi
15682
15683 _ACEOF
15684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15685 if \$ac_cs_recheck; then
15686   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15687   shift
15688   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15689   CONFIG_SHELL='$SHELL'
15690   export CONFIG_SHELL
15691   exec "\$@"
15692 fi
15693
15694 _ACEOF
15695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15696 exec 5>>config.log
15697 {
15698   echo
15699   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15700 ## Running $as_me. ##
15701 _ASBOX
15702   $as_echo "$ac_log"
15703 } >&5
15704
15705 _ACEOF
15706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15707 #
15708 # INIT-COMMANDS
15709 #
15710 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15711 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15712 ax_enable_builddir_version="$VERSION"                  # $VERSION
15713 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15714 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15715 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15716 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15717
15718 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15719
15720
15721 # The HP-UX ksh and POSIX shell print the target directory to stdout
15722 # if CDPATH is set.
15723 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15724
15725 sed_quote_subst='$sed_quote_subst'
15726 double_quote_subst='$double_quote_subst'
15727 delay_variable_subst='$delay_variable_subst'
15728 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15729 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15730 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15731 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15732 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15733 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15734 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15735 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15736 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15737 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15738 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15739 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15740 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15741 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15742 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15743 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15744 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15745 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15746 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15747 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15748 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15749 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15750 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15751 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15752 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15753 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15754 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15755 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15756 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15757 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15758 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15759 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15760 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15761 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15762 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15763 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15764 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15765 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15766 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15767 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15768 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15769 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15770 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15771 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15772 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15773 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15774 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15775 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15776 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15777 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15778 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15779 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15780 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15781 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15782 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15783 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15784 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"`'
15785 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15786 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15787 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15788 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15789 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15790 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15791 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15792 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15793 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15794 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15795 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15796 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15797 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15798 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15799 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15800 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15801 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15802 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15803 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15804 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15805 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15806 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15807 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15808 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15809 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15810 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15811 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15812 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15813 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15814 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15815 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15816 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15817 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15818 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15819 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15820 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15821 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15822 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15823 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15824 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15825 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15826 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15827 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15828 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15829 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15830 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15831 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15832 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15833 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15834 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15835 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15836 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15837 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15838 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15839 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15840 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15841 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15842 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15843 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15844 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15845 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15846 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15847 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15848 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15849 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15850 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15851 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15852 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15853 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15854 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15855 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15856 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15857 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15858
15859 LTCC='$LTCC'
15860 LTCFLAGS='$LTCFLAGS'
15861 compiler='$compiler_DEFAULT'
15862
15863 # A function that is used when there is no print builtin or printf.
15864 func_fallback_echo ()
15865 {
15866   eval 'cat <<_LTECHO_EOF
15867 \$1
15868 _LTECHO_EOF'
15869 }
15870
15871 # Quote evaled strings.
15872 for var in SHELL \
15873 ECHO \
15874 PATH_SEPARATOR \
15875 SED \
15876 GREP \
15877 EGREP \
15878 FGREP \
15879 LD \
15880 NM \
15881 LN_S \
15882 lt_SP2NL \
15883 lt_NL2SP \
15884 reload_flag \
15885 OBJDUMP \
15886 deplibs_check_method \
15887 file_magic_cmd \
15888 file_magic_glob \
15889 want_nocaseglob \
15890 DLLTOOL \
15891 sharedlib_from_linklib_cmd \
15892 AR \
15893 AR_FLAGS \
15894 archiver_list_spec \
15895 STRIP \
15896 RANLIB \
15897 CC \
15898 CFLAGS \
15899 compiler \
15900 lt_cv_sys_global_symbol_pipe \
15901 lt_cv_sys_global_symbol_to_cdecl \
15902 lt_cv_sys_global_symbol_to_c_name_address \
15903 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15904 nm_file_list_spec \
15905 lt_prog_compiler_no_builtin_flag \
15906 lt_prog_compiler_pic \
15907 lt_prog_compiler_wl \
15908 lt_prog_compiler_static \
15909 lt_cv_prog_compiler_c_o \
15910 need_locks \
15911 MANIFEST_TOOL \
15912 DSYMUTIL \
15913 NMEDIT \
15914 LIPO \
15915 OTOOL \
15916 OTOOL64 \
15917 shrext_cmds \
15918 export_dynamic_flag_spec \
15919 whole_archive_flag_spec \
15920 compiler_needs_object \
15921 with_gnu_ld \
15922 allow_undefined_flag \
15923 no_undefined_flag \
15924 hardcode_libdir_flag_spec \
15925 hardcode_libdir_separator \
15926 exclude_expsyms \
15927 include_expsyms \
15928 file_list_spec \
15929 variables_saved_for_relink \
15930 libname_spec \
15931 library_names_spec \
15932 soname_spec \
15933 install_override_mode \
15934 finish_eval \
15935 old_striplib \
15936 striplib; do
15937     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15938     *[\\\\\\\`\\"\\\$]*)
15939       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15940       ;;
15941     *)
15942       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15943       ;;
15944     esac
15945 done
15946
15947 # Double-quote double-evaled strings.
15948 for var in reload_cmds \
15949 old_postinstall_cmds \
15950 old_postuninstall_cmds \
15951 old_archive_cmds \
15952 extract_expsyms_cmds \
15953 old_archive_from_new_cmds \
15954 old_archive_from_expsyms_cmds \
15955 archive_cmds \
15956 archive_expsym_cmds \
15957 module_cmds \
15958 module_expsym_cmds \
15959 export_symbols_cmds \
15960 prelink_cmds \
15961 postlink_cmds \
15962 postinstall_cmds \
15963 postuninstall_cmds \
15964 finish_cmds \
15965 sys_lib_search_path_spec \
15966 sys_lib_dlsearch_path_spec; do
15967     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15968     *[\\\\\\\`\\"\\\$]*)
15969       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15970       ;;
15971     *)
15972       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15973       ;;
15974     esac
15975 done
15976
15977 ac_aux_dir='$ac_aux_dir'
15978 xsi_shell='$xsi_shell'
15979 lt_shell_append='$lt_shell_append'
15980
15981 # See if we are running on zsh, and set the options which allow our
15982 # commands through without removal of \ escapes INIT.
15983 if test -n "\${ZSH_VERSION+set}" ; then
15984    setopt NO_GLOB_SUBST
15985 fi
15986
15987
15988     PACKAGE='$PACKAGE'
15989     VERSION='$VERSION'
15990     TIMESTAMP='$TIMESTAMP'
15991     RM='$RM'
15992     ofile='$ofile'
15993
15994
15995
15996 TARGETDIR="$TARGETDIR"
15997
15998 _ACEOF
15999
16000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001
16002 # Handling of arguments.
16003 for ac_config_target in $ac_config_targets
16004 do
16005   case $ac_config_target in
16006     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16007     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16008     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16009     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16010     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16011     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16012     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16013     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16014     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16015     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16016     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16017     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16018     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16019
16020   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16021   esac
16022 done
16023
16024
16025 # If the user did not use the arguments to specify the items to instantiate,
16026 # then the envvar interface is used.  Set only those that are not.
16027 # We use the long form for the default assignment because of an extremely
16028 # bizarre bug on SunOS 4.1.3.
16029 if $ac_need_defaults; then
16030   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16031   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16032   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16033   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16034 fi
16035
16036 # Have a temporary directory for convenience.  Make it in the build tree
16037 # simply because there is no reason against having it here, and in addition,
16038 # creating and moving files from /tmp can sometimes cause problems.
16039 # Hook for its removal unless debugging.
16040 # Note that there is a small window in which the directory will not be cleaned:
16041 # after its creation but before its name has been assigned to `$tmp'.
16042 $debug ||
16043 {
16044   tmp= ac_tmp=
16045   trap 'exit_status=$?
16046   : "${ac_tmp:=$tmp}"
16047   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16048 ' 0
16049   trap 'as_fn_exit 1' 1 2 13 15
16050 }
16051 # Create a (secure) tmp directory for tmp files.
16052
16053 {
16054   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16055   test -d "$tmp"
16056 }  ||
16057 {
16058   tmp=./conf$$-$RANDOM
16059   (umask 077 && mkdir "$tmp")
16060 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16061 ac_tmp=$tmp
16062
16063 # Set up the scripts for CONFIG_FILES section.
16064 # No need to generate them if there are no CONFIG_FILES.
16065 # This happens for instance with `./config.status config.h'.
16066 if test -n "$CONFIG_FILES"; then
16067
16068
16069 ac_cr=`echo X | tr X '\015'`
16070 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16071 # But we know of no other shell where ac_cr would be empty at this
16072 # point, so we can use a bashism as a fallback.
16073 if test "x$ac_cr" = x; then
16074   eval ac_cr=\$\'\\r\'
16075 fi
16076 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16077 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16078   ac_cs_awk_cr='\\r'
16079 else
16080   ac_cs_awk_cr=$ac_cr
16081 fi
16082
16083 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16084 _ACEOF
16085
16086
16087 {
16088   echo "cat >conf$$subs.awk <<_ACEOF" &&
16089   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16090   echo "_ACEOF"
16091 } >conf$$subs.sh ||
16092   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16093 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16094 ac_delim='%!_!# '
16095 for ac_last_try in false false false false false :; do
16096   . ./conf$$subs.sh ||
16097     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16098
16099   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16100   if test $ac_delim_n = $ac_delim_num; then
16101     break
16102   elif $ac_last_try; then
16103     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16104   else
16105     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16106   fi
16107 done
16108 rm -f conf$$subs.sh
16109
16110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16111 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16112 _ACEOF
16113 sed -n '
16114 h
16115 s/^/S["/; s/!.*/"]=/
16116 p
16117 g
16118 s/^[^!]*!//
16119 :repl
16120 t repl
16121 s/'"$ac_delim"'$//
16122 t delim
16123 :nl
16124 h
16125 s/\(.\{148\}\)..*/\1/
16126 t more1
16127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16128 p
16129 n
16130 b repl
16131 :more1
16132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16133 p
16134 g
16135 s/.\{148\}//
16136 t nl
16137 :delim
16138 h
16139 s/\(.\{148\}\)..*/\1/
16140 t more2
16141 s/["\\]/\\&/g; s/^/"/; s/$/"/
16142 p
16143 b
16144 :more2
16145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16146 p
16147 g
16148 s/.\{148\}//
16149 t delim
16150 ' <conf$$subs.awk | sed '
16151 /^[^""]/{
16152   N
16153   s/\n//
16154 }
16155 ' >>$CONFIG_STATUS || ac_write_fail=1
16156 rm -f conf$$subs.awk
16157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158 _ACAWK
16159 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16160   for (key in S) S_is_set[key] = 1
16161   FS = "\a"
16162
16163 }
16164 {
16165   line = $ 0
16166   nfields = split(line, field, "@")
16167   substed = 0
16168   len = length(field[1])
16169   for (i = 2; i < nfields; i++) {
16170     key = field[i]
16171     keylen = length(key)
16172     if (S_is_set[key]) {
16173       value = S[key]
16174       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16175       len += length(value) + length(field[++i])
16176       substed = 1
16177     } else
16178       len += 1 + keylen
16179   }
16180
16181   print line
16182 }
16183
16184 _ACAWK
16185 _ACEOF
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16188   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16189 else
16190   cat
16191 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16192   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16193 _ACEOF
16194
16195 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16196 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16197 # trailing colons and then remove the whole line if VPATH becomes empty
16198 # (actually we leave an empty line to preserve line numbers).
16199 if test "x$srcdir" = x.; then
16200   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16201 h
16202 s///
16203 s/^/:/
16204 s/[      ]*$/:/
16205 s/:\$(srcdir):/:/g
16206 s/:\${srcdir}:/:/g
16207 s/:@srcdir@:/:/g
16208 s/^:*//
16209 s/:*$//
16210 x
16211 s/\(=[   ]*\).*/\1/
16212 G
16213 s/\n//
16214 s/^[^=]*=[       ]*$//
16215 }'
16216 fi
16217
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 fi # test -n "$CONFIG_FILES"
16220
16221 # Set up the scripts for CONFIG_HEADERS section.
16222 # No need to generate them if there are no CONFIG_HEADERS.
16223 # This happens for instance with `./config.status Makefile'.
16224 if test -n "$CONFIG_HEADERS"; then
16225 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16226 BEGIN {
16227 _ACEOF
16228
16229 # Transform confdefs.h into an awk script `defines.awk', embedded as
16230 # here-document in config.status, that substitutes the proper values into
16231 # config.h.in to produce config.h.
16232
16233 # Create a delimiter string that does not exist in confdefs.h, to ease
16234 # handling of long lines.
16235 ac_delim='%!_!# '
16236 for ac_last_try in false false :; do
16237   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16238   if test -z "$ac_tt"; then
16239     break
16240   elif $ac_last_try; then
16241     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16242   else
16243     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16244   fi
16245 done
16246
16247 # For the awk script, D is an array of macro values keyed by name,
16248 # likewise P contains macro parameters if any.  Preserve backslash
16249 # newline sequences.
16250
16251 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16252 sed -n '
16253 s/.\{148\}/&'"$ac_delim"'/g
16254 t rset
16255 :rset
16256 s/^[     ]*#[    ]*define[       ][      ]*/ /
16257 t def
16258 d
16259 :def
16260 s/\\$//
16261 t bsnl
16262 s/["\\]/\\&/g
16263 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16264 D["\1"]=" \3"/p
16265 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16266 d
16267 :bsnl
16268 s/["\\]/\\&/g
16269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16270 D["\1"]=" \3\\\\\\n"\\/p
16271 t cont
16272 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16273 t cont
16274 d
16275 :cont
16276 n
16277 s/.\{148\}/&'"$ac_delim"'/g
16278 t clear
16279 :clear
16280 s/\\$//
16281 t bsnlc
16282 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16283 d
16284 :bsnlc
16285 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16286 b cont
16287 ' <confdefs.h | sed '
16288 s/'"$ac_delim"'/"\\\
16289 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16290
16291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16292   for (key in D) D_is_set[key] = 1
16293   FS = "\a"
16294 }
16295 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16296   line = \$ 0
16297   split(line, arg, " ")
16298   if (arg[1] == "#") {
16299     defundef = arg[2]
16300     mac1 = arg[3]
16301   } else {
16302     defundef = substr(arg[1], 2)
16303     mac1 = arg[2]
16304   }
16305   split(mac1, mac2, "(") #)
16306   macro = mac2[1]
16307   prefix = substr(line, 1, index(line, defundef) - 1)
16308   if (D_is_set[macro]) {
16309     # Preserve the white space surrounding the "#".
16310     print prefix "define", macro P[macro] D[macro]
16311     next
16312   } else {
16313     # Replace #undef with comments.  This is necessary, for example,
16314     # in the case of _POSIX_SOURCE, which is predefined and required
16315     # on some systems where configure will not decide to define it.
16316     if (defundef == "undef") {
16317       print "/*", prefix defundef, macro, "*/"
16318       next
16319     }
16320   }
16321 }
16322 { print }
16323 _ACAWK
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16326   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16327 fi # test -n "$CONFIG_HEADERS"
16328
16329
16330 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16331 shift
16332 for ac_tag
16333 do
16334   case $ac_tag in
16335   :[FHLC]) ac_mode=$ac_tag; continue;;
16336   esac
16337   case $ac_mode$ac_tag in
16338   :[FHL]*:*);;
16339   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16340   :[FH]-) ac_tag=-:-;;
16341   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16342   esac
16343   ac_save_IFS=$IFS
16344   IFS=:
16345   set x $ac_tag
16346   IFS=$ac_save_IFS
16347   shift
16348   ac_file=$1
16349   shift
16350
16351   case $ac_mode in
16352   :L) ac_source=$1;;
16353   :[FH])
16354     ac_file_inputs=
16355     for ac_f
16356     do
16357       case $ac_f in
16358       -) ac_f="$ac_tmp/stdin";;
16359       *) # Look for the file first in the build tree, then in the source tree
16360          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16361          # because $ac_f cannot contain `:'.
16362          test -f "$ac_f" ||
16363            case $ac_f in
16364            [\\/$]*) false;;
16365            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16366            esac ||
16367            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16368       esac
16369       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16370       as_fn_append ac_file_inputs " '$ac_f'"
16371     done
16372
16373     # Let's still pretend it is `configure' which instantiates (i.e., don't
16374     # use $as_me), people would be surprised to read:
16375     #    /* config.h.  Generated by config.status.  */
16376     configure_input='Generated from '`
16377           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16378         `' by configure.'
16379     if test x"$ac_file" != x-; then
16380       configure_input="$ac_file.  $configure_input"
16381       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16382 $as_echo "$as_me: creating $ac_file" >&6;}
16383     fi
16384     # Neutralize special characters interpreted by sed in replacement strings.
16385     case $configure_input in #(
16386     *\&* | *\|* | *\\* )
16387        ac_sed_conf_input=`$as_echo "$configure_input" |
16388        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16389     *) ac_sed_conf_input=$configure_input;;
16390     esac
16391
16392     case $ac_tag in
16393     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16394       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16395     esac
16396     ;;
16397   esac
16398
16399   ac_dir=`$as_dirname -- "$ac_file" ||
16400 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16401          X"$ac_file" : 'X\(//\)[^/]' \| \
16402          X"$ac_file" : 'X\(//\)$' \| \
16403          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16404 $as_echo X"$ac_file" |
16405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16406             s//\1/
16407             q
16408           }
16409           /^X\(\/\/\)[^/].*/{
16410             s//\1/
16411             q
16412           }
16413           /^X\(\/\/\)$/{
16414             s//\1/
16415             q
16416           }
16417           /^X\(\/\).*/{
16418             s//\1/
16419             q
16420           }
16421           s/.*/./; q'`
16422   as_dir="$ac_dir"; as_fn_mkdir_p
16423   ac_builddir=.
16424
16425 case "$ac_dir" in
16426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16427 *)
16428   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16429   # A ".." for each directory in $ac_dir_suffix.
16430   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16431   case $ac_top_builddir_sub in
16432   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16433   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16434   esac ;;
16435 esac
16436 ac_abs_top_builddir=$ac_pwd
16437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16438 # for backward compatibility:
16439 ac_top_builddir=$ac_top_build_prefix
16440
16441 case $srcdir in
16442   .)  # We are building in place.
16443     ac_srcdir=.
16444     ac_top_srcdir=$ac_top_builddir_sub
16445     ac_abs_top_srcdir=$ac_pwd ;;
16446   [\\/]* | ?:[\\/]* )  # Absolute name.
16447     ac_srcdir=$srcdir$ac_dir_suffix;
16448     ac_top_srcdir=$srcdir
16449     ac_abs_top_srcdir=$srcdir ;;
16450   *) # Relative name.
16451     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16452     ac_top_srcdir=$ac_top_build_prefix$srcdir
16453     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16454 esac
16455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16456
16457
16458   case $ac_mode in
16459   :F)
16460   #
16461   # CONFIG_FILE
16462   #
16463
16464   case $INSTALL in
16465   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16466   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16467   esac
16468   ac_MKDIR_P=$MKDIR_P
16469   case $MKDIR_P in
16470   [\\/$]* | ?:[\\/]* ) ;;
16471   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16472   esac
16473 _ACEOF
16474
16475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16476 # If the template does not know about datarootdir, expand it.
16477 # FIXME: This hack should be removed a few years after 2.60.
16478 ac_datarootdir_hack=; ac_datarootdir_seen=
16479 ac_sed_dataroot='
16480 /datarootdir/ {
16481   p
16482   q
16483 }
16484 /@datadir@/p
16485 /@docdir@/p
16486 /@infodir@/p
16487 /@localedir@/p
16488 /@mandir@/p'
16489 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16490 *datarootdir*) ac_datarootdir_seen=yes;;
16491 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16492   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16493 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16494 _ACEOF
16495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16496   ac_datarootdir_hack='
16497   s&@datadir@&$datadir&g
16498   s&@docdir@&$docdir&g
16499   s&@infodir@&$infodir&g
16500   s&@localedir@&$localedir&g
16501   s&@mandir@&$mandir&g
16502   s&\\\${datarootdir}&$datarootdir&g' ;;
16503 esac
16504 _ACEOF
16505
16506 # Neutralize VPATH when `$srcdir' = `.'.
16507 # Shell code in configure.ac might set extrasub.
16508 # FIXME: do we really want to maintain this feature?
16509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 ac_sed_extra="$ac_vpsub
16511 $extrasub
16512 _ACEOF
16513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16514 :t
16515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16516 s|@configure_input@|$ac_sed_conf_input|;t t
16517 s&@top_builddir@&$ac_top_builddir_sub&;t t
16518 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16519 s&@srcdir@&$ac_srcdir&;t t
16520 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16521 s&@top_srcdir@&$ac_top_srcdir&;t t
16522 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16523 s&@builddir@&$ac_builddir&;t t
16524 s&@abs_builddir@&$ac_abs_builddir&;t t
16525 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16526 s&@INSTALL@&$ac_INSTALL&;t t
16527 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16528 $ac_datarootdir_hack
16529 "
16530 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16531   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16532
16533 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16534   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16535   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16536       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16538 which seems to be undefined.  Please make sure it is defined" >&5
16539 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540 which seems to be undefined.  Please make sure it is defined" >&2;}
16541
16542   rm -f "$ac_tmp/stdin"
16543   case $ac_file in
16544   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16545   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16546   esac \
16547   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16548  ;;
16549   :H)
16550   #
16551   # CONFIG_HEADER
16552   #
16553   if test x"$ac_file" != x-; then
16554     {
16555       $as_echo "/* $configure_input  */" \
16556       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16557     } >"$ac_tmp/config.h" \
16558       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16559     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16560       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16561 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16562     else
16563       rm -f "$ac_file"
16564       mv "$ac_tmp/config.h" "$ac_file" \
16565         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16566     fi
16567   else
16568     $as_echo "/* $configure_input  */" \
16569       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16570       || as_fn_error $? "could not create -" "$LINENO" 5
16571   fi
16572 # Compute "$ac_file"'s index in $config_headers.
16573 _am_arg="$ac_file"
16574 _am_stamp_count=1
16575 for _am_header in $config_headers :; do
16576   case $_am_header in
16577     $_am_arg | $_am_arg:* )
16578       break ;;
16579     * )
16580       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16581   esac
16582 done
16583 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16584 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16585          X"$_am_arg" : 'X\(//\)[^/]' \| \
16586          X"$_am_arg" : 'X\(//\)$' \| \
16587          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16588 $as_echo X"$_am_arg" |
16589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16590             s//\1/
16591             q
16592           }
16593           /^X\(\/\/\)[^/].*/{
16594             s//\1/
16595             q
16596           }
16597           /^X\(\/\/\)$/{
16598             s//\1/
16599             q
16600           }
16601           /^X\(\/\).*/{
16602             s//\1/
16603             q
16604           }
16605           s/.*/./; q'`/stamp-h$_am_stamp_count
16606  ;;
16607   :L)
16608   #
16609   # CONFIG_LINK
16610   #
16611
16612   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16613     :
16614   else
16615     # Prefer the file from the source tree if names are identical.
16616     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16617       ac_source=$srcdir/$ac_source
16618     fi
16619
16620     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16621 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16622
16623     if test ! -r "$ac_source"; then
16624       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16625     fi
16626     rm -f "$ac_file"
16627
16628     # Try a relative symlink, then a hard link, then a copy.
16629     case $ac_source in
16630     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16631         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16632     esac
16633     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16634       ln "$ac_source" "$ac_file" 2>/dev/null ||
16635       cp -p "$ac_source" "$ac_file" ||
16636       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16637   fi
16638  ;;
16639   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16640 $as_echo "$as_me: executing $ac_file commands" >&6;}
16641  ;;
16642   esac
16643
16644
16645   case $ac_file$ac_mode in
16646     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16647   if test ".$ax_enable_builddir" = ".." ; then
16648     if test -f "$top_srcdir/Makefile" ; then
16649       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16650 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16651     else
16652       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16653 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16654     fi
16655   else
16656     if test -f "$ac_top_srcdir/Makefile" ; then
16657       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16658       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16659     fi
16660     if test -f "$ac_top_srcdir/Makefile" ; then
16661         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16662         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16663       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16664       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16665       then rm $ac_top_srcdir/Makefile ; fi
16666       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16667     fi
16668     if test ! -f "$ac_top_srcdir/Makefile" ; then
16669       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16670 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16671       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16672 /^\$/n
16673 x
16674 /^\$/bS
16675 x
16676 /\\\\\$/{H;d;}
16677 {H;s/.*//;x;}
16678 bM
16679 :S
16680 x
16681 /\\\\\$/{h;d;}
16682 {h;s/.*//;x;}
16683 :M
16684 s/\\(\\n\\)     /\\1 /g
16685 /^      /d
16686 /^[      ]*[\\#]/d
16687 /^VPATH *=/d
16688 s/^srcdir *=.*/srcdir = ./
16689 s/^top_srcdir *=.*/top_srcdir = ./
16690 /[:=]/!d
16691 /^\\./d
16692 / = /b
16693 / .= /b
16694 /:/!b
16695 s/:.*/:/
16696 s/ /  /g
16697 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16698 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16699 s/  / /g
16700 /^all all-all[ :]/i\\
16701 all-configured : all-all
16702 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16703 /-all-all/d
16704 a\\
16705         @ HOST="\$(HOST)\" \\\\\\
16706         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16707         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16708         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16709         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16710         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16711         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16712         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16713         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16714         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16715 /dist-all *:/a\\
16716         @ HOST="\$(HOST)\" \\\\\\
16717         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16718         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16719         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16720         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16721         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16722         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16723         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16724         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16725         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16726 /dist-[a-zA-Z0-9]*-all *:/a\\
16727         @ HOST="\$(HOST)\" \\\\\\
16728         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16729         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16730         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16731         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16732         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16733         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16734         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16735         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16736         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16737 /distclean-all *:/a\\
16738         @ HOST="\$(HOST)\" \\\\\\
16739         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16740         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16741         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16742         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16743         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16744         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16745         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16746         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16747         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16748         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16749         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16750 _EOF
16751       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16752       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16753       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16754         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16755 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16756         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16757       fi ; xxxx="####"
16758       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16759       # sanity check
16760       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16761         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16762 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16763         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16764           >$ac_top_srcdir/Makefile~
16765         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16766       fi
16767     else
16768       xxxx="\\#\\#\\#\\#"
16769       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16770       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16771       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16772         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16773         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16774       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16775         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16776 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16777         rm "$tmp/mkfile.tmp"
16778       else
16779         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16780 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16781         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16782       fi
16783     fi
16784     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16785 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16786     xxxx="####"
16787     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16788   fi
16789  ;;
16790     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16791   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16792   # are listed without --file.  Let's play safe and only enable the eval
16793   # if we detect the quoting.
16794   case $CONFIG_FILES in
16795   *\'*) eval set x "$CONFIG_FILES" ;;
16796   *)   set x $CONFIG_FILES ;;
16797   esac
16798   shift
16799   for mf
16800   do
16801     # Strip MF so we end up with the name of the file.
16802     mf=`echo "$mf" | sed -e 's/:.*$//'`
16803     # Check whether this is an Automake generated Makefile or not.
16804     # We used to match only the files named 'Makefile.in', but
16805     # some people rename them; so instead we look at the file content.
16806     # Grep'ing the first line is not enough: some people post-process
16807     # each Makefile.in and add a new line on top of each file to say so.
16808     # Grep'ing the whole file is not good either: AIX grep has a line
16809     # limit of 2048, but all sed's we know have understand at least 4000.
16810     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16811       dirpart=`$as_dirname -- "$mf" ||
16812 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16813          X"$mf" : 'X\(//\)[^/]' \| \
16814          X"$mf" : 'X\(//\)$' \| \
16815          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16816 $as_echo X"$mf" |
16817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16818             s//\1/
16819             q
16820           }
16821           /^X\(\/\/\)[^/].*/{
16822             s//\1/
16823             q
16824           }
16825           /^X\(\/\/\)$/{
16826             s//\1/
16827             q
16828           }
16829           /^X\(\/\).*/{
16830             s//\1/
16831             q
16832           }
16833           s/.*/./; q'`
16834     else
16835       continue
16836     fi
16837     # Extract the definition of DEPDIR, am__include, and am__quote
16838     # from the Makefile without running 'make'.
16839     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16840     test -z "$DEPDIR" && continue
16841     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16842     test -z "am__include" && continue
16843     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16844     # Find all dependency output files, they are included files with
16845     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16846     # simplest approach to changing $(DEPDIR) to its actual value in the
16847     # expansion.
16848     for file in `sed -n "
16849       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16850          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16851       # Make sure the directory exists.
16852       test -f "$dirpart/$file" && continue
16853       fdir=`$as_dirname -- "$file" ||
16854 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16855          X"$file" : 'X\(//\)[^/]' \| \
16856          X"$file" : 'X\(//\)$' \| \
16857          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16858 $as_echo X"$file" |
16859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16860             s//\1/
16861             q
16862           }
16863           /^X\(\/\/\)[^/].*/{
16864             s//\1/
16865             q
16866           }
16867           /^X\(\/\/\)$/{
16868             s//\1/
16869             q
16870           }
16871           /^X\(\/\).*/{
16872             s//\1/
16873             q
16874           }
16875           s/.*/./; q'`
16876       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16877       # echo "creating $dirpart/$file"
16878       echo '# dummy' > "$dirpart/$file"
16879     done
16880   done
16881 }
16882  ;;
16883     "libtool":C)
16884
16885     # See if we are running on zsh, and set the options which allow our
16886     # commands through without removal of \ escapes.
16887     if test -n "${ZSH_VERSION+set}" ; then
16888       setopt NO_GLOB_SUBST
16889     fi
16890
16891     cfgfile="${ofile}T"
16892     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16893     $RM "$cfgfile"
16894
16895     cat <<_LT_EOF >> "$cfgfile"
16896 #! $SHELL
16897
16898 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16899 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16902 #
16903 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16904 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16905 #                 Foundation, Inc.
16906 #   Written by Gordon Matzigkeit, 1996
16907 #
16908 #   This file is part of GNU Libtool.
16909 #
16910 # GNU Libtool is free software; you can redistribute it and/or
16911 # modify it under the terms of the GNU General Public License as
16912 # published by the Free Software Foundation; either version 2 of
16913 # the License, or (at your option) any later version.
16914 #
16915 # As a special exception to the GNU General Public License,
16916 # if you distribute this file as part of a program or library that
16917 # is built using GNU Libtool, you may include this file under the
16918 # same distribution terms that you use for the rest of that program.
16919 #
16920 # GNU Libtool is distributed in the hope that it will be useful,
16921 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16923 # GNU General Public License for more details.
16924 #
16925 # You should have received a copy of the GNU General Public License
16926 # along with GNU Libtool; see the file COPYING.  If not, a copy
16927 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16928 # obtained by writing to the Free Software Foundation, Inc.,
16929 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16930
16931
16932 # The names of the tagged configurations supported by this script.
16933 available_tags=""
16934
16935 # ### BEGIN LIBTOOL CONFIG
16936
16937 # Which release of libtool.m4 was used?
16938 macro_version=$macro_version
16939 macro_revision=$macro_revision
16940
16941 # Whether or not to build shared libraries.
16942 build_libtool_libs=$enable_shared
16943
16944 # Whether or not to build static libraries.
16945 build_old_libs=$enable_static
16946
16947 # What type of objects to build.
16948 pic_mode=$pic_mode
16949
16950 # Whether or not to optimize for fast installation.
16951 fast_install=$enable_fast_install
16952
16953 # Shell to use when invoking shell scripts.
16954 SHELL=$lt_SHELL
16955
16956 # An echo program that protects backslashes.
16957 ECHO=$lt_ECHO
16958
16959 # The PATH separator for the build system.
16960 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16961
16962 # The host system.
16963 host_alias=$host_alias
16964 host=$host
16965 host_os=$host_os
16966
16967 # The build system.
16968 build_alias=$build_alias
16969 build=$build
16970 build_os=$build_os
16971
16972 # A sed program that does not truncate output.
16973 SED=$lt_SED
16974
16975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16976 Xsed="\$SED -e 1s/^X//"
16977
16978 # A grep program that handles long lines.
16979 GREP=$lt_GREP
16980
16981 # An ERE matcher.
16982 EGREP=$lt_EGREP
16983
16984 # A literal string matcher.
16985 FGREP=$lt_FGREP
16986
16987 # A BSD- or MS-compatible name lister.
16988 NM=$lt_NM
16989
16990 # Whether we need soft or hard links.
16991 LN_S=$lt_LN_S
16992
16993 # What is the maximum length of a command?
16994 max_cmd_len=$max_cmd_len
16995
16996 # Object file suffix (normally "o").
16997 objext=$ac_objext
16998
16999 # Executable file suffix (normally "").
17000 exeext=$exeext
17001
17002 # whether the shell understands "unset".
17003 lt_unset=$lt_unset
17004
17005 # turn spaces into newlines.
17006 SP2NL=$lt_lt_SP2NL
17007
17008 # turn newlines into spaces.
17009 NL2SP=$lt_lt_NL2SP
17010
17011 # convert \$build file names to \$host format.
17012 to_host_file_cmd=$lt_cv_to_host_file_cmd
17013
17014 # convert \$build files to toolchain format.
17015 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17016
17017 # An object symbol dumper.
17018 OBJDUMP=$lt_OBJDUMP
17019
17020 # Method to check whether dependent libraries are shared objects.
17021 deplibs_check_method=$lt_deplibs_check_method
17022
17023 # Command to use when deplibs_check_method = "file_magic".
17024 file_magic_cmd=$lt_file_magic_cmd
17025
17026 # How to find potential files when deplibs_check_method = "file_magic".
17027 file_magic_glob=$lt_file_magic_glob
17028
17029 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17030 want_nocaseglob=$lt_want_nocaseglob
17031
17032 # DLL creation program.
17033 DLLTOOL=$lt_DLLTOOL
17034
17035 # Command to associate shared and link libraries.
17036 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17037
17038 # The archiver.
17039 AR=$lt_AR
17040
17041 # Flags to create an archive.
17042 AR_FLAGS=$lt_AR_FLAGS
17043
17044 # How to feed a file listing to the archiver.
17045 archiver_list_spec=$lt_archiver_list_spec
17046
17047 # A symbol stripping program.
17048 STRIP=$lt_STRIP
17049
17050 # Commands used to install an old-style archive.
17051 RANLIB=$lt_RANLIB
17052 old_postinstall_cmds=$lt_old_postinstall_cmds
17053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17054
17055 # Whether to use a lock for old archive extraction.
17056 lock_old_archive_extraction=$lock_old_archive_extraction
17057
17058 # A C compiler.
17059 LTCC=$lt_CC
17060
17061 # LTCC compiler flags.
17062 LTCFLAGS=$lt_CFLAGS
17063
17064 # Take the output of nm and produce a listing of raw symbols and C names.
17065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17066
17067 # Transform the output of nm in a proper C declaration.
17068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17069
17070 # Transform the output of nm in a C name address pair.
17071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17072
17073 # Transform the output of nm in a C name address pair when lib prefix is needed.
17074 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17075
17076 # Specify filename containing input files for \$NM.
17077 nm_file_list_spec=$lt_nm_file_list_spec
17078
17079 # The root where to search for dependent libraries,and in which our libraries should be installed.
17080 lt_sysroot=$lt_sysroot
17081
17082 # The name of the directory that contains temporary libtool files.
17083 objdir=$objdir
17084
17085 # Used to examine libraries when file_magic_cmd begins with "file".
17086 MAGIC_CMD=$MAGIC_CMD
17087
17088 # Must we lock files when doing compilation?
17089 need_locks=$lt_need_locks
17090
17091 # Manifest tool.
17092 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17093
17094 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17095 DSYMUTIL=$lt_DSYMUTIL
17096
17097 # Tool to change global to local symbols on Mac OS X.
17098 NMEDIT=$lt_NMEDIT
17099
17100 # Tool to manipulate fat objects and archives on Mac OS X.
17101 LIPO=$lt_LIPO
17102
17103 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17104 OTOOL=$lt_OTOOL
17105
17106 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17107 OTOOL64=$lt_OTOOL64
17108
17109 # Old archive suffix (normally "a").
17110 libext=$libext
17111
17112 # Shared library suffix (normally ".so").
17113 shrext_cmds=$lt_shrext_cmds
17114
17115 # The commands to extract the exported symbol list from a shared archive.
17116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17117
17118 # Variables whose values should be saved in libtool wrapper scripts and
17119 # restored at link time.
17120 variables_saved_for_relink=$lt_variables_saved_for_relink
17121
17122 # Do we need the "lib" prefix for modules?
17123 need_lib_prefix=$need_lib_prefix
17124
17125 # Do we need a version for libraries?
17126 need_version=$need_version
17127
17128 # Library versioning type.
17129 version_type=$version_type
17130
17131 # Shared library runtime path variable.
17132 runpath_var=$runpath_var
17133
17134 # Shared library path variable.
17135 shlibpath_var=$shlibpath_var
17136
17137 # Is shlibpath searched before the hard-coded library search path?
17138 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17139
17140 # Format of library name prefix.
17141 libname_spec=$lt_libname_spec
17142
17143 # List of archive names.  First name is the real one, the rest are links.
17144 # The last name is the one that the linker finds with -lNAME
17145 library_names_spec=$lt_library_names_spec
17146
17147 # The coded name of the library, if different from the real name.
17148 soname_spec=$lt_soname_spec
17149
17150 # Permission mode override for installation of shared libraries.
17151 install_override_mode=$lt_install_override_mode
17152
17153 # Command to use after installation of a shared archive.
17154 postinstall_cmds=$lt_postinstall_cmds
17155
17156 # Command to use after uninstallation of a shared archive.
17157 postuninstall_cmds=$lt_postuninstall_cmds
17158
17159 # Commands used to finish a libtool library installation in a directory.
17160 finish_cmds=$lt_finish_cmds
17161
17162 # As "finish_cmds", except a single script fragment to be evaled but
17163 # not shown.
17164 finish_eval=$lt_finish_eval
17165
17166 # Whether we should hardcode library paths into libraries.
17167 hardcode_into_libs=$hardcode_into_libs
17168
17169 # Compile-time system search path for libraries.
17170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17171
17172 # Run-time system search path for libraries.
17173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17174
17175 # Whether dlopen is supported.
17176 dlopen_support=$enable_dlopen
17177
17178 # Whether dlopen of programs is supported.
17179 dlopen_self=$enable_dlopen_self
17180
17181 # Whether dlopen of statically linked programs is supported.
17182 dlopen_self_static=$enable_dlopen_self_static
17183
17184 # Commands to strip libraries.
17185 old_striplib=$lt_old_striplib
17186 striplib=$lt_striplib
17187
17188
17189 # The linker used to build libraries.
17190 LD=$lt_LD
17191
17192 # How to create reloadable object files.
17193 reload_flag=$lt_reload_flag
17194 reload_cmds=$lt_reload_cmds
17195
17196 # Commands used to build an old-style archive.
17197 old_archive_cmds=$lt_old_archive_cmds
17198
17199 # A language specific compiler.
17200 CC=$lt_compiler
17201
17202 # Is the compiler the GNU compiler?
17203 with_gcc=$GCC
17204
17205 # Compiler flag to turn off builtin functions.
17206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17207
17208 # Additional compiler flags for building library objects.
17209 pic_flag=$lt_lt_prog_compiler_pic
17210
17211 # How to pass a linker flag through the compiler.
17212 wl=$lt_lt_prog_compiler_wl
17213
17214 # Compiler flag to prevent dynamic linking.
17215 link_static_flag=$lt_lt_prog_compiler_static
17216
17217 # Does compiler simultaneously support -c and -o options?
17218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17219
17220 # Whether or not to add -lc for building shared libraries.
17221 build_libtool_need_lc=$archive_cmds_need_lc
17222
17223 # Whether or not to disallow shared libs when runtime libs are static.
17224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17225
17226 # Compiler flag to allow reflexive dlopens.
17227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17228
17229 # Compiler flag to generate shared objects directly from archives.
17230 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17231
17232 # Whether the compiler copes with passing no objects directly.
17233 compiler_needs_object=$lt_compiler_needs_object
17234
17235 # Create an old-style archive from a shared archive.
17236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17237
17238 # Create a temporary old-style archive to link instead of a shared archive.
17239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17240
17241 # Commands used to build a shared archive.
17242 archive_cmds=$lt_archive_cmds
17243 archive_expsym_cmds=$lt_archive_expsym_cmds
17244
17245 # Commands used to build a loadable module if different from building
17246 # a shared archive.
17247 module_cmds=$lt_module_cmds
17248 module_expsym_cmds=$lt_module_expsym_cmds
17249
17250 # Whether we are building with GNU ld or not.
17251 with_gnu_ld=$lt_with_gnu_ld
17252
17253 # Flag that allows shared libraries with undefined symbols to be built.
17254 allow_undefined_flag=$lt_allow_undefined_flag
17255
17256 # Flag that enforces no undefined symbols.
17257 no_undefined_flag=$lt_no_undefined_flag
17258
17259 # Flag to hardcode \$libdir into a binary during linking.
17260 # This must work even if \$libdir does not exist
17261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17262
17263 # Whether we need a single "-rpath" flag with a separated argument.
17264 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17265
17266 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17267 # DIR into the resulting binary.
17268 hardcode_direct=$hardcode_direct
17269
17270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17271 # DIR into the resulting binary and the resulting library dependency is
17272 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17273 # library is relocated.
17274 hardcode_direct_absolute=$hardcode_direct_absolute
17275
17276 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17277 # into the resulting binary.
17278 hardcode_minus_L=$hardcode_minus_L
17279
17280 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17281 # into the resulting binary.
17282 hardcode_shlibpath_var=$hardcode_shlibpath_var
17283
17284 # Set to "yes" if building a shared library automatically hardcodes DIR
17285 # into the library and all subsequent libraries and executables linked
17286 # against it.
17287 hardcode_automatic=$hardcode_automatic
17288
17289 # Set to yes if linker adds runtime paths of dependent libraries
17290 # to runtime path list.
17291 inherit_rpath=$inherit_rpath
17292
17293 # Whether libtool must link a program against all its dependency libraries.
17294 link_all_deplibs=$link_all_deplibs
17295
17296 # Set to "yes" if exported symbols are required.
17297 always_export_symbols=$always_export_symbols
17298
17299 # The commands to list exported symbols.
17300 export_symbols_cmds=$lt_export_symbols_cmds
17301
17302 # Symbols that should not be listed in the preloaded symbols.
17303 exclude_expsyms=$lt_exclude_expsyms
17304
17305 # Symbols that must always be exported.
17306 include_expsyms=$lt_include_expsyms
17307
17308 # Commands necessary for linking programs (against libraries) with templates.
17309 prelink_cmds=$lt_prelink_cmds
17310
17311 # Commands necessary for finishing linking programs.
17312 postlink_cmds=$lt_postlink_cmds
17313
17314 # Specify filename containing input files.
17315 file_list_spec=$lt_file_list_spec
17316
17317 # How to hardcode a shared library path into an executable.
17318 hardcode_action=$hardcode_action
17319
17320 # ### END LIBTOOL CONFIG
17321
17322 _LT_EOF
17323
17324   case $host_os in
17325   aix3*)
17326     cat <<\_LT_EOF >> "$cfgfile"
17327 # AIX sometimes has problems with the GCC collect2 program.  For some
17328 # reason, if we set the COLLECT_NAMES environment variable, the problems
17329 # vanish in a puff of smoke.
17330 if test "X${COLLECT_NAMES+set}" != Xset; then
17331   COLLECT_NAMES=
17332   export COLLECT_NAMES
17333 fi
17334 _LT_EOF
17335     ;;
17336   esac
17337
17338
17339 ltmain="$ac_aux_dir/ltmain.sh"
17340
17341
17342   # We use sed instead of cat because bash on DJGPP gets confused if
17343   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17344   # text mode, it properly converts lines to CR/LF.  This bash problem
17345   # is reportedly fixed, but why not run on old versions too?
17346   sed '$q' "$ltmain" >> "$cfgfile" \
17347      || (rm -f "$cfgfile"; exit 1)
17348
17349   if test x"$xsi_shell" = xyes; then
17350   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17351 func_dirname ()\
17352 {\
17353 \    case ${1} in\
17354 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17355 \      *  ) func_dirname_result="${3}" ;;\
17356 \    esac\
17357 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17358   && mv -f "$cfgfile.tmp" "$cfgfile" \
17359     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17360 test 0 -eq $? || _lt_function_replace_fail=:
17361
17362
17363   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17364 func_basename ()\
17365 {\
17366 \    func_basename_result="${1##*/}"\
17367 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17368   && mv -f "$cfgfile.tmp" "$cfgfile" \
17369     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17370 test 0 -eq $? || _lt_function_replace_fail=:
17371
17372
17373   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17374 func_dirname_and_basename ()\
17375 {\
17376 \    case ${1} in\
17377 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17378 \      *  ) func_dirname_result="${3}" ;;\
17379 \    esac\
17380 \    func_basename_result="${1##*/}"\
17381 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17382   && mv -f "$cfgfile.tmp" "$cfgfile" \
17383     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17384 test 0 -eq $? || _lt_function_replace_fail=:
17385
17386
17387   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17388 func_stripname ()\
17389 {\
17390 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17391 \    # positional parameters, so assign one to ordinary parameter first.\
17392 \    func_stripname_result=${3}\
17393 \    func_stripname_result=${func_stripname_result#"${1}"}\
17394 \    func_stripname_result=${func_stripname_result%"${2}"}\
17395 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17396   && mv -f "$cfgfile.tmp" "$cfgfile" \
17397     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17398 test 0 -eq $? || _lt_function_replace_fail=:
17399
17400
17401   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17402 func_split_long_opt ()\
17403 {\
17404 \    func_split_long_opt_name=${1%%=*}\
17405 \    func_split_long_opt_arg=${1#*=}\
17406 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17407   && mv -f "$cfgfile.tmp" "$cfgfile" \
17408     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17409 test 0 -eq $? || _lt_function_replace_fail=:
17410
17411
17412   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17413 func_split_short_opt ()\
17414 {\
17415 \    func_split_short_opt_arg=${1#??}\
17416 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17417 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17418   && mv -f "$cfgfile.tmp" "$cfgfile" \
17419     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17420 test 0 -eq $? || _lt_function_replace_fail=:
17421
17422
17423   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17424 func_lo2o ()\
17425 {\
17426 \    case ${1} in\
17427 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17428 \      *)    func_lo2o_result=${1} ;;\
17429 \    esac\
17430 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17431   && mv -f "$cfgfile.tmp" "$cfgfile" \
17432     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433 test 0 -eq $? || _lt_function_replace_fail=:
17434
17435
17436   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17437 func_xform ()\
17438 {\
17439     func_xform_result=${1%.*}.lo\
17440 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17441   && mv -f "$cfgfile.tmp" "$cfgfile" \
17442     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17443 test 0 -eq $? || _lt_function_replace_fail=:
17444
17445
17446   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17447 func_arith ()\
17448 {\
17449     func_arith_result=$(( $* ))\
17450 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17451   && mv -f "$cfgfile.tmp" "$cfgfile" \
17452     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17453 test 0 -eq $? || _lt_function_replace_fail=:
17454
17455
17456   sed -e '/^func_len ()$/,/^} # func_len /c\
17457 func_len ()\
17458 {\
17459     func_len_result=${#1}\
17460 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17461   && mv -f "$cfgfile.tmp" "$cfgfile" \
17462     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17463 test 0 -eq $? || _lt_function_replace_fail=:
17464
17465 fi
17466
17467 if test x"$lt_shell_append" = xyes; then
17468   sed -e '/^func_append ()$/,/^} # func_append /c\
17469 func_append ()\
17470 {\
17471     eval "${1}+=\\${2}"\
17472 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17473   && mv -f "$cfgfile.tmp" "$cfgfile" \
17474     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17475 test 0 -eq $? || _lt_function_replace_fail=:
17476
17477
17478   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17479 func_append_quoted ()\
17480 {\
17481 \    func_quote_for_eval "${2}"\
17482 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17483 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17484   && mv -f "$cfgfile.tmp" "$cfgfile" \
17485     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17486 test 0 -eq $? || _lt_function_replace_fail=:
17487
17488
17489   # Save a `func_append' function call where possible by direct use of '+='
17490   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17491     && mv -f "$cfgfile.tmp" "$cfgfile" \
17492       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17493   test 0 -eq $? || _lt_function_replace_fail=:
17494 else
17495   # Save a `func_append' function call even when '+=' is not available
17496   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17497     && mv -f "$cfgfile.tmp" "$cfgfile" \
17498       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17499   test 0 -eq $? || _lt_function_replace_fail=:
17500 fi
17501
17502 if test x"$_lt_function_replace_fail" = x":"; then
17503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17504 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17505 fi
17506
17507
17508    mv -f "$cfgfile" "$ofile" ||
17509     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17510   chmod +x "$ofile"
17511
17512  ;;
17513     "include":C) test -d include || mkdir include ;;
17514     "src":C)
17515 test -d src || mkdir src
17516 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17517  ;;
17518
17519   esac
17520 done # for ac_tag
17521
17522
17523 as_fn_exit 0
17524 _ACEOF
17525 ac_clean_files=$ac_clean_files_save
17526
17527 test $ac_write_fail = 0 ||
17528   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17529
17530
17531 # configure is writing to config.log, and then calls config.status.
17532 # config.status does its own redirection, appending to config.log.
17533 # Unfortunately, on DOS this fails, as config.log is still kept open
17534 # by configure, so config.status won't be able to write to it; its
17535 # output is simply discarded.  So we exec the FD to /dev/null,
17536 # effectively closing config.log, so it can be properly (re)opened and
17537 # appended to by config.status.  When coming back to configure, we
17538 # need to make the FD available again.
17539 if test "$no_create" != yes; then
17540   ac_cs_success=:
17541   ac_config_status_args=
17542   test "$silent" = yes &&
17543     ac_config_status_args="$ac_config_status_args --quiet"
17544   exec 5>/dev/null
17545   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17546   exec 5>>config.log
17547   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17548   # would make configure fail if this is the last instruction.
17549   $ac_cs_success || as_fn_exit 1
17550 fi
17551 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17552   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17553 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17554 fi
17555