Restore execute permissions
[platform/upstream/libffi.git] / .pc / spelling / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libffi 3.0.10rc0.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://gcc.gnu.org/bugs.html about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='libffi'
703 PACKAGE_TARNAME='libffi'
704 PACKAGE_VERSION='3.0.10rc0'
705 PACKAGE_STRING='libffi 3.0.10rc0'
706 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
707 PACKAGE_URL=''
708
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 #  include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 #  include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 ac_subst_vars='am__EXEEXT_FALSE
746 am__EXEEXT_TRUE
747 LTLIBOBJS
748 LIBOBJS
749 toolexeclibdir
750 toolexecdir
751 TARGETDIR
752 TARGET
753 HAVE_LONG_DOUBLE
754 ALLOCA
755 PA64_HPUX_FALSE
756 PA64_HPUX_TRUE
757 PA_HPUX_FALSE
758 PA_HPUX_TRUE
759 PA_LINUX_FALSE
760 PA_LINUX_TRUE
761 SH64_FALSE
762 SH64_TRUE
763 SH_FALSE
764 SH_TRUE
765 X86_64_FALSE
766 X86_64_TRUE
767 S390_FALSE
768 S390_TRUE
769 FRV_FALSE
770 FRV_TRUE
771 LIBFFI_CRIS_FALSE
772 LIBFFI_CRIS_TRUE
773 AVR32_FALSE
774 AVR32_TRUE
775 ARM_FALSE
776 ARM_TRUE
777 POWERPC_FREEBSD_FALSE
778 POWERPC_FREEBSD_TRUE
779 POWERPC_DARWIN_FALSE
780 POWERPC_DARWIN_TRUE
781 POWERPC_AIX_FALSE
782 POWERPC_AIX_TRUE
783 POWERPC_FALSE
784 POWERPC_TRUE
785 MOXIE_FALSE
786 MOXIE_TRUE
787 M68K_FALSE
788 M68K_TRUE
789 M32R_FALSE
790 M32R_TRUE
791 IA64_FALSE
792 IA64_TRUE
793 ALPHA_FALSE
794 ALPHA_TRUE
795 X86_DARWIN_FALSE
796 X86_DARWIN_TRUE
797 X86_WIN64_FALSE
798 X86_WIN64_TRUE
799 X86_WIN32_FALSE
800 X86_WIN32_TRUE
801 X86_FREEBSD_FALSE
802 X86_FREEBSD_TRUE
803 X86_FALSE
804 X86_TRUE
805 SPARC_FALSE
806 SPARC_TRUE
807 MIPS_FALSE
808 MIPS_TRUE
809 AM_LTLDFLAGS
810 AM_RUNTESTFLAGS
811 TESTSUBDIR_FALSE
812 TESTSUBDIR_TRUE
813 MAINT
814 MAINTAINER_MODE_FALSE
815 MAINTAINER_MODE_TRUE
816 CPP
817 OTOOL64
818 OTOOL
819 LIPO
820 NMEDIT
821 DSYMUTIL
822 lt_ECHO
823 RANLIB
824 AR
825 OBJDUMP
826 LN_S
827 NM
828 ac_ct_DUMPBIN
829 DUMPBIN
830 LD
831 FGREP
832 EGREP
833 GREP
834 SED
835 LIBTOOL
836 am__fastdepCCAS_FALSE
837 am__fastdepCCAS_TRUE
838 CCASDEPMODE
839 CCASFLAGS
840 CCAS
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 AMDEPBACKSLASH
845 AMDEP_FALSE
846 AMDEP_TRUE
847 am__quote
848 am__include
849 DEPDIR
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 am__untar
858 am__tar
859 AMTAR
860 am__leading_dot
861 SET_MAKE
862 AWK
863 mkdir_p
864 MKDIR_P
865 INSTALL_STRIP_PROGRAM
866 STRIP
867 install_sh
868 MAKEINFO
869 AUTOHEADER
870 AUTOMAKE
871 AUTOCONF
872 ACLOCAL
873 VERSION
874 PACKAGE
875 CYGPATH_W
876 am__isrc
877 INSTALL_DATA
878 INSTALL_SCRIPT
879 INSTALL_PROGRAM
880 target_os
881 target_vendor
882 target_cpu
883 target
884 host_os
885 host_vendor
886 host_cpu
887 host
888 build_os
889 build_vendor
890 build_cpu
891 build
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 localstatedir
912 sharedstatedir
913 sysconfdir
914 datadir
915 datarootdir
916 libexecdir
917 sbindir
918 bindir
919 program_transform_name
920 prefix
921 exec_prefix
922 PACKAGE_URL
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_dependency_tracking
934 enable_shared
935 enable_static
936 with_pic
937 enable_fast_install
938 with_gnu_ld
939 enable_libtool_lock
940 enable_maintainer_mode
941 enable_debug
942 enable_structs
943 enable_raw_api
944 enable_purify_safety
945 '
946       ac_precious_vars='build_alias
947 host_alias
948 target_alias
949 CCAS
950 CCASFLAGS
951 CPP
952 CPPFLAGS'
953
954
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
976
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1002
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1006 do
1007   # If the previous option needs an argument, assign it.
1008   if test -n "$ac_prev"; then
1009     eval $ac_prev=\$ac_option
1010     ac_prev=
1011     continue
1012   fi
1013
1014   case $ac_option in
1015   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016   *)    ac_optarg=yes ;;
1017   esac
1018
1019   # Accept the important Cygnus configure options, so we can diagnose typos.
1020
1021   case $ac_dashdash$ac_option in
1022   --)
1023     ac_dashdash=yes ;;
1024
1025   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026     ac_prev=bindir ;;
1027   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028     bindir=$ac_optarg ;;
1029
1030   -build | --build | --buil | --bui | --bu)
1031     ac_prev=build_alias ;;
1032   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033     build_alias=$ac_optarg ;;
1034
1035   -cache-file | --cache-file | --cache-fil | --cache-fi \
1036   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037     ac_prev=cache_file ;;
1038   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040     cache_file=$ac_optarg ;;
1041
1042   --config-cache | -C)
1043     cache_file=config.cache ;;
1044
1045   -datadir | --datadir | --datadi | --datad)
1046     ac_prev=datadir ;;
1047   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048     datadir=$ac_optarg ;;
1049
1050   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051   | --dataroo | --dataro | --datar)
1052     ac_prev=datarootdir ;;
1053   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055     datarootdir=$ac_optarg ;;
1056
1057   -disable-* | --disable-*)
1058     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061       as_fn_error "invalid feature name: $ac_useropt"
1062     ac_useropt_orig=$ac_useropt
1063     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064     case $ac_user_opts in
1065       *"
1066 "enable_$ac_useropt"
1067 "*) ;;
1068       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1069          ac_unrecognized_sep=', ';;
1070     esac
1071     eval enable_$ac_useropt=no ;;
1072
1073   -docdir | --docdir | --docdi | --doc | --do)
1074     ac_prev=docdir ;;
1075   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076     docdir=$ac_optarg ;;
1077
1078   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079     ac_prev=dvidir ;;
1080   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081     dvidir=$ac_optarg ;;
1082
1083   -enable-* | --enable-*)
1084     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085     # Reject names that are not valid shell variable names.
1086     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087       as_fn_error "invalid feature name: $ac_useropt"
1088     ac_useropt_orig=$ac_useropt
1089     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090     case $ac_user_opts in
1091       *"
1092 "enable_$ac_useropt"
1093 "*) ;;
1094       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095          ac_unrecognized_sep=', ';;
1096     esac
1097     eval enable_$ac_useropt=\$ac_optarg ;;
1098
1099   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101   | --exec | --exe | --ex)
1102     ac_prev=exec_prefix ;;
1103   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105   | --exec=* | --exe=* | --ex=*)
1106     exec_prefix=$ac_optarg ;;
1107
1108   -gas | --gas | --ga | --g)
1109     # Obsolete; use --with-gas.
1110     with_gas=yes ;;
1111
1112   -help | --help | --hel | --he | -h)
1113     ac_init_help=long ;;
1114   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115     ac_init_help=recursive ;;
1116   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117     ac_init_help=short ;;
1118
1119   -host | --host | --hos | --ho)
1120     ac_prev=host_alias ;;
1121   -host=* | --host=* | --hos=* | --ho=*)
1122     host_alias=$ac_optarg ;;
1123
1124   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125     ac_prev=htmldir ;;
1126   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127   | --ht=*)
1128     htmldir=$ac_optarg ;;
1129
1130   -includedir | --includedir | --includedi | --included | --include \
1131   | --includ | --inclu | --incl | --inc)
1132     ac_prev=includedir ;;
1133   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134   | --includ=* | --inclu=* | --incl=* | --inc=*)
1135     includedir=$ac_optarg ;;
1136
1137   -infodir | --infodir | --infodi | --infod | --info | --inf)
1138     ac_prev=infodir ;;
1139   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140     infodir=$ac_optarg ;;
1141
1142   -libdir | --libdir | --libdi | --libd)
1143     ac_prev=libdir ;;
1144   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145     libdir=$ac_optarg ;;
1146
1147   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148   | --libexe | --libex | --libe)
1149     ac_prev=libexecdir ;;
1150   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151   | --libexe=* | --libex=* | --libe=*)
1152     libexecdir=$ac_optarg ;;
1153
1154   -localedir | --localedir | --localedi | --localed | --locale)
1155     ac_prev=localedir ;;
1156   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157     localedir=$ac_optarg ;;
1158
1159   -localstatedir | --localstatedir | --localstatedi | --localstated \
1160   | --localstate | --localstat | --localsta | --localst | --locals)
1161     ac_prev=localstatedir ;;
1162   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164     localstatedir=$ac_optarg ;;
1165
1166   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167     ac_prev=mandir ;;
1168   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169     mandir=$ac_optarg ;;
1170
1171   -nfp | --nfp | --nf)
1172     # Obsolete; use --without-fp.
1173     with_fp=no ;;
1174
1175   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176   | --no-cr | --no-c | -n)
1177     no_create=yes ;;
1178
1179   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181     no_recursion=yes ;;
1182
1183   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185   | --oldin | --oldi | --old | --ol | --o)
1186     ac_prev=oldincludedir ;;
1187   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190     oldincludedir=$ac_optarg ;;
1191
1192   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193     ac_prev=prefix ;;
1194   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195     prefix=$ac_optarg ;;
1196
1197   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198   | --program-pre | --program-pr | --program-p)
1199     ac_prev=program_prefix ;;
1200   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202     program_prefix=$ac_optarg ;;
1203
1204   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205   | --program-suf | --program-su | --program-s)
1206     ac_prev=program_suffix ;;
1207   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209     program_suffix=$ac_optarg ;;
1210
1211   -program-transform-name | --program-transform-name \
1212   | --program-transform-nam | --program-transform-na \
1213   | --program-transform-n | --program-transform- \
1214   | --program-transform | --program-transfor \
1215   | --program-transfo | --program-transf \
1216   | --program-trans | --program-tran \
1217   | --progr-tra | --program-tr | --program-t)
1218     ac_prev=program_transform_name ;;
1219   -program-transform-name=* | --program-transform-name=* \
1220   | --program-transform-nam=* | --program-transform-na=* \
1221   | --program-transform-n=* | --program-transform-=* \
1222   | --program-transform=* | --program-transfor=* \
1223   | --program-transfo=* | --program-transf=* \
1224   | --program-trans=* | --program-tran=* \
1225   | --progr-tra=* | --program-tr=* | --program-t=*)
1226     program_transform_name=$ac_optarg ;;
1227
1228   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229     ac_prev=pdfdir ;;
1230   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231     pdfdir=$ac_optarg ;;
1232
1233   -psdir | --psdir | --psdi | --psd | --ps)
1234     ac_prev=psdir ;;
1235   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236     psdir=$ac_optarg ;;
1237
1238   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239   | -silent | --silent | --silen | --sile | --sil)
1240     silent=yes ;;
1241
1242   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243     ac_prev=sbindir ;;
1244   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245   | --sbi=* | --sb=*)
1246     sbindir=$ac_optarg ;;
1247
1248   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250   | --sharedst | --shareds | --shared | --share | --shar \
1251   | --sha | --sh)
1252     ac_prev=sharedstatedir ;;
1253   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256   | --sha=* | --sh=*)
1257     sharedstatedir=$ac_optarg ;;
1258
1259   -site | --site | --sit)
1260     ac_prev=site ;;
1261   -site=* | --site=* | --sit=*)
1262     site=$ac_optarg ;;
1263
1264   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265     ac_prev=srcdir ;;
1266   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267     srcdir=$ac_optarg ;;
1268
1269   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270   | --syscon | --sysco | --sysc | --sys | --sy)
1271     ac_prev=sysconfdir ;;
1272   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274     sysconfdir=$ac_optarg ;;
1275
1276   -target | --target | --targe | --targ | --tar | --ta | --t)
1277     ac_prev=target_alias ;;
1278   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279     target_alias=$ac_optarg ;;
1280
1281   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282     verbose=yes ;;
1283
1284   -version | --version | --versio | --versi | --vers | -V)
1285     ac_init_version=: ;;
1286
1287   -with-* | --with-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error "invalid package name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=\$ac_optarg ;;
1302
1303   -without-* | --without-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error "invalid package name: $ac_useropt"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval with_$ac_useropt=no ;;
1318
1319   --x)
1320     # Obsolete; use --with-x.
1321     with_x=yes ;;
1322
1323   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324   | --x-incl | --x-inc | --x-in | --x-i)
1325     ac_prev=x_includes ;;
1326   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328     x_includes=$ac_optarg ;;
1329
1330   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332     ac_prev=x_libraries ;;
1333   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335     x_libraries=$ac_optarg ;;
1336
1337   -*) as_fn_error "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information."
1339     ;;
1340
1341   *=*)
1342     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343     # Reject names that are not valid shell variable names.
1344     case $ac_envvar in #(
1345       '' | [0-9]* | *[!_$as_cr_alnum]* )
1346       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1347     esac
1348     eval $ac_envvar=\$ac_optarg
1349     export $ac_envvar ;;
1350
1351   *)
1352     # FIXME: should be removed in autoconf 3.0.
1353     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357     ;;
1358
1359   esac
1360 done
1361
1362 if test -n "$ac_prev"; then
1363   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364   as_fn_error "missing argument to $ac_option"
1365 fi
1366
1367 if test -n "$ac_unrecognized_opts"; then
1368   case $enable_option_checking in
1369     no) ;;
1370     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1371     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372   esac
1373 fi
1374
1375 # Check all directory arguments for consistency.
1376 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377                 datadir sysconfdir sharedstatedir localstatedir includedir \
1378                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379                 libdir localedir mandir
1380 do
1381   eval ac_val=\$$ac_var
1382   # Remove trailing slashes.
1383   case $ac_val in
1384     */ )
1385       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386       eval $ac_var=\$ac_val;;
1387   esac
1388   # Be sure to have absolute directory names.
1389   case $ac_val in
1390     [\\/$]* | ?:[\\/]* )  continue;;
1391     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392   esac
1393   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1394 done
1395
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1399 build=$build_alias
1400 host=$host_alias
1401 target=$target_alias
1402
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405   if test "x$build_alias" = x; then
1406     cross_compiling=maybe
1407     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1408     If a cross compiler is detected then cross compile mode will be used." >&2
1409   elif test "x$build_alias" != "x$host_alias"; then
1410     cross_compiling=yes
1411   fi
1412 fi
1413
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417 test "$silent" = yes && exec 6>/dev/null
1418
1419
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423   as_fn_error "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425   as_fn_error "pwd does not report name of working directory"
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430   ac_srcdir_defaulted=yes
1431   # Try the directory containing this script, then the parent directory.
1432   ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434          X"$as_myself" : 'X\(//\)[^/]' \| \
1435          X"$as_myself" : 'X\(//\)$' \| \
1436          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)[^/].*/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\/\)$/{
1447             s//\1/
1448             q
1449           }
1450           /^X\(\/\).*/{
1451             s//\1/
1452             q
1453           }
1454           s/.*/./; q'`
1455   srcdir=$ac_confdir
1456   if test ! -r "$srcdir/$ac_unique_file"; then
1457     srcdir=..
1458   fi
1459 else
1460   ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1469         pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472   srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_env_${ac_var}_value=\$${ac_var}
1483   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491   # Omit some internal or obsolete options to make the list less imposing.
1492   # This message is too long to be a string in the A/UX 3.1 sh.
1493   cat <<_ACEOF
1494 \`configure' configures libffi 3.0.10rc0 to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE.  See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504   -h, --help              display this help and exit
1505       --help=short        display options specific to this package
1506       --help=recursive    display the short help of all the included packages
1507   -V, --version           display version information and exit
1508   -q, --quiet, --silent   do not print \`checking...' messages
1509       --cache-file=FILE   cache test results in FILE [disabled]
1510   -C, --config-cache      alias for \`--cache-file=config.cache'
1511   -n, --no-create         do not create output files
1512       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515   --prefix=PREFIX         install architecture-independent files in PREFIX
1516                           [$ac_default_prefix]
1517   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1518                           [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528   --bindir=DIR            user executables [EPREFIX/bin]
1529   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1530   --libexecdir=DIR        program executables [EPREFIX/libexec]
1531   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1532   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1533   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1534   --libdir=DIR            object code libraries [EPREFIX/lib]
1535   --includedir=DIR        C header files [PREFIX/include]
1536   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1537   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1538   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1539   --infodir=DIR           info documentation [DATAROOTDIR/info]
1540   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1541   --mandir=DIR            man documentation [DATAROOTDIR/man]
1542   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1543   --htmldir=DIR           html documentation [DOCDIR]
1544   --dvidir=DIR            dvi documentation [DOCDIR]
1545   --pdfdir=DIR            pdf documentation [DOCDIR]
1546   --psdir=DIR             ps documentation [DOCDIR]
1547 _ACEOF
1548
1549   cat <<\_ACEOF
1550
1551 Program names:
1552   --program-prefix=PREFIX            prepend PREFIX to installed program names
1553   --program-suffix=SUFFIX            append SUFFIX to installed program names
1554   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1555
1556 System types:
1557   --build=BUILD     configure for building on BUILD [guessed]
1558   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1559   --target=TARGET   configure for building compilers for TARGET [HOST]
1560 _ACEOF
1561 fi
1562
1563 if test -n "$ac_init_help"; then
1564   case $ac_init_help in
1565      short | recursive ) echo "Configuration of libffi 3.0.10rc0:";;
1566    esac
1567   cat <<\_ACEOF
1568
1569 Optional Features:
1570   --disable-option-checking  ignore unrecognized --enable/--with options
1571   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1572   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1573   --disable-dependency-tracking  speeds up one-time build
1574   --enable-dependency-tracking   do not reject slow dependency extractors
1575   --enable-shared[=PKGS]  build shared libraries [default=yes]
1576   --enable-static[=PKGS]  build static libraries [default=yes]
1577   --enable-fast-install[=PKGS]
1578                           optimize for fast installation [default=yes]
1579   --disable-libtool-lock  avoid locking (might break parallel builds)
1580   --enable-maintainer-mode  enable make rules and dependencies not useful
1581                           (and sometimes confusing) to the casual installer
1582   --enable-debug          debugging mode
1583   --disable-structs       omit code for struct support
1584   --disable-raw-api       make the raw api unavailable
1585   --enable-purify-safety  purify-safe mode
1586
1587 Optional Packages:
1588   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590   --with-pic              try to use only PIC/non-PIC objects [default=use
1591                           both]
1592   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1593
1594 Some influential environment variables:
1595   CC          C compiler command
1596   CFLAGS      C compiler flags
1597   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1598               nonstandard directory <lib dir>
1599   LIBS        libraries to pass to the linker, e.g. -l<library>
1600   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601               you have headers in a nonstandard directory <include dir>
1602   CCAS        assembler compiler command (defaults to CC)
1603   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1604   CPP         C preprocessor
1605
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1608
1609 Report bugs to <http://gcc.gnu.org/bugs.html>.
1610 _ACEOF
1611 ac_status=$?
1612 fi
1613
1614 if test "$ac_init_help" = "recursive"; then
1615   # If there are subdirs, report their specific --help.
1616   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617     test -d "$ac_dir" ||
1618       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619       continue
1620     ac_builddir=.
1621
1622 case "$ac_dir" in
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *)
1625   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626   # A ".." for each directory in $ac_dir_suffix.
1627   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628   case $ac_top_builddir_sub in
1629   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631   esac ;;
1632 esac
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1637
1638 case $srcdir in
1639   .)  # We are building in place.
1640     ac_srcdir=.
1641     ac_top_srcdir=$ac_top_builddir_sub
1642     ac_abs_top_srcdir=$ac_pwd ;;
1643   [\\/]* | ?:[\\/]* )  # Absolute name.
1644     ac_srcdir=$srcdir$ac_dir_suffix;
1645     ac_top_srcdir=$srcdir
1646     ac_abs_top_srcdir=$srcdir ;;
1647   *) # Relative name.
1648     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649     ac_top_srcdir=$ac_top_build_prefix$srcdir
1650     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 esac
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654     cd "$ac_dir" || { ac_status=$?; continue; }
1655     # Check for guested configure.
1656     if test -f "$ac_srcdir/configure.gnu"; then
1657       echo &&
1658       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659     elif test -f "$ac_srcdir/configure"; then
1660       echo &&
1661       $SHELL "$ac_srcdir/configure" --help=recursive
1662     else
1663       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664     fi || ac_status=$?
1665     cd "$ac_pwd" || { ac_status=$?; break; }
1666   done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671   cat <<\_ACEOF
1672 libffi configure 3.0.10rc0
1673 generated by GNU Autoconf 2.65
1674
1675 Copyright (C) 2009 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679   exit
1680 fi
1681
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1685
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   rm -f conftest.$ac_objext
1693   if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_compile") 2>conftest.err
1701   ac_status=$?
1702   if test -s conftest.err; then
1703     grep -v '^ *+' conftest.err >conftest.er1
1704     cat conftest.er1 >&5
1705     mv -f conftest.er1 conftest.err
1706   fi
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && {
1709          test -z "$ac_c_werror_flag" ||
1710          test ! -s conftest.err
1711        } && test -s conftest.$ac_objext; then :
1712   ac_retval=0
1713 else
1714   $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717         ac_retval=1
1718 fi
1719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720   as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_compile
1723
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   rm -f conftest.$ac_objext conftest$ac_exeext
1731   if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_link") 2>conftest.err
1739   ac_status=$?
1740   if test -s conftest.err; then
1741     grep -v '^ *+' conftest.err >conftest.er1
1742     cat conftest.er1 >&5
1743     mv -f conftest.er1 conftest.err
1744   fi
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } && {
1747          test -z "$ac_c_werror_flag" ||
1748          test ! -s conftest.err
1749        } && test -s conftest$ac_exeext && {
1750          test "$cross_compiling" = yes ||
1751          $as_test_x conftest$ac_exeext
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   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762   # interfere with the next link command; also delete a directory that is
1763   # left behind by Apple's compiler.  We do this before executing the actions.
1764   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_link
1769
1770 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists and can be compiled using the include files in
1773 # INCLUDES, setting the cache variable VAR accordingly.
1774 ac_fn_c_check_header_compile ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780   $as_echo_n "(cached) " >&6
1781 else
1782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h.  */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788   eval "$3=yes"
1789 else
1790   eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
1795                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799 } # ac_fn_c_check_header_compile
1800
1801 # ac_fn_c_try_cpp LINENO
1802 # ----------------------
1803 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_cpp ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   if { { ac_try="$ac_cpp conftest.$ac_ext"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815   ac_status=$?
1816   if test -s conftest.err; then
1817     grep -v '^ *+' conftest.err >conftest.er1
1818     cat conftest.er1 >&5
1819     mv -f conftest.er1 conftest.err
1820   fi
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } >/dev/null && {
1823          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1824          test ! -s conftest.err
1825        }; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831     ac_retval=1
1832 fi
1833   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834   as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_cpp
1837
1838 # ac_fn_c_try_run LINENO
1839 # ----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841 # that executables *can* be run.
1842 ac_fn_c_try_run ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_link") 2>&5
1853   ac_status=$?
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856   { { case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_try") 2>&5
1863   ac_status=$?
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; }; }; then :
1866   ac_retval=0
1867 else
1868   $as_echo "$as_me: program exited with status $ac_status" >&5
1869        $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872        ac_retval=$ac_status
1873 fi
1874   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876   as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_run
1879
1880 # ac_fn_c_check_func LINENO FUNC VAR
1881 # ----------------------------------
1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1883 ac_fn_c_check_func ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1895 #define $2 innocuous_$2
1896
1897 /* System header to define __stub macros and hopefully few prototypes,
1898     which can conflict with char $2 (); below.
1899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900     <limits.h> exists even on freestanding compilers.  */
1901
1902 #ifdef __STDC__
1903 # include <limits.h>
1904 #else
1905 # include <assert.h>
1906 #endif
1907
1908 #undef $2
1909
1910 /* Override any GCC internal prototype to avoid an error.
1911    Use char because int might match the return type of a GCC
1912    builtin and then its argument prototype would still apply.  */
1913 #ifdef __cplusplus
1914 extern "C"
1915 #endif
1916 char $2 ();
1917 /* The GNU C library defines this for functions which it implements
1918     to always fail with ENOSYS.  Some functions are actually named
1919     something starting with __ and the normal name is an alias.  */
1920 #if defined __stub_$2 || defined __stub___$2
1921 choke me
1922 #endif
1923
1924 int
1925 main ()
1926 {
1927 return $2 ();
1928   ;
1929   return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_link "$LINENO"; then :
1933   eval "$3=yes"
1934 else
1935   eval "$3=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext \
1938     conftest$ac_exeext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945 } # ac_fn_c_check_func
1946
1947 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1948 # -------------------------------------------------------
1949 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1950 # the include files in INCLUDES and setting the cache variable VAR
1951 # accordingly.
1952 ac_fn_c_check_header_mongrel ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959   $as_echo_n "(cached) " >&6
1960 fi
1961 eval ac_res=\$$3
1962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 else
1965   # Is the header compilable?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1967 $as_echo_n "checking $2 usability... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h.  */
1970 $4
1971 #include <$2>
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974   ac_header_compiler=yes
1975 else
1976   ac_header_compiler=no
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1980 $as_echo "$ac_header_compiler" >&6; }
1981
1982 # Is the header present?
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1984 $as_echo_n "checking $2 presence... " >&6; }
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h.  */
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_cpp "$LINENO"; then :
1990   ac_header_preproc=yes
1991 else
1992   ac_header_preproc=no
1993 fi
1994 rm -f conftest.err conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1996 $as_echo "$ac_header_preproc" >&6; }
1997
1998 # So?  What about this header?
1999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2000   yes:no: )
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2002 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005     ;;
2006   no:yes:* )
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2008 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2010 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2012 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2014 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2015     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 ( cat <<\_ASBOX
2018 ## ------------------------------------------- ##
2019 ## Report this to http://gcc.gnu.org/bugs.html ##
2020 ## ------------------------------------------- ##
2021 _ASBOX
2022      ) | sed "s/^/$as_me: WARNING:     /" >&2
2023     ;;
2024 esac
2025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028   $as_echo_n "(cached) " >&6
2029 else
2030   eval "$3=\$ac_header_compiler"
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 fi
2036   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
2038 } # ac_fn_c_check_header_mongrel
2039
2040 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2041 # --------------------------------------------
2042 # Tries to find the compile-time value of EXPR in a program that includes
2043 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2044 # computed
2045 ac_fn_c_compute_int ()
2046 {
2047   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048   if test "$cross_compiling" = yes; then
2049     # Depending upon the size, compute the lo and hi bounds.
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 int
2054 main ()
2055 {
2056 static int test_array [1 - 2 * !(($2) >= 0)];
2057 test_array [0] = 0
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064   ac_lo=0 ac_mid=0
2065   while :; do
2066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h.  */
2068 $4
2069 int
2070 main ()
2071 {
2072 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073 test_array [0] = 0
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080   ac_hi=$ac_mid; break
2081 else
2082   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2083                         if test $ac_lo -le $ac_mid; then
2084                           ac_lo= ac_hi=
2085                           break
2086                         fi
2087                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090   done
2091 else
2092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h.  */
2094 $4
2095 int
2096 main ()
2097 {
2098 static int test_array [1 - 2 * !(($2) < 0)];
2099 test_array [0] = 0
2100
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   ac_hi=-1 ac_mid=-1
2107   while :; do
2108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2115 test_array [0] = 0
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122   ac_lo=$ac_mid; break
2123 else
2124   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2125                         if test $ac_mid -le $ac_hi; then
2126                           ac_lo= ac_hi=
2127                           break
2128                         fi
2129                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132   done
2133 else
2134   ac_lo= ac_hi=
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 # Binary search between lo and hi bounds.
2140 while test "x$ac_lo" != "x$ac_hi"; do
2141   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h.  */
2144 $4
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   ac_hi=$ac_mid
2157 else
2158   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162 case $ac_lo in #((
2163 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2164 '') ac_retval=1 ;;
2165 esac
2166   else
2167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h.  */
2169 $4
2170 static long int longval () { return $2; }
2171 static unsigned long int ulongval () { return $2; }
2172 #include <stdio.h>
2173 #include <stdlib.h>
2174 int
2175 main ()
2176 {
2177
2178   FILE *f = fopen ("conftest.val", "w");
2179   if (! f)
2180     return 1;
2181   if (($2) < 0)
2182     {
2183       long int i = longval ();
2184       if (i != ($2))
2185         return 1;
2186       fprintf (f, "%ld", i);
2187     }
2188   else
2189     {
2190       unsigned long int i = ulongval ();
2191       if (i != ($2))
2192         return 1;
2193       fprintf (f, "%lu", i);
2194     }
2195   /* Do not output a trailing newline, as this causes \r\n confusion
2196      on some platforms.  */
2197   return ferror (f) || fclose (f) != 0;
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_run "$LINENO"; then :
2204   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2205 else
2206   ac_retval=1
2207 fi
2208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2209   conftest.$ac_objext conftest.beam conftest.$ac_ext
2210 rm -f conftest.val
2211
2212   fi
2213   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2214   as_fn_set_status $ac_retval
2215
2216 } # ac_fn_c_compute_int
2217 cat >config.log <<_ACEOF
2218 This file contains any messages produced by compilers while
2219 running configure, to aid debugging if configure makes a mistake.
2220
2221 It was created by libffi $as_me 3.0.10rc0, which was
2222 generated by GNU Autoconf 2.65.  Invocation command line was
2223
2224   $ $0 $@
2225
2226 _ACEOF
2227 exec 5>>config.log
2228 {
2229 cat <<_ASUNAME
2230 ## --------- ##
2231 ## Platform. ##
2232 ## --------- ##
2233
2234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2239
2240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2241 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2242
2243 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2244 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2246 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2247 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2248 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2249 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2250
2251 _ASUNAME
2252
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258     $as_echo "PATH: $as_dir"
2259   done
2260 IFS=$as_save_IFS
2261
2262 } >&5
2263
2264 cat >&5 <<_ACEOF
2265
2266
2267 ## ----------- ##
2268 ## Core tests. ##
2269 ## ----------- ##
2270
2271 _ACEOF
2272
2273
2274 # Keep a trace of the command line.
2275 # Strip out --no-create and --no-recursion so they do not pile up.
2276 # Strip out --silent because we don't want to record it for future runs.
2277 # Also quote any args containing shell meta-characters.
2278 # Make two passes to allow for proper duplicate-argument suppression.
2279 ac_configure_args=
2280 ac_configure_args0=
2281 ac_configure_args1=
2282 ac_must_keep_next=false
2283 for ac_pass in 1 2
2284 do
2285   for ac_arg
2286   do
2287     case $ac_arg in
2288     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2289     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2290     | -silent | --silent | --silen | --sile | --sil)
2291       continue ;;
2292     *\'*)
2293       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2294     esac
2295     case $ac_pass in
2296     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2297     2)
2298       as_fn_append ac_configure_args1 " '$ac_arg'"
2299       if test $ac_must_keep_next = true; then
2300         ac_must_keep_next=false # Got value, back to normal.
2301       else
2302         case $ac_arg in
2303           *=* | --config-cache | -C | -disable-* | --disable-* \
2304           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2305           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2306           | -with-* | --with-* | -without-* | --without-* | --x)
2307             case "$ac_configure_args0 " in
2308               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2309             esac
2310             ;;
2311           -* ) ac_must_keep_next=true ;;
2312         esac
2313       fi
2314       as_fn_append ac_configure_args " '$ac_arg'"
2315       ;;
2316     esac
2317   done
2318 done
2319 { ac_configure_args0=; unset ac_configure_args0;}
2320 { ac_configure_args1=; unset ac_configure_args1;}
2321
2322 # When interrupted or exit'd, cleanup temporary files, and complete
2323 # config.log.  We remove comments because anyway the quotes in there
2324 # would cause problems or look ugly.
2325 # WARNING: Use '\'' to represent an apostrophe within the trap.
2326 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2327 trap 'exit_status=$?
2328   # Save into config.log some information that might help in debugging.
2329   {
2330     echo
2331
2332     cat <<\_ASBOX
2333 ## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##
2336 _ASBOX
2337     echo
2338     # The following way of writing the cache mishandles newlines in values,
2339 (
2340   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2341     eval ac_val=\$$ac_var
2342     case $ac_val in #(
2343     *${as_nl}*)
2344       case $ac_var in #(
2345       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2347       esac
2348       case $ac_var in #(
2349       _ | IFS | as_nl) ;; #(
2350       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2351       *) { eval $ac_var=; unset $ac_var;} ;;
2352       esac ;;
2353     esac
2354   done
2355   (set) 2>&1 |
2356     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2357     *${as_nl}ac_space=\ *)
2358       sed -n \
2359         "s/'\''/'\''\\\\'\'''\''/g;
2360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2361       ;; #(
2362     *)
2363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2364       ;;
2365     esac |
2366     sort
2367 )
2368     echo
2369
2370     cat <<\_ASBOX
2371 ## ----------------- ##
2372 ## Output variables. ##
2373 ## ----------------- ##
2374 _ASBOX
2375     echo
2376     for ac_var in $ac_subst_vars
2377     do
2378       eval ac_val=\$$ac_var
2379       case $ac_val in
2380       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381       esac
2382       $as_echo "$ac_var='\''$ac_val'\''"
2383     done | sort
2384     echo
2385
2386     if test -n "$ac_subst_files"; then
2387       cat <<\_ASBOX
2388 ## ------------------- ##
2389 ## File substitutions. ##
2390 ## ------------------- ##
2391 _ASBOX
2392       echo
2393       for ac_var in $ac_subst_files
2394       do
2395         eval ac_val=\$$ac_var
2396         case $ac_val in
2397         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398         esac
2399         $as_echo "$ac_var='\''$ac_val'\''"
2400       done | sort
2401       echo
2402     fi
2403
2404     if test -s confdefs.h; then
2405       cat <<\_ASBOX
2406 ## ----------- ##
2407 ## confdefs.h. ##
2408 ## ----------- ##
2409 _ASBOX
2410       echo
2411       cat confdefs.h
2412       echo
2413     fi
2414     test "$ac_signal" != 0 &&
2415       $as_echo "$as_me: caught signal $ac_signal"
2416     $as_echo "$as_me: exit $exit_status"
2417   } >&5
2418   rm -f core *.core core.conftest.* &&
2419     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2420     exit $exit_status
2421 ' 0
2422 for ac_signal in 1 2 13 15; do
2423   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2424 done
2425 ac_signal=0
2426
2427 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2428 rm -f -r conftest* confdefs.h
2429
2430 $as_echo "/* confdefs.h */" > confdefs.h
2431
2432 # Predefined preprocessor variables.
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_NAME "$PACKAGE_NAME"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_STRING "$PACKAGE_STRING"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2452 _ACEOF
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_URL "$PACKAGE_URL"
2456 _ACEOF
2457
2458
2459 # Let the site file select an alternate cache file if it wants to.
2460 # Prefer an explicitly selected file to automatically selected ones.
2461 ac_site_file1=NONE
2462 ac_site_file2=NONE
2463 if test -n "$CONFIG_SITE"; then
2464   ac_site_file1=$CONFIG_SITE
2465 elif test "x$prefix" != xNONE; then
2466   ac_site_file1=$prefix/share/config.site
2467   ac_site_file2=$prefix/etc/config.site
2468 else
2469   ac_site_file1=$ac_default_prefix/share/config.site
2470   ac_site_file2=$ac_default_prefix/etc/config.site
2471 fi
2472 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2473 do
2474   test "x$ac_site_file" = xNONE && continue
2475   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2478     sed 's/^/| /' "$ac_site_file" >&5
2479     . "$ac_site_file"
2480   fi
2481 done
2482
2483 if test -r "$cache_file"; then
2484   # Some versions of bash will fail to source /dev/null (special files
2485   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2486   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488 $as_echo "$as_me: loading cache $cache_file" >&6;}
2489     case $cache_file in
2490       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491       *)                      . "./$cache_file";;
2492     esac
2493   fi
2494 else
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496 $as_echo "$as_me: creating cache $cache_file" >&6;}
2497   >$cache_file
2498 fi
2499
2500 # Check that the precious variables saved in the cache have kept the same
2501 # value.
2502 ac_cache_corrupted=false
2503 for ac_var in $ac_precious_vars; do
2504   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505   eval ac_new_set=\$ac_env_${ac_var}_set
2506   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507   eval ac_new_val=\$ac_env_${ac_var}_value
2508   case $ac_old_set,$ac_new_set in
2509     set,)
2510       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512       ac_cache_corrupted=: ;;
2513     ,set)
2514       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516       ac_cache_corrupted=: ;;
2517     ,);;
2518     *)
2519       if test "x$ac_old_val" != "x$ac_new_val"; then
2520         # differences in whitespace do not lead to failure.
2521         ac_old_val_w=`echo x $ac_old_val`
2522         ac_new_val_w=`echo x $ac_new_val`
2523         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526           ac_cache_corrupted=:
2527         else
2528           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530           eval $ac_var=\$ac_old_val
2531         fi
2532         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2533 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2534         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2535 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2536       fi;;
2537   esac
2538   # Pass precious variables to config.status.
2539   if test "$ac_new_set" = set; then
2540     case $ac_new_val in
2541     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542     *) ac_arg=$ac_var=$ac_new_val ;;
2543     esac
2544     case " $ac_configure_args " in
2545       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2546       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547     esac
2548   fi
2549 done
2550 if $ac_cache_corrupted; then
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556 fi
2557 ## -------------------- ##
2558 ## Main body of script. ##
2559 ## -------------------- ##
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568 ac_config_headers="$ac_config_headers fficonfig.h"
2569
2570
2571 ac_aux_dir=
2572 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2573   for ac_t in install-sh install.sh shtool; do
2574     if test -f "$ac_dir/$ac_t"; then
2575       ac_aux_dir=$ac_dir
2576       ac_install_sh="$ac_aux_dir/$ac_t -c"
2577       break 2
2578     fi
2579   done
2580 done
2581 if test -z "$ac_aux_dir"; then
2582   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2583 fi
2584
2585 # These three variables are undocumented and unsupported,
2586 # and are intended to be withdrawn in a future Autoconf release.
2587 # They can cause serious problems if a builder's source tree is in a directory
2588 # whose full name contains unusual characters.
2589 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2590 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2591 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2592
2593
2594 # Make sure we can run config.sub.
2595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2596   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2599 $as_echo_n "checking build system type... " >&6; }
2600 if test "${ac_cv_build+set}" = set; then :
2601   $as_echo_n "(cached) " >&6
2602 else
2603   ac_build_alias=$build_alias
2604 test "x$ac_build_alias" = x &&
2605   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606 test "x$ac_build_alias" = x &&
2607   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2609   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2610
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2613 $as_echo "$ac_cv_build" >&6; }
2614 case $ac_cv_build in
2615 *-*-*) ;;
2616 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2617 esac
2618 build=$ac_cv_build
2619 ac_save_IFS=$IFS; IFS='-'
2620 set x $ac_cv_build
2621 shift
2622 build_cpu=$1
2623 build_vendor=$2
2624 shift; shift
2625 # Remember, the first character of IFS is used to create $*,
2626 # except with old shells:
2627 build_os=$*
2628 IFS=$ac_save_IFS
2629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2630
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2633 $as_echo_n "checking host system type... " >&6; }
2634 if test "${ac_cv_host+set}" = set; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   if test "x$host_alias" = x; then
2638   ac_cv_host=$ac_cv_build
2639 else
2640   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2641     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2642 fi
2643
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2646 $as_echo "$ac_cv_host" >&6; }
2647 case $ac_cv_host in
2648 *-*-*) ;;
2649 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2650 esac
2651 host=$ac_cv_host
2652 ac_save_IFS=$IFS; IFS='-'
2653 set x $ac_cv_host
2654 shift
2655 host_cpu=$1
2656 host_vendor=$2
2657 shift; shift
2658 # Remember, the first character of IFS is used to create $*,
2659 # except with old shells:
2660 host_os=$*
2661 IFS=$ac_save_IFS
2662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2663
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2666 $as_echo_n "checking target system type... " >&6; }
2667 if test "${ac_cv_target+set}" = set; then :
2668   $as_echo_n "(cached) " >&6
2669 else
2670   if test "x$target_alias" = x; then
2671   ac_cv_target=$ac_cv_host
2672 else
2673   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2674     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2675 fi
2676
2677 fi
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2679 $as_echo "$ac_cv_target" >&6; }
2680 case $ac_cv_target in
2681 *-*-*) ;;
2682 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2683 esac
2684 target=$ac_cv_target
2685 ac_save_IFS=$IFS; IFS='-'
2686 set x $ac_cv_target
2687 shift
2688 target_cpu=$1
2689 target_vendor=$2
2690 shift; shift
2691 # Remember, the first character of IFS is used to create $*,
2692 # except with old shells:
2693 target_os=$*
2694 IFS=$ac_save_IFS
2695 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2696
2697
2698 # The aliases save the names the user supplied, while $host etc.
2699 # will get canonicalized.
2700 test -n "$target_alias" &&
2701   test "$program_prefix$program_suffix$program_transform_name" = \
2702     NONENONEs,x,x, &&
2703   program_prefix=${target_alias}-
2704
2705 target_alias=${target_alias-$host_alias}
2706
2707 . ${srcdir}/configure.host
2708
2709 am__api_version='1.11'
2710
2711 # Find a good install program.  We prefer a C program (faster),
2712 # so one script is as good as another.  But avoid the broken or
2713 # incompatible versions:
2714 # SysV /etc/install, /usr/sbin/install
2715 # SunOS /usr/etc/install
2716 # IRIX /sbin/install
2717 # AIX /bin/install
2718 # AmigaOS /C/install, which installs bootblocks on floppy discs
2719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2722 # OS/2's system install, which has a completely different semantic
2723 # ./install, which can be erroneously created by make from ./install.sh.
2724 # Reject install programs that cannot install multiple files.
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2726 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2727 if test -z "$INSTALL"; then
2728 if test "${ac_cv_path_install+set}" = set; then :
2729   $as_echo_n "(cached) " >&6
2730 else
2731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736     # Account for people who put trailing slashes in PATH elements.
2737 case $as_dir/ in #((
2738   ./ | .// | /[cC]/* | \
2739   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2740   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2741   /usr/ucb/* ) ;;
2742   *)
2743     # OSF1 and SCO ODT 3.0 have their own names for install.
2744     # Don't use installbsd from OSF since it installs stuff as root
2745     # by default.
2746     for ac_prog in ginstall scoinst install; do
2747       for ac_exec_ext in '' $ac_executable_extensions; do
2748         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2749           if test $ac_prog = install &&
2750             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2751             # AIX install.  It has an incompatible calling convention.
2752             :
2753           elif test $ac_prog = install &&
2754             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2755             # program-specific install script used by HP pwplus--don't use.
2756             :
2757           else
2758             rm -rf conftest.one conftest.two conftest.dir
2759             echo one > conftest.one
2760             echo two > conftest.two
2761             mkdir conftest.dir
2762             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2763               test -s conftest.one && test -s conftest.two &&
2764               test -s conftest.dir/conftest.one &&
2765               test -s conftest.dir/conftest.two
2766             then
2767               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2768               break 3
2769             fi
2770           fi
2771         fi
2772       done
2773     done
2774     ;;
2775 esac
2776
2777   done
2778 IFS=$as_save_IFS
2779
2780 rm -rf conftest.one conftest.two conftest.dir
2781
2782 fi
2783   if test "${ac_cv_path_install+set}" = set; then
2784     INSTALL=$ac_cv_path_install
2785   else
2786     # As a last resort, use the slow shell script.  Don't cache a
2787     # value for INSTALL within a source directory, because that will
2788     # break other packages using the cache if that directory is
2789     # removed, or if the value is a relative name.
2790     INSTALL=$ac_install_sh
2791   fi
2792 fi
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2794 $as_echo "$INSTALL" >&6; }
2795
2796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2797 # It thinks the first close brace ends the variable substitution.
2798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2799
2800 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2801
2802 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2803
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2805 $as_echo_n "checking whether build environment is sane... " >&6; }
2806 # Just in case
2807 sleep 1
2808 echo timestamp > conftest.file
2809 # Reject unsafe characters in $srcdir or the absolute working directory
2810 # name.  Accept space and tab only in the latter.
2811 am_lf='
2812 '
2813 case `pwd` in
2814   *[\\\"\#\$\&\'\`$am_lf]*)
2815     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2816 esac
2817 case $srcdir in
2818   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2819     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2820 esac
2821
2822 # Do `set' in a subshell so we don't clobber the current shell's
2823 # arguments.  Must try -L first in case configure is actually a
2824 # symlink; some systems play weird games with the mod time of symlinks
2825 # (eg FreeBSD returns the mod time of the symlink's containing
2826 # directory).
2827 if (
2828    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2829    if test "$*" = "X"; then
2830       # -L didn't work.
2831       set X `ls -t "$srcdir/configure" conftest.file`
2832    fi
2833    rm -f conftest.file
2834    if test "$*" != "X $srcdir/configure conftest.file" \
2835       && test "$*" != "X conftest.file $srcdir/configure"; then
2836
2837       # If neither matched, then we have a broken ls.  This can happen
2838       # if, for instance, CONFIG_SHELL is bash and it inherits a
2839       # broken ls alias from the environment.  This has actually
2840       # happened.  Such a system could not be considered "sane".
2841       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2842 alias in your environment" "$LINENO" 5
2843    fi
2844
2845    test "$2" = conftest.file
2846    )
2847 then
2848    # Ok.
2849    :
2850 else
2851    as_fn_error "newly created file is older than distributed files!
2852 Check your system clock" "$LINENO" 5
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2855 $as_echo "yes" >&6; }
2856 test "$program_prefix" != NONE &&
2857   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2858 # Use a double $ so make ignores it.
2859 test "$program_suffix" != NONE &&
2860   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2861 # Double any \ or $.
2862 # By default was `s,x,x', remove it if useless.
2863 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2864 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2865
2866 # expand $ac_aux_dir to an absolute path
2867 am_aux_dir=`cd $ac_aux_dir && pwd`
2868
2869 if test x"${MISSING+set}" != xset; then
2870   case $am_aux_dir in
2871   *\ * | *\     *)
2872     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2873   *)
2874     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2875   esac
2876 fi
2877 # Use eval to expand $SHELL
2878 if eval "$MISSING --run true"; then
2879   am_missing_run="$MISSING --run "
2880 else
2881   am_missing_run=
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2883 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2884 fi
2885
2886 if test x"${install_sh}" != xset; then
2887   case $am_aux_dir in
2888   *\ * | *\     *)
2889     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2890   *)
2891     install_sh="\${SHELL} $am_aux_dir/install-sh"
2892   esac
2893 fi
2894
2895 # Installed binaries are usually stripped using `strip' when the user
2896 # run `make install-strip'.  However `strip' might not be the right
2897 # tool to use in cross-compilation environments, therefore Automake
2898 # will honor the `STRIP' environment variable to overrule this program.
2899 if test "$cross_compiling" != no; then
2900   if test -n "$ac_tool_prefix"; then
2901   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}strip; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_STRIP+set}" = set; then :
2906   $as_echo_n "(cached) " >&6
2907 else
2908   if test -n "$STRIP"; then
2909   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916     for ac_exec_ext in '' $ac_executable_extensions; do
2917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920     break 2
2921   fi
2922 done
2923   done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 STRIP=$ac_cv_prog_STRIP
2929 if test -n "$STRIP"; then
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2931 $as_echo "$STRIP" >&6; }
2932 else
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$ac_cv_prog_STRIP"; then
2940   ac_ct_STRIP=$STRIP
2941   # Extract the first word of "strip", so it can be a program name with args.
2942 set dummy strip; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   if test -n "$ac_ct_STRIP"; then
2949   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
2955   test -z "$as_dir" && as_dir=.
2956     for ac_exec_ext in '' $ac_executable_extensions; do
2957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958     ac_cv_prog_ac_ct_STRIP="strip"
2959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963   done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2969 if test -n "$ac_ct_STRIP"; then
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2971 $as_echo "$ac_ct_STRIP" >&6; }
2972 else
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977   if test "x$ac_ct_STRIP" = x; then
2978     STRIP=":"
2979   else
2980     case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986     STRIP=$ac_ct_STRIP
2987   fi
2988 else
2989   STRIP="$ac_cv_prog_STRIP"
2990 fi
2991
2992 fi
2993 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2994
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2996 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2997 if test -z "$MKDIR_P"; then
2998   if test "${ac_cv_path_mkdir+set}" = set; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006     for ac_prog in mkdir gmkdir; do
3007          for ac_exec_ext in '' $ac_executable_extensions; do
3008            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3009            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3010              'mkdir (GNU coreutils) '* | \
3011              'mkdir (coreutils) '* | \
3012              'mkdir (fileutils) '4.1*)
3013                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3014                break 3;;
3015            esac
3016          done
3017        done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022
3023   test -d ./--version && rmdir ./--version
3024   if test "${ac_cv_path_mkdir+set}" = set; then
3025     MKDIR_P="$ac_cv_path_mkdir -p"
3026   else
3027     # As a last resort, use the slow shell script.  Don't cache a
3028     # value for MKDIR_P within a source directory, because that will
3029     # break other packages using the cache if that directory is
3030     # removed, or if the value is a relative name.
3031     MKDIR_P="$ac_install_sh -d"
3032   fi
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3035 $as_echo "$MKDIR_P" >&6; }
3036
3037 mkdir_p="$MKDIR_P"
3038 case $mkdir_p in
3039   [\\/$]* | ?:[\\/]*) ;;
3040   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3041 esac
3042
3043 for ac_prog in gawk mawk nawk awk
3044 do
3045   # Extract the first word of "$ac_prog", so it can be a program name with args.
3046 set dummy $ac_prog; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_AWK+set}" = set; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$AWK"; then
3053   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_exec_ext in '' $ac_executable_extensions; do
3061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062     ac_cv_prog_AWK="$ac_prog"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 AWK=$ac_cv_prog_AWK
3073 if test -n "$AWK"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3075 $as_echo "$AWK" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082   test -n "$AWK" && break
3083 done
3084
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3086 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3087 set x ${MAKE-make}
3088 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3089 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   cat >conftest.make <<\_ACEOF
3093 SHELL = /bin/sh
3094 all:
3095         @echo '@@@%%%=$(MAKE)=@@@%%%'
3096 _ACEOF
3097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3098 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3099   *@@@%%%=?*=@@@%%%*)
3100     eval ac_cv_prog_make_${ac_make}_set=yes;;
3101   *)
3102     eval ac_cv_prog_make_${ac_make}_set=no;;
3103 esac
3104 rm -f conftest.make
3105 fi
3106 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3108 $as_echo "yes" >&6; }
3109   SET_MAKE=
3110 else
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113   SET_MAKE="MAKE=${MAKE-make}"
3114 fi
3115
3116 rm -rf .tst 2>/dev/null
3117 mkdir .tst 2>/dev/null
3118 if test -d .tst; then
3119   am__leading_dot=.
3120 else
3121   am__leading_dot=_
3122 fi
3123 rmdir .tst 2>/dev/null
3124
3125 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3126   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3127   # is not polluted with repeated "-I."
3128   am__isrc=' -I$(srcdir)'
3129   # test to see if srcdir already configured
3130   if test -f $srcdir/config.status; then
3131     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3132   fi
3133 fi
3134
3135 # test whether we have cygpath
3136 if test -z "$CYGPATH_W"; then
3137   if (cygpath --version) >/dev/null 2>/dev/null; then
3138     CYGPATH_W='cygpath -w'
3139   else
3140     CYGPATH_W=echo
3141   fi
3142 fi
3143
3144
3145 # Define the identity of the package.
3146  PACKAGE='libffi'
3147  VERSION='3.0.10rc0'
3148
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE "$PACKAGE"
3152 _ACEOF
3153
3154
3155 cat >>confdefs.h <<_ACEOF
3156 #define VERSION "$VERSION"
3157 _ACEOF
3158
3159 # Some tools Automake needs.
3160
3161 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3162
3163
3164 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3165
3166
3167 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3168
3169
3170 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3171
3172
3173 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174
3175 # We need awk for the "check" target.  The system "awk" is bad on
3176 # some platforms.
3177 # Always define AMTAR for backward compatibility.
3178
3179 AMTAR=${AMTAR-"${am_missing_run}tar"}
3180
3181 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3182
3183
3184
3185
3186
3187
3188 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3189 # We must force CC to /not/ be precious variables; otherwise
3190 # the wrong, non-multilib-adjusted value will be used in multilibs.
3191 # As a side effect, we have to subst CFLAGS ourselves.
3192
3193
3194
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 if test -n "$ac_tool_prefix"; then
3201   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$CC"; then
3209   ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$ac_cv_prog_CC"; then
3240   ac_ct_CC=$CC
3241   # Extract the first word of "gcc", so it can be a program name with args.
3242 set dummy gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$ac_ct_CC"; then
3249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_ac_ct_CC="gcc"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 $as_echo "$ac_ct_CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277   if test "x$ac_ct_CC" = x; then
3278     CC=""
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286     CC=$ac_ct_CC
3287   fi
3288 else
3289   CC="$ac_cv_prog_CC"
3290 fi
3291
3292 if test -z "$CC"; then
3293           if test -n "$ac_tool_prefix"; then
3294     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then :
3299   $as_echo_n "(cached) " >&6
3300 else
3301   if test -n "$CC"; then
3302   ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   test -z "$as_dir" && as_dir=.
3309     for ac_exec_ext in '' $ac_executable_extensions; do
3310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311     ac_cv_prog_CC="${ac_tool_prefix}cc"
3312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313     break 2
3314   fi
3315 done
3316   done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331   fi
3332 fi
3333 if test -z "$CC"; then
3334   # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344   ac_prog_rejected=no
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353        ac_prog_rejected=yes
3354        continue
3355      fi
3356     ac_cv_prog_CC="cc"
3357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361   done
3362 IFS=$as_save_IFS
3363
3364 if test $ac_prog_rejected = yes; then
3365   # We found a bogon in the path, so make sure we never use it.
3366   set dummy $ac_cv_prog_CC
3367   shift
3368   if test $# != 0; then
3369     # We chose a different compiler from the bogus one.
3370     # However, it has the same basename, so the bogon will be chosen
3371     # first if we set CC to just the basename; use the full file name.
3372     shift
3373     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3374   fi
3375 fi
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 fi
3389 if test -z "$CC"; then
3390   if test -n "$ac_tool_prefix"; then
3391   for ac_prog in cl.exe
3392   do
3393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   if test -n "$CC"; then
3401   ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415   done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430     test -n "$CC" && break
3431   done
3432 fi
3433 if test -z "$CC"; then
3434   ac_ct_CC=$CC
3435   for ac_prog in cl.exe
3436 do
3437   # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   if test -n "$ac_ct_CC"; then
3445   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452     for ac_exec_ext in '' $ac_executable_extensions; do
3453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454     ac_cv_prog_ac_ct_CC="$ac_prog"
3455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456     break 2
3457   fi
3458 done
3459   done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467 $as_echo "$ac_ct_CC" >&6; }
3468 else
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474   test -n "$ac_ct_CC" && break
3475 done
3476
3477   if test "x$ac_ct_CC" = x; then
3478     CC=""
3479   else
3480     case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned=yes ;;
3485 esac
3486     CC=$ac_ct_CC
3487   fi
3488 fi
3489
3490 fi
3491
3492
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error "no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." "$LINENO" 5; }
3497
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3500 set X $ac_compile
3501 ac_compiler=$2
3502 for ac_option in --version -v -V -qversion; do
3503   { { ac_try="$ac_compiler $ac_option >&5"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3511   ac_status=$?
3512   if test -s conftest.err; then
3513     sed '10a\
3514 ... rest of stderr output deleted ...
3515          10q' conftest.err >conftest.er1
3516     cat conftest.er1 >&5
3517   fi
3518   rm -f conftest.er1 conftest.err
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }
3521 done
3522
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 ac_clean_files_save=$ac_clean_files
3535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3536 # Try to create an executable without -o first, disregard a.out.
3537 # It will help us diagnose broken compilers, and finding out an intuition
3538 # of exeext.
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3540 $as_echo_n "checking whether the C compiler works... " >&6; }
3541 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3542
3543 # The possible output files:
3544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3545
3546 ac_rmfiles=
3547 for ac_file in $ac_files
3548 do
3549   case $ac_file in
3550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3551     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3552   esac
3553 done
3554 rm -f $ac_rmfiles
3555
3556 if { { ac_try="$ac_link_default"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563   (eval "$ac_link_default") 2>&5
3564   ac_status=$?
3565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566   test $ac_status = 0; }; then :
3567   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3569 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3570 # so that the user can short-circuit this test for compilers unknown to
3571 # Autoconf.
3572 for ac_file in $ac_files ''
3573 do
3574   test -f "$ac_file" || continue
3575   case $ac_file in
3576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3577         ;;
3578     [ab].out )
3579         # We found the default executable, but exeext='' is most
3580         # certainly right.
3581         break;;
3582     *.* )
3583         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3584         then :; else
3585            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3586         fi
3587         # We set ac_cv_exeext here because the later test for it is not
3588         # safe: cross compilers may not add the suffix if given an `-o'
3589         # argument, so we may need to know it at that point already.
3590         # Even if this section looks crufty: it has the advantage of
3591         # actually working.
3592         break;;
3593     * )
3594         break;;
3595   esac
3596 done
3597 test "$ac_cv_exeext" = no && ac_cv_exeext=
3598
3599 else
3600   ac_file=''
3601 fi
3602 if test -z "$ac_file"; then :
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605 $as_echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 { as_fn_set_status 77
3611 as_fn_error "C compiler cannot create executables
3612 See \`config.log' for more details." "$LINENO" 5; }; }
3613 else
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3615 $as_echo "yes" >&6; }
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3618 $as_echo_n "checking for C compiler default output file name... " >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3620 $as_echo "$ac_file" >&6; }
3621 ac_exeext=$ac_cv_exeext
3622
3623 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3624 ac_clean_files=$ac_clean_files_save
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3626 $as_echo_n "checking for suffix of executables... " >&6; }
3627 if { { ac_try="$ac_link"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634   (eval "$ac_link") 2>&5
3635   ac_status=$?
3636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637   test $ac_status = 0; }; then :
3638   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3639 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3640 # work properly (i.e., refer to `conftest.exe'), while it won't with
3641 # `rm'.
3642 for ac_file in conftest.exe conftest conftest.*; do
3643   test -f "$ac_file" || continue
3644   case $ac_file in
3645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3646     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647           break;;
3648     * ) break;;
3649   esac
3650 done
3651 else
3652   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error "cannot compute suffix of executables: cannot compile and link
3655 See \`config.log' for more details." "$LINENO" 5; }
3656 fi
3657 rm -f conftest conftest$ac_cv_exeext
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3659 $as_echo "$ac_cv_exeext" >&6; }
3660
3661 rm -f conftest.$ac_ext
3662 EXEEXT=$ac_cv_exeext
3663 ac_exeext=$EXEEXT
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666 #include <stdio.h>
3667 int
3668 main ()
3669 {
3670 FILE *f = fopen ("conftest.out", "w");
3671  return ferror (f) || fclose (f) != 0;
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 ac_clean_files="$ac_clean_files conftest.out"
3678 # Check that the compiler produces executables we can run.  If not, either
3679 # the compiler is broken, or we cross compile.
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3681 $as_echo_n "checking whether we are cross compiling... " >&6; }
3682 if test "$cross_compiling" != yes; then
3683   { { ac_try="$ac_link"
3684 case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690   (eval "$ac_link") 2>&5
3691   ac_status=$?
3692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693   test $ac_status = 0; }
3694   if { ac_try='./conftest$ac_cv_exeext'
3695   { { case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701   (eval "$ac_try") 2>&5
3702   ac_status=$?
3703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704   test $ac_status = 0; }; }; then
3705     cross_compiling=no
3706   else
3707     if test "$cross_compiling" = maybe; then
3708         cross_compiling=yes
3709     else
3710         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error "cannot run C compiled programs.
3713 If you meant to cross compile, use \`--host'.
3714 See \`config.log' for more details." "$LINENO" 5; }
3715     fi
3716   fi
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3719 $as_echo "$cross_compiling" >&6; }
3720
3721 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3722 ac_clean_files=$ac_clean_files_save
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3724 $as_echo_n "checking for suffix of object files... " >&6; }
3725 if test "${ac_cv_objext+set}" = set; then :
3726   $as_echo_n "(cached) " >&6
3727 else
3728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 rm -f conftest.o conftest.obj
3740 if { { ac_try="$ac_compile"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747   (eval "$ac_compile") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }; then :
3751   for ac_file in conftest.o conftest.obj 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 ) ;;
3755     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3756        break;;
3757   esac
3758 done
3759 else
3760   $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 as_fn_error "cannot compute suffix of object files: cannot compile
3766 See \`config.log' for more details." "$LINENO" 5; }
3767 fi
3768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3771 $as_echo "$ac_cv_objext" >&6; }
3772 OBJEXT=$ac_cv_objext
3773 ac_objext=$OBJEXT
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3776 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785 #ifndef __GNUC__
3786        choke me
3787 #endif
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794   ac_compiler_gnu=yes
3795 else
3796   ac_compiler_gnu=no
3797 fi
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3800
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3804 if test $ac_compiler_gnu = yes; then
3805   GCC=yes
3806 else
3807   GCC=
3808 fi
3809 ac_test_CFLAGS=${CFLAGS+set}
3810 ac_save_CFLAGS=$CFLAGS
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3813 if test "${ac_cv_prog_cc_g+set}" = set; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   ac_save_c_werror_flag=$ac_c_werror_flag
3817    ac_c_werror_flag=yes
3818    ac_cv_prog_cc_g=no
3819    CFLAGS="-g"
3820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822
3823 int
3824 main ()
3825 {
3826
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832   ac_cv_prog_cc_g=yes
3833 else
3834   CFLAGS=""
3835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 if ac_fn_c_try_compile "$LINENO"; then :
3847
3848 else
3849   ac_c_werror_flag=$ac_save_c_werror_flag
3850          CFLAGS="-g"
3851          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863   ac_cv_prog_cc_g=yes
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870    ac_c_werror_flag=$ac_save_c_werror_flag
3871 fi
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3873 $as_echo "$ac_cv_prog_cc_g" >&6; }
3874 if test "$ac_test_CFLAGS" = set; then
3875   CFLAGS=$ac_save_CFLAGS
3876 elif test $ac_cv_prog_cc_g = yes; then
3877   if test "$GCC" = yes; then
3878     CFLAGS="-g -O2"
3879   else
3880     CFLAGS="-g"
3881   fi
3882 else
3883   if test "$GCC" = yes; then
3884     CFLAGS="-O2"
3885   else
3886     CFLAGS=
3887   fi
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   ac_cv_prog_cc_c89=no
3895 ac_save_CC=$CC
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898 #include <stdarg.h>
3899 #include <stdio.h>
3900 #include <sys/types.h>
3901 #include <sys/stat.h>
3902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3903 struct buf { int x; };
3904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905 static char *e (p, i)
3906      char **p;
3907      int i;
3908 {
3909   return p[i];
3910 }
3911 static char *f (char * (*g) (char **, int), char **p, ...)
3912 {
3913   char *s;
3914   va_list v;
3915   va_start (v,p);
3916   s = g (p, va_arg (v,int));
3917   va_end (v);
3918   return s;
3919 }
3920
3921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3922    function prototypes and stuff, but not '\xHH' hex character constants.
3923    These don't provoke an error unfortunately, instead are silently treated
3924    as 'x'.  The following induces an error, until -std is added to get
3925    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3926    array size at least.  It's necessary to write '\x00'==0 to get something
3927    that's true only with -std.  */
3928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929
3930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931    inside strings and character constants.  */
3932 #define FOO(x) 'x'
3933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934
3935 int test (int i, double x);
3936 struct s1 {int (*f) (int a);};
3937 struct s2 {int (*f) (double a);};
3938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939 int argc;
3940 char **argv;
3941 int
3942 main ()
3943 {
3944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951 do
3952   CC="$ac_save_CC $ac_arg"
3953   if ac_fn_c_try_compile "$LINENO"; then :
3954   ac_cv_prog_cc_c89=$ac_arg
3955 fi
3956 rm -f core conftest.err conftest.$ac_objext
3957   test "x$ac_cv_prog_cc_c89" != "xno" && break
3958 done
3959 rm -f conftest.$ac_ext
3960 CC=$ac_save_CC
3961
3962 fi
3963 # AC_CACHE_VAL
3964 case "x$ac_cv_prog_cc_c89" in
3965   x)
3966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967 $as_echo "none needed" >&6; } ;;
3968   xno)
3969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970 $as_echo "unsupported" >&6; } ;;
3971   *)
3972     CC="$CC $ac_cv_prog_cc_c89"
3973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975 esac
3976 if test "x$ac_cv_prog_cc_c89" != xno; then :
3977
3978 fi
3979
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 DEPDIR="${am__leading_dot}deps"
3986
3987 ac_config_commands="$ac_config_commands depfiles"
3988
3989
3990 am_make=${MAKE-make}
3991 cat > confinc << 'END'
3992 am__doit:
3993         @echo this is the am__doit target
3994 .PHONY: am__doit
3995 END
3996 # If we don't find an include directive, just comment out the code.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3999 am__include="#"
4000 am__quote=
4001 _am_result=none
4002 # First try GNU make style include.
4003 echo "include confinc" > confmf
4004 # Ignore all kinds of additional output from `make'.
4005 case `$am_make -s -f confmf 2> /dev/null` in #(
4006 *the\ am__doit\ target*)
4007   am__include=include
4008   am__quote=
4009   _am_result=GNU
4010   ;;
4011 esac
4012 # Now try BSD make style include.
4013 if test "$am__include" = "#"; then
4014    echo '.include "confinc"' > confmf
4015    case `$am_make -s -f confmf 2> /dev/null` in #(
4016    *the\ am__doit\ target*)
4017      am__include=.include
4018      am__quote="\""
4019      _am_result=BSD
4020      ;;
4021    esac
4022 fi
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4026 $as_echo "$_am_result" >&6; }
4027 rm -f confinc confmf
4028
4029 # Check whether --enable-dependency-tracking was given.
4030 if test "${enable_dependency_tracking+set}" = set; then :
4031   enableval=$enable_dependency_tracking;
4032 fi
4033
4034 if test "x$enable_dependency_tracking" != xno; then
4035   am_depcomp="$ac_aux_dir/depcomp"
4036   AMDEPBACKSLASH='\'
4037 fi
4038  if test "x$enable_dependency_tracking" != xno; then
4039   AMDEP_TRUE=
4040   AMDEP_FALSE='#'
4041 else
4042   AMDEP_TRUE='#'
4043   AMDEP_FALSE=
4044 fi
4045
4046
4047
4048 depcc="$CC"   am_compiler_list=
4049
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4051 $as_echo_n "checking dependency style of $depcc... " >&6; }
4052 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4053   $as_echo_n "(cached) " >&6
4054 else
4055   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4056   # We make a subdir and do the tests there.  Otherwise we can end up
4057   # making bogus files that we don't know about and never remove.  For
4058   # instance it was reported that on HP-UX the gcc test will end up
4059   # making a dummy file named `D' -- because `-MD' means `put the output
4060   # in D'.
4061   mkdir conftest.dir
4062   # Copy depcomp to subdir because otherwise we won't find it if we're
4063   # using a relative directory.
4064   cp "$am_depcomp" conftest.dir
4065   cd conftest.dir
4066   # We will build objects and dependencies in a subdirectory because
4067   # it helps to detect inapplicable dependency modes.  For instance
4068   # both Tru64's cc and ICC support -MD to output dependencies as a
4069   # side effect of compilation, but ICC will put the dependencies in
4070   # the current directory while Tru64 will put them in the object
4071   # directory.
4072   mkdir sub
4073
4074   am_cv_CC_dependencies_compiler_type=none
4075   if test "$am_compiler_list" = ""; then
4076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4077   fi
4078   am__universal=false
4079   case " $depcc " in #(
4080      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4081      esac
4082
4083   for depmode in $am_compiler_list; do
4084     # Setup a source with many dependencies, because some compilers
4085     # like to wrap large dependency lists on column 80 (with \), and
4086     # we should not choose a depcomp mode which is confused by this.
4087     #
4088     # We need to recreate these files for each test, as the compiler may
4089     # overwrite some of them when testing with obscure command lines.
4090     # This happens at least with the AIX C compiler.
4091     : > sub/conftest.c
4092     for i in 1 2 3 4 5 6; do
4093       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4094       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4095       # Solaris 8's {/usr,}/bin/sh.
4096       touch sub/conftst$i.h
4097     done
4098     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4099
4100     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4101     # mode.  It turns out that the SunPro C++ compiler does not properly
4102     # handle `-M -o', and we need to detect this.  Also, some Intel
4103     # versions had trouble with output in subdirs
4104     am__obj=sub/conftest.${OBJEXT-o}
4105     am__minus_obj="-o $am__obj"
4106     case $depmode in
4107     gcc)
4108       # This depmode causes a compiler race in universal mode.
4109       test "$am__universal" = false || continue
4110       ;;
4111     nosideeffect)
4112       # after this tag, mechanisms are not by side-effect, so they'll
4113       # only be used when explicitly requested
4114       if test "x$enable_dependency_tracking" = xyes; then
4115         continue
4116       else
4117         break
4118       fi
4119       ;;
4120     msvisualcpp | msvcmsys)
4121       # This compiler won't grok `-c -o', but also, the minuso test has
4122       # not run yet.  These depmodes are late enough in the game, and
4123       # so weak that their functioning should not be impacted.
4124       am__obj=conftest.${OBJEXT-o}
4125       am__minus_obj=
4126       ;;
4127     none) break ;;
4128     esac
4129     if depmode=$depmode \
4130        source=sub/conftest.c object=$am__obj \
4131        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4132        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4133          >/dev/null 2>conftest.err &&
4134        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4135        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4136        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4137        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4138       # icc doesn't choke on unknown options, it will just issue warnings
4139       # or remarks (even with -Werror).  So we grep stderr for any message
4140       # that says an option was ignored or not supported.
4141       # When given -MP, icc 7.0 and 7.1 complain thusly:
4142       #   icc: Command line warning: ignoring option '-M'; no argument required
4143       # The diagnosis changed in icc 8.0:
4144       #   icc: Command line remark: option '-MP' not supported
4145       if (grep 'ignoring option' conftest.err ||
4146           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4147         am_cv_CC_dependencies_compiler_type=$depmode
4148         break
4149       fi
4150     fi
4151   done
4152
4153   cd ..
4154   rm -rf conftest.dir
4155 else
4156   am_cv_CC_dependencies_compiler_type=none
4157 fi
4158
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4161 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4162 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4163
4164  if
4165   test "x$enable_dependency_tracking" != xno \
4166   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4167   am__fastdepCC_TRUE=
4168   am__fastdepCC_FALSE='#'
4169 else
4170   am__fastdepCC_TRUE='#'
4171   am__fastdepCC_FALSE=
4172 fi
4173
4174
4175
4176
4177
4178
4179
4180 # By default we simply use the C compiler to build assembly code.
4181
4182 test "${CCAS+set}" = set || CCAS=$CC
4183 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4184
4185
4186
4187 depcc="$CCAS"   am_compiler_list=
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4190 $as_echo_n "checking dependency style of $depcc... " >&6; }
4191 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4195   # We make a subdir and do the tests there.  Otherwise we can end up
4196   # making bogus files that we don't know about and never remove.  For
4197   # instance it was reported that on HP-UX the gcc test will end up
4198   # making a dummy file named `D' -- because `-MD' means `put the output
4199   # in D'.
4200   mkdir conftest.dir
4201   # Copy depcomp to subdir because otherwise we won't find it if we're
4202   # using a relative directory.
4203   cp "$am_depcomp" conftest.dir
4204   cd conftest.dir
4205   # We will build objects and dependencies in a subdirectory because
4206   # it helps to detect inapplicable dependency modes.  For instance
4207   # both Tru64's cc and ICC support -MD to output dependencies as a
4208   # side effect of compilation, but ICC will put the dependencies in
4209   # the current directory while Tru64 will put them in the object
4210   # directory.
4211   mkdir sub
4212
4213   am_cv_CCAS_dependencies_compiler_type=none
4214   if test "$am_compiler_list" = ""; then
4215      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4216   fi
4217   am__universal=false
4218
4219
4220   for depmode in $am_compiler_list; do
4221     # Setup a source with many dependencies, because some compilers
4222     # like to wrap large dependency lists on column 80 (with \), and
4223     # we should not choose a depcomp mode which is confused by this.
4224     #
4225     # We need to recreate these files for each test, as the compiler may
4226     # overwrite some of them when testing with obscure command lines.
4227     # This happens at least with the AIX C compiler.
4228     : > sub/conftest.c
4229     for i in 1 2 3 4 5 6; do
4230       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4231       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4232       # Solaris 8's {/usr,}/bin/sh.
4233       touch sub/conftst$i.h
4234     done
4235     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236
4237     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4238     # mode.  It turns out that the SunPro C++ compiler does not properly
4239     # handle `-M -o', and we need to detect this.  Also, some Intel
4240     # versions had trouble with output in subdirs
4241     am__obj=sub/conftest.${OBJEXT-o}
4242     am__minus_obj="-o $am__obj"
4243     case $depmode in
4244     gcc)
4245       # This depmode causes a compiler race in universal mode.
4246       test "$am__universal" = false || continue
4247       ;;
4248     nosideeffect)
4249       # after this tag, mechanisms are not by side-effect, so they'll
4250       # only be used when explicitly requested
4251       if test "x$enable_dependency_tracking" = xyes; then
4252         continue
4253       else
4254         break
4255       fi
4256       ;;
4257     msvisualcpp | msvcmsys)
4258       # This compiler won't grok `-c -o', but also, the minuso test has
4259       # not run yet.  These depmodes are late enough in the game, and
4260       # so weak that their functioning should not be impacted.
4261       am__obj=conftest.${OBJEXT-o}
4262       am__minus_obj=
4263       ;;
4264     none) break ;;
4265     esac
4266     if depmode=$depmode \
4267        source=sub/conftest.c object=$am__obj \
4268        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4269        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4270          >/dev/null 2>conftest.err &&
4271        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4272        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4273        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4274        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4275       # icc doesn't choke on unknown options, it will just issue warnings
4276       # or remarks (even with -Werror).  So we grep stderr for any message
4277       # that says an option was ignored or not supported.
4278       # When given -MP, icc 7.0 and 7.1 complain thusly:
4279       #   icc: Command line warning: ignoring option '-M'; no argument required
4280       # The diagnosis changed in icc 8.0:
4281       #   icc: Command line remark: option '-MP' not supported
4282       if (grep 'ignoring option' conftest.err ||
4283           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4284         am_cv_CCAS_dependencies_compiler_type=$depmode
4285         break
4286       fi
4287     fi
4288   done
4289
4290   cd ..
4291   rm -rf conftest.dir
4292 else
4293   am_cv_CCAS_dependencies_compiler_type=none
4294 fi
4295
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4298 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4299 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4300
4301  if
4302   test "x$enable_dependency_tracking" != xno \
4303   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4304   am__fastdepCCAS_TRUE=
4305   am__fastdepCCAS_FALSE='#'
4306 else
4307   am__fastdepCCAS_TRUE='#'
4308   am__fastdepCCAS_FALSE=
4309 fi
4310
4311
4312 if test "x$CC" != xcc; then
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4314 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4315 else
4316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4317 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4318 fi
4319 set dummy $CC; ac_cc=`$as_echo "$2" |
4320                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4321 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 # Make sure it works both with $CC and with simple cc.
4336 # We do the test twice because some compilers refuse to overwrite an
4337 # existing .o file with -o, though they will create one.
4338 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4339 rm -f conftest2.*
4340 if { { case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346   (eval "$ac_try") 2>&5
4347   ac_status=$?
4348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349   test $ac_status = 0; } &&
4350    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4355 $as_echo "$ac_try_echo"; } >&5
4356   (eval "$ac_try") 2>&5
4357   ac_status=$?
4358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4359   test $ac_status = 0; };
4360 then
4361   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4362   if test "x$CC" != xcc; then
4363     # Test first that cc exists at all.
4364     if { ac_try='cc -c conftest.$ac_ext >&5'
4365   { { case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371   (eval "$ac_try") 2>&5
4372   ac_status=$?
4373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374   test $ac_status = 0; }; }; then
4375       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4376       rm -f conftest2.*
4377       if { { case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383   (eval "$ac_try") 2>&5
4384   ac_status=$?
4385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386   test $ac_status = 0; } &&
4387          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396   test $ac_status = 0; };
4397       then
4398         # cc works too.
4399         :
4400       else
4401         # cc exists but doesn't like -o.
4402         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4403       fi
4404     fi
4405   fi
4406 else
4407   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4408 fi
4409 rm -f core conftest*
4410
4411 fi
4412 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4414 $as_echo "yes" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418
4419 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4420
4421 fi
4422
4423 # FIXME: we rely on the cache variable name because
4424 # there is no other way.
4425 set dummy $CC
4426 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4427 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4428 if test "$am_t" != yes; then
4429    # Losing compiler, so override with the script.
4430    # FIXME: It is wrong to rewrite CC.
4431    # But if we don't then we get into trouble of one sort or another.
4432    # A longer-term fix would be to have automake use am__CC in this case,
4433    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4434    CC="$am_aux_dir/compile $CC"
4435 fi
4436
4437
4438 case `pwd` in
4439   *\ * | *\     *)
4440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4441 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4442 esac
4443
4444
4445
4446 macro_version='2.2.6b'
4447 macro_revision='1.3017'
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 ltmain="$ac_aux_dir/ltmain.sh"
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4464 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4465 if test "${ac_cv_path_SED+set}" = set; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4469      for ac_i in 1 2 3 4 5 6 7; do
4470        ac_script="$ac_script$as_nl$ac_script"
4471      done
4472      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4473      { ac_script=; unset ac_script;}
4474      if test -z "$SED"; then
4475   ac_path_SED_found=false
4476   # Loop through the user's path and test for each of PROGNAME-LIST
4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482     for ac_prog in sed gsed; do
4483     for ac_exec_ext in '' $ac_executable_extensions; do
4484       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4485       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4486 # Check for GNU ac_path_SED and select it if it is found.
4487   # Check for GNU $ac_path_SED
4488 case `"$ac_path_SED" --version 2>&1` in
4489 *GNU*)
4490   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4491 *)
4492   ac_count=0
4493   $as_echo_n 0123456789 >"conftest.in"
4494   while :
4495   do
4496     cat "conftest.in" "conftest.in" >"conftest.tmp"
4497     mv "conftest.tmp" "conftest.in"
4498     cp "conftest.in" "conftest.nl"
4499     $as_echo '' >> "conftest.nl"
4500     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502     as_fn_arith $ac_count + 1 && ac_count=$as_val
4503     if test $ac_count -gt ${ac_path_SED_max-0}; then
4504       # Best one so far, save it but keep looking for a better one
4505       ac_cv_path_SED="$ac_path_SED"
4506       ac_path_SED_max=$ac_count
4507     fi
4508     # 10*(2^10) chars as input seems more than enough
4509     test $ac_count -gt 10 && break
4510   done
4511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512 esac
4513
4514       $ac_path_SED_found && break 3
4515     done
4516   done
4517   done
4518 IFS=$as_save_IFS
4519   if test -z "$ac_cv_path_SED"; then
4520     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4521   fi
4522 else
4523   ac_cv_path_SED=$SED
4524 fi
4525
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4528 $as_echo "$ac_cv_path_SED" >&6; }
4529  SED="$ac_cv_path_SED"
4530   rm -f conftest.sed
4531
4532 test -z "$SED" && SED=sed
4533 Xsed="$SED -e 1s/^X//"
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4546 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4547 if test "${ac_cv_path_GREP+set}" = set; then :
4548   $as_echo_n "(cached) " >&6
4549 else
4550   if test -z "$GREP"; then
4551   ac_path_GREP_found=false
4552   # Loop through the user's path and test for each of PROGNAME-LIST
4553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558     for ac_prog in grep ggrep; do
4559     for ac_exec_ext in '' $ac_executable_extensions; do
4560       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4561       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4562 # Check for GNU ac_path_GREP and select it if it is found.
4563   # Check for GNU $ac_path_GREP
4564 case `"$ac_path_GREP" --version 2>&1` in
4565 *GNU*)
4566   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4567 *)
4568   ac_count=0
4569   $as_echo_n 0123456789 >"conftest.in"
4570   while :
4571   do
4572     cat "conftest.in" "conftest.in" >"conftest.tmp"
4573     mv "conftest.tmp" "conftest.in"
4574     cp "conftest.in" "conftest.nl"
4575     $as_echo 'GREP' >> "conftest.nl"
4576     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4577     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4578     as_fn_arith $ac_count + 1 && ac_count=$as_val
4579     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4580       # Best one so far, save it but keep looking for a better one
4581       ac_cv_path_GREP="$ac_path_GREP"
4582       ac_path_GREP_max=$ac_count
4583     fi
4584     # 10*(2^10) chars as input seems more than enough
4585     test $ac_count -gt 10 && break
4586   done
4587   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4588 esac
4589
4590       $ac_path_GREP_found && break 3
4591     done
4592   done
4593   done
4594 IFS=$as_save_IFS
4595   if test -z "$ac_cv_path_GREP"; then
4596     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4597   fi
4598 else
4599   ac_cv_path_GREP=$GREP
4600 fi
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4604 $as_echo "$ac_cv_path_GREP" >&6; }
4605  GREP="$ac_cv_path_GREP"
4606
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4609 $as_echo_n "checking for egrep... " >&6; }
4610 if test "${ac_cv_path_EGREP+set}" = set; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4614    then ac_cv_path_EGREP="$GREP -E"
4615    else
4616      if test -z "$EGREP"; then
4617   ac_path_EGREP_found=false
4618   # Loop through the user's path and test for each of PROGNAME-LIST
4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_prog in egrep; do
4625     for ac_exec_ext in '' $ac_executable_extensions; do
4626       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4627       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4628 # Check for GNU ac_path_EGREP and select it if it is found.
4629   # Check for GNU $ac_path_EGREP
4630 case `"$ac_path_EGREP" --version 2>&1` in
4631 *GNU*)
4632   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4633 *)
4634   ac_count=0
4635   $as_echo_n 0123456789 >"conftest.in"
4636   while :
4637   do
4638     cat "conftest.in" "conftest.in" >"conftest.tmp"
4639     mv "conftest.tmp" "conftest.in"
4640     cp "conftest.in" "conftest.nl"
4641     $as_echo 'EGREP' >> "conftest.nl"
4642     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4643     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4644     as_fn_arith $ac_count + 1 && ac_count=$as_val
4645     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4646       # Best one so far, save it but keep looking for a better one
4647       ac_cv_path_EGREP="$ac_path_EGREP"
4648       ac_path_EGREP_max=$ac_count
4649     fi
4650     # 10*(2^10) chars as input seems more than enough
4651     test $ac_count -gt 10 && break
4652   done
4653   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4654 esac
4655
4656       $ac_path_EGREP_found && break 3
4657     done
4658   done
4659   done
4660 IFS=$as_save_IFS
4661   if test -z "$ac_cv_path_EGREP"; then
4662     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4663   fi
4664 else
4665   ac_cv_path_EGREP=$EGREP
4666 fi
4667
4668    fi
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4671 $as_echo "$ac_cv_path_EGREP" >&6; }
4672  EGREP="$ac_cv_path_EGREP"
4673
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4676 $as_echo_n "checking for fgrep... " >&6; }
4677 if test "${ac_cv_path_FGREP+set}" = set; then :
4678   $as_echo_n "(cached) " >&6
4679 else
4680   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4681    then ac_cv_path_FGREP="$GREP -F"
4682    else
4683      if test -z "$FGREP"; then
4684   ac_path_FGREP_found=false
4685   # Loop through the user's path and test for each of PROGNAME-LIST
4686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_prog in fgrep; do
4692     for ac_exec_ext in '' $ac_executable_extensions; do
4693       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4694       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4695 # Check for GNU ac_path_FGREP and select it if it is found.
4696   # Check for GNU $ac_path_FGREP
4697 case `"$ac_path_FGREP" --version 2>&1` in
4698 *GNU*)
4699   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4700 *)
4701   ac_count=0
4702   $as_echo_n 0123456789 >"conftest.in"
4703   while :
4704   do
4705     cat "conftest.in" "conftest.in" >"conftest.tmp"
4706     mv "conftest.tmp" "conftest.in"
4707     cp "conftest.in" "conftest.nl"
4708     $as_echo 'FGREP' >> "conftest.nl"
4709     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711     as_fn_arith $ac_count + 1 && ac_count=$as_val
4712     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4713       # Best one so far, save it but keep looking for a better one
4714       ac_cv_path_FGREP="$ac_path_FGREP"
4715       ac_path_FGREP_max=$ac_count
4716     fi
4717     # 10*(2^10) chars as input seems more than enough
4718     test $ac_count -gt 10 && break
4719   done
4720   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721 esac
4722
4723       $ac_path_FGREP_found && break 3
4724     done
4725   done
4726   done
4727 IFS=$as_save_IFS
4728   if test -z "$ac_cv_path_FGREP"; then
4729     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4730   fi
4731 else
4732   ac_cv_path_FGREP=$FGREP
4733 fi
4734
4735    fi
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4738 $as_echo "$ac_cv_path_FGREP" >&6; }
4739  FGREP="$ac_cv_path_FGREP"
4740
4741
4742 test -z "$GREP" && GREP=grep
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 # Check whether --with-gnu-ld was given.
4763 if test "${with_gnu_ld+set}" = set; then :
4764   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4765 else
4766   with_gnu_ld=no
4767 fi
4768
4769 ac_prog=ld
4770 if test "$GCC" = yes; then
4771   # Check if gcc -print-prog-name=ld gives a path.
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4773 $as_echo_n "checking for ld used by $CC... " >&6; }
4774   case $host in
4775   *-*-mingw*)
4776     # gcc leaves a trailing carriage return which upsets mingw
4777     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4778   *)
4779     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4780   esac
4781   case $ac_prog in
4782     # Accept absolute paths.
4783     [\\/]* | ?:[\\/]*)
4784       re_direlt='/[^/][^/]*/\.\./'
4785       # Canonicalize the pathname of ld
4786       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4787       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4788         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4789       done
4790       test -z "$LD" && LD="$ac_prog"
4791       ;;
4792   "")
4793     # If it fails, then pretend we aren't using GCC.
4794     ac_prog=ld
4795     ;;
4796   *)
4797     # If it is relative, then search for the first ld in PATH.
4798     with_gnu_ld=unknown
4799     ;;
4800   esac
4801 elif test "$with_gnu_ld" = yes; then
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4803 $as_echo_n "checking for GNU ld... " >&6; }
4804 else
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4806 $as_echo_n "checking for non-GNU ld... " >&6; }
4807 fi
4808 if test "${lt_cv_path_LD+set}" = set; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   if test -z "$LD"; then
4812   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4813   for ac_dir in $PATH; do
4814     IFS="$lt_save_ifs"
4815     test -z "$ac_dir" && ac_dir=.
4816     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4817       lt_cv_path_LD="$ac_dir/$ac_prog"
4818       # Check to see if the program is GNU ld.  I'd rather use --version,
4819       # but apparently some variants of GNU ld only accept -v.
4820       # Break only if it was the GNU/non-GNU ld that we prefer.
4821       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4822       *GNU* | *'with BFD'*)
4823         test "$with_gnu_ld" != no && break
4824         ;;
4825       *)
4826         test "$with_gnu_ld" != yes && break
4827         ;;
4828       esac
4829     fi
4830   done
4831   IFS="$lt_save_ifs"
4832 else
4833   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4834 fi
4835 fi
4836
4837 LD="$lt_cv_path_LD"
4838 if test -n "$LD"; then
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4840 $as_echo "$LD" >&6; }
4841 else
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4847 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4848 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4849   $as_echo_n "(cached) " >&6
4850 else
4851   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4852 case `$LD -v 2>&1 </dev/null` in
4853 *GNU* | *'with BFD'*)
4854   lt_cv_prog_gnu_ld=yes
4855   ;;
4856 *)
4857   lt_cv_prog_gnu_ld=no
4858   ;;
4859 esac
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4862 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4863 with_gnu_ld=$lt_cv_prog_gnu_ld
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4874 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4875 if test "${lt_cv_path_NM+set}" = set; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   if test -n "$NM"; then
4879   # Let the user override the test.
4880   lt_cv_path_NM="$NM"
4881 else
4882   lt_nm_to_check="${ac_tool_prefix}nm"
4883   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4884     lt_nm_to_check="$lt_nm_to_check nm"
4885   fi
4886   for lt_tmp_nm in $lt_nm_to_check; do
4887     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4888     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4889       IFS="$lt_save_ifs"
4890       test -z "$ac_dir" && ac_dir=.
4891       tmp_nm="$ac_dir/$lt_tmp_nm"
4892       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4893         # Check to see if the nm accepts a BSD-compat flag.
4894         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4895         #   nm: unknown option "B" ignored
4896         # Tru64's nm complains that /dev/null is an invalid object file
4897         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4898         */dev/null* | *'Invalid file or object type'*)
4899           lt_cv_path_NM="$tmp_nm -B"
4900           break
4901           ;;
4902         *)
4903           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4904           */dev/null*)
4905             lt_cv_path_NM="$tmp_nm -p"
4906             break
4907             ;;
4908           *)
4909             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4910             continue # so that we can try to find one that supports BSD flags
4911             ;;
4912           esac
4913           ;;
4914         esac
4915       fi
4916     done
4917     IFS="$lt_save_ifs"
4918   done
4919   : ${lt_cv_path_NM=no}
4920 fi
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4923 $as_echo "$lt_cv_path_NM" >&6; }
4924 if test "$lt_cv_path_NM" != "no"; then
4925   NM="$lt_cv_path_NM"
4926 else
4927   # Didn't find any BSD compatible name lister, look for dumpbin.
4928   if test -n "$ac_tool_prefix"; then
4929   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4930   do
4931     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   if test -n "$DUMPBIN"; then
4939   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944   IFS=$as_save_IFS
4945   test -z "$as_dir" && as_dir=.
4946     for ac_exec_ext in '' $ac_executable_extensions; do
4947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950     break 2
4951   fi
4952 done
4953   done
4954 IFS=$as_save_IFS
4955
4956 fi
4957 fi
4958 DUMPBIN=$ac_cv_prog_DUMPBIN
4959 if test -n "$DUMPBIN"; then
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4961 $as_echo "$DUMPBIN" >&6; }
4962 else
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4965 fi
4966
4967
4968     test -n "$DUMPBIN" && break
4969   done
4970 fi
4971 if test -z "$DUMPBIN"; then
4972   ac_ct_DUMPBIN=$DUMPBIN
4973   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -n "$ac_ct_DUMPBIN"; then
4983   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5003 if test -n "$ac_ct_DUMPBIN"; then
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5005 $as_echo "$ac_ct_DUMPBIN" >&6; }
5006 else
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011
5012   test -n "$ac_ct_DUMPBIN" && break
5013 done
5014
5015   if test "x$ac_ct_DUMPBIN" = x; then
5016     DUMPBIN=":"
5017   else
5018     case $cross_compiling:$ac_tool_warned in
5019 yes:)
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5022 ac_tool_warned=yes ;;
5023 esac
5024     DUMPBIN=$ac_ct_DUMPBIN
5025   fi
5026 fi
5027
5028
5029   if test "$DUMPBIN" != ":"; then
5030     NM="$DUMPBIN"
5031   fi
5032 fi
5033 test -z "$NM" && NM=nm
5034
5035
5036
5037
5038
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5041 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5042 if test "${lt_cv_nm_interface+set}" = set; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   lt_cv_nm_interface="BSD nm"
5046   echo "int some_variable = 0;" > conftest.$ac_ext
5047   (eval echo "\"\$as_me:5047: $ac_compile\"" >&5)
5048   (eval "$ac_compile" 2>conftest.err)
5049   cat conftest.err >&5
5050   (eval echo "\"\$as_me:5050: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5051   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5052   cat conftest.err >&5
5053   (eval echo "\"\$as_me:5053: output\"" >&5)
5054   cat conftest.out >&5
5055   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5056     lt_cv_nm_interface="MS dumpbin"
5057   fi
5058   rm -f conftest*
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5061 $as_echo "$lt_cv_nm_interface" >&6; }
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5064 $as_echo_n "checking whether ln -s works... " >&6; }
5065 LN_S=$as_ln_s
5066 if test "$LN_S" = "ln -s"; then
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5068 $as_echo "yes" >&6; }
5069 else
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5071 $as_echo "no, using $LN_S" >&6; }
5072 fi
5073
5074 # find the maximum length of command line arguments
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5076 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5077 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080     i=0
5081   teststring="ABCD"
5082
5083   case $build_os in
5084   msdosdjgpp*)
5085     # On DJGPP, this test can blow up pretty badly due to problems in libc
5086     # (any single argument exceeding 2000 bytes causes a buffer overrun
5087     # during glob expansion).  Even if it were fixed, the result of this
5088     # check would be larger than it should be.
5089     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5090     ;;
5091
5092   gnu*)
5093     # Under GNU Hurd, this test is not required because there is
5094     # no limit to the length of command line arguments.
5095     # Libtool will interpret -1 as no limit whatsoever
5096     lt_cv_sys_max_cmd_len=-1;
5097     ;;
5098
5099   cygwin* | mingw* | cegcc*)
5100     # On Win9x/ME, this test blows up -- it succeeds, but takes
5101     # about 5 minutes as the teststring grows exponentially.
5102     # Worse, since 9x/ME are not pre-emptively multitasking,
5103     # you end up with a "frozen" computer, even though with patience
5104     # the test eventually succeeds (with a max line length of 256k).
5105     # Instead, let's just punt: use the minimum linelength reported by
5106     # all of the supported platforms: 8192 (on NT/2K/XP).
5107     lt_cv_sys_max_cmd_len=8192;
5108     ;;
5109
5110   amigaos*)
5111     # On AmigaOS with pdksh, this test takes hours, literally.
5112     # So we just punt and use a minimum line length of 8192.
5113     lt_cv_sys_max_cmd_len=8192;
5114     ;;
5115
5116   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5117     # This has been around since 386BSD, at least.  Likely further.
5118     if test -x /sbin/sysctl; then
5119       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5120     elif test -x /usr/sbin/sysctl; then
5121       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5122     else
5123       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5124     fi
5125     # And add a safety zone
5126     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5127     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5128     ;;
5129
5130   interix*)
5131     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5132     lt_cv_sys_max_cmd_len=196608
5133     ;;
5134
5135   osf*)
5136     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5137     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5138     # nice to cause kernel panics so lets avoid the loop below.
5139     # First set a reasonable default.
5140     lt_cv_sys_max_cmd_len=16384
5141     #
5142     if test -x /sbin/sysconfig; then
5143       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5144         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5145       esac
5146     fi
5147     ;;
5148   sco3.2v5*)
5149     lt_cv_sys_max_cmd_len=102400
5150     ;;
5151   sysv5* | sco5v6* | sysv4.2uw2*)
5152     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5153     if test -n "$kargmax"; then
5154       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5155     else
5156       lt_cv_sys_max_cmd_len=32768
5157     fi
5158     ;;
5159   *)
5160     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5161     if test -n "$lt_cv_sys_max_cmd_len"; then
5162       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5163       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5164     else
5165       # Make teststring a little bigger before we do anything with it.
5166       # a 1K string should be a reasonable start.
5167       for i in 1 2 3 4 5 6 7 8 ; do
5168         teststring=$teststring$teststring
5169       done
5170       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5171       # If test is not a shell built-in, we'll probably end up computing a
5172       # maximum length that is only half of the actual maximum length, but
5173       # we can't tell.
5174       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5175                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5176               test $i != 17 # 1/2 MB should be enough
5177       do
5178         i=`expr $i + 1`
5179         teststring=$teststring$teststring
5180       done
5181       # Only check the string length outside the loop.
5182       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5183       teststring=
5184       # Add a significant safety factor because C++ compilers can tack on
5185       # massive amounts of additional arguments before passing them to the
5186       # linker.  It appears as though 1/2 is a usable value.
5187       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5188     fi
5189     ;;
5190   esac
5191
5192 fi
5193
5194 if test -n $lt_cv_sys_max_cmd_len ; then
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5196 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5197 else
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5199 $as_echo "none" >&6; }
5200 fi
5201 max_cmd_len=$lt_cv_sys_max_cmd_len
5202
5203
5204
5205
5206
5207
5208 : ${CP="cp -f"}
5209 : ${MV="mv -f"}
5210 : ${RM="rm -f"}
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5213 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5214 # Try some XSI features
5215 xsi_shell=no
5216 ( _lt_dummy="a/b/c"
5217   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5218       = c,a/b,, \
5219     && eval 'test $(( 1 + 1 )) -eq 2 \
5220     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5221   && xsi_shell=yes
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5223 $as_echo "$xsi_shell" >&6; }
5224
5225
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5227 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5228 lt_shell_append=no
5229 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5230     >/dev/null 2>&1 \
5231   && lt_shell_append=yes
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5233 $as_echo "$lt_shell_append" >&6; }
5234
5235
5236 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5237   lt_unset=unset
5238 else
5239   lt_unset=false
5240 fi
5241
5242
5243
5244
5245
5246 # test EBCDIC or ASCII
5247 case `echo X|tr X '\101'` in
5248  A) # ASCII based system
5249     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5250   lt_SP2NL='tr \040 \012'
5251   lt_NL2SP='tr \015\012 \040\040'
5252   ;;
5253  *) # EBCDIC based system
5254   lt_SP2NL='tr \100 \n'
5255   lt_NL2SP='tr \r\n \100\100'
5256   ;;
5257 esac
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5268 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5269 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   lt_cv_ld_reload_flag='-r'
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5275 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5276 reload_flag=$lt_cv_ld_reload_flag
5277 case $reload_flag in
5278 "" | " "*) ;;
5279 *) reload_flag=" $reload_flag" ;;
5280 esac
5281 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5282 case $host_os in
5283   darwin*)
5284     if test "$GCC" = yes; then
5285       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5286     else
5287       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5288     fi
5289     ;;
5290 esac
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 if test -n "$ac_tool_prefix"; then
5301   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5302 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   if test -n "$OBJDUMP"; then
5309   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316     for ac_exec_ext in '' $ac_executable_extensions; do
5317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323   done
5324 IFS=$as_save_IFS
5325
5326 fi
5327 fi
5328 OBJDUMP=$ac_cv_prog_OBJDUMP
5329 if test -n "$OBJDUMP"; then
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5331 $as_echo "$OBJDUMP" >&6; }
5332 else
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336
5337
5338 fi
5339 if test -z "$ac_cv_prog_OBJDUMP"; then
5340   ac_ct_OBJDUMP=$OBJDUMP
5341   # Extract the first word of "objdump", so it can be a program name with args.
5342 set dummy objdump; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   if test -n "$ac_ct_OBJDUMP"; then
5349   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356     for ac_exec_ext in '' $ac_executable_extensions; do
5357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363   done
5364 IFS=$as_save_IFS
5365
5366 fi
5367 fi
5368 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5369 if test -n "$ac_ct_OBJDUMP"; then
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5371 $as_echo "$ac_ct_OBJDUMP" >&6; }
5372 else
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5375 fi
5376
5377   if test "x$ac_ct_OBJDUMP" = x; then
5378     OBJDUMP="false"
5379   else
5380     case $cross_compiling:$ac_tool_warned in
5381 yes:)
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384 ac_tool_warned=yes ;;
5385 esac
5386     OBJDUMP=$ac_ct_OBJDUMP
5387   fi
5388 else
5389   OBJDUMP="$ac_cv_prog_OBJDUMP"
5390 fi
5391
5392 test -z "$OBJDUMP" && OBJDUMP=objdump
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5403 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5404 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   lt_cv_file_magic_cmd='$MAGIC_CMD'
5408 lt_cv_file_magic_test_file=
5409 lt_cv_deplibs_check_method='unknown'
5410 # Need to set the preceding variable on all platforms that support
5411 # interlibrary dependencies.
5412 # 'none' -- dependencies not supported.
5413 # `unknown' -- same as none, but documents that we really don't know.
5414 # 'pass_all' -- all dependencies passed with no checks.
5415 # 'test_compile' -- check by making test program.
5416 # 'file_magic [[regex]]' -- check by looking for files in library path
5417 # which responds to the $file_magic_cmd with a given extended regex.
5418 # If you have `file' or equivalent on your system and you're not sure
5419 # whether `pass_all' will *always* work, you probably want this one.
5420
5421 case $host_os in
5422 aix[4-9]*)
5423   lt_cv_deplibs_check_method=pass_all
5424   ;;
5425
5426 beos*)
5427   lt_cv_deplibs_check_method=pass_all
5428   ;;
5429
5430 bsdi[45]*)
5431   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5432   lt_cv_file_magic_cmd='/usr/bin/file -L'
5433   lt_cv_file_magic_test_file=/shlib/libc.so
5434   ;;
5435
5436 cygwin*)
5437   # func_win32_libid is a shell function defined in ltmain.sh
5438   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439   lt_cv_file_magic_cmd='func_win32_libid'
5440   ;;
5441
5442 mingw* | pw32*)
5443   # Base MSYS/MinGW do not provide the 'file' command needed by
5444   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5445   # unless we find 'file', for example because we are cross-compiling.
5446   if ( file / ) >/dev/null 2>&1; then
5447     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448     lt_cv_file_magic_cmd='func_win32_libid'
5449   else
5450     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5451     lt_cv_file_magic_cmd='$OBJDUMP -f'
5452   fi
5453   ;;
5454
5455 cegcc)
5456   # use the weaker test based on 'objdump'. See mingw*.
5457   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5458   lt_cv_file_magic_cmd='$OBJDUMP -f'
5459   ;;
5460
5461 darwin* | rhapsody*)
5462   lt_cv_deplibs_check_method=pass_all
5463   ;;
5464
5465 freebsd* | dragonfly*)
5466   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5467     case $host_cpu in
5468     i*86 )
5469       # Not sure whether the presence of OpenBSD here was a mistake.
5470       # Let's accept both of them until this is cleared up.
5471       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5472       lt_cv_file_magic_cmd=/usr/bin/file
5473       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5474       ;;
5475     esac
5476   else
5477     lt_cv_deplibs_check_method=pass_all
5478   fi
5479   ;;
5480
5481 gnu*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 hpux10.20* | hpux11*)
5486   lt_cv_file_magic_cmd=/usr/bin/file
5487   case $host_cpu in
5488   ia64*)
5489     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5490     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5491     ;;
5492   hppa*64*)
5493     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5494     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5495     ;;
5496   *)
5497     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5498     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5499     ;;
5500   esac
5501   ;;
5502
5503 interix[3-9]*)
5504   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5505   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5506   ;;
5507
5508 irix5* | irix6* | nonstopux*)
5509   case $LD in
5510   *-32|*"-32 ") libmagic=32-bit;;
5511   *-n32|*"-n32 ") libmagic=N32;;
5512   *-64|*"-64 ") libmagic=64-bit;;
5513   *) libmagic=never-match;;
5514   esac
5515   lt_cv_deplibs_check_method=pass_all
5516   ;;
5517
5518 # This must be Linux ELF.
5519 linux* | k*bsd*-gnu)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 netbsd*)
5524   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5525     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5526   else
5527     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5528   fi
5529   ;;
5530
5531 newos6*)
5532   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5533   lt_cv_file_magic_cmd=/usr/bin/file
5534   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5535   ;;
5536
5537 *nto* | *qnx*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 openbsd*)
5542   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5543     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5544   else
5545     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5546   fi
5547   ;;
5548
5549 osf3* | osf4* | osf5*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 rdos*)
5554   lt_cv_deplibs_check_method=pass_all
5555   ;;
5556
5557 solaris*)
5558   lt_cv_deplibs_check_method=pass_all
5559   ;;
5560
5561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 sysv4 | sysv4.3*)
5566   case $host_vendor in
5567   motorola)
5568     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]'
5569     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5570     ;;
5571   ncr)
5572     lt_cv_deplibs_check_method=pass_all
5573     ;;
5574   sequent)
5575     lt_cv_file_magic_cmd='/bin/file'
5576     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5577     ;;
5578   sni)
5579     lt_cv_file_magic_cmd='/bin/file'
5580     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5581     lt_cv_file_magic_test_file=/lib/libc.so
5582     ;;
5583   siemens)
5584     lt_cv_deplibs_check_method=pass_all
5585     ;;
5586   pc)
5587     lt_cv_deplibs_check_method=pass_all
5588     ;;
5589   esac
5590   ;;
5591
5592 tpf*)
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595 esac
5596
5597 fi
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5599 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5600 file_magic_cmd=$lt_cv_file_magic_cmd
5601 deplibs_check_method=$lt_cv_deplibs_check_method
5602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 if test -n "$ac_tool_prefix"; then
5616   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}ar; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if test "${ac_cv_prog_AR+set}" = set; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   if test -n "$AR"; then
5624   ac_cv_prog_AR="$AR" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633     ac_cv_prog_AR="${ac_tool_prefix}ar"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 AR=$ac_cv_prog_AR
5644 if test -n "$AR"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5646 $as_echo "$AR" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 fi
5654 if test -z "$ac_cv_prog_AR"; then
5655   ac_ct_AR=$AR
5656   # Extract the first word of "ar", so it can be a program name with args.
5657 set dummy ar; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   if test -n "$ac_ct_AR"; then
5664   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673     ac_cv_prog_ac_ct_AR="ar"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5684 if test -n "$ac_ct_AR"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5686 $as_echo "$ac_ct_AR" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692   if test "x$ac_ct_AR" = x; then
5693     AR="false"
5694   else
5695     case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701     AR=$ac_ct_AR
5702   fi
5703 else
5704   AR="$ac_cv_prog_AR"
5705 fi
5706
5707 test -z "$AR" && AR=ar
5708 test -z "$AR_FLAGS" && AR_FLAGS=cru
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 if test -n "$ac_tool_prefix"; then
5721   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5722 set dummy ${ac_tool_prefix}strip; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_STRIP+set}" = set; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if test -n "$STRIP"; then
5729   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743   done
5744 IFS=$as_save_IFS
5745
5746 fi
5747 fi
5748 STRIP=$ac_cv_prog_STRIP
5749 if test -n "$STRIP"; then
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5751 $as_echo "$STRIP" >&6; }
5752 else
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5755 fi
5756
5757
5758 fi
5759 if test -z "$ac_cv_prog_STRIP"; then
5760   ac_ct_STRIP=$STRIP
5761   # Extract the first word of "strip", so it can be a program name with args.
5762 set dummy strip; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   if test -n "$ac_ct_STRIP"; then
5769   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776     for ac_exec_ext in '' $ac_executable_extensions; do
5777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778     ac_cv_prog_ac_ct_STRIP="strip"
5779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783   done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5789 if test -n "$ac_ct_STRIP"; then
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5791 $as_echo "$ac_ct_STRIP" >&6; }
5792 else
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5796
5797   if test "x$ac_ct_STRIP" = x; then
5798     STRIP=":"
5799   else
5800     case $cross_compiling:$ac_tool_warned in
5801 yes:)
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5804 ac_tool_warned=yes ;;
5805 esac
5806     STRIP=$ac_ct_STRIP
5807   fi
5808 else
5809   STRIP="$ac_cv_prog_STRIP"
5810 fi
5811
5812 test -z "$STRIP" && STRIP=:
5813
5814
5815
5816
5817
5818
5819 if test -n "$ac_tool_prefix"; then
5820   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5821 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   if test -n "$RANLIB"; then
5828   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835     for ac_exec_ext in '' $ac_executable_extensions; do
5836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842   done
5843 IFS=$as_save_IFS
5844
5845 fi
5846 fi
5847 RANLIB=$ac_cv_prog_RANLIB
5848 if test -n "$RANLIB"; then
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5850 $as_echo "$RANLIB" >&6; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855
5856
5857 fi
5858 if test -z "$ac_cv_prog_RANLIB"; then
5859   ac_ct_RANLIB=$RANLIB
5860   # Extract the first word of "ranlib", so it can be a program name with args.
5861 set dummy ranlib; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   if test -n "$ac_ct_RANLIB"; then
5868   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877     ac_cv_prog_ac_ct_RANLIB="ranlib"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884
5885 fi
5886 fi
5887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5888 if test -n "$ac_ct_RANLIB"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5890 $as_echo "$ac_ct_RANLIB" >&6; }
5891 else
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895
5896   if test "x$ac_ct_RANLIB" = x; then
5897     RANLIB=":"
5898   else
5899     case $cross_compiling:$ac_tool_warned in
5900 yes:)
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5903 ac_tool_warned=yes ;;
5904 esac
5905     RANLIB=$ac_ct_RANLIB
5906   fi
5907 else
5908   RANLIB="$ac_cv_prog_RANLIB"
5909 fi
5910
5911 test -z "$RANLIB" && RANLIB=:
5912
5913
5914
5915
5916
5917
5918 # Determine commands to create old-style static archives.
5919 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5920 old_postinstall_cmds='chmod 644 $oldlib'
5921 old_postuninstall_cmds=
5922
5923 if test -n "$RANLIB"; then
5924   case $host_os in
5925   openbsd*)
5926     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5927     ;;
5928   *)
5929     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5930     ;;
5931   esac
5932   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5933 fi
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 # If no C compiler was specified, use CC.
5969 LTCC=${LTCC-"$CC"}
5970
5971 # If no C compiler flags were specified, use CFLAGS.
5972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5973
5974 # Allow CC to be a program name with arguments.
5975 compiler=$CC
5976
5977
5978 # Check for command to grab the raw symbol name followed by C symbol from nm.
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5980 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5981 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984
5985 # These are sane defaults that work on at least a few old systems.
5986 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5987
5988 # Character class describing NM global symbol codes.
5989 symcode='[BCDEGRST]'
5990
5991 # Regexp to match symbols that can be accessed directly from C.
5992 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5993
5994 # Define system-specific variables.
5995 case $host_os in
5996 aix*)
5997   symcode='[BCDT]'
5998   ;;
5999 cygwin* | mingw* | pw32* | cegcc*)
6000   symcode='[ABCDGISTW]'
6001   ;;
6002 hpux*)
6003   if test "$host_cpu" = ia64; then
6004     symcode='[ABCDEGRST]'
6005   fi
6006   ;;
6007 irix* | nonstopux*)
6008   symcode='[BCDEGRST]'
6009   ;;
6010 osf*)
6011   symcode='[BCDEGQRST]'
6012   ;;
6013 solaris*)
6014   symcode='[BDRT]'
6015   ;;
6016 sco3.2v5*)
6017   symcode='[DT]'
6018   ;;
6019 sysv4.2uw2*)
6020   symcode='[DT]'
6021   ;;
6022 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6023   symcode='[ABDT]'
6024   ;;
6025 sysv4)
6026   symcode='[DFNSTU]'
6027   ;;
6028 esac
6029
6030 # If we're using GNU nm, then use its standard symbol codes.
6031 case `$NM -V 2>&1` in
6032 *GNU* | *'with BFD'*)
6033   symcode='[ABCDGIRSTW]' ;;
6034 esac
6035
6036 # Transform an extracted symbol line into a proper C declaration.
6037 # Some systems (esp. on ia64) link data and code symbols differently,
6038 # so use this general approach.
6039 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6040
6041 # Transform an extracted symbol line into symbol name and symbol address
6042 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6043 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'"
6044
6045 # Handle CRLF in mingw tool chain
6046 opt_cr=
6047 case $build_os in
6048 mingw*)
6049   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6050   ;;
6051 esac
6052
6053 # Try without a prefix underscore, then with it.
6054 for ac_symprfx in "" "_"; do
6055
6056   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6057   symxfrm="\\1 $ac_symprfx\\2 \\2"
6058
6059   # Write the raw and C identifiers.
6060   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061     # Fake it for dumpbin and say T for any non-static function
6062     # and D for any global variable.
6063     # Also find C++ and __fastcall symbols from MSVC++,
6064     # which start with @ or ?.
6065     lt_cv_sys_global_symbol_pipe="$AWK '"\
6066 "     {last_section=section; section=\$ 3};"\
6067 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6068 "     \$ 0!~/External *\|/{next};"\
6069 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6070 "     {if(hide[section]) next};"\
6071 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6072 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6073 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6074 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6075 "     ' prfx=^$ac_symprfx"
6076   else
6077     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6078   fi
6079
6080   # Check to see that the pipe works correctly.
6081   pipe_works=no
6082
6083   rm -f conftest*
6084   cat > conftest.$ac_ext <<_LT_EOF
6085 #ifdef __cplusplus
6086 extern "C" {
6087 #endif
6088 char nm_test_var;
6089 void nm_test_func(void);
6090 void nm_test_func(void){}
6091 #ifdef __cplusplus
6092 }
6093 #endif
6094 int main(){nm_test_var='a';nm_test_func();return(0);}
6095 _LT_EOF
6096
6097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6098   (eval $ac_compile) 2>&5
6099   ac_status=$?
6100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101   test $ac_status = 0; }; then
6102     # Now try to grab the symbols.
6103     nlist=conftest.nm
6104     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6105   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108   test $ac_status = 0; } && test -s "$nlist"; then
6109       # Try sorting and uniquifying the output.
6110       if sort "$nlist" | uniq > "$nlist"T; then
6111         mv -f "$nlist"T "$nlist"
6112       else
6113         rm -f "$nlist"T
6114       fi
6115
6116       # Make sure that we snagged all the symbols we need.
6117       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6118         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6119           cat <<_LT_EOF > conftest.$ac_ext
6120 #ifdef __cplusplus
6121 extern "C" {
6122 #endif
6123
6124 _LT_EOF
6125           # Now generate the symbol file.
6126           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6127
6128           cat <<_LT_EOF >> conftest.$ac_ext
6129
6130 /* The mapping between symbol names and symbols.  */
6131 const struct {
6132   const char *name;
6133   void       *address;
6134 }
6135 lt__PROGRAM__LTX_preloaded_symbols[] =
6136 {
6137   { "@PROGRAM@", (void *) 0 },
6138 _LT_EOF
6139           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6140           cat <<\_LT_EOF >> conftest.$ac_ext
6141   {0, (void *) 0}
6142 };
6143
6144 /* This works around a problem in FreeBSD linker */
6145 #ifdef FREEBSD_WORKAROUND
6146 static const void *lt_preloaded_setup() {
6147   return lt__PROGRAM__LTX_preloaded_symbols;
6148 }
6149 #endif
6150
6151 #ifdef __cplusplus
6152 }
6153 #endif
6154 _LT_EOF
6155           # Now try linking the two files.
6156           mv conftest.$ac_objext conftstm.$ac_objext
6157           lt_save_LIBS="$LIBS"
6158           lt_save_CFLAGS="$CFLAGS"
6159           LIBS="conftstm.$ac_objext"
6160           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6161           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6162   (eval $ac_link) 2>&5
6163   ac_status=$?
6164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6166             pipe_works=yes
6167           fi
6168           LIBS="$lt_save_LIBS"
6169           CFLAGS="$lt_save_CFLAGS"
6170         else
6171           echo "cannot find nm_test_func in $nlist" >&5
6172         fi
6173       else
6174         echo "cannot find nm_test_var in $nlist" >&5
6175       fi
6176     else
6177       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6178     fi
6179   else
6180     echo "$progname: failed program was:" >&5
6181     cat conftest.$ac_ext >&5
6182   fi
6183   rm -rf conftest* conftst*
6184
6185   # Do not use the global_symbol_pipe unless it works.
6186   if test "$pipe_works" = yes; then
6187     break
6188   else
6189     lt_cv_sys_global_symbol_pipe=
6190   fi
6191 done
6192
6193 fi
6194
6195 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6196   lt_cv_sys_global_symbol_to_cdecl=
6197 fi
6198 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6200 $as_echo "failed" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6203 $as_echo "ok" >&6; }
6204 fi
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 # Check whether --enable-libtool-lock was given.
6229 if test "${enable_libtool_lock+set}" = set; then :
6230   enableval=$enable_libtool_lock;
6231 fi
6232
6233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6234
6235 # Some flags need to be propagated to the compiler or linker for good
6236 # libtool support.
6237 case $host in
6238 ia64-*-hpux*)
6239   # Find out which ABI we are using.
6240   echo 'int i;' > conftest.$ac_ext
6241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242   (eval $ac_compile) 2>&5
6243   ac_status=$?
6244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245   test $ac_status = 0; }; then
6246     case `/usr/bin/file conftest.$ac_objext` in
6247       *ELF-32*)
6248         HPUX_IA64_MODE="32"
6249         ;;
6250       *ELF-64*)
6251         HPUX_IA64_MODE="64"
6252         ;;
6253     esac
6254   fi
6255   rm -rf conftest*
6256   ;;
6257 *-*-irix6*)
6258   # Find out which ABI we are using.
6259   echo '#line 6259 "configure"' > conftest.$ac_ext
6260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261   (eval $ac_compile) 2>&5
6262   ac_status=$?
6263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264   test $ac_status = 0; }; then
6265     if test "$lt_cv_prog_gnu_ld" = yes; then
6266       case `/usr/bin/file conftest.$ac_objext` in
6267         *32-bit*)
6268           LD="${LD-ld} -melf32bsmip"
6269           ;;
6270         *N32*)
6271           LD="${LD-ld} -melf32bmipn32"
6272           ;;
6273         *64-bit*)
6274           LD="${LD-ld} -melf64bmip"
6275         ;;
6276       esac
6277     else
6278       case `/usr/bin/file conftest.$ac_objext` in
6279         *32-bit*)
6280           LD="${LD-ld} -32"
6281           ;;
6282         *N32*)
6283           LD="${LD-ld} -n32"
6284           ;;
6285         *64-bit*)
6286           LD="${LD-ld} -64"
6287           ;;
6288       esac
6289     fi
6290   fi
6291   rm -rf conftest*
6292   ;;
6293
6294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6296   # Find out which ABI we are using.
6297   echo 'int i;' > conftest.$ac_ext
6298   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299   (eval $ac_compile) 2>&5
6300   ac_status=$?
6301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302   test $ac_status = 0; }; then
6303     case `/usr/bin/file conftest.o` in
6304       *32-bit*)
6305         case $host in
6306           x86_64-*kfreebsd*-gnu)
6307             LD="${LD-ld} -m elf_i386_fbsd"
6308             ;;
6309           x86_64-*linux*)
6310             LD="${LD-ld} -m elf_i386"
6311             ;;
6312           ppc64-*linux*|powerpc64-*linux*)
6313             LD="${LD-ld} -m elf32ppclinux"
6314             ;;
6315           s390x-*linux*)
6316             LD="${LD-ld} -m elf_s390"
6317             ;;
6318           sparc64-*linux*)
6319             LD="${LD-ld} -m elf32_sparc"
6320             ;;
6321         esac
6322         ;;
6323       *64-bit*)
6324         case $host in
6325           x86_64-*kfreebsd*-gnu)
6326             LD="${LD-ld} -m elf_x86_64_fbsd"
6327             ;;
6328           x86_64-*linux*)
6329             LD="${LD-ld} -m elf_x86_64"
6330             ;;
6331           ppc*-*linux*|powerpc*-*linux*)
6332             LD="${LD-ld} -m elf64ppc"
6333             ;;
6334           s390*-*linux*|s390*-*tpf*)
6335             LD="${LD-ld} -m elf64_s390"
6336             ;;
6337           sparc*-*linux*)
6338             LD="${LD-ld} -m elf64_sparc"
6339             ;;
6340         esac
6341         ;;
6342     esac
6343   fi
6344   rm -rf conftest*
6345   ;;
6346
6347 *-*-sco3.2v5*)
6348   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6349   SAVE_CFLAGS="$CFLAGS"
6350   CFLAGS="$CFLAGS -belf"
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6352 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6353 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   ac_ext=c
6357 ac_cpp='$CPP $CPPFLAGS'
6358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h.  */
6364
6365 int
6366 main ()
6367 {
6368
6369   ;
6370   return 0;
6371 }
6372 _ACEOF
6373 if ac_fn_c_try_link "$LINENO"; then :
6374   lt_cv_cc_needs_belf=yes
6375 else
6376   lt_cv_cc_needs_belf=no
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext \
6379     conftest$ac_exeext conftest.$ac_ext
6380      ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6388 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6389   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6390     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6391     CFLAGS="$SAVE_CFLAGS"
6392   fi
6393   ;;
6394 sparc*-*solaris*)
6395   # Find out which ABI we are using.
6396   echo 'int i;' > conftest.$ac_ext
6397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398   (eval $ac_compile) 2>&5
6399   ac_status=$?
6400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401   test $ac_status = 0; }; then
6402     case `/usr/bin/file conftest.o` in
6403     *64-bit*)
6404       case $lt_cv_prog_gnu_ld in
6405       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6406       *)
6407         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6408           LD="${LD-ld} -64"
6409         fi
6410         ;;
6411       esac
6412       ;;
6413     esac
6414   fi
6415   rm -rf conftest*
6416   ;;
6417 esac
6418
6419 need_locks="$enable_libtool_lock"
6420
6421
6422   case $host_os in
6423     rhapsody* | darwin*)
6424     if test -n "$ac_tool_prefix"; then
6425   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$DSYMUTIL"; then
6433   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6453 if test -n "$DSYMUTIL"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6455 $as_echo "$DSYMUTIL" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461
6462 fi
6463 if test -z "$ac_cv_prog_DSYMUTIL"; then
6464   ac_ct_DSYMUTIL=$DSYMUTIL
6465   # Extract the first word of "dsymutil", so it can be a program name with args.
6466 set dummy dsymutil; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   if test -n "$ac_ct_DSYMUTIL"; then
6473   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480     for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487   done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6493 if test -n "$ac_ct_DSYMUTIL"; then
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6495 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6496 else
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500
6501   if test "x$ac_ct_DSYMUTIL" = x; then
6502     DSYMUTIL=":"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6509 esac
6510     DSYMUTIL=$ac_ct_DSYMUTIL
6511   fi
6512 else
6513   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6514 fi
6515
6516     if test -n "$ac_tool_prefix"; then
6517   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   if test -n "$NMEDIT"; then
6525   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539   done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 NMEDIT=$ac_cv_prog_NMEDIT
6545 if test -n "$NMEDIT"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6547 $as_echo "$NMEDIT" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552
6553
6554 fi
6555 if test -z "$ac_cv_prog_NMEDIT"; then
6556   ac_ct_NMEDIT=$NMEDIT
6557   # Extract the first word of "nmedit", so it can be a program name with args.
6558 set dummy nmedit; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6562   $as_echo_n "(cached) " >&6
6563 else
6564   if test -n "$ac_ct_NMEDIT"; then
6565   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570   IFS=$as_save_IFS
6571   test -z "$as_dir" && as_dir=.
6572     for ac_exec_ext in '' $ac_executable_extensions; do
6573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576     break 2
6577   fi
6578 done
6579   done
6580 IFS=$as_save_IFS
6581
6582 fi
6583 fi
6584 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6585 if test -n "$ac_ct_NMEDIT"; then
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6587 $as_echo "$ac_ct_NMEDIT" >&6; }
6588 else
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6591 fi
6592
6593   if test "x$ac_ct_NMEDIT" = x; then
6594     NMEDIT=":"
6595   else
6596     case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602     NMEDIT=$ac_ct_NMEDIT
6603   fi
6604 else
6605   NMEDIT="$ac_cv_prog_NMEDIT"
6606 fi
6607
6608     if test -n "$ac_tool_prefix"; then
6609   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if test "${ac_cv_prog_LIPO+set}" = set; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$LIPO"; then
6617   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 LIPO=$ac_cv_prog_LIPO
6637 if test -n "$LIPO"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6639 $as_echo "$LIPO" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646 fi
6647 if test -z "$ac_cv_prog_LIPO"; then
6648   ac_ct_LIPO=$LIPO
6649   # Extract the first word of "lipo", so it can be a program name with args.
6650 set dummy lipo; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   if test -n "$ac_ct_LIPO"; then
6657   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664     for ac_exec_ext in '' $ac_executable_extensions; do
6665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666     ac_cv_prog_ac_ct_LIPO="lipo"
6667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671   done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6677 if test -n "$ac_ct_LIPO"; then
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6679 $as_echo "$ac_ct_LIPO" >&6; }
6680 else
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685   if test "x$ac_ct_LIPO" = x; then
6686     LIPO=":"
6687   else
6688     case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694     LIPO=$ac_ct_LIPO
6695   fi
6696 else
6697   LIPO="$ac_cv_prog_LIPO"
6698 fi
6699
6700     if test -n "$ac_tool_prefix"; then
6701   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}otool; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   if test -n "$OTOOL"; then
6709   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716     for ac_exec_ext in '' $ac_executable_extensions; do
6717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723   done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 OTOOL=$ac_cv_prog_OTOOL
6729 if test -n "$OTOOL"; then
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6731 $as_echo "$OTOOL" >&6; }
6732 else
6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737
6738 fi
6739 if test -z "$ac_cv_prog_OTOOL"; then
6740   ac_ct_OTOOL=$OTOOL
6741   # Extract the first word of "otool", so it can be a program name with args.
6742 set dummy otool; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   if test -n "$ac_ct_OTOOL"; then
6749   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756     for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_prog_ac_ct_OTOOL="otool"
6759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763   done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6769 if test -n "$ac_ct_OTOOL"; then
6770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6771 $as_echo "$ac_ct_OTOOL" >&6; }
6772 else
6773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777   if test "x$ac_ct_OTOOL" = x; then
6778     OTOOL=":"
6779   else
6780     case $cross_compiling:$ac_tool_warned in
6781 yes:)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786     OTOOL=$ac_ct_OTOOL
6787   fi
6788 else
6789   OTOOL="$ac_cv_prog_OTOOL"
6790 fi
6791
6792     if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$OTOOL64"; then
6801   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 OTOOL64=$ac_cv_prog_OTOOL64
6821 if test -n "$OTOOL64"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6823 $as_echo "$OTOOL64" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_OTOOL64"; then
6832   ac_ct_OTOOL64=$OTOOL64
6833   # Extract the first word of "otool64", so it can be a program name with args.
6834 set dummy otool64; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   if test -n "$ac_ct_OTOOL64"; then
6841   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848     for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_prog_ac_ct_OTOOL64="otool64"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855   done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6861 if test -n "$ac_ct_OTOOL64"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6863 $as_echo "$ac_ct_OTOOL64" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_OTOOL64" = x; then
6870     OTOOL64=":"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878     OTOOL64=$ac_ct_OTOOL64
6879   fi
6880 else
6881   OTOOL64="$ac_cv_prog_OTOOL64"
6882 fi
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6911 $as_echo_n "checking for -single_module linker flag... " >&6; }
6912 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   lt_cv_apple_cc_single_mod=no
6916       if test -z "${LT_MULTI_MODULE}"; then
6917         # By default we will add the -single_module flag. You can override
6918         # by either setting the environment variable LT_MULTI_MODULE
6919         # non-empty at configure time, or by adding -multi_module to the
6920         # link flags.
6921         rm -rf libconftest.dylib*
6922         echo "int foo(void){return 1;}" > conftest.c
6923         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6924 -dynamiclib -Wl,-single_module conftest.c" >&5
6925         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6926           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6927         _lt_result=$?
6928         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6929           lt_cv_apple_cc_single_mod=yes
6930         else
6931           cat conftest.err >&5
6932         fi
6933         rm -rf libconftest.dylib*
6934         rm -f conftest.*
6935       fi
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6940 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   lt_cv_ld_exported_symbols_list=no
6945       save_LDFLAGS=$LDFLAGS
6946       echo "_main" > conftest.sym
6947       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6948       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h.  */
6950
6951 int
6952 main ()
6953 {
6954
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"; then :
6960   lt_cv_ld_exported_symbols_list=yes
6961 else
6962   lt_cv_ld_exported_symbols_list=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext \
6965     conftest$ac_exeext conftest.$ac_ext
6966         LDFLAGS="$save_LDFLAGS"
6967
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6970 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6971     case $host_os in
6972     rhapsody* | darwin1.[012])
6973       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6974     darwin1.*)
6975       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6976     darwin*) # darwin 5.x on
6977       # if running on 10.5 or later, the deployment target defaults
6978       # to the OS version, if on x86, and 10.4, the deployment
6979       # target defaults to 10.4. Don't you love it?
6980       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6981         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6982           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6983         10.[012]*)
6984           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6985         10.*)
6986           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6987       esac
6988     ;;
6989   esac
6990     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6991       _lt_dar_single_mod='$single_module'
6992     fi
6993     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6994       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6995     else
6996       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6997     fi
6998     if test "$DSYMUTIL" != ":"; then
6999       _lt_dsymutil='~$DSYMUTIL $lib || :'
7000     else
7001       _lt_dsymutil=
7002     fi
7003     ;;
7004   esac
7005
7006 ac_ext=c
7007 ac_cpp='$CPP $CPPFLAGS'
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7013 # On Suns, sometimes $CPP names a directory.
7014 if test -n "$CPP" && test -d "$CPP"; then
7015   CPP=
7016 fi
7017 if test -z "$CPP"; then
7018   if test "${ac_cv_prog_CPP+set}" = set; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021       # Double quotes because CPP needs to be expanded
7022     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7023     do
7024       ac_preproc_ok=false
7025 for ac_c_preproc_warn_flag in '' yes
7026 do
7027   # Use a header file that comes with gcc, so configuring glibc
7028   # with a fresh cross-compiler works.
7029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030   # <limits.h> exists even on freestanding compilers.
7031   # On the NeXT, cc -E runs the code through the compiler's parser,
7032   # not just through cpp. "Syntax error" is here to catch this case.
7033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7040                      Syntax error
7041 _ACEOF
7042 if ac_fn_c_try_cpp "$LINENO"; then :
7043
7044 else
7045   # Broken: fails on valid input.
7046 continue
7047 fi
7048 rm -f conftest.err conftest.$ac_ext
7049
7050   # OK, works on sane cases.  Now check whether nonexistent headers
7051   # can be detected and how.
7052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h.  */
7054 #include <ac_nonexistent.h>
7055 _ACEOF
7056 if ac_fn_c_try_cpp "$LINENO"; then :
7057   # Broken: success on invalid input.
7058 continue
7059 else
7060   # Passes both tests.
7061 ac_preproc_ok=:
7062 break
7063 fi
7064 rm -f conftest.err conftest.$ac_ext
7065
7066 done
7067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7068 rm -f conftest.err conftest.$ac_ext
7069 if $ac_preproc_ok; then :
7070   break
7071 fi
7072
7073     done
7074     ac_cv_prog_CPP=$CPP
7075
7076 fi
7077   CPP=$ac_cv_prog_CPP
7078 else
7079   ac_cv_prog_CPP=$CPP
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7082 $as_echo "$CPP" >&6; }
7083 ac_preproc_ok=false
7084 for ac_c_preproc_warn_flag in '' yes
7085 do
7086   # Use a header file that comes with gcc, so configuring glibc
7087   # with a fresh cross-compiler works.
7088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089   # <limits.h> exists even on freestanding compilers.
7090   # On the NeXT, cc -E runs the code through the compiler's parser,
7091   # not just through cpp. "Syntax error" is here to catch this case.
7092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h.  */
7094 #ifdef __STDC__
7095 # include <limits.h>
7096 #else
7097 # include <assert.h>
7098 #endif
7099                      Syntax error
7100 _ACEOF
7101 if ac_fn_c_try_cpp "$LINENO"; then :
7102
7103 else
7104   # Broken: fails on valid input.
7105 continue
7106 fi
7107 rm -f conftest.err conftest.$ac_ext
7108
7109   # OK, works on sane cases.  Now check whether nonexistent headers
7110   # can be detected and how.
7111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h.  */
7113 #include <ac_nonexistent.h>
7114 _ACEOF
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7116   # Broken: success on invalid input.
7117 continue
7118 else
7119   # Passes both tests.
7120 ac_preproc_ok=:
7121 break
7122 fi
7123 rm -f conftest.err conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then :
7129
7130 else
7131   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7133 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." "$LINENO" 5; }
7135 fi
7136
7137 ac_ext=c
7138 ac_cpp='$CPP $CPPFLAGS'
7139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7142
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7145 $as_echo_n "checking for ANSI C header files... " >&6; }
7146 if test "${ac_cv_header_stdc+set}" = set; then :
7147   $as_echo_n "(cached) " >&6
7148 else
7149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h.  */
7151 #include <stdlib.h>
7152 #include <stdarg.h>
7153 #include <string.h>
7154 #include <float.h>
7155
7156 int
7157 main ()
7158 {
7159
7160   ;
7161   return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165   ac_cv_header_stdc=yes
7166 else
7167   ac_cv_header_stdc=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170
7171 if test $ac_cv_header_stdc = yes; then
7172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h.  */
7175 #include <string.h>
7176
7177 _ACEOF
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179   $EGREP "memchr" >/dev/null 2>&1; then :
7180
7181 else
7182   ac_cv_header_stdc=no
7183 fi
7184 rm -f conftest*
7185
7186 fi
7187
7188 if test $ac_cv_header_stdc = yes; then
7189   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h.  */
7192 #include <stdlib.h>
7193
7194 _ACEOF
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196   $EGREP "free" >/dev/null 2>&1; then :
7197
7198 else
7199   ac_cv_header_stdc=no
7200 fi
7201 rm -f conftest*
7202
7203 fi
7204
7205 if test $ac_cv_header_stdc = yes; then
7206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7207   if test "$cross_compiling" = yes; then :
7208   :
7209 else
7210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212 #include <ctype.h>
7213 #include <stdlib.h>
7214 #if ((' ' & 0x0FF) == 0x020)
7215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7217 #else
7218 # define ISLOWER(c) \
7219                    (('a' <= (c) && (c) <= 'i') \
7220                      || ('j' <= (c) && (c) <= 'r') \
7221                      || ('s' <= (c) && (c) <= 'z'))
7222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7223 #endif
7224
7225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226 int
7227 main ()
7228 {
7229   int i;
7230   for (i = 0; i < 256; i++)
7231     if (XOR (islower (i), ISLOWER (i))
7232         || toupper (i) != TOUPPER (i))
7233       return 2;
7234   return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_run "$LINENO"; then :
7238
7239 else
7240   ac_cv_header_stdc=no
7241 fi
7242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7243   conftest.$ac_objext conftest.beam conftest.$ac_ext
7244 fi
7245
7246 fi
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7249 $as_echo "$ac_cv_header_stdc" >&6; }
7250 if test $ac_cv_header_stdc = yes; then
7251
7252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7253
7254 fi
7255
7256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7258                   inttypes.h stdint.h unistd.h
7259 do :
7260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7262 "
7263 eval as_val=\$$as_ac_Header
7264    if test "x$as_val" = x""yes; then :
7265   cat >>confdefs.h <<_ACEOF
7266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 _ACEOF
7268
7269 fi
7270
7271 done
7272
7273
7274 for ac_header in dlfcn.h
7275 do :
7276   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7277 "
7278 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7279   cat >>confdefs.h <<_ACEOF
7280 #define HAVE_DLFCN_H 1
7281 _ACEOF
7282
7283 fi
7284
7285 done
7286
7287
7288
7289 # Set options
7290
7291
7292
7293         enable_dlopen=no
7294
7295
7296   enable_win32_dll=no
7297
7298
7299             # Check whether --enable-shared was given.
7300 if test "${enable_shared+set}" = set; then :
7301   enableval=$enable_shared; p=${PACKAGE-default}
7302     case $enableval in
7303     yes) enable_shared=yes ;;
7304     no) enable_shared=no ;;
7305     *)
7306       enable_shared=no
7307       # Look at the argument we got.  We use all the common list separators.
7308       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7309       for pkg in $enableval; do
7310         IFS="$lt_save_ifs"
7311         if test "X$pkg" = "X$p"; then
7312           enable_shared=yes
7313         fi
7314       done
7315       IFS="$lt_save_ifs"
7316       ;;
7317     esac
7318 else
7319   enable_shared=yes
7320 fi
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330   # Check whether --enable-static was given.
7331 if test "${enable_static+set}" = set; then :
7332   enableval=$enable_static; p=${PACKAGE-default}
7333     case $enableval in
7334     yes) enable_static=yes ;;
7335     no) enable_static=no ;;
7336     *)
7337      enable_static=no
7338       # Look at the argument we got.  We use all the common list separators.
7339       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7340       for pkg in $enableval; do
7341         IFS="$lt_save_ifs"
7342         if test "X$pkg" = "X$p"; then
7343           enable_static=yes
7344         fi
7345       done
7346       IFS="$lt_save_ifs"
7347       ;;
7348     esac
7349 else
7350   enable_static=yes
7351 fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then :
7364   withval=$with_pic; pic_mode="$withval"
7365 else
7366   pic_mode=default
7367 fi
7368
7369
7370 test -z "$pic_mode" && pic_mode=default
7371
7372
7373
7374
7375
7376
7377
7378   # Check whether --enable-fast-install was given.
7379 if test "${enable_fast_install+set}" = set; then :
7380   enableval=$enable_fast_install; p=${PACKAGE-default}
7381     case $enableval in
7382     yes) enable_fast_install=yes ;;
7383     no) enable_fast_install=no ;;
7384     *)
7385       enable_fast_install=no
7386       # Look at the argument we got.  We use all the common list separators.
7387       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7388       for pkg in $enableval; do
7389         IFS="$lt_save_ifs"
7390         if test "X$pkg" = "X$p"; then
7391           enable_fast_install=yes
7392         fi
7393       done
7394       IFS="$lt_save_ifs"
7395       ;;
7396     esac
7397 else
7398   enable_fast_install=yes
7399 fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411 # This can be used to rebuild libtool when needed
7412 LIBTOOL_DEPS="$ltmain"
7413
7414 # Always use our own libtool.
7415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 test -z "$LN_S" && LN_S="ln -s"
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 if test -n "${ZSH_VERSION+set}" ; then
7457    setopt NO_GLOB_SUBST
7458 fi
7459
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7461 $as_echo_n "checking for objdir... " >&6; }
7462 if test "${lt_cv_objdir+set}" = set; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   rm -f .libs 2>/dev/null
7466 mkdir .libs 2>/dev/null
7467 if test -d .libs; then
7468   lt_cv_objdir=.libs
7469 else
7470   # MS-DOS does not allow filenames that begin with a dot.
7471   lt_cv_objdir=_libs
7472 fi
7473 rmdir .libs 2>/dev/null
7474 fi
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7476 $as_echo "$lt_cv_objdir" >&6; }
7477 objdir=$lt_cv_objdir
7478
7479
7480
7481
7482
7483 cat >>confdefs.h <<_ACEOF
7484 #define LT_OBJDIR "$lt_cv_objdir/"
7485 _ACEOF
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503 case $host_os in
7504 aix3*)
7505   # AIX sometimes has problems with the GCC collect2 program.  For some
7506   # reason, if we set the COLLECT_NAMES environment variable, the problems
7507   # vanish in a puff of smoke.
7508   if test "X${COLLECT_NAMES+set}" != Xset; then
7509     COLLECT_NAMES=
7510     export COLLECT_NAMES
7511   fi
7512   ;;
7513 esac
7514
7515 # Sed substitution that helps us do robust quoting.  It backslashifies
7516 # metacharacters that are still active within double-quoted strings.
7517 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7518
7519 # Same as above, but do not quote variable references.
7520 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7521
7522 # Sed substitution to delay expansion of an escaped shell variable in a
7523 # double_quote_subst'ed string.
7524 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7525
7526 # Sed substitution to delay expansion of an escaped single quote.
7527 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7528
7529 # Sed substitution to avoid accidental globbing in evaled expressions
7530 no_glob_subst='s/\*/\\\*/g'
7531
7532 # Global variables:
7533 ofile=libtool
7534 can_build_shared=yes
7535
7536 # All known linkers require a `.a' archive for static linking (except MSVC,
7537 # which needs '.lib').
7538 libext=a
7539
7540 with_gnu_ld="$lt_cv_prog_gnu_ld"
7541
7542 old_CC="$CC"
7543 old_CFLAGS="$CFLAGS"
7544
7545 # Set sane defaults for various variables
7546 test -z "$CC" && CC=cc
7547 test -z "$LTCC" && LTCC=$CC
7548 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7549 test -z "$LD" && LD=ld
7550 test -z "$ac_objext" && ac_objext=o
7551
7552 for cc_temp in $compiler""; do
7553   case $cc_temp in
7554     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7555     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7556     \-*) ;;
7557     *) break;;
7558   esac
7559 done
7560 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7561
7562
7563 # Only perform the check for file, if the check method requires it
7564 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7565 case $deplibs_check_method in
7566 file_magic*)
7567   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7569 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7570 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   case $MAGIC_CMD in
7574 [\\/*] |  ?:[\\/]*)
7575   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7576   ;;
7577 *)
7578   lt_save_MAGIC_CMD="$MAGIC_CMD"
7579   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7580   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7581   for ac_dir in $ac_dummy; do
7582     IFS="$lt_save_ifs"
7583     test -z "$ac_dir" && ac_dir=.
7584     if test -f $ac_dir/${ac_tool_prefix}file; then
7585       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7586       if test -n "$file_magic_test_file"; then
7587         case $deplibs_check_method in
7588         "file_magic "*)
7589           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7590           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7591           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7592             $EGREP "$file_magic_regex" > /dev/null; then
7593             :
7594           else
7595             cat <<_LT_EOF 1>&2
7596
7597 *** Warning: the command libtool uses to detect shared libraries,
7598 *** $file_magic_cmd, produces output that libtool cannot recognize.
7599 *** The result is that libtool may fail to recognize shared libraries
7600 *** as such.  This will affect the creation of libtool libraries that
7601 *** depend on shared libraries, but programs linked with such libtool
7602 *** libraries will work regardless of this problem.  Nevertheless, you
7603 *** may want to report the problem to your system manager and/or to
7604 *** bug-libtool@gnu.org
7605
7606 _LT_EOF
7607           fi ;;
7608         esac
7609       fi
7610       break
7611     fi
7612   done
7613   IFS="$lt_save_ifs"
7614   MAGIC_CMD="$lt_save_MAGIC_CMD"
7615   ;;
7616 esac
7617 fi
7618
7619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7620 if test -n "$MAGIC_CMD"; then
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7622 $as_echo "$MAGIC_CMD" >&6; }
7623 else
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7626 fi
7627
7628
7629
7630
7631
7632 if test -z "$lt_cv_path_MAGIC_CMD"; then
7633   if test -n "$ac_tool_prefix"; then
7634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7635 $as_echo_n "checking for file... " >&6; }
7636 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7637   $as_echo_n "(cached) " >&6
7638 else
7639   case $MAGIC_CMD in
7640 [\\/*] |  ?:[\\/]*)
7641   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7642   ;;
7643 *)
7644   lt_save_MAGIC_CMD="$MAGIC_CMD"
7645   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7646   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7647   for ac_dir in $ac_dummy; do
7648     IFS="$lt_save_ifs"
7649     test -z "$ac_dir" && ac_dir=.
7650     if test -f $ac_dir/file; then
7651       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7652       if test -n "$file_magic_test_file"; then
7653         case $deplibs_check_method in
7654         "file_magic "*)
7655           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7656           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7658             $EGREP "$file_magic_regex" > /dev/null; then
7659             :
7660           else
7661             cat <<_LT_EOF 1>&2
7662
7663 *** Warning: the command libtool uses to detect shared libraries,
7664 *** $file_magic_cmd, produces output that libtool cannot recognize.
7665 *** The result is that libtool may fail to recognize shared libraries
7666 *** as such.  This will affect the creation of libtool libraries that
7667 *** depend on shared libraries, but programs linked with such libtool
7668 *** libraries will work regardless of this problem.  Nevertheless, you
7669 *** may want to report the problem to your system manager and/or to
7670 *** bug-libtool@gnu.org
7671
7672 _LT_EOF
7673           fi ;;
7674         esac
7675       fi
7676       break
7677     fi
7678   done
7679   IFS="$lt_save_ifs"
7680   MAGIC_CMD="$lt_save_MAGIC_CMD"
7681   ;;
7682 esac
7683 fi
7684
7685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7686 if test -n "$MAGIC_CMD"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7688 $as_echo "$MAGIC_CMD" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695   else
7696     MAGIC_CMD=:
7697   fi
7698 fi
7699
7700   fi
7701   ;;
7702 esac
7703
7704 # Use C for the default configuration in the libtool script
7705
7706 lt_save_CC="$CC"
7707 ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713
7714 # Source file extension for C test sources.
7715 ac_ext=c
7716
7717 # Object file extension for compiled C test sources.
7718 objext=o
7719 objext=$objext
7720
7721 # Code to be used in simple compile tests
7722 lt_simple_compile_test_code="int some_variable = 0;"
7723
7724 # Code to be used in simple link tests
7725 lt_simple_link_test_code='int main(){return(0);}'
7726
7727
7728
7729
7730
7731
7732
7733 # If no C compiler was specified, use CC.
7734 LTCC=${LTCC-"$CC"}
7735
7736 # If no C compiler flags were specified, use CFLAGS.
7737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7738
7739 # Allow CC to be a program name with arguments.
7740 compiler=$CC
7741
7742 # Save the default compiler, since it gets overwritten when the other
7743 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7744 compiler_DEFAULT=$CC
7745
7746 # save warnings/boilerplate of simple test code
7747 ac_outfile=conftest.$ac_objext
7748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7750 _lt_compiler_boilerplate=`cat conftest.err`
7751 $RM conftest*
7752
7753 ac_outfile=conftest.$ac_objext
7754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7756 _lt_linker_boilerplate=`cat conftest.err`
7757 $RM -r conftest*
7758
7759
7760 if test -n "$compiler"; then
7761
7762 lt_prog_compiler_no_builtin_flag=
7763
7764 if test "$GCC" = yes; then
7765   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7766
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7768 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7769 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   lt_cv_prog_compiler_rtti_exceptions=no
7773    ac_outfile=conftest.$ac_objext
7774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7775    lt_compiler_flag="-fno-rtti -fno-exceptions"
7776    # Insert the option either (1) after the last *FLAGS variable, or
7777    # (2) before a word containing "conftest.", or (3) at the end.
7778    # Note that $ac_compile itself does not contain backslashes and begins
7779    # with a dollar sign (not a hyphen), so the echo should work correctly.
7780    # The option is referenced via a variable to avoid confusing sed.
7781    lt_compile=`echo "$ac_compile" | $SED \
7782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7784    -e 's:$: $lt_compiler_flag:'`
7785    (eval echo "\"\$as_me:7785: $lt_compile\"" >&5)
7786    (eval "$lt_compile" 2>conftest.err)
7787    ac_status=$?
7788    cat conftest.err >&5
7789    echo "$as_me:7789: \$? = $ac_status" >&5
7790    if (exit $ac_status) && test -s "$ac_outfile"; then
7791      # The compiler can only warn and ignore the option if not recognized
7792      # So say no if there are warnings other than the usual output.
7793      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7794      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7795      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7796        lt_cv_prog_compiler_rtti_exceptions=yes
7797      fi
7798    fi
7799    $RM conftest*
7800
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7803 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7804
7805 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7806     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7807 else
7808     :
7809 fi
7810
7811 fi
7812
7813
7814
7815
7816
7817
7818   lt_prog_compiler_wl=
7819 lt_prog_compiler_pic=
7820 lt_prog_compiler_static=
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7823 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7824
7825   if test "$GCC" = yes; then
7826     lt_prog_compiler_wl='-Wl,'
7827     lt_prog_compiler_static='-static'
7828
7829     case $host_os in
7830       aix*)
7831       # All AIX code is PIC.
7832       if test "$host_cpu" = ia64; then
7833         # AIX 5 now supports IA64 processor
7834         lt_prog_compiler_static='-Bstatic'
7835       fi
7836       ;;
7837
7838     amigaos*)
7839       case $host_cpu in
7840       powerpc)
7841             # see comment about AmigaOS4 .so support
7842             lt_prog_compiler_pic='-fPIC'
7843         ;;
7844       m68k)
7845             # FIXME: we need at least 68020 code to build shared libraries, but
7846             # adding the `-m68020' flag to GCC prevents building anything better,
7847             # like `-m68040'.
7848             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7849         ;;
7850       esac
7851       ;;
7852
7853     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7854       # PIC is the default for these OSes.
7855       ;;
7856
7857     mingw* | cygwin* | pw32* | os2* | cegcc*)
7858       # This hack is so that the source file can tell whether it is being
7859       # built for inclusion in a dll (and should export symbols for example).
7860       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7861       # (--disable-auto-import) libraries
7862       lt_prog_compiler_pic='-DDLL_EXPORT'
7863       ;;
7864
7865     darwin* | rhapsody*)
7866       # PIC is the default on this platform
7867       # Common symbols not allowed in MH_DYLIB files
7868       lt_prog_compiler_pic='-fno-common'
7869       ;;
7870
7871     hpux*)
7872       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7873       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7874       # sets the default TLS model and affects inlining.
7875       case $host_cpu in
7876       hppa*64*)
7877         # +Z the default
7878         ;;
7879       *)
7880         lt_prog_compiler_pic='-fPIC'
7881         ;;
7882       esac
7883       ;;
7884
7885     interix[3-9]*)
7886       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7887       # Instead, we relocate shared libraries at runtime.
7888       ;;
7889
7890     msdosdjgpp*)
7891       # Just because we use GCC doesn't mean we suddenly get shared libraries
7892       # on systems that don't support them.
7893       lt_prog_compiler_can_build_shared=no
7894       enable_shared=no
7895       ;;
7896
7897     *nto* | *qnx*)
7898       # QNX uses GNU C++, but need to define -shared option too, otherwise
7899       # it will coredump.
7900       lt_prog_compiler_pic='-fPIC -shared'
7901       ;;
7902
7903     sysv4*MP*)
7904       if test -d /usr/nec; then
7905         lt_prog_compiler_pic=-Kconform_pic
7906       fi
7907       ;;
7908
7909     *)
7910       lt_prog_compiler_pic='-fPIC'
7911       ;;
7912     esac
7913   else
7914     # PORTME Check for flag to pass linker flags through the system compiler.
7915     case $host_os in
7916     aix*)
7917       lt_prog_compiler_wl='-Wl,'
7918       if test "$host_cpu" = ia64; then
7919         # AIX 5 now supports IA64 processor
7920         lt_prog_compiler_static='-Bstatic'
7921       else
7922         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7923       fi
7924       ;;
7925
7926     mingw* | cygwin* | pw32* | os2* | cegcc*)
7927       # This hack is so that the source file can tell whether it is being
7928       # built for inclusion in a dll (and should export symbols for example).
7929       lt_prog_compiler_pic='-DDLL_EXPORT'
7930       ;;
7931
7932     hpux9* | hpux10* | hpux11*)
7933       lt_prog_compiler_wl='-Wl,'
7934       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7935       # not for PA HP-UX.
7936       case $host_cpu in
7937       hppa*64*|ia64*)
7938         # +Z the default
7939         ;;
7940       *)
7941         lt_prog_compiler_pic='+Z'
7942         ;;
7943       esac
7944       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7945       lt_prog_compiler_static='${wl}-a ${wl}archive'
7946       ;;
7947
7948     irix5* | irix6* | nonstopux*)
7949       lt_prog_compiler_wl='-Wl,'
7950       # PIC (with -KPIC) is the default.
7951       lt_prog_compiler_static='-non_shared'
7952       ;;
7953
7954     linux* | k*bsd*-gnu)
7955       case $cc_basename in
7956       # old Intel for x86_64 which still supported -KPIC.
7957       ecc*)
7958         lt_prog_compiler_wl='-Wl,'
7959         lt_prog_compiler_pic='-KPIC'
7960         lt_prog_compiler_static='-static'
7961         ;;
7962       # icc used to be incompatible with GCC.
7963       # ICC 10 doesn't accept -KPIC any more.
7964       icc* | ifort*)
7965         lt_prog_compiler_wl='-Wl,'
7966         lt_prog_compiler_pic='-fPIC'
7967         lt_prog_compiler_static='-static'
7968         ;;
7969       # Lahey Fortran 8.1.
7970       lf95*)
7971         lt_prog_compiler_wl='-Wl,'
7972         lt_prog_compiler_pic='--shared'
7973         lt_prog_compiler_static='--static'
7974         ;;
7975       pgcc* | pgf77* | pgf90* | pgf95*)
7976         # Portland Group compilers (*not* the Pentium gcc compiler,
7977         # which looks to be a dead project)
7978         lt_prog_compiler_wl='-Wl,'
7979         lt_prog_compiler_pic='-fpic'
7980         lt_prog_compiler_static='-Bstatic'
7981         ;;
7982       ccc*)
7983         lt_prog_compiler_wl='-Wl,'
7984         # All Alpha code is PIC.
7985         lt_prog_compiler_static='-non_shared'
7986         ;;
7987       xl*)
7988         # IBM XL C 8.0/Fortran 10.1 on PPC
7989         lt_prog_compiler_wl='-Wl,'
7990         lt_prog_compiler_pic='-qpic'
7991         lt_prog_compiler_static='-qstaticlink'
7992         ;;
7993       *)
7994         case `$CC -V 2>&1 | sed 5q` in
7995         *Sun\ C*)
7996           # Sun C 5.9
7997           lt_prog_compiler_pic='-KPIC'
7998           lt_prog_compiler_static='-Bstatic'
7999           lt_prog_compiler_wl='-Wl,'
8000           ;;
8001         *Sun\ F*)
8002           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8003           lt_prog_compiler_pic='-KPIC'
8004           lt_prog_compiler_static='-Bstatic'
8005           lt_prog_compiler_wl=''
8006           ;;
8007         esac
8008         ;;
8009       esac
8010       ;;
8011
8012     newsos6)
8013       lt_prog_compiler_pic='-KPIC'
8014       lt_prog_compiler_static='-Bstatic'
8015       ;;
8016
8017     *nto* | *qnx*)
8018       # QNX uses GNU C++, but need to define -shared option too, otherwise
8019       # it will coredump.
8020       lt_prog_compiler_pic='-fPIC -shared'
8021       ;;
8022
8023     osf3* | osf4* | osf5*)
8024       lt_prog_compiler_wl='-Wl,'
8025       # All OSF/1 code is PIC.
8026       lt_prog_compiler_static='-non_shared'
8027       ;;
8028
8029     rdos*)
8030       lt_prog_compiler_static='-non_shared'
8031       ;;
8032
8033     solaris*)
8034       lt_prog_compiler_pic='-KPIC'
8035       lt_prog_compiler_static='-Bstatic'
8036       case $cc_basename in
8037       f77* | f90* | f95*)
8038         lt_prog_compiler_wl='-Qoption ld ';;
8039       *)
8040         lt_prog_compiler_wl='-Wl,';;
8041       esac
8042       ;;
8043
8044     sunos4*)
8045       lt_prog_compiler_wl='-Qoption ld '
8046       lt_prog_compiler_pic='-PIC'
8047       lt_prog_compiler_static='-Bstatic'
8048       ;;
8049
8050     sysv4 | sysv4.2uw2* | sysv4.3*)
8051       lt_prog_compiler_wl='-Wl,'
8052       lt_prog_compiler_pic='-KPIC'
8053       lt_prog_compiler_static='-Bstatic'
8054       ;;
8055
8056     sysv4*MP*)
8057       if test -d /usr/nec ;then
8058         lt_prog_compiler_pic='-Kconform_pic'
8059         lt_prog_compiler_static='-Bstatic'
8060       fi
8061       ;;
8062
8063     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8064       lt_prog_compiler_wl='-Wl,'
8065       lt_prog_compiler_pic='-KPIC'
8066       lt_prog_compiler_static='-Bstatic'
8067       ;;
8068
8069     unicos*)
8070       lt_prog_compiler_wl='-Wl,'
8071       lt_prog_compiler_can_build_shared=no
8072       ;;
8073
8074     uts4*)
8075       lt_prog_compiler_pic='-pic'
8076       lt_prog_compiler_static='-Bstatic'
8077       ;;
8078
8079     *)
8080       lt_prog_compiler_can_build_shared=no
8081       ;;
8082     esac
8083   fi
8084
8085 case $host_os in
8086   # For platforms which do not support PIC, -DPIC is meaningless:
8087   *djgpp*)
8088     lt_prog_compiler_pic=
8089     ;;
8090   *)
8091     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8092     ;;
8093 esac
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8095 $as_echo "$lt_prog_compiler_pic" >&6; }
8096
8097
8098
8099
8100
8101
8102 #
8103 # Check to make sure the PIC flag actually works.
8104 #
8105 if test -n "$lt_prog_compiler_pic"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8108 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111   lt_cv_prog_compiler_pic_works=no
8112    ac_outfile=conftest.$ac_objext
8113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8114    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8115    # Insert the option either (1) after the last *FLAGS variable, or
8116    # (2) before a word containing "conftest.", or (3) at the end.
8117    # Note that $ac_compile itself does not contain backslashes and begins
8118    # with a dollar sign (not a hyphen), so the echo should work correctly.
8119    # The option is referenced via a variable to avoid confusing sed.
8120    lt_compile=`echo "$ac_compile" | $SED \
8121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8123    -e 's:$: $lt_compiler_flag:'`
8124    (eval echo "\"\$as_me:8124: $lt_compile\"" >&5)
8125    (eval "$lt_compile" 2>conftest.err)
8126    ac_status=$?
8127    cat conftest.err >&5
8128    echo "$as_me:8128: \$? = $ac_status" >&5
8129    if (exit $ac_status) && test -s "$ac_outfile"; then
8130      # The compiler can only warn and ignore the option if not recognized
8131      # So say no if there are warnings other than the usual output.
8132      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8133      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8134      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8135        lt_cv_prog_compiler_pic_works=yes
8136      fi
8137    fi
8138    $RM conftest*
8139
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8143
8144 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8145     case $lt_prog_compiler_pic in
8146      "" | " "*) ;;
8147      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8148      esac
8149 else
8150     lt_prog_compiler_pic=
8151      lt_prog_compiler_can_build_shared=no
8152 fi
8153
8154 fi
8155
8156
8157
8158
8159
8160
8161 #
8162 # Check to make sure the static flag actually works.
8163 #
8164 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8166 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8167 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   lt_cv_prog_compiler_static_works=no
8171    save_LDFLAGS="$LDFLAGS"
8172    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8173    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8174    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8175      # The linker can only warn and ignore the option if not recognized
8176      # So say no if there are warnings
8177      if test -s conftest.err; then
8178        # Append any errors to the config.log.
8179        cat conftest.err 1>&5
8180        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8181        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8182        if diff conftest.exp conftest.er2 >/dev/null; then
8183          lt_cv_prog_compiler_static_works=yes
8184        fi
8185      else
8186        lt_cv_prog_compiler_static_works=yes
8187      fi
8188    fi
8189    $RM -r conftest*
8190    LDFLAGS="$save_LDFLAGS"
8191
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8194 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8195
8196 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8197     :
8198 else
8199     lt_prog_compiler_static=
8200 fi
8201
8202
8203
8204
8205
8206
8207
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8210 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   lt_cv_prog_compiler_c_o=no
8214    $RM -r conftest 2>/dev/null
8215    mkdir conftest
8216    cd conftest
8217    mkdir out
8218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8219
8220    lt_compiler_flag="-o out/conftest2.$ac_objext"
8221    # Insert the option either (1) after the last *FLAGS variable, or
8222    # (2) before a word containing "conftest.", or (3) at the end.
8223    # Note that $ac_compile itself does not contain backslashes and begins
8224    # with a dollar sign (not a hyphen), so the echo should work correctly.
8225    lt_compile=`echo "$ac_compile" | $SED \
8226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8228    -e 's:$: $lt_compiler_flag:'`
8229    (eval echo "\"\$as_me:8229: $lt_compile\"" >&5)
8230    (eval "$lt_compile" 2>out/conftest.err)
8231    ac_status=$?
8232    cat out/conftest.err >&5
8233    echo "$as_me:8233: \$? = $ac_status" >&5
8234    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8235    then
8236      # The compiler can only warn and ignore the option if not recognized
8237      # So say no if there are warnings
8238      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8239      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8240      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8241        lt_cv_prog_compiler_c_o=yes
8242      fi
8243    fi
8244    chmod u+w . 2>&5
8245    $RM conftest*
8246    # SGI C++ compiler will create directory out/ii_files/ for
8247    # template instantiation
8248    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8249    $RM out/* && rmdir out
8250    cd ..
8251    $RM -r conftest
8252    $RM conftest*
8253
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8257
8258
8259
8260
8261
8262
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8265 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   lt_cv_prog_compiler_c_o=no
8269    $RM -r conftest 2>/dev/null
8270    mkdir conftest
8271    cd conftest
8272    mkdir out
8273    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274
8275    lt_compiler_flag="-o out/conftest2.$ac_objext"
8276    # Insert the option either (1) after the last *FLAGS variable, or
8277    # (2) before a word containing "conftest.", or (3) at the end.
8278    # Note that $ac_compile itself does not contain backslashes and begins
8279    # with a dollar sign (not a hyphen), so the echo should work correctly.
8280    lt_compile=`echo "$ac_compile" | $SED \
8281    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283    -e 's:$: $lt_compiler_flag:'`
8284    (eval echo "\"\$as_me:8284: $lt_compile\"" >&5)
8285    (eval "$lt_compile" 2>out/conftest.err)
8286    ac_status=$?
8287    cat out/conftest.err >&5
8288    echo "$as_me:8288: \$? = $ac_status" >&5
8289    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8290    then
8291      # The compiler can only warn and ignore the option if not recognized
8292      # So say no if there are warnings
8293      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8294      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8295      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8296        lt_cv_prog_compiler_c_o=yes
8297      fi
8298    fi
8299    chmod u+w . 2>&5
8300    $RM conftest*
8301    # SGI C++ compiler will create directory out/ii_files/ for
8302    # template instantiation
8303    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8304    $RM out/* && rmdir out
8305    cd ..
8306    $RM -r conftest
8307    $RM conftest*
8308
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8312
8313
8314
8315
8316 hard_links="nottested"
8317 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8318   # do not overwrite the value of need_locks provided by the user
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8320 $as_echo_n "checking if we can lock with hard links... " >&6; }
8321   hard_links=yes
8322   $RM conftest*
8323   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324   touch conftest.a
8325   ln conftest.a conftest.b 2>&5 || hard_links=no
8326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8328 $as_echo "$hard_links" >&6; }
8329   if test "$hard_links" = no; then
8330     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8331 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8332     need_locks=warn
8333   fi
8334 else
8335   need_locks=no
8336 fi
8337
8338
8339
8340
8341
8342
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8345
8346   runpath_var=
8347   allow_undefined_flag=
8348   always_export_symbols=no
8349   archive_cmds=
8350   archive_expsym_cmds=
8351   compiler_needs_object=no
8352   enable_shared_with_static_runtimes=no
8353   export_dynamic_flag_spec=
8354   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8355   hardcode_automatic=no
8356   hardcode_direct=no
8357   hardcode_direct_absolute=no
8358   hardcode_libdir_flag_spec=
8359   hardcode_libdir_flag_spec_ld=
8360   hardcode_libdir_separator=
8361   hardcode_minus_L=no
8362   hardcode_shlibpath_var=unsupported
8363   inherit_rpath=no
8364   link_all_deplibs=unknown
8365   module_cmds=
8366   module_expsym_cmds=
8367   old_archive_from_new_cmds=
8368   old_archive_from_expsyms_cmds=
8369   thread_safe_flag_spec=
8370   whole_archive_flag_spec=
8371   # include_expsyms should be a list of space-separated symbols to be *always*
8372   # included in the symbol list
8373   include_expsyms=
8374   # exclude_expsyms can be an extended regexp of symbols to exclude
8375   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8376   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8377   # as well as any symbol that contains `d'.
8378   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8379   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8380   # platforms (ab)use it in PIC code, but their linkers get confused if
8381   # the symbol is explicitly referenced.  Since portable code cannot
8382   # rely on this symbol name, it's probably fine to never include it in
8383   # preloaded symbol tables.
8384   # Exclude shared library initialization/finalization symbols.
8385   extract_expsyms_cmds=
8386
8387   case $host_os in
8388   cygwin* | mingw* | pw32* | cegcc*)
8389     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8390     # When not using gcc, we currently assume that we are using
8391     # Microsoft Visual C++.
8392     if test "$GCC" != yes; then
8393       with_gnu_ld=no
8394     fi
8395     ;;
8396   interix*)
8397     # we just hope/assume this is gcc and not c89 (= MSVC++)
8398     with_gnu_ld=yes
8399     ;;
8400   openbsd*)
8401     with_gnu_ld=no
8402     ;;
8403   esac
8404
8405   ld_shlibs=yes
8406   if test "$with_gnu_ld" = yes; then
8407     # If archive_cmds runs LD, not CC, wlarc should be empty
8408     wlarc='${wl}'
8409
8410     # Set some defaults for GNU ld with shared library support. These
8411     # are reset later if shared libraries are not supported. Putting them
8412     # here allows them to be overridden if necessary.
8413     runpath_var=LD_RUN_PATH
8414     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415     export_dynamic_flag_spec='${wl}--export-dynamic'
8416     # ancient GNU ld didn't support --whole-archive et. al.
8417     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8418       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8419     else
8420       whole_archive_flag_spec=
8421     fi
8422     supports_anon_versioning=no
8423     case `$LD -v 2>&1` in
8424       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8425       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8426       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8427       *\ 2.11.*) ;; # other 2.11 versions
8428       *) supports_anon_versioning=yes ;;
8429     esac
8430
8431     # See if GNU ld supports shared libraries.
8432     case $host_os in
8433     aix[3-9]*)
8434       # On AIX/PPC, the GNU linker is very broken
8435       if test "$host_cpu" != ia64; then
8436         ld_shlibs=no
8437         cat <<_LT_EOF 1>&2
8438
8439 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8440 *** to be unable to reliably create shared libraries on AIX.
8441 *** Therefore, libtool is disabling shared libraries support.  If you
8442 *** really care for shared libraries, you may want to modify your PATH
8443 *** so that a non-GNU linker is found, and then restart.
8444
8445 _LT_EOF
8446       fi
8447       ;;
8448
8449     amigaos*)
8450       case $host_cpu in
8451       powerpc)
8452             # see comment about AmigaOS4 .so support
8453             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454             archive_expsym_cmds=''
8455         ;;
8456       m68k)
8457             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)'
8458             hardcode_libdir_flag_spec='-L$libdir'
8459             hardcode_minus_L=yes
8460         ;;
8461       esac
8462       ;;
8463
8464     beos*)
8465       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8466         allow_undefined_flag=unsupported
8467         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8468         # support --undefined.  This deserves some investigation.  FIXME
8469         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470       else
8471         ld_shlibs=no
8472       fi
8473       ;;
8474
8475     cygwin* | mingw* | pw32* | cegcc*)
8476       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8477       # as there is no search path for DLLs.
8478       hardcode_libdir_flag_spec='-L$libdir'
8479       allow_undefined_flag=unsupported
8480       always_export_symbols=no
8481       enable_shared_with_static_runtimes=yes
8482       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8483
8484       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8485         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8486         # If the export-symbols file already is a .def file (1st line
8487         # is EXPORTS), use it as is; otherwise, prepend...
8488         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8489           cp $export_symbols $output_objdir/$soname.def;
8490         else
8491           echo EXPORTS > $output_objdir/$soname.def;
8492           cat $export_symbols >> $output_objdir/$soname.def;
8493         fi~
8494         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8495       else
8496         ld_shlibs=no
8497       fi
8498       ;;
8499
8500     interix[3-9]*)
8501       hardcode_direct=no
8502       hardcode_shlibpath_var=no
8503       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8504       export_dynamic_flag_spec='${wl}-E'
8505       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8506       # Instead, shared libraries are loaded at an image base (0x10000000 by
8507       # default) and relocated if they conflict, which is a slow very memory
8508       # consuming and fragmenting process.  To avoid this, we pick a random,
8509       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8510       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8511       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8512       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'
8513       ;;
8514
8515     gnu* | linux* | tpf* | k*bsd*-gnu)
8516       tmp_diet=no
8517       if test "$host_os" = linux-dietlibc; then
8518         case $cc_basename in
8519           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8520         esac
8521       fi
8522       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8523          && test "$tmp_diet" = no
8524       then
8525         tmp_addflag=
8526         tmp_sharedflag='-shared'
8527         case $cc_basename,$host_cpu in
8528         pgcc*)                          # Portland Group C compiler
8529           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8530           tmp_addflag=' $pic_flag'
8531           ;;
8532         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8533           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8534           tmp_addflag=' $pic_flag -Mnomain' ;;
8535         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8536           tmp_addflag=' -i_dynamic' ;;
8537         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8538           tmp_addflag=' -i_dynamic -nofor_main' ;;
8539         ifc* | ifort*)                  # Intel Fortran compiler
8540           tmp_addflag=' -nofor_main' ;;
8541         lf95*)                          # Lahey Fortran 8.1
8542           whole_archive_flag_spec=
8543           tmp_sharedflag='--shared' ;;
8544         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8545           tmp_sharedflag='-qmkshrobj'
8546           tmp_addflag= ;;
8547         esac
8548         case `$CC -V 2>&1 | sed 5q` in
8549         *Sun\ C*)                       # Sun C 5.9
8550           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8551           compiler_needs_object=yes
8552           tmp_sharedflag='-G' ;;
8553         *Sun\ F*)                       # Sun Fortran 8.3
8554           tmp_sharedflag='-G' ;;
8555         esac
8556         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557
8558         if test "x$supports_anon_versioning" = xyes; then
8559           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8560             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8561             echo "local: *; };" >> $output_objdir/$libname.ver~
8562             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8563         fi
8564
8565         case $cc_basename in
8566         xlf*)
8567           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8568           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8569           hardcode_libdir_flag_spec=
8570           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8571           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8572           if test "x$supports_anon_versioning" = xyes; then
8573             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8574               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8575               echo "local: *; };" >> $output_objdir/$libname.ver~
8576               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8577           fi
8578           ;;
8579         esac
8580       else
8581         ld_shlibs=no
8582       fi
8583       ;;
8584
8585     netbsd*)
8586       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8587         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8588         wlarc=
8589       else
8590         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8592       fi
8593       ;;
8594
8595     solaris*)
8596       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8597         ld_shlibs=no
8598         cat <<_LT_EOF 1>&2
8599
8600 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8601 *** create shared libraries on Solaris systems.  Therefore, libtool
8602 *** is disabling shared libraries support.  We urge you to upgrade GNU
8603 *** binutils to release 2.9.1 or newer.  Another option is to modify
8604 *** your PATH or compiler configuration so that the native linker is
8605 *** used, and then restart.
8606
8607 _LT_EOF
8608       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8609         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8610         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8611       else
8612         ld_shlibs=no
8613       fi
8614       ;;
8615
8616     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8617       case `$LD -v 2>&1` in
8618         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8619         ld_shlibs=no
8620         cat <<_LT_EOF 1>&2
8621
8622 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8623 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8624 *** is disabling shared libraries support.  We urge you to upgrade GNU
8625 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8626 *** your PATH or compiler configuration so that the native linker is
8627 *** used, and then restart.
8628
8629 _LT_EOF
8630         ;;
8631         *)
8632           # For security reasons, it is highly recommended that you always
8633           # use absolute paths for naming shared libraries, and exclude the
8634           # DT_RUNPATH tag from executables and libraries.  But doing so
8635           # requires that you compile everything twice, which is a pain.
8636           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8637             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8639             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8640           else
8641             ld_shlibs=no
8642           fi
8643         ;;
8644       esac
8645       ;;
8646
8647     sunos4*)
8648       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8649       wlarc=
8650       hardcode_direct=yes
8651       hardcode_shlibpath_var=no
8652       ;;
8653
8654     *)
8655       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8656         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658       else
8659         ld_shlibs=no
8660       fi
8661       ;;
8662     esac
8663
8664     if test "$ld_shlibs" = no; then
8665       runpath_var=
8666       hardcode_libdir_flag_spec=
8667       export_dynamic_flag_spec=
8668       whole_archive_flag_spec=
8669     fi
8670   else
8671     # PORTME fill in a description of your system's linker (not GNU ld)
8672     case $host_os in
8673     aix3*)
8674       allow_undefined_flag=unsupported
8675       always_export_symbols=yes
8676       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'
8677       # Note: this linker hardcodes the directories in LIBPATH if there
8678       # are no directories specified by -L.
8679       hardcode_minus_L=yes
8680       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8681         # Neither direct hardcoding nor static linking is supported with a
8682         # broken collect2.
8683         hardcode_direct=unsupported
8684       fi
8685       ;;
8686
8687     aix[4-9]*)
8688       if test "$host_cpu" = ia64; then
8689         # On IA64, the linker does run time linking by default, so we don't
8690         # have to do anything special.
8691         aix_use_runtimelinking=no
8692         exp_sym_flag='-Bexport'
8693         no_entry_flag=""
8694       else
8695         # If we're using GNU nm, then we don't want the "-C" option.
8696         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8697         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8698           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8699         else
8700           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'
8701         fi
8702         aix_use_runtimelinking=no
8703
8704         # Test if we are trying to use run time linking or normal
8705         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8706         # need to do runtime linking.
8707         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8708           for ld_flag in $LDFLAGS; do
8709           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8710             aix_use_runtimelinking=yes
8711             break
8712           fi
8713           done
8714           ;;
8715         esac
8716
8717         exp_sym_flag='-bexport'
8718         no_entry_flag='-bnoentry'
8719       fi
8720
8721       # When large executables or shared objects are built, AIX ld can
8722       # have problems creating the table of contents.  If linking a library
8723       # or program results in "error TOC overflow" add -mminimal-toc to
8724       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8725       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8726
8727       archive_cmds=''
8728       hardcode_direct=yes
8729       hardcode_direct_absolute=yes
8730       hardcode_libdir_separator=':'
8731       link_all_deplibs=yes
8732       file_list_spec='${wl}-f,'
8733
8734       if test "$GCC" = yes; then
8735         case $host_os in aix4.[012]|aix4.[012].*)
8736         # We only want to do this on AIX 4.2 and lower, the check
8737         # below for broken collect2 doesn't work under 4.3+
8738           collect2name=`${CC} -print-prog-name=collect2`
8739           if test -f "$collect2name" &&
8740            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8741           then
8742           # We have reworked collect2
8743           :
8744           else
8745           # We have old collect2
8746           hardcode_direct=unsupported
8747           # It fails to find uninstalled libraries when the uninstalled
8748           # path is not listed in the libpath.  Setting hardcode_minus_L
8749           # to unsupported forces relinking
8750           hardcode_minus_L=yes
8751           hardcode_libdir_flag_spec='-L$libdir'
8752           hardcode_libdir_separator=
8753           fi
8754           ;;
8755         esac
8756         shared_flag='-shared'
8757         if test "$aix_use_runtimelinking" = yes; then
8758           shared_flag="$shared_flag "'${wl}-G'
8759         fi
8760       else
8761         # not using gcc
8762         if test "$host_cpu" = ia64; then
8763         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8764         # chokes on -Wl,-G. The following line is correct:
8765           shared_flag='-G'
8766         else
8767           if test "$aix_use_runtimelinking" = yes; then
8768             shared_flag='${wl}-G'
8769           else
8770             shared_flag='${wl}-bM:SRE'
8771           fi
8772         fi
8773       fi
8774
8775       export_dynamic_flag_spec='${wl}-bexpall'
8776       # It seems that -bexpall does not export symbols beginning with
8777       # underscore (_), so it is better to generate a list of symbols to export.
8778       always_export_symbols=yes
8779       if test "$aix_use_runtimelinking" = yes; then
8780         # Warning - without using the other runtime loading flags (-brtl),
8781         # -berok will link without error, but may produce a broken library.
8782         allow_undefined_flag='-berok'
8783         # Determine the default libpath from the value encoded in an
8784         # empty executable.
8785         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h.  */
8787
8788 int
8789 main ()
8790 {
8791
8792   ;
8793   return 0;
8794 }
8795 _ACEOF
8796 if ac_fn_c_try_link "$LINENO"; then :
8797
8798 lt_aix_libpath_sed='
8799     /Import File Strings/,/^$/ {
8800         /^0/ {
8801             s/^0  *\(.*\)$/\1/
8802             p
8803         }
8804     }'
8805 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8806 # Check for a 64-bit object if we didn't find anything.
8807 if test -z "$aix_libpath"; then
8808   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8809 fi
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext \
8812     conftest$ac_exeext conftest.$ac_ext
8813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8814
8815         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8816         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8817       else
8818         if test "$host_cpu" = ia64; then
8819           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8820           allow_undefined_flag="-z nodefs"
8821           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"
8822         else
8823          # Determine the default libpath from the value encoded in an
8824          # empty executable.
8825          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h.  */
8827
8828 int
8829 main ()
8830 {
8831
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837
8838 lt_aix_libpath_sed='
8839     /Import File Strings/,/^$/ {
8840         /^0/ {
8841             s/^0  *\(.*\)$/\1/
8842             p
8843         }
8844     }'
8845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8846 # Check for a 64-bit object if we didn't find anything.
8847 if test -z "$aix_libpath"; then
8848   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 fi
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext \
8852     conftest$ac_exeext conftest.$ac_ext
8853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8854
8855          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8856           # Warning - without using the other run time loading flags,
8857           # -berok will link without error, but may produce a broken library.
8858           no_undefined_flag=' ${wl}-bernotok'
8859           allow_undefined_flag=' ${wl}-berok'
8860           # Exported symbols can be pulled into shared objects from archives
8861           whole_archive_flag_spec='$convenience'
8862           archive_cmds_need_lc=yes
8863           # This is similar to how AIX traditionally builds its shared libraries.
8864           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'
8865         fi
8866       fi
8867       ;;
8868
8869     amigaos*)
8870       case $host_cpu in
8871       powerpc)
8872             # see comment about AmigaOS4 .so support
8873             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874             archive_expsym_cmds=''
8875         ;;
8876       m68k)
8877             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)'
8878             hardcode_libdir_flag_spec='-L$libdir'
8879             hardcode_minus_L=yes
8880         ;;
8881       esac
8882       ;;
8883
8884     bsdi[45]*)
8885       export_dynamic_flag_spec=-rdynamic
8886       ;;
8887
8888     cygwin* | mingw* | pw32* | cegcc*)
8889       # When not using gcc, we currently assume that we are using
8890       # Microsoft Visual C++.
8891       # hardcode_libdir_flag_spec is actually meaningless, as there is
8892       # no search path for DLLs.
8893       hardcode_libdir_flag_spec=' '
8894       allow_undefined_flag=unsupported
8895       # Tell ltmain to make .lib files, not .a files.
8896       libext=lib
8897       # Tell ltmain to make .dll files, not .so files.
8898       shrext_cmds=".dll"
8899       # FIXME: Setting linknames here is a bad hack.
8900       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8901       # The linker will automatically build a .lib file if we build a DLL.
8902       old_archive_from_new_cmds='true'
8903       # FIXME: Should let the user specify the lib program.
8904       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8905       fix_srcfile_path='`cygpath -w "$srcfile"`'
8906       enable_shared_with_static_runtimes=yes
8907       ;;
8908
8909     darwin* | rhapsody*)
8910
8911
8912   archive_cmds_need_lc=no
8913   hardcode_direct=no
8914   hardcode_automatic=yes
8915   hardcode_shlibpath_var=unsupported
8916   whole_archive_flag_spec=''
8917   link_all_deplibs=yes
8918   allow_undefined_flag="$_lt_dar_allow_undefined"
8919   case $cc_basename in
8920      ifort*) _lt_dar_can_shared=yes ;;
8921      *) _lt_dar_can_shared=$GCC ;;
8922   esac
8923   if test "$_lt_dar_can_shared" = "yes"; then
8924     output_verbose_link_cmd=echo
8925     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8926     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8927     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}"
8928     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}"
8929
8930   else
8931   ld_shlibs=no
8932   fi
8933
8934       ;;
8935
8936     dgux*)
8937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938       hardcode_libdir_flag_spec='-L$libdir'
8939       hardcode_shlibpath_var=no
8940       ;;
8941
8942     freebsd1*)
8943       ld_shlibs=no
8944       ;;
8945
8946     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8947     # support.  Future versions do this automatically, but an explicit c++rt0.o
8948     # does not break anything, and helps significantly (at the cost of a little
8949     # extra space).
8950     freebsd2.2*)
8951       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8952       hardcode_libdir_flag_spec='-R$libdir'
8953       hardcode_direct=yes
8954       hardcode_shlibpath_var=no
8955       ;;
8956
8957     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8958     freebsd2*)
8959       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8960       hardcode_direct=yes
8961       hardcode_minus_L=yes
8962       hardcode_shlibpath_var=no
8963       ;;
8964
8965     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8966     freebsd* | dragonfly*)
8967       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8968       hardcode_libdir_flag_spec='-R$libdir'
8969       hardcode_direct=yes
8970       hardcode_shlibpath_var=no
8971       ;;
8972
8973     hpux9*)
8974       if test "$GCC" = yes; then
8975         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8976       else
8977         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'
8978       fi
8979       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8980       hardcode_libdir_separator=:
8981       hardcode_direct=yes
8982
8983       # hardcode_minus_L: Not really in the search PATH,
8984       # but as the default location of the library.
8985       hardcode_minus_L=yes
8986       export_dynamic_flag_spec='${wl}-E'
8987       ;;
8988
8989     hpux10*)
8990       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8991         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8992       else
8993         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8994       fi
8995       if test "$with_gnu_ld" = no; then
8996         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8997         hardcode_libdir_flag_spec_ld='+b $libdir'
8998         hardcode_libdir_separator=:
8999         hardcode_direct=yes
9000         hardcode_direct_absolute=yes
9001         export_dynamic_flag_spec='${wl}-E'
9002         # hardcode_minus_L: Not really in the search PATH,
9003         # but as the default location of the library.
9004         hardcode_minus_L=yes
9005       fi
9006       ;;
9007
9008     hpux11*)
9009       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9010         case $host_cpu in
9011         hppa*64*)
9012           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9013           ;;
9014         ia64*)
9015           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9016           ;;
9017         *)
9018           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9019           ;;
9020         esac
9021       else
9022         case $host_cpu in
9023         hppa*64*)
9024           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025           ;;
9026         ia64*)
9027           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9028           ;;
9029         *)
9030           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9031           ;;
9032         esac
9033       fi
9034       if test "$with_gnu_ld" = no; then
9035         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036         hardcode_libdir_separator=:
9037
9038         case $host_cpu in
9039         hppa*64*|ia64*)
9040           hardcode_direct=no
9041           hardcode_shlibpath_var=no
9042           ;;
9043         *)
9044           hardcode_direct=yes
9045           hardcode_direct_absolute=yes
9046           export_dynamic_flag_spec='${wl}-E'
9047
9048           # hardcode_minus_L: Not really in the search PATH,
9049           # but as the default location of the library.
9050           hardcode_minus_L=yes
9051           ;;
9052         esac
9053       fi
9054       ;;
9055
9056     irix5* | irix6* | nonstopux*)
9057       if test "$GCC" = yes; then
9058         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9059         # Try to use the -exported_symbol ld option, if it does not
9060         # work, assume that -exports_file does not work either and
9061         # implicitly export all symbols.
9062         save_LDFLAGS="$LDFLAGS"
9063         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9064         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h.  */
9066 int foo(void) {}
9067 _ACEOF
9068 if ac_fn_c_try_link "$LINENO"; then :
9069   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9070
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext \
9073     conftest$ac_exeext conftest.$ac_ext
9074         LDFLAGS="$save_LDFLAGS"
9075       else
9076         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9077         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9078       fi
9079       archive_cmds_need_lc='no'
9080       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9081       hardcode_libdir_separator=:
9082       inherit_rpath=yes
9083       link_all_deplibs=yes
9084       ;;
9085
9086     netbsd*)
9087       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9088         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9089       else
9090         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9091       fi
9092       hardcode_libdir_flag_spec='-R$libdir'
9093       hardcode_direct=yes
9094       hardcode_shlibpath_var=no
9095       ;;
9096
9097     newsos6)
9098       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099       hardcode_direct=yes
9100       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9101       hardcode_libdir_separator=:
9102       hardcode_shlibpath_var=no
9103       ;;
9104
9105     *nto* | *qnx*)
9106       ;;
9107
9108     openbsd*)
9109       if test -f /usr/libexec/ld.so; then
9110         hardcode_direct=yes
9111         hardcode_shlibpath_var=no
9112         hardcode_direct_absolute=yes
9113         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9114           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9115           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9116           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9117           export_dynamic_flag_spec='${wl}-E'
9118         else
9119           case $host_os in
9120            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9121              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122              hardcode_libdir_flag_spec='-R$libdir'
9123              ;;
9124            *)
9125              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9126              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127              ;;
9128           esac
9129         fi
9130       else
9131         ld_shlibs=no
9132       fi
9133       ;;
9134
9135     os2*)
9136       hardcode_libdir_flag_spec='-L$libdir'
9137       hardcode_minus_L=yes
9138       allow_undefined_flag=unsupported
9139       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'
9140       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9141       ;;
9142
9143     osf3*)
9144       if test "$GCC" = yes; then
9145         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9146         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9147       else
9148         allow_undefined_flag=' -expect_unresolved \*'
9149         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9150       fi
9151       archive_cmds_need_lc='no'
9152       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153       hardcode_libdir_separator=:
9154       ;;
9155
9156     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9157       if test "$GCC" = yes; then
9158         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9159         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9160         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161       else
9162         allow_undefined_flag=' -expect_unresolved \*'
9163         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9164         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~
9165         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9166
9167         # Both c and cxx compiler support -rpath directly
9168         hardcode_libdir_flag_spec='-rpath $libdir'
9169       fi
9170       archive_cmds_need_lc='no'
9171       hardcode_libdir_separator=:
9172       ;;
9173
9174     solaris*)
9175       no_undefined_flag=' -z defs'
9176       if test "$GCC" = yes; then
9177         wlarc='${wl}'
9178         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9180           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9181       else
9182         case `$CC -V 2>&1` in
9183         *"Compilers 5.0"*)
9184           wlarc=''
9185           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9186           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9187           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9188           ;;
9189         *)
9190           wlarc='${wl}'
9191           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9192           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9193           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9194           ;;
9195         esac
9196       fi
9197       hardcode_libdir_flag_spec='-R$libdir'
9198       hardcode_shlibpath_var=no
9199       case $host_os in
9200       solaris2.[0-5] | solaris2.[0-5].*) ;;
9201       *)
9202         # The compiler driver will combine and reorder linker options,
9203         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9204         # but is careful enough not to reorder.
9205         # Supported since Solaris 2.6 (maybe 2.5.1?)
9206         if test "$GCC" = yes; then
9207           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9208         else
9209           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9210         fi
9211         ;;
9212       esac
9213       link_all_deplibs=yes
9214       ;;
9215
9216     sunos4*)
9217       if test "x$host_vendor" = xsequent; then
9218         # Use $CC to link under sequent, because it throws in some extra .o
9219         # files that make .init and .fini sections work.
9220         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9221       else
9222         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9223       fi
9224       hardcode_libdir_flag_spec='-L$libdir'
9225       hardcode_direct=yes
9226       hardcode_minus_L=yes
9227       hardcode_shlibpath_var=no
9228       ;;
9229
9230     sysv4)
9231       case $host_vendor in
9232         sni)
9233           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234           hardcode_direct=yes # is this really true???
9235         ;;
9236         siemens)
9237           ## LD is ld it makes a PLAMLIB
9238           ## CC just makes a GrossModule.
9239           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9240           reload_cmds='$CC -r -o $output$reload_objs'
9241           hardcode_direct=no
9242         ;;
9243         motorola)
9244           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9246         ;;
9247       esac
9248       runpath_var='LD_RUN_PATH'
9249       hardcode_shlibpath_var=no
9250       ;;
9251
9252     sysv4.3*)
9253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254       hardcode_shlibpath_var=no
9255       export_dynamic_flag_spec='-Bexport'
9256       ;;
9257
9258     sysv4*MP*)
9259       if test -d /usr/nec; then
9260         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261         hardcode_shlibpath_var=no
9262         runpath_var=LD_RUN_PATH
9263         hardcode_runpath_var=yes
9264         ld_shlibs=yes
9265       fi
9266       ;;
9267
9268     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9269       no_undefined_flag='${wl}-z,text'
9270       archive_cmds_need_lc=no
9271       hardcode_shlibpath_var=no
9272       runpath_var='LD_RUN_PATH'
9273
9274       if test "$GCC" = yes; then
9275         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9276         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9277       else
9278         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280       fi
9281       ;;
9282
9283     sysv5* | sco3.2v5* | sco5v6*)
9284       # Note: We can NOT use -z defs as we might desire, because we do not
9285       # link with -lc, and that would cause any symbols used from libc to
9286       # always be unresolved, which means just about no library would
9287       # ever link correctly.  If we're not using GNU ld we use -z text
9288       # though, which does catch some bad symbols but isn't as heavy-handed
9289       # as -z defs.
9290       no_undefined_flag='${wl}-z,text'
9291       allow_undefined_flag='${wl}-z,nodefs'
9292       archive_cmds_need_lc=no
9293       hardcode_shlibpath_var=no
9294       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9295       hardcode_libdir_separator=':'
9296       link_all_deplibs=yes
9297       export_dynamic_flag_spec='${wl}-Bexport'
9298       runpath_var='LD_RUN_PATH'
9299
9300       if test "$GCC" = yes; then
9301         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9303       else
9304         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306       fi
9307       ;;
9308
9309     uts4*)
9310       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311       hardcode_libdir_flag_spec='-L$libdir'
9312       hardcode_shlibpath_var=no
9313       ;;
9314
9315     *)
9316       ld_shlibs=no
9317       ;;
9318     esac
9319
9320     if test x$host_vendor = xsni; then
9321       case $host in
9322       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9323         export_dynamic_flag_spec='${wl}-Blargedynsym'
9324         ;;
9325       esac
9326     fi
9327   fi
9328
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9330 $as_echo "$ld_shlibs" >&6; }
9331 test "$ld_shlibs" = no && can_build_shared=no
9332
9333 with_gnu_ld=$with_gnu_ld
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349 #
9350 # Do we need to explicitly link libc?
9351 #
9352 case "x$archive_cmds_need_lc" in
9353 x|xyes)
9354   # Assume -lc should be added
9355   archive_cmds_need_lc=yes
9356
9357   if test "$enable_shared" = yes && test "$GCC" = yes; then
9358     case $archive_cmds in
9359     *'~'*)
9360       # FIXME: we may have to deal with multi-command sequences.
9361       ;;
9362     '$CC '*)
9363       # Test whether the compiler implicitly links with -lc since on some
9364       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9365       # to ld, don't add -lc before -lgcc.
9366       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9367 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9368       $RM conftest*
9369       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370
9371       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9372   (eval $ac_compile) 2>&5
9373   ac_status=$?
9374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9375   test $ac_status = 0; } 2>conftest.err; then
9376         soname=conftest
9377         lib=conftest
9378         libobjs=conftest.$ac_objext
9379         deplibs=
9380         wl=$lt_prog_compiler_wl
9381         pic_flag=$lt_prog_compiler_pic
9382         compiler_flags=-v
9383         linker_flags=-v
9384         verstring=
9385         output_objdir=.
9386         libname=conftest
9387         lt_save_allow_undefined_flag=$allow_undefined_flag
9388         allow_undefined_flag=
9389         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9390   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9391   ac_status=$?
9392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393   test $ac_status = 0; }
9394         then
9395           archive_cmds_need_lc=no
9396         else
9397           archive_cmds_need_lc=yes
9398         fi
9399         allow_undefined_flag=$lt_save_allow_undefined_flag
9400       else
9401         cat conftest.err 1>&5
9402       fi
9403       $RM conftest*
9404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9405 $as_echo "$archive_cmds_need_lc" >&6; }
9406       ;;
9407     esac
9408   fi
9409   ;;
9410 esac
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9569 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9570
9571 if test "$GCC" = yes; then
9572   case $host_os in
9573     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9574     *) lt_awk_arg="/^libraries:/" ;;
9575   esac
9576   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9577   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9578     # if the path contains ";" then we assume it to be the separator
9579     # otherwise default to the standard path separator (i.e. ":") - it is
9580     # assumed that no part of a normal pathname contains ";" but that should
9581     # okay in the real world where ";" in dirpaths is itself problematic.
9582     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9583   else
9584     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9585   fi
9586   # Ok, now we have the path, separated by spaces, we can step through it
9587   # and add multilib dir if necessary.
9588   lt_tmp_lt_search_path_spec=
9589   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9590   for lt_sys_path in $lt_search_path_spec; do
9591     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9592       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9593     else
9594       test -d "$lt_sys_path" && \
9595         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9596     fi
9597   done
9598   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9599 BEGIN {RS=" "; FS="/|\n";} {
9600   lt_foo="";
9601   lt_count=0;
9602   for (lt_i = NF; lt_i > 0; lt_i--) {
9603     if ($lt_i != "" && $lt_i != ".") {
9604       if ($lt_i == "..") {
9605         lt_count++;
9606       } else {
9607         if (lt_count == 0) {
9608           lt_foo="/" $lt_i lt_foo;
9609         } else {
9610           lt_count--;
9611         }
9612       }
9613     }
9614   }
9615   if (lt_foo != "") { lt_freq[lt_foo]++; }
9616   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9617 }'`
9618   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9619 else
9620   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9621 fi
9622 library_names_spec=
9623 libname_spec='lib$name'
9624 soname_spec=
9625 shrext_cmds=".so"
9626 postinstall_cmds=
9627 postuninstall_cmds=
9628 finish_cmds=
9629 finish_eval=
9630 shlibpath_var=
9631 shlibpath_overrides_runpath=unknown
9632 version_type=none
9633 dynamic_linker="$host_os ld.so"
9634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9635 need_lib_prefix=unknown
9636 hardcode_into_libs=no
9637
9638 # when you set need_version to no, make sure it does not cause -set_version
9639 # flags to be left without arguments
9640 need_version=unknown
9641
9642 case $host_os in
9643 aix3*)
9644   version_type=linux
9645   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9646   shlibpath_var=LIBPATH
9647
9648   # AIX 3 has no versioning support, so we append a major version to the name.
9649   soname_spec='${libname}${release}${shared_ext}$major'
9650   ;;
9651
9652 aix[4-9]*)
9653   version_type=linux
9654   need_lib_prefix=no
9655   need_version=no
9656   hardcode_into_libs=yes
9657   if test "$host_cpu" = ia64; then
9658     # AIX 5 supports IA64
9659     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9660     shlibpath_var=LD_LIBRARY_PATH
9661   else
9662     # With GCC up to 2.95.x, collect2 would create an import file
9663     # for dependence libraries.  The import file would start with
9664     # the line `#! .'.  This would cause the generated library to
9665     # depend on `.', always an invalid library.  This was fixed in
9666     # development snapshots of GCC prior to 3.0.
9667     case $host_os in
9668       aix4 | aix4.[01] | aix4.[01].*)
9669       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9670            echo ' yes '
9671            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9672         :
9673       else
9674         can_build_shared=no
9675       fi
9676       ;;
9677     esac
9678     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9679     # soname into executable. Probably we can add versioning support to
9680     # collect2, so additional links can be useful in future.
9681     if test "$aix_use_runtimelinking" = yes; then
9682       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9683       # instead of lib<name>.a to let people know that these are not
9684       # typical AIX shared libraries.
9685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686     else
9687       # We preserve .a as extension for shared libraries through AIX4.2
9688       # and later when we are not doing run time linking.
9689       library_names_spec='${libname}${release}.a $libname.a'
9690       soname_spec='${libname}${release}${shared_ext}$major'
9691     fi
9692     shlibpath_var=LIBPATH
9693   fi
9694   ;;
9695
9696 amigaos*)
9697   case $host_cpu in
9698   powerpc)
9699     # Since July 2007 AmigaOS4 officially supports .so libraries.
9700     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702     ;;
9703   m68k)
9704     library_names_spec='$libname.ixlibrary $libname.a'
9705     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9706     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9707     ;;
9708   esac
9709   ;;
9710
9711 beos*)
9712   library_names_spec='${libname}${shared_ext}'
9713   dynamic_linker="$host_os ld.so"
9714   shlibpath_var=LIBRARY_PATH
9715   ;;
9716
9717 bsdi[45]*)
9718   version_type=linux
9719   need_version=no
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721   soname_spec='${libname}${release}${shared_ext}$major'
9722   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9725   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9726   # the default ld.so.conf also contains /usr/contrib/lib and
9727   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9728   # libtool to hard-code these into programs
9729   ;;
9730
9731 cygwin* | mingw* | pw32* | cegcc*)
9732   version_type=windows
9733   shrext_cmds=".dll"
9734   need_version=no
9735   need_lib_prefix=no
9736
9737   case $GCC,$host_os in
9738   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9739     library_names_spec='$libname.dll.a'
9740     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9741     postinstall_cmds='base_file=`basename \${file}`~
9742       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9743       dldir=$destdir/`dirname \$dlpath`~
9744       test -d \$dldir || mkdir -p \$dldir~
9745       $install_prog $dir/$dlname \$dldir/$dlname~
9746       chmod a+x \$dldir/$dlname~
9747       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9748         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9749       fi'
9750     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9751       dlpath=$dir/\$dldll~
9752        $RM \$dlpath'
9753     shlibpath_overrides_runpath=yes
9754
9755     case $host_os in
9756     cygwin*)
9757       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9758       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9759       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9760       ;;
9761     mingw* | cegcc*)
9762       # MinGW DLLs use traditional 'lib' prefix
9763       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9765       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9766         # It is most probably a Windows format PATH printed by
9767         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9768         # path with ; separators, and with drive letters. We can handle the
9769         # drive letters (cygwin fileutils understands them), so leave them,
9770         # especially as we might pass files found there to a mingw objdump,
9771         # which wouldn't understand a cygwinified path. Ahh.
9772         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9773       else
9774         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9775       fi
9776       ;;
9777     pw32*)
9778       # pw32 DLLs use 'pw' prefix rather than 'lib'
9779       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780       ;;
9781     esac
9782     ;;
9783
9784   *)
9785     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9786     ;;
9787   esac
9788   dynamic_linker='Win32 ld.exe'
9789   # FIXME: first we should search . and the directory the executable is in
9790   shlibpath_var=PATH
9791   ;;
9792
9793 darwin* | rhapsody*)
9794   dynamic_linker="$host_os dyld"
9795   version_type=darwin
9796   need_lib_prefix=no
9797   need_version=no
9798   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9799   soname_spec='${libname}${release}${major}$shared_ext'
9800   shlibpath_overrides_runpath=yes
9801   shlibpath_var=DYLD_LIBRARY_PATH
9802   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9803
9804   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9805   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9806   ;;
9807
9808 dgux*)
9809   version_type=linux
9810   need_lib_prefix=no
9811   need_version=no
9812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9813   soname_spec='${libname}${release}${shared_ext}$major'
9814   shlibpath_var=LD_LIBRARY_PATH
9815   ;;
9816
9817 freebsd1*)
9818   dynamic_linker=no
9819   ;;
9820
9821 freebsd* | dragonfly*)
9822   # DragonFly does not have aout.  When/if they implement a new
9823   # versioning mechanism, adjust this.
9824   if test -x /usr/bin/objformat; then
9825     objformat=`/usr/bin/objformat`
9826   else
9827     case $host_os in
9828     freebsd[123]*) objformat=aout ;;
9829     *) objformat=elf ;;
9830     esac
9831   fi
9832   version_type=freebsd-$objformat
9833   case $version_type in
9834     freebsd-elf*)
9835       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836       need_version=no
9837       need_lib_prefix=no
9838       ;;
9839     freebsd-*)
9840       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9841       need_version=yes
9842       ;;
9843   esac
9844   shlibpath_var=LD_LIBRARY_PATH
9845   case $host_os in
9846   freebsd2*)
9847     shlibpath_overrides_runpath=yes
9848     ;;
9849   freebsd3.[01]* | freebsdelf3.[01]*)
9850     shlibpath_overrides_runpath=yes
9851     hardcode_into_libs=yes
9852     ;;
9853   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9854   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9855     shlibpath_overrides_runpath=no
9856     hardcode_into_libs=yes
9857     ;;
9858   *) # from 4.6 on, and DragonFly
9859     shlibpath_overrides_runpath=yes
9860     hardcode_into_libs=yes
9861     ;;
9862   esac
9863   ;;
9864
9865 gnu*)
9866   version_type=linux
9867   need_lib_prefix=no
9868   need_version=no
9869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9870   soname_spec='${libname}${release}${shared_ext}$major'
9871   shlibpath_var=LD_LIBRARY_PATH
9872   hardcode_into_libs=yes
9873   ;;
9874
9875 hpux9* | hpux10* | hpux11*)
9876   # Give a soname corresponding to the major version so that dld.sl refuses to
9877   # link against other versions.
9878   version_type=sunos
9879   need_lib_prefix=no
9880   need_version=no
9881   case $host_cpu in
9882   ia64*)
9883     shrext_cmds='.so'
9884     hardcode_into_libs=yes
9885     dynamic_linker="$host_os dld.so"
9886     shlibpath_var=LD_LIBRARY_PATH
9887     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889     soname_spec='${libname}${release}${shared_ext}$major'
9890     if test "X$HPUX_IA64_MODE" = X32; then
9891       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9892     else
9893       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9894     fi
9895     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9896     ;;
9897   hppa*64*)
9898     shrext_cmds='.sl'
9899     hardcode_into_libs=yes
9900     dynamic_linker="$host_os dld.sl"
9901     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9902     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904     soname_spec='${libname}${release}${shared_ext}$major'
9905     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9906     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9907     ;;
9908   *)
9909     shrext_cmds='.sl'
9910     dynamic_linker="$host_os dld.sl"
9911     shlibpath_var=SHLIB_PATH
9912     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914     soname_spec='${libname}${release}${shared_ext}$major'
9915     ;;
9916   esac
9917   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9918   postinstall_cmds='chmod 555 $lib'
9919   ;;
9920
9921 interix[3-9]*)
9922   version_type=linux
9923   need_lib_prefix=no
9924   need_version=no
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9926   soname_spec='${libname}${release}${shared_ext}$major'
9927   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   shlibpath_overrides_runpath=no
9930   hardcode_into_libs=yes
9931   ;;
9932
9933 irix5* | irix6* | nonstopux*)
9934   case $host_os in
9935     nonstopux*) version_type=nonstopux ;;
9936     *)
9937         if test "$lt_cv_prog_gnu_ld" = yes; then
9938                 version_type=linux
9939         else
9940                 version_type=irix
9941         fi ;;
9942   esac
9943   need_lib_prefix=no
9944   need_version=no
9945   soname_spec='${libname}${release}${shared_ext}$major'
9946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9947   case $host_os in
9948   irix5* | nonstopux*)
9949     libsuff= shlibsuff=
9950     ;;
9951   *)
9952     case $LD in # libtool.m4 will add one of these switches to LD
9953     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9954       libsuff= shlibsuff= libmagic=32-bit;;
9955     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9956       libsuff=32 shlibsuff=N32 libmagic=N32;;
9957     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9958       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9959     *) libsuff= shlibsuff= libmagic=never-match;;
9960     esac
9961     ;;
9962   esac
9963   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9964   shlibpath_overrides_runpath=no
9965   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9966   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9967   hardcode_into_libs=yes
9968   ;;
9969
9970 # No shared lib support for Linux oldld, aout, or coff.
9971 linux*oldld* | linux*aout* | linux*coff*)
9972   dynamic_linker=no
9973   ;;
9974
9975 # This must be Linux ELF.
9976 linux* | k*bsd*-gnu)
9977   version_type=linux
9978   need_lib_prefix=no
9979   need_version=no
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   soname_spec='${libname}${release}${shared_ext}$major'
9982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   shlibpath_overrides_runpath=no
9985   # Some binutils ld are patched to set DT_RUNPATH
9986   save_LDFLAGS=$LDFLAGS
9987   save_libdir=$libdir
9988   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9989        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h.  */
9992
9993 int
9994 main ()
9995 {
9996
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10003   shlibpath_overrides_runpath=yes
10004 fi
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext \
10007     conftest$ac_exeext conftest.$ac_ext
10008   LDFLAGS=$save_LDFLAGS
10009   libdir=$save_libdir
10010
10011   # This implies no fast_install, which is unacceptable.
10012   # Some rework will be needed to allow for fast_install
10013   # before this can be enabled.
10014   hardcode_into_libs=yes
10015
10016   # Add ABI-specific directories to the system library path.
10017   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10018
10019   # Append ld.so.conf contents to the search path
10020   if test -f /etc/ld.so.conf; then
10021     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;/^$/d' | tr '\n' ' '`
10022     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10023   fi
10024
10025   # We used to test for /lib/ld.so.1 and disable shared libraries on
10026   # powerpc, because MkLinux only supported shared libraries with the
10027   # GNU dynamic linker.  Since this was broken with cross compilers,
10028   # most powerpc-linux boxes support dynamic linking these days and
10029   # people can always --disable-shared, the test was removed, and we
10030   # assume the GNU/Linux dynamic linker is in use.
10031   dynamic_linker='GNU/Linux ld.so'
10032   ;;
10033
10034 netbsd*)
10035   version_type=sunos
10036   need_lib_prefix=no
10037   need_version=no
10038   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10040     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10041     dynamic_linker='NetBSD (a.out) ld.so'
10042   else
10043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10044     soname_spec='${libname}${release}${shared_ext}$major'
10045     dynamic_linker='NetBSD ld.elf_so'
10046   fi
10047   shlibpath_var=LD_LIBRARY_PATH
10048   shlibpath_overrides_runpath=yes
10049   hardcode_into_libs=yes
10050   ;;
10051
10052 newsos6)
10053   version_type=linux
10054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055   shlibpath_var=LD_LIBRARY_PATH
10056   shlibpath_overrides_runpath=yes
10057   ;;
10058
10059 *nto* | *qnx*)
10060   version_type=qnx
10061   need_lib_prefix=no
10062   need_version=no
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064   soname_spec='${libname}${release}${shared_ext}$major'
10065   shlibpath_var=LD_LIBRARY_PATH
10066   shlibpath_overrides_runpath=no
10067   hardcode_into_libs=yes
10068   dynamic_linker='ldqnx.so'
10069   ;;
10070
10071 openbsd*)
10072   version_type=sunos
10073   sys_lib_dlsearch_path_spec="/usr/lib"
10074   need_lib_prefix=no
10075   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10076   case $host_os in
10077     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10078     *)                          need_version=no  ;;
10079   esac
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10082   shlibpath_var=LD_LIBRARY_PATH
10083   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10084     case $host_os in
10085       openbsd2.[89] | openbsd2.[89].*)
10086         shlibpath_overrides_runpath=no
10087         ;;
10088       *)
10089         shlibpath_overrides_runpath=yes
10090         ;;
10091       esac
10092   else
10093     shlibpath_overrides_runpath=yes
10094   fi
10095   ;;
10096
10097 os2*)
10098   libname_spec='$name'
10099   shrext_cmds=".dll"
10100   need_lib_prefix=no
10101   library_names_spec='$libname${shared_ext} $libname.a'
10102   dynamic_linker='OS/2 ld.exe'
10103   shlibpath_var=LIBPATH
10104   ;;
10105
10106 osf3* | osf4* | osf5*)
10107   version_type=osf
10108   need_lib_prefix=no
10109   need_version=no
10110   soname_spec='${libname}${release}${shared_ext}$major'
10111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112   shlibpath_var=LD_LIBRARY_PATH
10113   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10114   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10115   ;;
10116
10117 rdos*)
10118   dynamic_linker=no
10119   ;;
10120
10121 solaris*)
10122   version_type=linux
10123   need_lib_prefix=no
10124   need_version=no
10125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126   soname_spec='${libname}${release}${shared_ext}$major'
10127   shlibpath_var=LD_LIBRARY_PATH
10128   shlibpath_overrides_runpath=yes
10129   hardcode_into_libs=yes
10130   # ldd complains unless libraries are executable
10131   postinstall_cmds='chmod +x $lib'
10132   ;;
10133
10134 sunos4*)
10135   version_type=sunos
10136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10137   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10138   shlibpath_var=LD_LIBRARY_PATH
10139   shlibpath_overrides_runpath=yes
10140   if test "$with_gnu_ld" = yes; then
10141     need_lib_prefix=no
10142   fi
10143   need_version=yes
10144   ;;
10145
10146 sysv4 | sysv4.3*)
10147   version_type=linux
10148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149   soname_spec='${libname}${release}${shared_ext}$major'
10150   shlibpath_var=LD_LIBRARY_PATH
10151   case $host_vendor in
10152     sni)
10153       shlibpath_overrides_runpath=no
10154       need_lib_prefix=no
10155       runpath_var=LD_RUN_PATH
10156       ;;
10157     siemens)
10158       need_lib_prefix=no
10159       ;;
10160     motorola)
10161       need_lib_prefix=no
10162       need_version=no
10163       shlibpath_overrides_runpath=no
10164       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10165       ;;
10166   esac
10167   ;;
10168
10169 sysv4*MP*)
10170   if test -d /usr/nec ;then
10171     version_type=linux
10172     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10173     soname_spec='$libname${shared_ext}.$major'
10174     shlibpath_var=LD_LIBRARY_PATH
10175   fi
10176   ;;
10177
10178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10179   version_type=freebsd-elf
10180   need_lib_prefix=no
10181   need_version=no
10182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10183   soname_spec='${libname}${release}${shared_ext}$major'
10184   shlibpath_var=LD_LIBRARY_PATH
10185   shlibpath_overrides_runpath=yes
10186   hardcode_into_libs=yes
10187   if test "$with_gnu_ld" = yes; then
10188     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10189   else
10190     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10191     case $host_os in
10192       sco3.2v5*)
10193         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10194         ;;
10195     esac
10196   fi
10197   sys_lib_dlsearch_path_spec='/usr/lib'
10198   ;;
10199
10200 tpf*)
10201   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10202   version_type=linux
10203   need_lib_prefix=no
10204   need_version=no
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206   shlibpath_var=LD_LIBRARY_PATH
10207   shlibpath_overrides_runpath=no
10208   hardcode_into_libs=yes
10209   ;;
10210
10211 uts4*)
10212   version_type=linux
10213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214   soname_spec='${libname}${release}${shared_ext}$major'
10215   shlibpath_var=LD_LIBRARY_PATH
10216   ;;
10217
10218 *)
10219   dynamic_linker=no
10220   ;;
10221 esac
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10223 $as_echo "$dynamic_linker" >&6; }
10224 test "$dynamic_linker" = no && can_build_shared=no
10225
10226 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10227 if test "$GCC" = yes; then
10228   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10229 fi
10230
10231 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10232   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10233 fi
10234 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10235   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10236 fi
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10326 hardcode_action=
10327 if test -n "$hardcode_libdir_flag_spec" ||
10328    test -n "$runpath_var" ||
10329    test "X$hardcode_automatic" = "Xyes" ; then
10330
10331   # We can hardcode non-existent directories.
10332   if test "$hardcode_direct" != no &&
10333      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10334      # have to relink, otherwise we might link with an installed library
10335      # when we should be linking with a yet-to-be-installed one
10336      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10337      test "$hardcode_minus_L" != no; then
10338     # Linking always hardcodes the temporary library directory.
10339     hardcode_action=relink
10340   else
10341     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10342     hardcode_action=immediate
10343   fi
10344 else
10345   # We cannot hardcode anything, or else we can only hardcode existing
10346   # directories.
10347   hardcode_action=unsupported
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10350 $as_echo "$hardcode_action" >&6; }
10351
10352 if test "$hardcode_action" = relink ||
10353    test "$inherit_rpath" = yes; then
10354   # Fast installation is not supported
10355   enable_fast_install=no
10356 elif test "$shlibpath_overrides_runpath" = yes ||
10357      test "$enable_shared" = no; then
10358   # Fast installation is not necessary
10359   enable_fast_install=needless
10360 fi
10361
10362
10363
10364
10365
10366
10367   if test "x$enable_dlopen" != xyes; then
10368   enable_dlopen=unknown
10369   enable_dlopen_self=unknown
10370   enable_dlopen_self_static=unknown
10371 else
10372   lt_cv_dlopen=no
10373   lt_cv_dlopen_libs=
10374
10375   case $host_os in
10376   beos*)
10377     lt_cv_dlopen="load_add_on"
10378     lt_cv_dlopen_libs=
10379     lt_cv_dlopen_self=yes
10380     ;;
10381
10382   mingw* | pw32* | cegcc*)
10383     lt_cv_dlopen="LoadLibrary"
10384     lt_cv_dlopen_libs=
10385     ;;
10386
10387   cygwin*)
10388     lt_cv_dlopen="dlopen"
10389     lt_cv_dlopen_libs=
10390     ;;
10391
10392   darwin*)
10393   # if libdl is installed we need to link against it
10394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-ldl  $LIBS"
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h.  */
10403
10404 /* Override any GCC internal prototype to avoid an error.
10405    Use char because int might match the return type of a GCC
10406    builtin and then its argument prototype would still apply.  */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char dlopen ();
10411 int
10412 main ()
10413 {
10414 return dlopen ();
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420   ac_cv_lib_dl_dlopen=yes
10421 else
10422   ac_cv_lib_dl_dlopen=no
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext \
10425     conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10427 fi
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10430 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10432 else
10433
10434     lt_cv_dlopen="dyld"
10435     lt_cv_dlopen_libs=
10436     lt_cv_dlopen_self=yes
10437
10438 fi
10439
10440     ;;
10441
10442   *)
10443     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10444 if test "x$ac_cv_func_shl_load" = x""yes; then :
10445   lt_cv_dlopen="shl_load"
10446 else
10447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10448 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10449 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10450   $as_echo_n "(cached) " >&6
10451 else
10452   ac_check_lib_save_LIBS=$LIBS
10453 LIBS="-ldld  $LIBS"
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h.  */
10456
10457 /* Override any GCC internal prototype to avoid an error.
10458    Use char because int might match the return type of a GCC
10459    builtin and then its argument prototype would still apply.  */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 char shl_load ();
10464 int
10465 main ()
10466 {
10467 return shl_load ();
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 if ac_fn_c_try_link "$LINENO"; then :
10473   ac_cv_lib_dld_shl_load=yes
10474 else
10475   ac_cv_lib_dld_shl_load=no
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478     conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10480 fi
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10482 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10483 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10484   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10485 else
10486   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10487 if test "x$ac_cv_func_dlopen" = x""yes; then :
10488   lt_cv_dlopen="dlopen"
10489 else
10490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10493   $as_echo_n "(cached) " >&6
10494 else
10495   ac_check_lib_save_LIBS=$LIBS
10496 LIBS="-ldl  $LIBS"
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h.  */
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501    Use char because int might match the return type of a GCC
10502    builtin and then its argument prototype would still apply.  */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char dlopen ();
10507 int
10508 main ()
10509 {
10510 return dlopen ();
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516   ac_cv_lib_dl_dlopen=yes
10517 else
10518   ac_cv_lib_dl_dlopen=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521     conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10526 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10527   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10528 else
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10530 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10531 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lsvld  $LIBS"
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h.  */
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540    Use char because int might match the return type of a GCC
10541    builtin and then its argument prototype would still apply.  */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char dlopen ();
10546 int
10547 main ()
10548 {
10549 return dlopen ();
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555   ac_cv_lib_svld_dlopen=yes
10556 else
10557   ac_cv_lib_svld_dlopen=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560     conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10564 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10565 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10567 else
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10570 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10571   $as_echo_n "(cached) " >&6
10572 else
10573   ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-ldld  $LIBS"
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h.  */
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579    Use char because int might match the return type of a GCC
10580    builtin and then its argument prototype would still apply.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char dld_link ();
10585 int
10586 main ()
10587 {
10588 return dld_link ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 if ac_fn_c_try_link "$LINENO"; then :
10594   ac_cv_lib_dld_dld_link=yes
10595 else
10596   ac_cv_lib_dld_dld_link=no
10597 fi
10598 rm -f core conftest.err conftest.$ac_objext \
10599     conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10604 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10605   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10606 fi
10607
10608
10609 fi
10610
10611
10612 fi
10613
10614
10615 fi
10616
10617
10618 fi
10619
10620
10621 fi
10622
10623     ;;
10624   esac
10625
10626   if test "x$lt_cv_dlopen" != xno; then
10627     enable_dlopen=yes
10628   else
10629     enable_dlopen=no
10630   fi
10631
10632   case $lt_cv_dlopen in
10633   dlopen)
10634     save_CPPFLAGS="$CPPFLAGS"
10635     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10636
10637     save_LDFLAGS="$LDFLAGS"
10638     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10639
10640     save_LIBS="$LIBS"
10641     LIBS="$lt_cv_dlopen_libs $LIBS"
10642
10643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10644 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10645 if test "${lt_cv_dlopen_self+set}" = set; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648           if test "$cross_compiling" = yes; then :
10649   lt_cv_dlopen_self=cross
10650 else
10651   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10652   lt_status=$lt_dlunknown
10653   cat > conftest.$ac_ext <<_LT_EOF
10654 #line 10654 "configure"
10655 #include "confdefs.h"
10656
10657 #if HAVE_DLFCN_H
10658 #include <dlfcn.h>
10659 #endif
10660
10661 #include <stdio.h>
10662
10663 #ifdef RTLD_GLOBAL
10664 #  define LT_DLGLOBAL           RTLD_GLOBAL
10665 #else
10666 #  ifdef DL_GLOBAL
10667 #    define LT_DLGLOBAL         DL_GLOBAL
10668 #  else
10669 #    define LT_DLGLOBAL         0
10670 #  endif
10671 #endif
10672
10673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10674    find out it does not work in some platform. */
10675 #ifndef LT_DLLAZY_OR_NOW
10676 #  ifdef RTLD_LAZY
10677 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10678 #  else
10679 #    ifdef DL_LAZY
10680 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10681 #    else
10682 #      ifdef RTLD_NOW
10683 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10684 #      else
10685 #        ifdef DL_NOW
10686 #          define LT_DLLAZY_OR_NOW      DL_NOW
10687 #        else
10688 #          define LT_DLLAZY_OR_NOW      0
10689 #        endif
10690 #      endif
10691 #    endif
10692 #  endif
10693 #endif
10694
10695 void fnord() { int i=42;}
10696 int main ()
10697 {
10698   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699   int status = $lt_dlunknown;
10700
10701   if (self)
10702     {
10703       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10704       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10705       /* dlclose (self); */
10706     }
10707   else
10708     puts (dlerror ());
10709
10710   return status;
10711 }
10712 _LT_EOF
10713   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10714   (eval $ac_link) 2>&5
10715   ac_status=$?
10716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10718     (./conftest; exit; ) >&5 2>/dev/null
10719     lt_status=$?
10720     case x$lt_status in
10721       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10722       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10723       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10724     esac
10725   else :
10726     # compilation failed
10727     lt_cv_dlopen_self=no
10728   fi
10729 fi
10730 rm -fr conftest*
10731
10732
10733 fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10735 $as_echo "$lt_cv_dlopen_self" >&6; }
10736
10737     if test "x$lt_cv_dlopen_self" = xyes; then
10738       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10739       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10740 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10741 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10742   $as_echo_n "(cached) " >&6
10743 else
10744           if test "$cross_compiling" = yes; then :
10745   lt_cv_dlopen_self_static=cross
10746 else
10747   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10748   lt_status=$lt_dlunknown
10749   cat > conftest.$ac_ext <<_LT_EOF
10750 #line 10750 "configure"
10751 #include "confdefs.h"
10752
10753 #if HAVE_DLFCN_H
10754 #include <dlfcn.h>
10755 #endif
10756
10757 #include <stdio.h>
10758
10759 #ifdef RTLD_GLOBAL
10760 #  define LT_DLGLOBAL           RTLD_GLOBAL
10761 #else
10762 #  ifdef DL_GLOBAL
10763 #    define LT_DLGLOBAL         DL_GLOBAL
10764 #  else
10765 #    define LT_DLGLOBAL         0
10766 #  endif
10767 #endif
10768
10769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10770    find out it does not work in some platform. */
10771 #ifndef LT_DLLAZY_OR_NOW
10772 #  ifdef RTLD_LAZY
10773 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10774 #  else
10775 #    ifdef DL_LAZY
10776 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10777 #    else
10778 #      ifdef RTLD_NOW
10779 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10780 #      else
10781 #        ifdef DL_NOW
10782 #          define LT_DLLAZY_OR_NOW      DL_NOW
10783 #        else
10784 #          define LT_DLLAZY_OR_NOW      0
10785 #        endif
10786 #      endif
10787 #    endif
10788 #  endif
10789 #endif
10790
10791 void fnord() { int i=42;}
10792 int main ()
10793 {
10794   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10795   int status = $lt_dlunknown;
10796
10797   if (self)
10798     {
10799       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10800       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10801       /* dlclose (self); */
10802     }
10803   else
10804     puts (dlerror ());
10805
10806   return status;
10807 }
10808 _LT_EOF
10809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10810   (eval $ac_link) 2>&5
10811   ac_status=$?
10812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10814     (./conftest; exit; ) >&5 2>/dev/null
10815     lt_status=$?
10816     case x$lt_status in
10817       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10818       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10819       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10820     esac
10821   else :
10822     # compilation failed
10823     lt_cv_dlopen_self_static=no
10824   fi
10825 fi
10826 rm -fr conftest*
10827
10828
10829 fi
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10831 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10832     fi
10833
10834     CPPFLAGS="$save_CPPFLAGS"
10835     LDFLAGS="$save_LDFLAGS"
10836     LIBS="$save_LIBS"
10837     ;;
10838   esac
10839
10840   case $lt_cv_dlopen_self in
10841   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10842   *) enable_dlopen_self=unknown ;;
10843   esac
10844
10845   case $lt_cv_dlopen_self_static in
10846   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10847   *) enable_dlopen_self_static=unknown ;;
10848   esac
10849 fi
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867 striplib=
10868 old_striplib=
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10870 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10871 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10872   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10873   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10875 $as_echo "yes" >&6; }
10876 else
10877 # FIXME - insert some real tests, host_os isn't really good enough
10878   case $host_os in
10879   darwin*)
10880     if test -n "$STRIP" ; then
10881       striplib="$STRIP -x"
10882       old_striplib="$STRIP -S"
10883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884 $as_echo "yes" >&6; }
10885     else
10886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10888     fi
10889     ;;
10890   *)
10891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10893     ;;
10894   esac
10895 fi
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908   # Report which library types will actually be built
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10910 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10912 $as_echo "$can_build_shared" >&6; }
10913
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10915 $as_echo_n "checking whether to build shared libraries... " >&6; }
10916   test "$can_build_shared" = "no" && enable_shared=no
10917
10918   # On AIX, shared libraries and static libraries use the same namespace, and
10919   # are all built from PIC.
10920   case $host_os in
10921   aix3*)
10922     test "$enable_shared" = yes && enable_static=no
10923     if test -n "$RANLIB"; then
10924       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10925       postinstall_cmds='$RANLIB $lib'
10926     fi
10927     ;;
10928
10929   aix[4-9]*)
10930     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10931       test "$enable_shared" = yes && enable_static=no
10932     fi
10933     ;;
10934   esac
10935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10936 $as_echo "$enable_shared" >&6; }
10937
10938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10939 $as_echo_n "checking whether to build static libraries... " >&6; }
10940   # Make sure either enable_shared or enable_static is yes.
10941   test "$enable_shared" = yes || enable_static=yes
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10943 $as_echo "$enable_static" >&6; }
10944
10945
10946
10947
10948 fi
10949 ac_ext=c
10950 ac_cpp='$CPP $CPPFLAGS'
10951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10954
10955 CC="$lt_save_CC"
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969         ac_config_commands="$ac_config_commands libtool"
10970
10971
10972
10973
10974 # Only expand once:
10975
10976
10977
10978
10979
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10981 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10982     # Check whether --enable-maintainer-mode was given.
10983 if test "${enable_maintainer_mode+set}" = set; then :
10984   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10985 else
10986   USE_MAINTAINER_MODE=no
10987 fi
10988
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10990 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10991    if test $USE_MAINTAINER_MODE = yes; then
10992   MAINTAINER_MODE_TRUE=
10993   MAINTAINER_MODE_FALSE='#'
10994 else
10995   MAINTAINER_MODE_TRUE='#'
10996   MAINTAINER_MODE_FALSE=
10997 fi
10998
10999   MAINT=$MAINTAINER_MODE_TRUE
11000
11001
11002
11003 for ac_header in sys/mman.h
11004 do :
11005   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11006 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11007   cat >>confdefs.h <<_ACEOF
11008 #define HAVE_SYS_MMAN_H 1
11009 _ACEOF
11010
11011 fi
11012
11013 done
11014
11015 for ac_func in mmap
11016 do :
11017   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11018 if test "x$ac_cv_func_mmap" = x""yes; then :
11019   cat >>confdefs.h <<_ACEOF
11020 #define HAVE_MMAP 1
11021 _ACEOF
11022
11023 fi
11024 done
11025
11026
11027 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11028 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11029   libffi_header_sys_mman_h=yes
11030 else
11031   libffi_header_sys_mman_h=no
11032 fi
11033
11034
11035 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11036 if test "x$ac_cv_func_mmap" = x""yes; then :
11037   libffi_func_mmap=yes
11038 else
11039   libffi_func_mmap=no
11040 fi
11041
11042 if test "$libffi_header_sys_mman_h" != yes \
11043  || test "$libffi_func_mmap" != yes; then
11044    ac_cv_func_mmap_file=no
11045    ac_cv_func_mmap_dev_zero=no
11046    ac_cv_func_mmap_anon=no
11047 else
11048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11049 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11050 if test "${ac_cv_func_mmap_file+set}" = set; then :
11051   $as_echo_n "(cached) " >&6
11052 else
11053   # Add a system to this blacklist if
11054    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11055    # memory area containing the same data that you'd get if you applied
11056    # read() to the same fd.  The only system known to have a problem here
11057    # is VMS, where text files have record structure.
11058    case "$host_os" in
11059      vms* | ultrix*)
11060         ac_cv_func_mmap_file=no ;;
11061      *)
11062         ac_cv_func_mmap_file=yes;;
11063    esac
11064 fi
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11066 $as_echo "$ac_cv_func_mmap_file" >&6; }
11067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11068 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11069 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   # Add a system to this blacklist if it has mmap() but /dev/zero
11073    # does not exist, or if mmapping /dev/zero does not give anonymous
11074    # zeroed pages with both the following properties:
11075    # 1. If you map N consecutive pages in with one call, and then
11076    #    unmap any subset of those pages, the pages that were not
11077    #    explicitly unmapped remain accessible.
11078    # 2. If you map two adjacent blocks of memory and then unmap them
11079    #    both at once, they must both go away.
11080    # Systems known to be in this category are Windows (all variants),
11081    # VMS, and Darwin.
11082    case "$host_os" in
11083      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11084         ac_cv_func_mmap_dev_zero=no ;;
11085      *)
11086         ac_cv_func_mmap_dev_zero=yes;;
11087    esac
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11090 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11091
11092    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11094 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11095 if test "${ac_cv_decl_map_anon+set}" = set; then :
11096   $as_echo_n "(cached) " >&6
11097 else
11098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h.  */
11100 #include <sys/types.h>
11101 #include <sys/mman.h>
11102 #include <unistd.h>
11103
11104 #ifndef MAP_ANONYMOUS
11105 #define MAP_ANONYMOUS MAP_ANON
11106 #endif
11107
11108 int
11109 main ()
11110 {
11111 int n = MAP_ANONYMOUS;
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 if ac_fn_c_try_compile "$LINENO"; then :
11117   ac_cv_decl_map_anon=yes
11118 else
11119   ac_cv_decl_map_anon=no
11120 fi
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11124 $as_echo "$ac_cv_decl_map_anon" >&6; }
11125
11126    if test $ac_cv_decl_map_anon = no; then
11127      ac_cv_func_mmap_anon=no
11128    else
11129      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11130 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11131 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11132   $as_echo_n "(cached) " >&6
11133 else
11134   # Add a system to this blacklist if it has mmap() and MAP_ANON or
11135    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11136    # doesn't give anonymous zeroed pages with the same properties listed
11137    # above for use of /dev/zero.
11138    # Systems known to be in this category are Windows, VMS, and SCO Unix.
11139    case "$host_os" in
11140      vms* | cygwin* | pe | mingw* | sco* | udk* )
11141         ac_cv_func_mmap_anon=no ;;
11142      *)
11143         ac_cv_func_mmap_anon=yes;;
11144    esac
11145 fi
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11147 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11148    fi
11149 fi
11150
11151 if test $ac_cv_func_mmap_file = yes; then
11152
11153 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11154
11155 fi
11156 if test $ac_cv_func_mmap_dev_zero = yes; then
11157
11158 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11159
11160 fi
11161 if test $ac_cv_func_mmap_anon = yes; then
11162
11163 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11164
11165 fi
11166
11167
11168  if test -d $srcdir/testsuite; then
11169   TESTSUBDIR_TRUE=
11170   TESTSUBDIR_FALSE='#'
11171 else
11172   TESTSUBDIR_TRUE='#'
11173   TESTSUBDIR_FALSE=
11174 fi
11175
11176
11177 TARGETDIR="unknown"
11178 case "$host" in
11179   alpha*-*-*)
11180         TARGET=ALPHA; TARGETDIR=alpha;
11181         # Support 128-bit long double, changable via command-line switch.
11182         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11183         ;;
11184
11185   arm*-*-*)
11186         TARGET=ARM; TARGETDIR=arm
11187         ;;
11188
11189   amd64-*-freebsd* | amd64-*-openbsd*)
11190         TARGET=X86_64; TARGETDIR=x86
11191         ;;
11192
11193   amd64-*-freebsd*)
11194         TARGET=X86_64; TARGETDIR=x86
11195         ;;
11196
11197   avr32*-*-*)
11198         TARGET=AVR32; TARGETDIR=avr32
11199         ;;
11200
11201   cris-*-*)
11202         TARGET=LIBFFI_CRIS; TARGETDIR=cris
11203         ;;
11204
11205   frv-*-*)
11206         TARGET=FRV; TARGETDIR=frv
11207         ;;
11208
11209   hppa*-*-linux* | parisc*-*-linux*)
11210         TARGET=PA_LINUX; TARGETDIR=pa
11211         ;;
11212   hppa*64-*-hpux*)
11213         TARGET=PA64_HPUX; TARGETDIR=pa
11214         ;;
11215   hppa*-*-hpux*)
11216         TARGET=PA_HPUX; TARGETDIR=pa
11217         ;;
11218
11219   i?86-*-freebsd* | i?86-*-openbsd*)
11220         TARGET=X86_FREEBSD; TARGETDIR=x86
11221         ;;
11222   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
11223         TARGET=X86_WIN32; TARGETDIR=x86
11224         # All mingw/cygwin/win32 builds require this for sharedlib
11225         AM_LTLDFLAGS="-no-undefined"
11226         ;;
11227   i?86-*-darwin*)
11228         TARGET=X86_DARWIN; TARGETDIR=x86
11229         ;;
11230   i?86-*-solaris2.1[0-9]*)
11231         TARGET=X86_64; TARGETDIR=x86
11232         ;;
11233   i?86-*-*)
11234         TARGET=X86; TARGETDIR=x86
11235         ;;
11236
11237   ia64*-*-*)
11238         TARGET=IA64; TARGETDIR=ia64
11239         ;;
11240
11241   m32r*-*-*)
11242         TARGET=M32R; TARGETDIR=m32r
11243         ;;
11244
11245   m68k-*-*)
11246         TARGET=M68K; TARGETDIR=m68k
11247         ;;
11248
11249   mips-sgi-irix5.* | mips-sgi-irix6.*)
11250         TARGET=MIPS; TARGETDIR=mips
11251         ;;
11252   mips*-*-linux*)
11253         # Support 128-bit long double for NewABI.
11254         HAVE_LONG_DOUBLE='defined(__mips64)'
11255         TARGET=MIPS; TARGETDIR=mips
11256         ;;
11257
11258   moxie-*-*)
11259         TARGET=MOXIE; TARGETDIR=moxie
11260         ;;
11261
11262   powerpc*-*-linux* | powerpc-*-sysv*)
11263         TARGET=POWERPC; TARGETDIR=powerpc
11264         ;;
11265   powerpc-*-beos*)
11266         TARGET=POWERPC; TARGETDIR=powerpc
11267         ;;
11268   powerpc-*-darwin*)
11269         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11270         ;;
11271   powerpc-*-aix* | rs6000-*-aix*)
11272         TARGET=POWERPC_AIX; TARGETDIR=powerpc
11273         ;;
11274   powerpc-*-freebsd*)
11275         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11276         ;;
11277   powerpc*-*-rtems*)
11278         TARGET=POWERPC; TARGETDIR=powerpc
11279         ;;
11280
11281   s390-*-* | s390x-*-*)
11282         TARGET=S390; TARGETDIR=s390
11283         ;;
11284
11285   sh-*-* | sh[34]*-*-*)
11286         TARGET=SH; TARGETDIR=sh
11287         ;;
11288   sh64-*-* | sh5*-*-*)
11289         TARGET=SH64; TARGETDIR=sh64
11290         ;;
11291
11292   sparc*-*-*)
11293         TARGET=SPARC; TARGETDIR=sparc
11294         ;;
11295
11296   x86_64-*-darwin*)
11297         TARGET=X86_DARWIN; TARGETDIR=x86
11298         ;;
11299
11300   x86_64-*-cygwin* | x86_64-*-mingw*)
11301         TARGET=X86_WIN64; TARGETDIR=x86
11302         ;;
11303
11304   x86_64-*-*)
11305         TARGET=X86_64; TARGETDIR=x86
11306         ;;
11307 esac
11308
11309
11310
11311
11312 if test $TARGETDIR = unknown; then
11313   as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11314 fi
11315
11316  if test x$TARGET = xMIPS; then
11317   MIPS_TRUE=
11318   MIPS_FALSE='#'
11319 else
11320   MIPS_TRUE='#'
11321   MIPS_FALSE=
11322 fi
11323
11324  if test x$TARGET = xSPARC; then
11325   SPARC_TRUE=
11326   SPARC_FALSE='#'
11327 else
11328   SPARC_TRUE='#'
11329   SPARC_FALSE=
11330 fi
11331
11332  if test x$TARGET = xX86; then
11333   X86_TRUE=
11334   X86_FALSE='#'
11335 else
11336   X86_TRUE='#'
11337   X86_FALSE=
11338 fi
11339
11340  if test x$TARGET = xX86_FREEBSD; then
11341   X86_FREEBSD_TRUE=
11342   X86_FREEBSD_FALSE='#'
11343 else
11344   X86_FREEBSD_TRUE='#'
11345   X86_FREEBSD_FALSE=
11346 fi
11347
11348  if test x$TARGET = xX86_WIN32; then
11349   X86_WIN32_TRUE=
11350   X86_WIN32_FALSE='#'
11351 else
11352   X86_WIN32_TRUE='#'
11353   X86_WIN32_FALSE=
11354 fi
11355
11356  if test x$TARGET = xX86_WIN64; then
11357   X86_WIN64_TRUE=
11358   X86_WIN64_FALSE='#'
11359 else
11360   X86_WIN64_TRUE='#'
11361   X86_WIN64_FALSE=
11362 fi
11363
11364  if test x$TARGET = xX86_DARWIN; then
11365   X86_DARWIN_TRUE=
11366   X86_DARWIN_FALSE='#'
11367 else
11368   X86_DARWIN_TRUE='#'
11369   X86_DARWIN_FALSE=
11370 fi
11371
11372  if test x$TARGET = xALPHA; then
11373   ALPHA_TRUE=
11374   ALPHA_FALSE='#'
11375 else
11376   ALPHA_TRUE='#'
11377   ALPHA_FALSE=
11378 fi
11379
11380  if test x$TARGET = xIA64; then
11381   IA64_TRUE=
11382   IA64_FALSE='#'
11383 else
11384   IA64_TRUE='#'
11385   IA64_FALSE=
11386 fi
11387
11388  if test x$TARGET = xM32R; then
11389   M32R_TRUE=
11390   M32R_FALSE='#'
11391 else
11392   M32R_TRUE='#'
11393   M32R_FALSE=
11394 fi
11395
11396  if test x$TARGET = xM68K; then
11397   M68K_TRUE=
11398   M68K_FALSE='#'
11399 else
11400   M68K_TRUE='#'
11401   M68K_FALSE=
11402 fi
11403
11404  if test x$TARGET = xMOXIE; then
11405   MOXIE_TRUE=
11406   MOXIE_FALSE='#'
11407 else
11408   MOXIE_TRUE='#'
11409   MOXIE_FALSE=
11410 fi
11411
11412  if test x$TARGET = xPOWERPC; then
11413   POWERPC_TRUE=
11414   POWERPC_FALSE='#'
11415 else
11416   POWERPC_TRUE='#'
11417   POWERPC_FALSE=
11418 fi
11419
11420  if test x$TARGET = xPOWERPC_AIX; then
11421   POWERPC_AIX_TRUE=
11422   POWERPC_AIX_FALSE='#'
11423 else
11424   POWERPC_AIX_TRUE='#'
11425   POWERPC_AIX_FALSE=
11426 fi
11427
11428  if test x$TARGET = xPOWERPC_DARWIN; then
11429   POWERPC_DARWIN_TRUE=
11430   POWERPC_DARWIN_FALSE='#'
11431 else
11432   POWERPC_DARWIN_TRUE='#'
11433   POWERPC_DARWIN_FALSE=
11434 fi
11435
11436  if test x$TARGET = xPOWERPC_FREEBSD; then
11437   POWERPC_FREEBSD_TRUE=
11438   POWERPC_FREEBSD_FALSE='#'
11439 else
11440   POWERPC_FREEBSD_TRUE='#'
11441   POWERPC_FREEBSD_FALSE=
11442 fi
11443
11444  if test x$TARGET = xARM; then
11445   ARM_TRUE=
11446   ARM_FALSE='#'
11447 else
11448   ARM_TRUE='#'
11449   ARM_FALSE=
11450 fi
11451
11452  if test x$TARGET = xAVR32; then
11453   AVR32_TRUE=
11454   AVR32_FALSE='#'
11455 else
11456   AVR32_TRUE='#'
11457   AVR32_FALSE=
11458 fi
11459
11460  if test x$TARGET = xLIBFFI_CRIS; then
11461   LIBFFI_CRIS_TRUE=
11462   LIBFFI_CRIS_FALSE='#'
11463 else
11464   LIBFFI_CRIS_TRUE='#'
11465   LIBFFI_CRIS_FALSE=
11466 fi
11467
11468  if test x$TARGET = xFRV; then
11469   FRV_TRUE=
11470   FRV_FALSE='#'
11471 else
11472   FRV_TRUE='#'
11473   FRV_FALSE=
11474 fi
11475
11476  if test x$TARGET = xS390; then
11477   S390_TRUE=
11478   S390_FALSE='#'
11479 else
11480   S390_TRUE='#'
11481   S390_FALSE=
11482 fi
11483
11484  if test x$TARGET = xX86_64; then
11485   X86_64_TRUE=
11486   X86_64_FALSE='#'
11487 else
11488   X86_64_TRUE='#'
11489   X86_64_FALSE=
11490 fi
11491
11492  if test x$TARGET = xSH; then
11493   SH_TRUE=
11494   SH_FALSE='#'
11495 else
11496   SH_TRUE='#'
11497   SH_FALSE=
11498 fi
11499
11500  if test x$TARGET = xSH64; then
11501   SH64_TRUE=
11502   SH64_FALSE='#'
11503 else
11504   SH64_TRUE='#'
11505   SH64_FALSE=
11506 fi
11507
11508  if test x$TARGET = xPA_LINUX; then
11509   PA_LINUX_TRUE=
11510   PA_LINUX_FALSE='#'
11511 else
11512   PA_LINUX_TRUE='#'
11513   PA_LINUX_FALSE=
11514 fi
11515
11516  if test x$TARGET = xPA_HPUX; then
11517   PA_HPUX_TRUE=
11518   PA_HPUX_FALSE='#'
11519 else
11520   PA_HPUX_TRUE='#'
11521   PA_HPUX_FALSE=
11522 fi
11523
11524  if test x$TARGET = xPA64_HPUX; then
11525   PA64_HPUX_TRUE=
11526   PA64_HPUX_FALSE='#'
11527 else
11528   PA64_HPUX_TRUE='#'
11529   PA64_HPUX_FALSE=
11530 fi
11531
11532
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11534 $as_echo_n "checking for ANSI C header files... " >&6; }
11535 if test "${ac_cv_header_stdc+set}" = set; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h.  */
11540 #include <stdlib.h>
11541 #include <stdarg.h>
11542 #include <string.h>
11543 #include <float.h>
11544
11545 int
11546 main ()
11547 {
11548
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 if ac_fn_c_try_compile "$LINENO"; then :
11554   ac_cv_header_stdc=yes
11555 else
11556   ac_cv_header_stdc=no
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559
11560 if test $ac_cv_header_stdc = yes; then
11561   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h.  */
11564 #include <string.h>
11565
11566 _ACEOF
11567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11568   $EGREP "memchr" >/dev/null 2>&1; then :
11569
11570 else
11571   ac_cv_header_stdc=no
11572 fi
11573 rm -f conftest*
11574
11575 fi
11576
11577 if test $ac_cv_header_stdc = yes; then
11578   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h.  */
11581 #include <stdlib.h>
11582
11583 _ACEOF
11584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11585   $EGREP "free" >/dev/null 2>&1; then :
11586
11587 else
11588   ac_cv_header_stdc=no
11589 fi
11590 rm -f conftest*
11591
11592 fi
11593
11594 if test $ac_cv_header_stdc = yes; then
11595   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11596   if test "$cross_compiling" = yes; then :
11597   :
11598 else
11599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h.  */
11601 #include <ctype.h>
11602 #include <stdlib.h>
11603 #if ((' ' & 0x0FF) == 0x020)
11604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11606 #else
11607 # define ISLOWER(c) \
11608                    (('a' <= (c) && (c) <= 'i') \
11609                      || ('j' <= (c) && (c) <= 'r') \
11610                      || ('s' <= (c) && (c) <= 'z'))
11611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11612 #endif
11613
11614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11615 int
11616 main ()
11617 {
11618   int i;
11619   for (i = 0; i < 256; i++)
11620     if (XOR (islower (i), ISLOWER (i))
11621         || toupper (i) != TOUPPER (i))
11622       return 2;
11623   return 0;
11624 }
11625 _ACEOF
11626 if ac_fn_c_try_run "$LINENO"; then :
11627
11628 else
11629   ac_cv_header_stdc=no
11630 fi
11631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11632   conftest.$ac_objext conftest.beam conftest.$ac_ext
11633 fi
11634
11635 fi
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11638 $as_echo "$ac_cv_header_stdc" >&6; }
11639 if test $ac_cv_header_stdc = yes; then
11640
11641 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11642
11643 fi
11644
11645 for ac_func in memcpy
11646 do :
11647   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11648 if test "x$ac_cv_func_memcpy" = x""yes; then :
11649   cat >>confdefs.h <<_ACEOF
11650 #define HAVE_MEMCPY 1
11651 _ACEOF
11652
11653 fi
11654 done
11655
11656 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11657 # for constant arguments.  Useless!
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11659 $as_echo_n "checking for working alloca.h... " >&6; }
11660 if test "${ac_cv_working_alloca_h+set}" = set; then :
11661   $as_echo_n "(cached) " >&6
11662 else
11663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h.  */
11665 #include <alloca.h>
11666 int
11667 main ()
11668 {
11669 char *p = (char *) alloca (2 * sizeof (int));
11670                           if (p) return 0;
11671   ;
11672   return 0;
11673 }
11674 _ACEOF
11675 if ac_fn_c_try_link "$LINENO"; then :
11676   ac_cv_working_alloca_h=yes
11677 else
11678   ac_cv_working_alloca_h=no
11679 fi
11680 rm -f core conftest.err conftest.$ac_objext \
11681     conftest$ac_exeext conftest.$ac_ext
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11684 $as_echo "$ac_cv_working_alloca_h" >&6; }
11685 if test $ac_cv_working_alloca_h = yes; then
11686
11687 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11688
11689 fi
11690
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11692 $as_echo_n "checking for alloca... " >&6; }
11693 if test "${ac_cv_func_alloca_works+set}" = set; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h.  */
11698 #ifdef __GNUC__
11699 # define alloca __builtin_alloca
11700 #else
11701 # ifdef _MSC_VER
11702 #  include <malloc.h>
11703 #  define alloca _alloca
11704 # else
11705 #  ifdef HAVE_ALLOCA_H
11706 #   include <alloca.h>
11707 #  else
11708 #   ifdef _AIX
11709  #pragma alloca
11710 #   else
11711 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11712 char *alloca ();
11713 #    endif
11714 #   endif
11715 #  endif
11716 # endif
11717 #endif
11718
11719 int
11720 main ()
11721 {
11722 char *p = (char *) alloca (1);
11723                                     if (p) return 0;
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729   ac_cv_func_alloca_works=yes
11730 else
11731   ac_cv_func_alloca_works=no
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734     conftest$ac_exeext conftest.$ac_ext
11735 fi
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11737 $as_echo "$ac_cv_func_alloca_works" >&6; }
11738
11739 if test $ac_cv_func_alloca_works = yes; then
11740
11741 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11742
11743 else
11744   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11745 # that cause trouble.  Some versions do not even contain alloca or
11746 # contain a buggy version.  If you still want to use their alloca,
11747 # use ar to extract alloca.o from them instead of compiling alloca.c.
11748
11749 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11750
11751 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11752
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11755 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11756 if test "${ac_cv_os_cray+set}" = set; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h.  */
11761 #if defined CRAY && ! defined CRAY2
11762 webecray
11763 #else
11764 wenotbecray
11765 #endif
11766
11767 _ACEOF
11768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11769   $EGREP "webecray" >/dev/null 2>&1; then :
11770   ac_cv_os_cray=yes
11771 else
11772   ac_cv_os_cray=no
11773 fi
11774 rm -f conftest*
11775
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11778 $as_echo "$ac_cv_os_cray" >&6; }
11779 if test $ac_cv_os_cray = yes; then
11780   for ac_func in _getb67 GETB67 getb67; do
11781     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11782 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11783 eval as_val=\$$as_ac_var
11784    if test "x$as_val" = x""yes; then :
11785
11786 cat >>confdefs.h <<_ACEOF
11787 #define CRAY_STACKSEG_END $ac_func
11788 _ACEOF
11789
11790     break
11791 fi
11792
11793   done
11794 fi
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11797 $as_echo_n "checking stack direction for C alloca... " >&6; }
11798 if test "${ac_cv_c_stack_direction+set}" = set; then :
11799   $as_echo_n "(cached) " >&6
11800 else
11801   if test "$cross_compiling" = yes; then :
11802   ac_cv_c_stack_direction=0
11803 else
11804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h.  */
11806 $ac_includes_default
11807 int
11808 find_stack_direction ()
11809 {
11810   static char *addr = 0;
11811   auto char dummy;
11812   if (addr == 0)
11813     {
11814       addr = &dummy;
11815       return find_stack_direction ();
11816     }
11817   else
11818     return (&dummy > addr) ? 1 : -1;
11819 }
11820
11821 int
11822 main ()
11823 {
11824   return find_stack_direction () < 0;
11825 }
11826 _ACEOF
11827 if ac_fn_c_try_run "$LINENO"; then :
11828   ac_cv_c_stack_direction=1
11829 else
11830   ac_cv_c_stack_direction=-1
11831 fi
11832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11833   conftest.$ac_objext conftest.beam conftest.$ac_ext
11834 fi
11835
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11838 $as_echo "$ac_cv_c_stack_direction" >&6; }
11839 cat >>confdefs.h <<_ACEOF
11840 #define STACK_DIRECTION $ac_cv_c_stack_direction
11841 _ACEOF
11842
11843
11844 fi
11845
11846
11847 # The cast to long int works around a bug in the HP C Compiler
11848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11850 # This bug is HP SR number 8606223364.
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11852 $as_echo_n "checking size of double... " >&6; }
11853 if test "${ac_cv_sizeof_double+set}" = set; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
11857
11858 else
11859   if test "$ac_cv_type_double" = yes; then
11860      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11862 { as_fn_set_status 77
11863 as_fn_error "cannot compute sizeof (double)
11864 See \`config.log' for more details." "$LINENO" 5; }; }
11865    else
11866      ac_cv_sizeof_double=0
11867    fi
11868 fi
11869
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11872 $as_echo "$ac_cv_sizeof_double" >&6; }
11873
11874
11875
11876 cat >>confdefs.h <<_ACEOF
11877 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11878 _ACEOF
11879
11880
11881 # The cast to long int works around a bug in the HP C Compiler
11882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11884 # This bug is HP SR number 8606223364.
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
11886 $as_echo_n "checking size of long double... " >&6; }
11887 if test "${ac_cv_sizeof_long_double+set}" = set; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
11891
11892 else
11893   if test "$ac_cv_type_long_double" = yes; then
11894      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11896 { as_fn_set_status 77
11897 as_fn_error "cannot compute sizeof (long double)
11898 See \`config.log' for more details." "$LINENO" 5; }; }
11899    else
11900      ac_cv_sizeof_long_double=0
11901    fi
11902 fi
11903
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
11906 $as_echo "$ac_cv_sizeof_long_double" >&6; }
11907
11908
11909
11910 cat >>confdefs.h <<_ACEOF
11911 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11912 _ACEOF
11913
11914
11915
11916 # Also AC_SUBST this variable for ffi.h.
11917 if test -z "$HAVE_LONG_DOUBLE"; then
11918   HAVE_LONG_DOUBLE=0
11919   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
11920     if test $ac_cv_sizeof_long_double != 0; then
11921       HAVE_LONG_DOUBLE=1
11922
11923 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11924
11925     fi
11926   fi
11927 fi
11928
11929
11930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11931 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11932 if test "${ac_cv_c_bigendian+set}" = set; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   ac_cv_c_bigendian=unknown
11936     # See if we're dealing with a universal compiler.
11937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h.  */
11939 #ifndef __APPLE_CC__
11940                not a universal capable compiler
11941              #endif
11942              typedef int dummy;
11943
11944 _ACEOF
11945 if ac_fn_c_try_compile "$LINENO"; then :
11946
11947         # Check for potential -arch flags.  It is not universal unless
11948         # there are at least two -arch flags with different values.
11949         ac_arch=
11950         ac_prev=
11951         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11952          if test -n "$ac_prev"; then
11953            case $ac_word in
11954              i?86 | x86_64 | ppc | ppc64)
11955                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11956                  ac_arch=$ac_word
11957                else
11958                  ac_cv_c_bigendian=universal
11959                  break
11960                fi
11961                ;;
11962            esac
11963            ac_prev=
11964          elif test "x$ac_word" = "x-arch"; then
11965            ac_prev=arch
11966          fi
11967        done
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970     if test $ac_cv_c_bigendian = unknown; then
11971       # See if sys/param.h defines the BYTE_ORDER macro.
11972       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h.  */
11974 #include <sys/types.h>
11975              #include <sys/param.h>
11976
11977 int
11978 main ()
11979 {
11980 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11981                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11982                      && LITTLE_ENDIAN)
11983               bogus endian macros
11984              #endif
11985
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 if ac_fn_c_try_compile "$LINENO"; then :
11991   # It does; now see whether it defined to BIG_ENDIAN or not.
11992          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h.  */
11994 #include <sys/types.h>
11995                 #include <sys/param.h>
11996
11997 int
11998 main ()
11999 {
12000 #if BYTE_ORDER != BIG_ENDIAN
12001                  not big endian
12002                 #endif
12003
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_compile "$LINENO"; then :
12009   ac_cv_c_bigendian=yes
12010 else
12011   ac_cv_c_bigendian=no
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016     fi
12017     if test $ac_cv_c_bigendian = unknown; then
12018       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12019       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h.  */
12021 #include <limits.h>
12022
12023 int
12024 main ()
12025 {
12026 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12027               bogus endian macros
12028              #endif
12029
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035   # It does; now see whether it defined to _BIG_ENDIAN or not.
12036          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h.  */
12038 #include <limits.h>
12039
12040 int
12041 main ()
12042 {
12043 #ifndef _BIG_ENDIAN
12044                  not big endian
12045                 #endif
12046
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_compile "$LINENO"; then :
12052   ac_cv_c_bigendian=yes
12053 else
12054   ac_cv_c_bigendian=no
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059     fi
12060     if test $ac_cv_c_bigendian = unknown; then
12061       # Compile a test program.
12062       if test "$cross_compiling" = yes; then :
12063   # Try to guess by grepping values from an object file.
12064          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h.  */
12066 short int ascii_mm[] =
12067                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12068                 short int ascii_ii[] =
12069                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12070                 int use_ascii (int i) {
12071                   return ascii_mm[i] + ascii_ii[i];
12072                 }
12073                 short int ebcdic_ii[] =
12074                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12075                 short int ebcdic_mm[] =
12076                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12077                 int use_ebcdic (int i) {
12078                   return ebcdic_mm[i] + ebcdic_ii[i];
12079                 }
12080                 extern int foo;
12081
12082 int
12083 main ()
12084 {
12085 return use_ascii (foo) == use_ebcdic (foo);
12086   ;
12087   return 0;
12088 }
12089 _ACEOF
12090 if ac_fn_c_try_compile "$LINENO"; then :
12091   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12092               ac_cv_c_bigendian=yes
12093             fi
12094             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12095               if test "$ac_cv_c_bigendian" = unknown; then
12096                 ac_cv_c_bigendian=no
12097               else
12098                 # finding both strings is unlikely to happen, but who knows?
12099                 ac_cv_c_bigendian=unknown
12100               fi
12101             fi
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 else
12105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h.  */
12107 $ac_includes_default
12108 int
12109 main ()
12110 {
12111
12112              /* Are we little or big endian?  From Harbison&Steele.  */
12113              union
12114              {
12115                long int l;
12116                char c[sizeof (long int)];
12117              } u;
12118              u.l = 1;
12119              return u.c[sizeof (long int) - 1] == 1;
12120
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_run "$LINENO"; then :
12126   ac_cv_c_bigendian=no
12127 else
12128   ac_cv_c_bigendian=yes
12129 fi
12130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12131   conftest.$ac_objext conftest.beam conftest.$ac_ext
12132 fi
12133
12134     fi
12135 fi
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12137 $as_echo "$ac_cv_c_bigendian" >&6; }
12138  case $ac_cv_c_bigendian in #(
12139    yes)
12140      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12141 ;; #(
12142    no)
12143       ;; #(
12144    universal)
12145
12146 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12147
12148      ;; #(
12149    *)
12150      as_fn_error "unknown endianness
12151  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12152  esac
12153
12154
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12156 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12157 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
12158   $as_echo_n "(cached) " >&6
12159 else
12160
12161     libffi_cv_as_cfi_pseudo_op=unknown
12162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h.  */
12164 asm (".cfi_startproc\n\t.cfi_endproc");
12165 int
12166 main ()
12167 {
12168
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 if ac_fn_c_try_compile "$LINENO"; then :
12174   libffi_cv_as_cfi_pseudo_op=yes
12175 else
12176   libffi_cv_as_cfi_pseudo_op=no
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
12182 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
12183 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12184
12185 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12186
12187 fi
12188
12189 if test x$TARGET = xSPARC; then
12190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12191 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12192 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12193   $as_echo_n "(cached) " >&6
12194 else
12195
12196         save_CFLAGS="$CFLAGS"
12197         save_LDFLAGS="$LDFLAGS"
12198         CFLAGS="$CFLAGS -fpic"
12199         LDFLAGS="$LDFLAGS -shared"
12200         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h.  */
12202 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12203 int
12204 main ()
12205 {
12206
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 if ac_fn_c_try_link "$LINENO"; then :
12212   libffi_cv_as_sparc_ua_pcrel=yes
12213 else
12214   libffi_cv_as_sparc_ua_pcrel=no
12215 fi
12216 rm -f core conftest.err conftest.$ac_objext \
12217     conftest$ac_exeext conftest.$ac_ext
12218         CFLAGS="$save_CFLAGS"
12219         LDFLAGS="$save_LDFLAGS"
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12222 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12223     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12224
12225 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12226
12227     fi
12228
12229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12230 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12231 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234
12235        libffi_cv_as_register_pseudo_op=unknown
12236        # Check if we have .register
12237        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h.  */
12239 asm (".register %g2, #scratch");
12240 int
12241 main ()
12242 {
12243
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249   libffi_cv_as_register_pseudo_op=yes
12250 else
12251   libffi_cv_as_register_pseudo_op=no
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254
12255 fi
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12257 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12258     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12259
12260 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12261
12262     fi
12263 fi
12264
12265 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12267 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12268 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271
12272         libffi_cv_as_x86_pcrel=yes
12273         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12274         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12275             libffi_cv_as_x86_pcrel=no
12276         fi
12277
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12280 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12281     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12282
12283 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12284
12285     fi
12286
12287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12288 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12289 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12290   $as_echo_n "(cached) " >&6
12291 else
12292
12293        libffi_cv_as_ascii_pseudo_op=unknown
12294        # Check if we have .ascii
12295        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297 asm (".ascii \"string\"");
12298 int
12299 main ()
12300 {
12301
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 if ac_fn_c_try_compile "$LINENO"; then :
12307   libffi_cv_as_ascii_pseudo_op=yes
12308 else
12309   libffi_cv_as_ascii_pseudo_op=no
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12315 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12316     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12317
12318 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12319
12320     fi
12321
12322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12323 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12324 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12325   $as_echo_n "(cached) " >&6
12326 else
12327
12328        libffi_cv_as_string_pseudo_op=unknown
12329        # Check if we have .string
12330        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h.  */
12332 asm (".string \"string\"");
12333 int
12334 main ()
12335 {
12336
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_compile "$LINENO"; then :
12342   libffi_cv_as_string_pseudo_op=yes
12343 else
12344   libffi_cv_as_string_pseudo_op=no
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12350 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12351     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12352
12353 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12354
12355     fi
12356 fi
12357
12358 case "$target" in
12359      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
12360
12361 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12362
12363      ;;
12364 esac
12365
12366 if test x$TARGET = xX86_64; then
12367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12368 $as_echo_n "checking assembler supports unwind section type... " >&6; }
12369 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12370   $as_echo_n "(cached) " >&6
12371 else
12372
12373         libffi_cv_as_x86_64_unwind_section_type=yes
12374         echo '.section .eh_frame,"a",@unwind' > conftest.s
12375         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12376             libffi_cv_as_x86_64_unwind_section_type=no
12377         fi
12378
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12381 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12382     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12383
12384 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12385
12386     fi
12387 fi
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12390 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12391 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394
12395         libffi_cv_ro_eh_frame=no
12396         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12397         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12398             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12399                 libffi_cv_ro_eh_frame=yes
12400             elif grep '.section.*eh_frame.*#alloc' conftest.c \
12401                  | grep -v '#write' > /dev/null; then
12402                 libffi_cv_ro_eh_frame=yes
12403             fi
12404         fi
12405         rm -f conftest.*
12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12409 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12410 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12411
12412 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12413
12414
12415 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12416
12417 else
12418
12419 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12420
12421 fi
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12424 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12425 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428
12429         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12430         libffi_cv_hidden_visibility_attribute=no
12431         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12432   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12436   test $ac_status = 0; }; }; then
12437             if grep '\.hidden.*foo' conftest.s >/dev/null; then
12438                 libffi_cv_hidden_visibility_attribute=yes
12439             fi
12440         fi
12441         rm -f conftest.*
12442
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12445 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12446 if test $libffi_cv_hidden_visibility_attribute = yes; then
12447
12448 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12449
12450 fi
12451
12452
12453
12454
12455
12456
12457
12458
12459 # Check whether --enable-debug was given.
12460 if test "${enable_debug+set}" = set; then :
12461   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12462
12463 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12464
12465   fi
12466 fi
12467
12468
12469 # Check whether --enable-structs was given.
12470 if test "${enable_structs+set}" = set; then :
12471   enableval=$enable_structs; if test "$enable_structs" = "no"; then
12472
12473 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12474
12475   fi
12476 fi
12477
12478
12479 # Check whether --enable-raw-api was given.
12480 if test "${enable_raw_api+set}" = set; then :
12481   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12482
12483 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12484
12485   fi
12486 fi
12487
12488
12489 # Check whether --enable-purify-safety was given.
12490 if test "${enable_purify_safety+set}" = set; then :
12491   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12492
12493 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12494
12495   fi
12496 fi
12497
12498
12499 if test -n "$with_cross_host" &&
12500    test x"$with_cross_host" != x"no"; then
12501   toolexecdir='$(exec_prefix)/$(target_alias)'
12502   toolexeclibdir='$(toolexecdir)/lib'
12503 else
12504   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12505   toolexeclibdir='$(libdir)'
12506 fi
12507 multi_os_directory=`$CC -print-multi-os-directory`
12508 case $multi_os_directory in
12509   .) ;; # Avoid trailing /.
12510   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12511 esac
12512
12513
12514
12515 if test "${multilib}" = "yes"; then
12516   multilib_arg="--enable-multilib"
12517 else
12518   multilib_arg=
12519 fi
12520
12521 ac_config_commands="$ac_config_commands include"
12522
12523 ac_config_commands="$ac_config_commands src"
12524
12525
12526 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12527
12528
12529 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
12530
12531
12532 cat >confcache <<\_ACEOF
12533 # This file is a shell script that caches the results of configure
12534 # tests run on this system so they can be shared between configure
12535 # scripts and configure runs, see configure's option --config-cache.
12536 # It is not useful on other systems.  If it contains results you don't
12537 # want to keep, you may remove or edit it.
12538 #
12539 # config.status only pays attention to the cache file if you give it
12540 # the --recheck option to rerun configure.
12541 #
12542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12544 # following values.
12545
12546 _ACEOF
12547
12548 # The following way of writing the cache mishandles newlines in values,
12549 # but we know of no workaround that is simple, portable, and efficient.
12550 # So, we kill variables containing newlines.
12551 # Ultrix sh set writes to stderr and can't be redirected directly,
12552 # and sets the high bit in the cache file unless we assign to the vars.
12553 (
12554   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12555     eval ac_val=\$$ac_var
12556     case $ac_val in #(
12557     *${as_nl}*)
12558       case $ac_var in #(
12559       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12561       esac
12562       case $ac_var in #(
12563       _ | IFS | as_nl) ;; #(
12564       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12565       *) { eval $ac_var=; unset $ac_var;} ;;
12566       esac ;;
12567     esac
12568   done
12569
12570   (set) 2>&1 |
12571     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12572     *${as_nl}ac_space=\ *)
12573       # `set' does not quote correctly, so add quotes: double-quote
12574       # substitution turns \\\\ into \\, and sed turns \\ into \.
12575       sed -n \
12576         "s/'/'\\\\''/g;
12577           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12578       ;; #(
12579     *)
12580       # `set' quotes correctly as required by POSIX, so do not add quotes.
12581       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12582       ;;
12583     esac |
12584     sort
12585 ) |
12586   sed '
12587      /^ac_cv_env_/b end
12588      t clear
12589      :clear
12590      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12591      t end
12592      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12593      :end' >>confcache
12594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12595   if test -w "$cache_file"; then
12596     test "x$cache_file" != "x/dev/null" &&
12597       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12598 $as_echo "$as_me: updating cache $cache_file" >&6;}
12599     cat confcache >$cache_file
12600   else
12601     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12603   fi
12604 fi
12605 rm -f confcache
12606
12607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12608 # Let make expand exec_prefix.
12609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12610
12611 DEFS=-DHAVE_CONFIG_H
12612
12613 ac_libobjs=
12614 ac_ltlibobjs=
12615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12616   # 1. Remove the extension, and $U if already installed.
12617   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12618   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12619   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12620   #    will be set to the directory where LIBOBJS objects are built.
12621   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12622   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12623 done
12624 LIBOBJS=$ac_libobjs
12625
12626 LTLIBOBJS=$ac_ltlibobjs
12627
12628
12629  if test -n "$EXEEXT"; then
12630   am__EXEEXT_TRUE=
12631   am__EXEEXT_FALSE='#'
12632 else
12633   am__EXEEXT_TRUE='#'
12634   am__EXEEXT_FALSE=
12635 fi
12636
12637 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12638   as_fn_error "conditional \"AMDEP\" was never defined.
12639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12640 fi
12641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12642   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12644 fi
12645 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12646   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648 fi
12649 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12650   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652 fi
12653 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12654   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12656 fi
12657 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12658   as_fn_error "conditional \"MIPS\" was never defined.
12659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12660 fi
12661 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12662   as_fn_error "conditional \"SPARC\" was never defined.
12663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12664 fi
12665 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12666   as_fn_error "conditional \"X86\" was never defined.
12667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12668 fi
12669 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
12670   as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12672 fi
12673 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12674   as_fn_error "conditional \"X86_WIN32\" was never defined.
12675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12676 fi
12677 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
12678   as_fn_error "conditional \"X86_WIN64\" was never defined.
12679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12680 fi
12681 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12682   as_fn_error "conditional \"X86_DARWIN\" was never defined.
12683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12684 fi
12685 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12686   as_fn_error "conditional \"ALPHA\" was never defined.
12687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12688 fi
12689 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12690   as_fn_error "conditional \"IA64\" was never defined.
12691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12692 fi
12693 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12694   as_fn_error "conditional \"M32R\" was never defined.
12695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12696 fi
12697 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12698   as_fn_error "conditional \"M68K\" was never defined.
12699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12700 fi
12701 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
12702   as_fn_error "conditional \"MOXIE\" was never defined.
12703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12704 fi
12705 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12706   as_fn_error "conditional \"POWERPC\" was never defined.
12707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12708 fi
12709 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12710   as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12712 fi
12713 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12714   as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12716 fi
12717 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12718   as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12720 fi
12721 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12722   as_fn_error "conditional \"ARM\" was never defined.
12723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12724 fi
12725 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
12726   as_fn_error "conditional \"AVR32\" was never defined.
12727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12728 fi
12729 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12730   as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12732 fi
12733 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12734   as_fn_error "conditional \"FRV\" was never defined.
12735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12736 fi
12737 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12738   as_fn_error "conditional \"S390\" was never defined.
12739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12740 fi
12741 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12742   as_fn_error "conditional \"X86_64\" was never defined.
12743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12744 fi
12745 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12746   as_fn_error "conditional \"SH\" was never defined.
12747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12748 fi
12749 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12750   as_fn_error "conditional \"SH64\" was never defined.
12751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12752 fi
12753 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12754   as_fn_error "conditional \"PA_LINUX\" was never defined.
12755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12756 fi
12757 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12758   as_fn_error "conditional \"PA_HPUX\" was never defined.
12759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12760 fi
12761 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12762   as_fn_error "conditional \"PA64_HPUX\" was never defined.
12763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764 fi
12765
12766
12767 : ${CONFIG_STATUS=./config.status}
12768 ac_write_fail=0
12769 ac_clean_files_save=$ac_clean_files
12770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12773 as_write_fail=0
12774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12775 #! $SHELL
12776 # Generated by $as_me.
12777 # Run this file to recreate the current configuration.
12778 # Compiler output produced by configure, useful for debugging
12779 # configure, is in config.log if it exists.
12780
12781 debug=false
12782 ac_cs_recheck=false
12783 ac_cs_silent=false
12784
12785 SHELL=\${CONFIG_SHELL-$SHELL}
12786 export SHELL
12787 _ASEOF
12788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12789 ## -------------------- ##
12790 ## M4sh Initialization. ##
12791 ## -------------------- ##
12792
12793 # Be more Bourne compatible
12794 DUALCASE=1; export DUALCASE # for MKS sh
12795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12796   emulate sh
12797   NULLCMD=:
12798   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12799   # is contrary to our usage.  Disable this feature.
12800   alias -g '${1+"$@"}'='"$@"'
12801   setopt NO_GLOB_SUBST
12802 else
12803   case `(set -o) 2>/dev/null` in #(
12804   *posix*) :
12805     set -o posix ;; #(
12806   *) :
12807      ;;
12808 esac
12809 fi
12810
12811
12812 as_nl='
12813 '
12814 export as_nl
12815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12816 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12819 # Prefer a ksh shell builtin over an external printf program on Solaris,
12820 # but without wasting forks for bash or zsh.
12821 if test -z "$BASH_VERSION$ZSH_VERSION" \
12822     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12823   as_echo='print -r --'
12824   as_echo_n='print -rn --'
12825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12826   as_echo='printf %s\n'
12827   as_echo_n='printf %s'
12828 else
12829   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12830     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12831     as_echo_n='/usr/ucb/echo -n'
12832   else
12833     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12834     as_echo_n_body='eval
12835       arg=$1;
12836       case $arg in #(
12837       *"$as_nl"*)
12838         expr "X$arg" : "X\\(.*\\)$as_nl";
12839         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12840       esac;
12841       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12842     '
12843     export as_echo_n_body
12844     as_echo_n='sh -c $as_echo_n_body as_echo'
12845   fi
12846   export as_echo_body
12847   as_echo='sh -c $as_echo_body as_echo'
12848 fi
12849
12850 # The user is always right.
12851 if test "${PATH_SEPARATOR+set}" != set; then
12852   PATH_SEPARATOR=:
12853   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12854     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12855       PATH_SEPARATOR=';'
12856   }
12857 fi
12858
12859
12860 # IFS
12861 # We need space, tab and new line, in precisely that order.  Quoting is
12862 # there to prevent editors from complaining about space-tab.
12863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12864 # splitting by setting IFS to empty value.)
12865 IFS=" ""        $as_nl"
12866
12867 # Find who we are.  Look in the path if we contain no directory separator.
12868 case $0 in #((
12869   *[\\/]* ) as_myself=$0 ;;
12870   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12872 do
12873   IFS=$as_save_IFS
12874   test -z "$as_dir" && as_dir=.
12875     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12876   done
12877 IFS=$as_save_IFS
12878
12879      ;;
12880 esac
12881 # We did not find ourselves, most probably we were run as `sh COMMAND'
12882 # in which case we are not to be found in the path.
12883 if test "x$as_myself" = x; then
12884   as_myself=$0
12885 fi
12886 if test ! -f "$as_myself"; then
12887   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12888   exit 1
12889 fi
12890
12891 # Unset variables that we do not need and which cause bugs (e.g. in
12892 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12893 # suppresses any "Segmentation fault" message there.  '((' could
12894 # trigger a bug in pdksh 5.2.14.
12895 for as_var in BASH_ENV ENV MAIL MAILPATH
12896 do eval test x\${$as_var+set} = xset \
12897   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12898 done
12899 PS1='$ '
12900 PS2='> '
12901 PS4='+ '
12902
12903 # NLS nuisances.
12904 LC_ALL=C
12905 export LC_ALL
12906 LANGUAGE=C
12907 export LANGUAGE
12908
12909 # CDPATH.
12910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12911
12912
12913 # as_fn_error ERROR [LINENO LOG_FD]
12914 # ---------------------------------
12915 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12916 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12917 # script with status $?, using 1 if that was 0.
12918 as_fn_error ()
12919 {
12920   as_status=$?; test $as_status -eq 0 && as_status=1
12921   if test "$3"; then
12922     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12923     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12924   fi
12925   $as_echo "$as_me: error: $1" >&2
12926   as_fn_exit $as_status
12927 } # as_fn_error
12928
12929
12930 # as_fn_set_status STATUS
12931 # -----------------------
12932 # Set $? to STATUS, without forking.
12933 as_fn_set_status ()
12934 {
12935   return $1
12936 } # as_fn_set_status
12937
12938 # as_fn_exit STATUS
12939 # -----------------
12940 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12941 as_fn_exit ()
12942 {
12943   set +e
12944   as_fn_set_status $1
12945   exit $1
12946 } # as_fn_exit
12947
12948 # as_fn_unset VAR
12949 # ---------------
12950 # Portably unset VAR.
12951 as_fn_unset ()
12952 {
12953   { eval $1=; unset $1;}
12954 }
12955 as_unset=as_fn_unset
12956 # as_fn_append VAR VALUE
12957 # ----------------------
12958 # Append the text in VALUE to the end of the definition contained in VAR. Take
12959 # advantage of any shell optimizations that allow amortized linear growth over
12960 # repeated appends, instead of the typical quadratic growth present in naive
12961 # implementations.
12962 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12963   eval 'as_fn_append ()
12964   {
12965     eval $1+=\$2
12966   }'
12967 else
12968   as_fn_append ()
12969   {
12970     eval $1=\$$1\$2
12971   }
12972 fi # as_fn_append
12973
12974 # as_fn_arith ARG...
12975 # ------------------
12976 # Perform arithmetic evaluation on the ARGs, and store the result in the
12977 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12978 # must be portable across $(()) and expr.
12979 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12980   eval 'as_fn_arith ()
12981   {
12982     as_val=$(( $* ))
12983   }'
12984 else
12985   as_fn_arith ()
12986   {
12987     as_val=`expr "$@" || test $? -eq 1`
12988   }
12989 fi # as_fn_arith
12990
12991
12992 if expr a : '\(a\)' >/dev/null 2>&1 &&
12993    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12994   as_expr=expr
12995 else
12996   as_expr=false
12997 fi
12998
12999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13000   as_basename=basename
13001 else
13002   as_basename=false
13003 fi
13004
13005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13006   as_dirname=dirname
13007 else
13008   as_dirname=false
13009 fi
13010
13011 as_me=`$as_basename -- "$0" ||
13012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13013          X"$0" : 'X\(//\)$' \| \
13014          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13015 $as_echo X/"$0" |
13016     sed '/^.*\/\([^/][^/]*\)\/*$/{
13017             s//\1/
13018             q
13019           }
13020           /^X\/\(\/\/\)$/{
13021             s//\1/
13022             q
13023           }
13024           /^X\/\(\/\).*/{
13025             s//\1/
13026             q
13027           }
13028           s/.*/./; q'`
13029
13030 # Avoid depending upon Character Ranges.
13031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13034 as_cr_digits='0123456789'
13035 as_cr_alnum=$as_cr_Letters$as_cr_digits
13036
13037 ECHO_C= ECHO_N= ECHO_T=
13038 case `echo -n x` in #(((((
13039 -n*)
13040   case `echo 'xy\c'` in
13041   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13042   xy)  ECHO_C='\c';;
13043   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13044        ECHO_T=' ';;
13045   esac;;
13046 *)
13047   ECHO_N='-n';;
13048 esac
13049
13050 rm -f conf$$ conf$$.exe conf$$.file
13051 if test -d conf$$.dir; then
13052   rm -f conf$$.dir/conf$$.file
13053 else
13054   rm -f conf$$.dir
13055   mkdir conf$$.dir 2>/dev/null
13056 fi
13057 if (echo >conf$$.file) 2>/dev/null; then
13058   if ln -s conf$$.file conf$$ 2>/dev/null; then
13059     as_ln_s='ln -s'
13060     # ... but there are two gotchas:
13061     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13062     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13063     # In both cases, we have to default to `cp -p'.
13064     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13065       as_ln_s='cp -p'
13066   elif ln conf$$.file conf$$ 2>/dev/null; then
13067     as_ln_s=ln
13068   else
13069     as_ln_s='cp -p'
13070   fi
13071 else
13072   as_ln_s='cp -p'
13073 fi
13074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13075 rmdir conf$$.dir 2>/dev/null
13076
13077
13078 # as_fn_mkdir_p
13079 # -------------
13080 # Create "$as_dir" as a directory, including parents if necessary.
13081 as_fn_mkdir_p ()
13082 {
13083
13084   case $as_dir in #(
13085   -*) as_dir=./$as_dir;;
13086   esac
13087   test -d "$as_dir" || eval $as_mkdir_p || {
13088     as_dirs=
13089     while :; do
13090       case $as_dir in #(
13091       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13092       *) as_qdir=$as_dir;;
13093       esac
13094       as_dirs="'$as_qdir' $as_dirs"
13095       as_dir=`$as_dirname -- "$as_dir" ||
13096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13097          X"$as_dir" : 'X\(//\)[^/]' \| \
13098          X"$as_dir" : 'X\(//\)$' \| \
13099          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13100 $as_echo X"$as_dir" |
13101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13102             s//\1/
13103             q
13104           }
13105           /^X\(\/\/\)[^/].*/{
13106             s//\1/
13107             q
13108           }
13109           /^X\(\/\/\)$/{
13110             s//\1/
13111             q
13112           }
13113           /^X\(\/\).*/{
13114             s//\1/
13115             q
13116           }
13117           s/.*/./; q'`
13118       test -d "$as_dir" && break
13119     done
13120     test -z "$as_dirs" || eval "mkdir $as_dirs"
13121   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13122
13123
13124 } # as_fn_mkdir_p
13125 if mkdir -p . 2>/dev/null; then
13126   as_mkdir_p='mkdir -p "$as_dir"'
13127 else
13128   test -d ./-p && rmdir ./-p
13129   as_mkdir_p=false
13130 fi
13131
13132 if test -x / >/dev/null 2>&1; then
13133   as_test_x='test -x'
13134 else
13135   if ls -dL / >/dev/null 2>&1; then
13136     as_ls_L_option=L
13137   else
13138     as_ls_L_option=
13139   fi
13140   as_test_x='
13141     eval sh -c '\''
13142       if test -d "$1"; then
13143         test -d "$1/.";
13144       else
13145         case $1 in #(
13146         -*)set "./$1";;
13147         esac;
13148         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13149         ???[sx]*):;;*)false;;esac;fi
13150     '\'' sh
13151   '
13152 fi
13153 as_executable_p=$as_test_x
13154
13155 # Sed expression to map a string onto a valid CPP name.
13156 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13157
13158 # Sed expression to map a string onto a valid variable name.
13159 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13160
13161
13162 exec 6>&1
13163 ## ----------------------------------- ##
13164 ## Main body of $CONFIG_STATUS script. ##
13165 ## ----------------------------------- ##
13166 _ASEOF
13167 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13168
13169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13170 # Save the log message, to keep $0 and so on meaningful, and to
13171 # report actual input values of CONFIG_FILES etc. instead of their
13172 # values after options handling.
13173 ac_log="
13174 This file was extended by libffi $as_me 3.0.10rc0, which was
13175 generated by GNU Autoconf 2.65.  Invocation command line was
13176
13177   CONFIG_FILES    = $CONFIG_FILES
13178   CONFIG_HEADERS  = $CONFIG_HEADERS
13179   CONFIG_LINKS    = $CONFIG_LINKS
13180   CONFIG_COMMANDS = $CONFIG_COMMANDS
13181   $ $0 $@
13182
13183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13184 "
13185
13186 _ACEOF
13187
13188 case $ac_config_files in *"
13189 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13190 esac
13191
13192 case $ac_config_headers in *"
13193 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13194 esac
13195
13196
13197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13198 # Files that config.status was made for.
13199 config_files="$ac_config_files"
13200 config_headers="$ac_config_headers"
13201 config_links="$ac_config_links"
13202 config_commands="$ac_config_commands"
13203
13204 _ACEOF
13205
13206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13207 ac_cs_usage="\
13208 \`$as_me' instantiates files and other configuration actions
13209 from templates according to the current configuration.  Unless the files
13210 and actions are specified as TAGs, all are instantiated by default.
13211
13212 Usage: $0 [OPTION]... [TAG]...
13213
13214   -h, --help       print this help, then exit
13215   -V, --version    print version number and configuration settings, then exit
13216       --config     print configuration, then exit
13217   -q, --quiet, --silent
13218                    do not print progress messages
13219   -d, --debug      don't remove temporary files
13220       --recheck    update $as_me by reconfiguring in the same conditions
13221       --file=FILE[:TEMPLATE]
13222                    instantiate the configuration file FILE
13223       --header=FILE[:TEMPLATE]
13224                    instantiate the configuration header FILE
13225
13226 Configuration files:
13227 $config_files
13228
13229 Configuration headers:
13230 $config_headers
13231
13232 Configuration links:
13233 $config_links
13234
13235 Configuration commands:
13236 $config_commands
13237
13238 Report bugs to <http://gcc.gnu.org/bugs.html>."
13239
13240 _ACEOF
13241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13242 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13243 ac_cs_version="\\
13244 libffi config.status 3.0.10rc0
13245 configured by $0, generated by GNU Autoconf 2.65,
13246   with options \\"\$ac_cs_config\\"
13247
13248 Copyright (C) 2009 Free Software Foundation, Inc.
13249 This config.status script is free software; the Free Software Foundation
13250 gives unlimited permission to copy, distribute and modify it."
13251
13252 ac_pwd='$ac_pwd'
13253 srcdir='$srcdir'
13254 INSTALL='$INSTALL'
13255 MKDIR_P='$MKDIR_P'
13256 AWK='$AWK'
13257 test -n "\$AWK" || AWK=awk
13258 _ACEOF
13259
13260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13261 # The default lists apply if the user does not specify any file.
13262 ac_need_defaults=:
13263 while test $# != 0
13264 do
13265   case $1 in
13266   --*=*)
13267     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13268     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13269     ac_shift=:
13270     ;;
13271   *)
13272     ac_option=$1
13273     ac_optarg=$2
13274     ac_shift=shift
13275     ;;
13276   esac
13277
13278   case $ac_option in
13279   # Handling of the options.
13280   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13281     ac_cs_recheck=: ;;
13282   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13283     $as_echo "$ac_cs_version"; exit ;;
13284   --config | --confi | --conf | --con | --co | --c )
13285     $as_echo "$ac_cs_config"; exit ;;
13286   --debug | --debu | --deb | --de | --d | -d )
13287     debug=: ;;
13288   --file | --fil | --fi | --f )
13289     $ac_shift
13290     case $ac_optarg in
13291     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13292     esac
13293     as_fn_append CONFIG_FILES " '$ac_optarg'"
13294     ac_need_defaults=false;;
13295   --header | --heade | --head | --hea )
13296     $ac_shift
13297     case $ac_optarg in
13298     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13299     esac
13300     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13301     ac_need_defaults=false;;
13302   --he | --h)
13303     # Conflict between --help and --header
13304     as_fn_error "ambiguous option: \`$1'
13305 Try \`$0 --help' for more information.";;
13306   --help | --hel | -h )
13307     $as_echo "$ac_cs_usage"; exit ;;
13308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13309   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13310     ac_cs_silent=: ;;
13311
13312   # This is an error.
13313   -*) as_fn_error "unrecognized option: \`$1'
13314 Try \`$0 --help' for more information." ;;
13315
13316   *) as_fn_append ac_config_targets " $1"
13317      ac_need_defaults=false ;;
13318
13319   esac
13320   shift
13321 done
13322
13323 ac_configure_extra_args=
13324
13325 if $ac_cs_silent; then
13326   exec 6>/dev/null
13327   ac_configure_extra_args="$ac_configure_extra_args --silent"
13328 fi
13329
13330 _ACEOF
13331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13332 if \$ac_cs_recheck; then
13333   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13334   shift
13335   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13336   CONFIG_SHELL='$SHELL'
13337   export CONFIG_SHELL
13338   exec "\$@"
13339 fi
13340
13341 _ACEOF
13342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343 exec 5>>config.log
13344 {
13345   echo
13346   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13347 ## Running $as_me. ##
13348 _ASBOX
13349   $as_echo "$ac_log"
13350 } >&5
13351
13352 _ACEOF
13353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13354 #
13355 # INIT-COMMANDS
13356 #
13357 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13358
13359
13360 # The HP-UX ksh and POSIX shell print the target directory to stdout
13361 # if CDPATH is set.
13362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13363
13364 sed_quote_subst='$sed_quote_subst'
13365 double_quote_subst='$double_quote_subst'
13366 delay_variable_subst='$delay_variable_subst'
13367 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13368 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13369 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13370 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13371 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13372 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13373 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13374 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13375 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13376 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13377 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13378 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13379 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13380 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13381 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13382 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13383 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13384 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13385 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13386 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13387 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13388 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13389 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13390 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13391 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13392 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13393 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13394 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13395 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13396 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13397 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13398 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13399 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13400 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13401 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13402 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13403 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13404 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13405 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13406 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13407 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13408 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13409 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13410 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13411 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13412 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13413 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13414 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13415 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13416 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13417 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13418 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13419 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13420 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13421 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13422 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13423 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13424 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13425 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13426 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13427 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13428 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13429 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13430 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13431 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13432 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13433 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13434 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13435 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13436 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13437 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13438 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13439 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13440 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13441 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13442 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13443 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13444 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13445 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13446 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13447 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13448 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13449 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13450 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13451 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13452 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13453 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13454 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13455 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13456 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13457 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13458 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13459 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13460 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13461 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13462 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13463 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13464 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13465 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13466 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13467 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13468 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13469 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13470 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13471 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13472 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13473 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13474 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13476 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13477 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13478 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13479 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13480 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13481 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13482 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13483 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13484 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13485
13486 LTCC='$LTCC'
13487 LTCFLAGS='$LTCFLAGS'
13488 compiler='$compiler_DEFAULT'
13489
13490 # Quote evaled strings.
13491 for var in SED \
13492 GREP \
13493 EGREP \
13494 FGREP \
13495 LD \
13496 NM \
13497 LN_S \
13498 lt_SP2NL \
13499 lt_NL2SP \
13500 reload_flag \
13501 OBJDUMP \
13502 deplibs_check_method \
13503 file_magic_cmd \
13504 AR \
13505 AR_FLAGS \
13506 STRIP \
13507 RANLIB \
13508 CC \
13509 CFLAGS \
13510 compiler \
13511 lt_cv_sys_global_symbol_pipe \
13512 lt_cv_sys_global_symbol_to_cdecl \
13513 lt_cv_sys_global_symbol_to_c_name_address \
13514 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13515 SHELL \
13516 ECHO \
13517 lt_prog_compiler_no_builtin_flag \
13518 lt_prog_compiler_wl \
13519 lt_prog_compiler_pic \
13520 lt_prog_compiler_static \
13521 lt_cv_prog_compiler_c_o \
13522 need_locks \
13523 DSYMUTIL \
13524 NMEDIT \
13525 LIPO \
13526 OTOOL \
13527 OTOOL64 \
13528 shrext_cmds \
13529 export_dynamic_flag_spec \
13530 whole_archive_flag_spec \
13531 compiler_needs_object \
13532 with_gnu_ld \
13533 allow_undefined_flag \
13534 no_undefined_flag \
13535 hardcode_libdir_flag_spec \
13536 hardcode_libdir_flag_spec_ld \
13537 hardcode_libdir_separator \
13538 fix_srcfile_path \
13539 exclude_expsyms \
13540 include_expsyms \
13541 file_list_spec \
13542 variables_saved_for_relink \
13543 libname_spec \
13544 library_names_spec \
13545 soname_spec \
13546 finish_eval \
13547 old_striplib \
13548 striplib; do
13549     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13550     *[\\\\\\\`\\"\\\$]*)
13551       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13552       ;;
13553     *)
13554       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13555       ;;
13556     esac
13557 done
13558
13559 # Double-quote double-evaled strings.
13560 for var in reload_cmds \
13561 old_postinstall_cmds \
13562 old_postuninstall_cmds \
13563 old_archive_cmds \
13564 extract_expsyms_cmds \
13565 old_archive_from_new_cmds \
13566 old_archive_from_expsyms_cmds \
13567 archive_cmds \
13568 archive_expsym_cmds \
13569 module_cmds \
13570 module_expsym_cmds \
13571 export_symbols_cmds \
13572 prelink_cmds \
13573 postinstall_cmds \
13574 postuninstall_cmds \
13575 finish_cmds \
13576 sys_lib_search_path_spec \
13577 sys_lib_dlsearch_path_spec; do
13578     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13579     *[\\\\\\\`\\"\\\$]*)
13580       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13581       ;;
13582     *)
13583       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13584       ;;
13585     esac
13586 done
13587
13588 # Fix-up fallback echo if it was mangled by the above quoting rules.
13589 case \$lt_ECHO in
13590 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13591   ;;
13592 esac
13593
13594 ac_aux_dir='$ac_aux_dir'
13595 xsi_shell='$xsi_shell'
13596 lt_shell_append='$lt_shell_append'
13597
13598 # See if we are running on zsh, and set the options which allow our
13599 # commands through without removal of \ escapes INIT.
13600 if test -n "\${ZSH_VERSION+set}" ; then
13601    setopt NO_GLOB_SUBST
13602 fi
13603
13604
13605     PACKAGE='$PACKAGE'
13606     VERSION='$VERSION'
13607     TIMESTAMP='$TIMESTAMP'
13608     RM='$RM'
13609     ofile='$ofile'
13610
13611
13612
13613 TARGETDIR="$TARGETDIR"
13614
13615 _ACEOF
13616
13617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13618
13619 # Handling of arguments.
13620 for ac_config_target in $ac_config_targets
13621 do
13622   case $ac_config_target in
13623     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13624     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13625     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13626     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13627     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13628     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13629     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13630     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13631     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13632     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13633     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13634     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
13635
13636   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13637   esac
13638 done
13639
13640
13641 # If the user did not use the arguments to specify the items to instantiate,
13642 # then the envvar interface is used.  Set only those that are not.
13643 # We use the long form for the default assignment because of an extremely
13644 # bizarre bug on SunOS 4.1.3.
13645 if $ac_need_defaults; then
13646   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13647   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13648   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13649   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13650 fi
13651
13652 # Have a temporary directory for convenience.  Make it in the build tree
13653 # simply because there is no reason against having it here, and in addition,
13654 # creating and moving files from /tmp can sometimes cause problems.
13655 # Hook for its removal unless debugging.
13656 # Note that there is a small window in which the directory will not be cleaned:
13657 # after its creation but before its name has been assigned to `$tmp'.
13658 $debug ||
13659 {
13660   tmp=
13661   trap 'exit_status=$?
13662   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13663 ' 0
13664   trap 'as_fn_exit 1' 1 2 13 15
13665 }
13666 # Create a (secure) tmp directory for tmp files.
13667
13668 {
13669   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13670   test -n "$tmp" && test -d "$tmp"
13671 }  ||
13672 {
13673   tmp=./conf$$-$RANDOM
13674   (umask 077 && mkdir "$tmp")
13675 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13676
13677 # Set up the scripts for CONFIG_FILES section.
13678 # No need to generate them if there are no CONFIG_FILES.
13679 # This happens for instance with `./config.status config.h'.
13680 if test -n "$CONFIG_FILES"; then
13681
13682
13683 ac_cr=`echo X | tr X '\015'`
13684 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13685 # But we know of no other shell where ac_cr would be empty at this
13686 # point, so we can use a bashism as a fallback.
13687 if test "x$ac_cr" = x; then
13688   eval ac_cr=\$\'\\r\'
13689 fi
13690 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13691 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13692   ac_cs_awk_cr='\r'
13693 else
13694   ac_cs_awk_cr=$ac_cr
13695 fi
13696
13697 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13698 _ACEOF
13699
13700
13701 {
13702   echo "cat >conf$$subs.awk <<_ACEOF" &&
13703   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13704   echo "_ACEOF"
13705 } >conf$$subs.sh ||
13706   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13707 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13708 ac_delim='%!_!# '
13709 for ac_last_try in false false false false false :; do
13710   . ./conf$$subs.sh ||
13711     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13712
13713   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13714   if test $ac_delim_n = $ac_delim_num; then
13715     break
13716   elif $ac_last_try; then
13717     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13718   else
13719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13720   fi
13721 done
13722 rm -f conf$$subs.sh
13723
13724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13725 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13726 _ACEOF
13727 sed -n '
13728 h
13729 s/^/S["/; s/!.*/"]=/
13730 p
13731 g
13732 s/^[^!]*!//
13733 :repl
13734 t repl
13735 s/'"$ac_delim"'$//
13736 t delim
13737 :nl
13738 h
13739 s/\(.\{148\}\)..*/\1/
13740 t more1
13741 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13742 p
13743 n
13744 b repl
13745 :more1
13746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13747 p
13748 g
13749 s/.\{148\}//
13750 t nl
13751 :delim
13752 h
13753 s/\(.\{148\}\)..*/\1/
13754 t more2
13755 s/["\\]/\\&/g; s/^/"/; s/$/"/
13756 p
13757 b
13758 :more2
13759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13760 p
13761 g
13762 s/.\{148\}//
13763 t delim
13764 ' <conf$$subs.awk | sed '
13765 /^[^""]/{
13766   N
13767   s/\n//
13768 }
13769 ' >>$CONFIG_STATUS || ac_write_fail=1
13770 rm -f conf$$subs.awk
13771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13772 _ACAWK
13773 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13774   for (key in S) S_is_set[key] = 1
13775   FS = "\a"
13776
13777 }
13778 {
13779   line = $ 0
13780   nfields = split(line, field, "@")
13781   substed = 0
13782   len = length(field[1])
13783   for (i = 2; i < nfields; i++) {
13784     key = field[i]
13785     keylen = length(key)
13786     if (S_is_set[key]) {
13787       value = S[key]
13788       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13789       len += length(value) + length(field[++i])
13790       substed = 1
13791     } else
13792       len += 1 + keylen
13793   }
13794
13795   print line
13796 }
13797
13798 _ACAWK
13799 _ACEOF
13800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13802   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13803 else
13804   cat
13805 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13806   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13807 _ACEOF
13808
13809 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13810 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13811 # trailing colons and then remove the whole line if VPATH becomes empty
13812 # (actually we leave an empty line to preserve line numbers).
13813 if test "x$srcdir" = x.; then
13814   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13815 s/:*\$(srcdir):*/:/
13816 s/:*\${srcdir}:*/:/
13817 s/:*@srcdir@:*/:/
13818 s/^\([^=]*=[     ]*\):*/\1/
13819 s/:*$//
13820 s/^[^=]*=[       ]*$//
13821 }'
13822 fi
13823
13824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13825 fi # test -n "$CONFIG_FILES"
13826
13827 # Set up the scripts for CONFIG_HEADERS section.
13828 # No need to generate them if there are no CONFIG_HEADERS.
13829 # This happens for instance with `./config.status Makefile'.
13830 if test -n "$CONFIG_HEADERS"; then
13831 cat >"$tmp/defines.awk" <<\_ACAWK ||
13832 BEGIN {
13833 _ACEOF
13834
13835 # Transform confdefs.h into an awk script `defines.awk', embedded as
13836 # here-document in config.status, that substitutes the proper values into
13837 # config.h.in to produce config.h.
13838
13839 # Create a delimiter string that does not exist in confdefs.h, to ease
13840 # handling of long lines.
13841 ac_delim='%!_!# '
13842 for ac_last_try in false false :; do
13843   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13844   if test -z "$ac_t"; then
13845     break
13846   elif $ac_last_try; then
13847     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13848   else
13849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13850   fi
13851 done
13852
13853 # For the awk script, D is an array of macro values keyed by name,
13854 # likewise P contains macro parameters if any.  Preserve backslash
13855 # newline sequences.
13856
13857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13858 sed -n '
13859 s/.\{148\}/&'"$ac_delim"'/g
13860 t rset
13861 :rset
13862 s/^[     ]*#[    ]*define[       ][      ]*/ /
13863 t def
13864 d
13865 :def
13866 s/\\$//
13867 t bsnl
13868 s/["\\]/\\&/g
13869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13870 D["\1"]=" \3"/p
13871 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13872 d
13873 :bsnl
13874 s/["\\]/\\&/g
13875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13876 D["\1"]=" \3\\\\\\n"\\/p
13877 t cont
13878 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13879 t cont
13880 d
13881 :cont
13882 n
13883 s/.\{148\}/&'"$ac_delim"'/g
13884 t clear
13885 :clear
13886 s/\\$//
13887 t bsnlc
13888 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13889 d
13890 :bsnlc
13891 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13892 b cont
13893 ' <confdefs.h | sed '
13894 s/'"$ac_delim"'/"\\\
13895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13896
13897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13898   for (key in D) D_is_set[key] = 1
13899   FS = "\a"
13900 }
13901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13902   line = \$ 0
13903   split(line, arg, " ")
13904   if (arg[1] == "#") {
13905     defundef = arg[2]
13906     mac1 = arg[3]
13907   } else {
13908     defundef = substr(arg[1], 2)
13909     mac1 = arg[2]
13910   }
13911   split(mac1, mac2, "(") #)
13912   macro = mac2[1]
13913   prefix = substr(line, 1, index(line, defundef) - 1)
13914   if (D_is_set[macro]) {
13915     # Preserve the white space surrounding the "#".
13916     print prefix "define", macro P[macro] D[macro]
13917     next
13918   } else {
13919     # Replace #undef with comments.  This is necessary, for example,
13920     # in the case of _POSIX_SOURCE, which is predefined and required
13921     # on some systems where configure will not decide to define it.
13922     if (defundef == "undef") {
13923       print "/*", prefix defundef, macro, "*/"
13924       next
13925     }
13926   }
13927 }
13928 { print }
13929 _ACAWK
13930 _ACEOF
13931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13933 fi # test -n "$CONFIG_HEADERS"
13934
13935
13936 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
13937 shift
13938 for ac_tag
13939 do
13940   case $ac_tag in
13941   :[FHLC]) ac_mode=$ac_tag; continue;;
13942   esac
13943   case $ac_mode$ac_tag in
13944   :[FHL]*:*);;
13945   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13946   :[FH]-) ac_tag=-:-;;
13947   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13948   esac
13949   ac_save_IFS=$IFS
13950   IFS=:
13951   set x $ac_tag
13952   IFS=$ac_save_IFS
13953   shift
13954   ac_file=$1
13955   shift
13956
13957   case $ac_mode in
13958   :L) ac_source=$1;;
13959   :[FH])
13960     ac_file_inputs=
13961     for ac_f
13962     do
13963       case $ac_f in
13964       -) ac_f="$tmp/stdin";;
13965       *) # Look for the file first in the build tree, then in the source tree
13966          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13967          # because $ac_f cannot contain `:'.
13968          test -f "$ac_f" ||
13969            case $ac_f in
13970            [\\/$]*) false;;
13971            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13972            esac ||
13973            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13974       esac
13975       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13976       as_fn_append ac_file_inputs " '$ac_f'"
13977     done
13978
13979     # Let's still pretend it is `configure' which instantiates (i.e., don't
13980     # use $as_me), people would be surprised to read:
13981     #    /* config.h.  Generated by config.status.  */
13982     configure_input='Generated from '`
13983           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13984         `' by configure.'
13985     if test x"$ac_file" != x-; then
13986       configure_input="$ac_file.  $configure_input"
13987       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13988 $as_echo "$as_me: creating $ac_file" >&6;}
13989     fi
13990     # Neutralize special characters interpreted by sed in replacement strings.
13991     case $configure_input in #(
13992     *\&* | *\|* | *\\* )
13993        ac_sed_conf_input=`$as_echo "$configure_input" |
13994        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13995     *) ac_sed_conf_input=$configure_input;;
13996     esac
13997
13998     case $ac_tag in
13999     *:-:* | *:-) cat >"$tmp/stdin" \
14000       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14001     esac
14002     ;;
14003   esac
14004
14005   ac_dir=`$as_dirname -- "$ac_file" ||
14006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14007          X"$ac_file" : 'X\(//\)[^/]' \| \
14008          X"$ac_file" : 'X\(//\)$' \| \
14009          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14010 $as_echo X"$ac_file" |
14011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14012             s//\1/
14013             q
14014           }
14015           /^X\(\/\/\)[^/].*/{
14016             s//\1/
14017             q
14018           }
14019           /^X\(\/\/\)$/{
14020             s//\1/
14021             q
14022           }
14023           /^X\(\/\).*/{
14024             s//\1/
14025             q
14026           }
14027           s/.*/./; q'`
14028   as_dir="$ac_dir"; as_fn_mkdir_p
14029   ac_builddir=.
14030
14031 case "$ac_dir" in
14032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14033 *)
14034   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14035   # A ".." for each directory in $ac_dir_suffix.
14036   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14037   case $ac_top_builddir_sub in
14038   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14039   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14040   esac ;;
14041 esac
14042 ac_abs_top_builddir=$ac_pwd
14043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14044 # for backward compatibility:
14045 ac_top_builddir=$ac_top_build_prefix
14046
14047 case $srcdir in
14048   .)  # We are building in place.
14049     ac_srcdir=.
14050     ac_top_srcdir=$ac_top_builddir_sub
14051     ac_abs_top_srcdir=$ac_pwd ;;
14052   [\\/]* | ?:[\\/]* )  # Absolute name.
14053     ac_srcdir=$srcdir$ac_dir_suffix;
14054     ac_top_srcdir=$srcdir
14055     ac_abs_top_srcdir=$srcdir ;;
14056   *) # Relative name.
14057     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14058     ac_top_srcdir=$ac_top_build_prefix$srcdir
14059     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14060 esac
14061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14062
14063
14064   case $ac_mode in
14065   :F)
14066   #
14067   # CONFIG_FILE
14068   #
14069
14070   case $INSTALL in
14071   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14072   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14073   esac
14074   ac_MKDIR_P=$MKDIR_P
14075   case $MKDIR_P in
14076   [\\/$]* | ?:[\\/]* ) ;;
14077   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14078   esac
14079 _ACEOF
14080
14081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14082 # If the template does not know about datarootdir, expand it.
14083 # FIXME: This hack should be removed a few years after 2.60.
14084 ac_datarootdir_hack=; ac_datarootdir_seen=
14085 ac_sed_dataroot='
14086 /datarootdir/ {
14087   p
14088   q
14089 }
14090 /@datadir@/p
14091 /@docdir@/p
14092 /@infodir@/p
14093 /@localedir@/p
14094 /@mandir@/p'
14095 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14096 *datarootdir*) ac_datarootdir_seen=yes;;
14097 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14098   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14099 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14100 _ACEOF
14101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14102   ac_datarootdir_hack='
14103   s&@datadir@&$datadir&g
14104   s&@docdir@&$docdir&g
14105   s&@infodir@&$infodir&g
14106   s&@localedir@&$localedir&g
14107   s&@mandir@&$mandir&g
14108   s&\\\${datarootdir}&$datarootdir&g' ;;
14109 esac
14110 _ACEOF
14111
14112 # Neutralize VPATH when `$srcdir' = `.'.
14113 # Shell code in configure.ac might set extrasub.
14114 # FIXME: do we really want to maintain this feature?
14115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14116 ac_sed_extra="$ac_vpsub
14117 $extrasub
14118 _ACEOF
14119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14120 :t
14121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14122 s|@configure_input@|$ac_sed_conf_input|;t t
14123 s&@top_builddir@&$ac_top_builddir_sub&;t t
14124 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14125 s&@srcdir@&$ac_srcdir&;t t
14126 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14127 s&@top_srcdir@&$ac_top_srcdir&;t t
14128 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14129 s&@builddir@&$ac_builddir&;t t
14130 s&@abs_builddir@&$ac_abs_builddir&;t t
14131 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14132 s&@INSTALL@&$ac_INSTALL&;t t
14133 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14134 $ac_datarootdir_hack
14135 "
14136 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14137   || as_fn_error "could not create $ac_file" "$LINENO" 5
14138
14139 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14140   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14141   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14142   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14143 which seems to be undefined.  Please make sure it is defined." >&5
14144 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14145 which seems to be undefined.  Please make sure it is defined." >&2;}
14146
14147   rm -f "$tmp/stdin"
14148   case $ac_file in
14149   -) cat "$tmp/out" && rm -f "$tmp/out";;
14150   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14151   esac \
14152   || as_fn_error "could not create $ac_file" "$LINENO" 5
14153  ;;
14154   :H)
14155   #
14156   # CONFIG_HEADER
14157   #
14158   if test x"$ac_file" != x-; then
14159     {
14160       $as_echo "/* $configure_input  */" \
14161       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14162     } >"$tmp/config.h" \
14163       || as_fn_error "could not create $ac_file" "$LINENO" 5
14164     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14165       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14166 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14167     else
14168       rm -f "$ac_file"
14169       mv "$tmp/config.h" "$ac_file" \
14170         || as_fn_error "could not create $ac_file" "$LINENO" 5
14171     fi
14172   else
14173     $as_echo "/* $configure_input  */" \
14174       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14175       || as_fn_error "could not create -" "$LINENO" 5
14176   fi
14177 # Compute "$ac_file"'s index in $config_headers.
14178 _am_arg="$ac_file"
14179 _am_stamp_count=1
14180 for _am_header in $config_headers :; do
14181   case $_am_header in
14182     $_am_arg | $_am_arg:* )
14183       break ;;
14184     * )
14185       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14186   esac
14187 done
14188 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14189 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14190          X"$_am_arg" : 'X\(//\)[^/]' \| \
14191          X"$_am_arg" : 'X\(//\)$' \| \
14192          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14193 $as_echo X"$_am_arg" |
14194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14195             s//\1/
14196             q
14197           }
14198           /^X\(\/\/\)[^/].*/{
14199             s//\1/
14200             q
14201           }
14202           /^X\(\/\/\)$/{
14203             s//\1/
14204             q
14205           }
14206           /^X\(\/\).*/{
14207             s//\1/
14208             q
14209           }
14210           s/.*/./; q'`/stamp-h$_am_stamp_count
14211  ;;
14212   :L)
14213   #
14214   # CONFIG_LINK
14215   #
14216
14217   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14218     :
14219   else
14220     # Prefer the file from the source tree if names are identical.
14221     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14222       ac_source=$srcdir/$ac_source
14223     fi
14224
14225     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14226 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14227
14228     if test ! -r "$ac_source"; then
14229       as_fn_error "$ac_source: file not found" "$LINENO" 5
14230     fi
14231     rm -f "$ac_file"
14232
14233     # Try a relative symlink, then a hard link, then a copy.
14234     case $srcdir in
14235     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14236         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14237     esac
14238     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14239       ln "$ac_source" "$ac_file" 2>/dev/null ||
14240       cp -p "$ac_source" "$ac_file" ||
14241       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14242   fi
14243  ;;
14244   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14245 $as_echo "$as_me: executing $ac_file commands" >&6;}
14246  ;;
14247   esac
14248
14249
14250   case $ac_file$ac_mode in
14251     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14252   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14253   # are listed without --file.  Let's play safe and only enable the eval
14254   # if we detect the quoting.
14255   case $CONFIG_FILES in
14256   *\'*) eval set x "$CONFIG_FILES" ;;
14257   *)   set x $CONFIG_FILES ;;
14258   esac
14259   shift
14260   for mf
14261   do
14262     # Strip MF so we end up with the name of the file.
14263     mf=`echo "$mf" | sed -e 's/:.*$//'`
14264     # Check whether this is an Automake generated Makefile or not.
14265     # We used to match only the files named `Makefile.in', but
14266     # some people rename them; so instead we look at the file content.
14267     # Grep'ing the first line is not enough: some people post-process
14268     # each Makefile.in and add a new line on top of each file to say so.
14269     # Grep'ing the whole file is not good either: AIX grep has a line
14270     # limit of 2048, but all sed's we know have understand at least 4000.
14271     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14272       dirpart=`$as_dirname -- "$mf" ||
14273 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14274          X"$mf" : 'X\(//\)[^/]' \| \
14275          X"$mf" : 'X\(//\)$' \| \
14276          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14277 $as_echo X"$mf" |
14278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14279             s//\1/
14280             q
14281           }
14282           /^X\(\/\/\)[^/].*/{
14283             s//\1/
14284             q
14285           }
14286           /^X\(\/\/\)$/{
14287             s//\1/
14288             q
14289           }
14290           /^X\(\/\).*/{
14291             s//\1/
14292             q
14293           }
14294           s/.*/./; q'`
14295     else
14296       continue
14297     fi
14298     # Extract the definition of DEPDIR, am__include, and am__quote
14299     # from the Makefile without running `make'.
14300     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14301     test -z "$DEPDIR" && continue
14302     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14303     test -z "am__include" && continue
14304     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14305     # When using ansi2knr, U may be empty or an underscore; expand it
14306     U=`sed -n 's/^U = //p' < "$mf"`
14307     # Find all dependency output files, they are included files with
14308     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14309     # simplest approach to changing $(DEPDIR) to its actual value in the
14310     # expansion.
14311     for file in `sed -n "
14312       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14313          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14314       # Make sure the directory exists.
14315       test -f "$dirpart/$file" && continue
14316       fdir=`$as_dirname -- "$file" ||
14317 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14318          X"$file" : 'X\(//\)[^/]' \| \
14319          X"$file" : 'X\(//\)$' \| \
14320          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14321 $as_echo X"$file" |
14322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14323             s//\1/
14324             q
14325           }
14326           /^X\(\/\/\)[^/].*/{
14327             s//\1/
14328             q
14329           }
14330           /^X\(\/\/\)$/{
14331             s//\1/
14332             q
14333           }
14334           /^X\(\/\).*/{
14335             s//\1/
14336             q
14337           }
14338           s/.*/./; q'`
14339       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14340       # echo "creating $dirpart/$file"
14341       echo '# dummy' > "$dirpart/$file"
14342     done
14343   done
14344 }
14345  ;;
14346     "libtool":C)
14347
14348     # See if we are running on zsh, and set the options which allow our
14349     # commands through without removal of \ escapes.
14350     if test -n "${ZSH_VERSION+set}" ; then
14351       setopt NO_GLOB_SUBST
14352     fi
14353
14354     cfgfile="${ofile}T"
14355     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14356     $RM "$cfgfile"
14357
14358     cat <<_LT_EOF >> "$cfgfile"
14359 #! $SHELL
14360
14361 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14362 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14364 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14365 #
14366 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14367 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14368 #   Written by Gordon Matzigkeit, 1996
14369 #
14370 #   This file is part of GNU Libtool.
14371 #
14372 # GNU Libtool is free software; you can redistribute it and/or
14373 # modify it under the terms of the GNU General Public License as
14374 # published by the Free Software Foundation; either version 2 of
14375 # the License, or (at your option) any later version.
14376 #
14377 # As a special exception to the GNU General Public License,
14378 # if you distribute this file as part of a program or library that
14379 # is built using GNU Libtool, you may include this file under the
14380 # same distribution terms that you use for the rest of that program.
14381 #
14382 # GNU Libtool is distributed in the hope that it will be useful,
14383 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14385 # GNU General Public License for more details.
14386 #
14387 # You should have received a copy of the GNU General Public License
14388 # along with GNU Libtool; see the file COPYING.  If not, a copy
14389 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14390 # obtained by writing to the Free Software Foundation, Inc.,
14391 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14392
14393
14394 # The names of the tagged configurations supported by this script.
14395 available_tags=""
14396
14397 # ### BEGIN LIBTOOL CONFIG
14398
14399 # Which release of libtool.m4 was used?
14400 macro_version=$macro_version
14401 macro_revision=$macro_revision
14402
14403 # Whether or not to build shared libraries.
14404 build_libtool_libs=$enable_shared
14405
14406 # Whether or not to build static libraries.
14407 build_old_libs=$enable_static
14408
14409 # What type of objects to build.
14410 pic_mode=$pic_mode
14411
14412 # Whether or not to optimize for fast installation.
14413 fast_install=$enable_fast_install
14414
14415 # The host system.
14416 host_alias=$host_alias
14417 host=$host
14418 host_os=$host_os
14419
14420 # The build system.
14421 build_alias=$build_alias
14422 build=$build
14423 build_os=$build_os
14424
14425 # A sed program that does not truncate output.
14426 SED=$lt_SED
14427
14428 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14429 Xsed="\$SED -e 1s/^X//"
14430
14431 # A grep program that handles long lines.
14432 GREP=$lt_GREP
14433
14434 # An ERE matcher.
14435 EGREP=$lt_EGREP
14436
14437 # A literal string matcher.
14438 FGREP=$lt_FGREP
14439
14440 # A BSD- or MS-compatible name lister.
14441 NM=$lt_NM
14442
14443 # Whether we need soft or hard links.
14444 LN_S=$lt_LN_S
14445
14446 # What is the maximum length of a command?
14447 max_cmd_len=$max_cmd_len
14448
14449 # Object file suffix (normally "o").
14450 objext=$ac_objext
14451
14452 # Executable file suffix (normally "").
14453 exeext=$exeext
14454
14455 # whether the shell understands "unset".
14456 lt_unset=$lt_unset
14457
14458 # turn spaces into newlines.
14459 SP2NL=$lt_lt_SP2NL
14460
14461 # turn newlines into spaces.
14462 NL2SP=$lt_lt_NL2SP
14463
14464 # How to create reloadable object files.
14465 reload_flag=$lt_reload_flag
14466 reload_cmds=$lt_reload_cmds
14467
14468 # An object symbol dumper.
14469 OBJDUMP=$lt_OBJDUMP
14470
14471 # Method to check whether dependent libraries are shared objects.
14472 deplibs_check_method=$lt_deplibs_check_method
14473
14474 # Command to use when deplibs_check_method == "file_magic".
14475 file_magic_cmd=$lt_file_magic_cmd
14476
14477 # The archiver.
14478 AR=$lt_AR
14479 AR_FLAGS=$lt_AR_FLAGS
14480
14481 # A symbol stripping program.
14482 STRIP=$lt_STRIP
14483
14484 # Commands used to install an old-style archive.
14485 RANLIB=$lt_RANLIB
14486 old_postinstall_cmds=$lt_old_postinstall_cmds
14487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14488
14489 # A C compiler.
14490 LTCC=$lt_CC
14491
14492 # LTCC compiler flags.
14493 LTCFLAGS=$lt_CFLAGS
14494
14495 # Take the output of nm and produce a listing of raw symbols and C names.
14496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14497
14498 # Transform the output of nm in a proper C declaration.
14499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14500
14501 # Transform the output of nm in a C name address pair.
14502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14503
14504 # Transform the output of nm in a C name address pair when lib prefix is needed.
14505 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14506
14507 # The name of the directory that contains temporary libtool files.
14508 objdir=$objdir
14509
14510 # Shell to use when invoking shell scripts.
14511 SHELL=$lt_SHELL
14512
14513 # An echo program that does not interpret backslashes.
14514 ECHO=$lt_ECHO
14515
14516 # Used to examine libraries when file_magic_cmd begins with "file".
14517 MAGIC_CMD=$MAGIC_CMD
14518
14519 # Must we lock files when doing compilation?
14520 need_locks=$lt_need_locks
14521
14522 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14523 DSYMUTIL=$lt_DSYMUTIL
14524
14525 # Tool to change global to local symbols on Mac OS X.
14526 NMEDIT=$lt_NMEDIT
14527
14528 # Tool to manipulate fat objects and archives on Mac OS X.
14529 LIPO=$lt_LIPO
14530
14531 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14532 OTOOL=$lt_OTOOL
14533
14534 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14535 OTOOL64=$lt_OTOOL64
14536
14537 # Old archive suffix (normally "a").
14538 libext=$libext
14539
14540 # Shared library suffix (normally ".so").
14541 shrext_cmds=$lt_shrext_cmds
14542
14543 # The commands to extract the exported symbol list from a shared archive.
14544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14545
14546 # Variables whose values should be saved in libtool wrapper scripts and
14547 # restored at link time.
14548 variables_saved_for_relink=$lt_variables_saved_for_relink
14549
14550 # Do we need the "lib" prefix for modules?
14551 need_lib_prefix=$need_lib_prefix
14552
14553 # Do we need a version for libraries?
14554 need_version=$need_version
14555
14556 # Library versioning type.
14557 version_type=$version_type
14558
14559 # Shared library runtime path variable.
14560 runpath_var=$runpath_var
14561
14562 # Shared library path variable.
14563 shlibpath_var=$shlibpath_var
14564
14565 # Is shlibpath searched before the hard-coded library search path?
14566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14567
14568 # Format of library name prefix.
14569 libname_spec=$lt_libname_spec
14570
14571 # List of archive names.  First name is the real one, the rest are links.
14572 # The last name is the one that the linker finds with -lNAME
14573 library_names_spec=$lt_library_names_spec
14574
14575 # The coded name of the library, if different from the real name.
14576 soname_spec=$lt_soname_spec
14577
14578 # Command to use after installation of a shared archive.
14579 postinstall_cmds=$lt_postinstall_cmds
14580
14581 # Command to use after uninstallation of a shared archive.
14582 postuninstall_cmds=$lt_postuninstall_cmds
14583
14584 # Commands used to finish a libtool library installation in a directory.
14585 finish_cmds=$lt_finish_cmds
14586
14587 # As "finish_cmds", except a single script fragment to be evaled but
14588 # not shown.
14589 finish_eval=$lt_finish_eval
14590
14591 # Whether we should hardcode library paths into libraries.
14592 hardcode_into_libs=$hardcode_into_libs
14593
14594 # Compile-time system search path for libraries.
14595 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14596
14597 # Run-time system search path for libraries.
14598 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14599
14600 # Whether dlopen is supported.
14601 dlopen_support=$enable_dlopen
14602
14603 # Whether dlopen of programs is supported.
14604 dlopen_self=$enable_dlopen_self
14605
14606 # Whether dlopen of statically linked programs is supported.
14607 dlopen_self_static=$enable_dlopen_self_static
14608
14609 # Commands to strip libraries.
14610 old_striplib=$lt_old_striplib
14611 striplib=$lt_striplib
14612
14613
14614 # The linker used to build libraries.
14615 LD=$lt_LD
14616
14617 # Commands used to build an old-style archive.
14618 old_archive_cmds=$lt_old_archive_cmds
14619
14620 # A language specific compiler.
14621 CC=$lt_compiler
14622
14623 # Is the compiler the GNU compiler?
14624 with_gcc=$GCC
14625
14626 # Compiler flag to turn off builtin functions.
14627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14628
14629 # How to pass a linker flag through the compiler.
14630 wl=$lt_lt_prog_compiler_wl
14631
14632 # Additional compiler flags for building library objects.
14633 pic_flag=$lt_lt_prog_compiler_pic
14634
14635 # Compiler flag to prevent dynamic linking.
14636 link_static_flag=$lt_lt_prog_compiler_static
14637
14638 # Does compiler simultaneously support -c and -o options?
14639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14640
14641 # Whether or not to add -lc for building shared libraries.
14642 build_libtool_need_lc=$archive_cmds_need_lc
14643
14644 # Whether or not to disallow shared libs when runtime libs are static.
14645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14646
14647 # Compiler flag to allow reflexive dlopens.
14648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14649
14650 # Compiler flag to generate shared objects directly from archives.
14651 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14652
14653 # Whether the compiler copes with passing no objects directly.
14654 compiler_needs_object=$lt_compiler_needs_object
14655
14656 # Create an old-style archive from a shared archive.
14657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14658
14659 # Create a temporary old-style archive to link instead of a shared archive.
14660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14661
14662 # Commands used to build a shared archive.
14663 archive_cmds=$lt_archive_cmds
14664 archive_expsym_cmds=$lt_archive_expsym_cmds
14665
14666 # Commands used to build a loadable module if different from building
14667 # a shared archive.
14668 module_cmds=$lt_module_cmds
14669 module_expsym_cmds=$lt_module_expsym_cmds
14670
14671 # Whether we are building with GNU ld or not.
14672 with_gnu_ld=$lt_with_gnu_ld
14673
14674 # Flag that allows shared libraries with undefined symbols to be built.
14675 allow_undefined_flag=$lt_allow_undefined_flag
14676
14677 # Flag that enforces no undefined symbols.
14678 no_undefined_flag=$lt_no_undefined_flag
14679
14680 # Flag to hardcode \$libdir into a binary during linking.
14681 # This must work even if \$libdir does not exist
14682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14683
14684 # If ld is used when linking, flag to hardcode \$libdir into a binary
14685 # during linking.  This must work even if \$libdir does not exist.
14686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14687
14688 # Whether we need a single "-rpath" flag with a separated argument.
14689 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14690
14691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14692 # DIR into the resulting binary.
14693 hardcode_direct=$hardcode_direct
14694
14695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14696 # DIR into the resulting binary and the resulting library dependency is
14697 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14698 # library is relocated.
14699 hardcode_direct_absolute=$hardcode_direct_absolute
14700
14701 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14702 # into the resulting binary.
14703 hardcode_minus_L=$hardcode_minus_L
14704
14705 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14706 # into the resulting binary.
14707 hardcode_shlibpath_var=$hardcode_shlibpath_var
14708
14709 # Set to "yes" if building a shared library automatically hardcodes DIR
14710 # into the library and all subsequent libraries and executables linked
14711 # against it.
14712 hardcode_automatic=$hardcode_automatic
14713
14714 # Set to yes if linker adds runtime paths of dependent libraries
14715 # to runtime path list.
14716 inherit_rpath=$inherit_rpath
14717
14718 # Whether libtool must link a program against all its dependency libraries.
14719 link_all_deplibs=$link_all_deplibs
14720
14721 # Fix the shell variable \$srcfile for the compiler.
14722 fix_srcfile_path=$lt_fix_srcfile_path
14723
14724 # Set to "yes" if exported symbols are required.
14725 always_export_symbols=$always_export_symbols
14726
14727 # The commands to list exported symbols.
14728 export_symbols_cmds=$lt_export_symbols_cmds
14729
14730 # Symbols that should not be listed in the preloaded symbols.
14731 exclude_expsyms=$lt_exclude_expsyms
14732
14733 # Symbols that must always be exported.
14734 include_expsyms=$lt_include_expsyms
14735
14736 # Commands necessary for linking programs (against libraries) with templates.
14737 prelink_cmds=$lt_prelink_cmds
14738
14739 # Specify filename containing input files.
14740 file_list_spec=$lt_file_list_spec
14741
14742 # How to hardcode a shared library path into an executable.
14743 hardcode_action=$hardcode_action
14744
14745 # ### END LIBTOOL CONFIG
14746
14747 _LT_EOF
14748
14749   case $host_os in
14750   aix3*)
14751     cat <<\_LT_EOF >> "$cfgfile"
14752 # AIX sometimes has problems with the GCC collect2 program.  For some
14753 # reason, if we set the COLLECT_NAMES environment variable, the problems
14754 # vanish in a puff of smoke.
14755 if test "X${COLLECT_NAMES+set}" != Xset; then
14756   COLLECT_NAMES=
14757   export COLLECT_NAMES
14758 fi
14759 _LT_EOF
14760     ;;
14761   esac
14762
14763
14764 ltmain="$ac_aux_dir/ltmain.sh"
14765
14766
14767   # We use sed instead of cat because bash on DJGPP gets confused if
14768   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14769   # text mode, it properly converts lines to CR/LF.  This bash problem
14770   # is reportedly fixed, but why not run on old versions too?
14771   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14772     || (rm -f "$cfgfile"; exit 1)
14773
14774   case $xsi_shell in
14775   yes)
14776     cat << \_LT_EOF >> "$cfgfile"
14777
14778 # func_dirname file append nondir_replacement
14779 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14780 # otherwise set result to NONDIR_REPLACEMENT.
14781 func_dirname ()
14782 {
14783   case ${1} in
14784     */*) func_dirname_result="${1%/*}${2}" ;;
14785     *  ) func_dirname_result="${3}" ;;
14786   esac
14787 }
14788
14789 # func_basename file
14790 func_basename ()
14791 {
14792   func_basename_result="${1##*/}"
14793 }
14794
14795 # func_dirname_and_basename file append nondir_replacement
14796 # perform func_basename and func_dirname in a single function
14797 # call:
14798 #   dirname:  Compute the dirname of FILE.  If nonempty,
14799 #             add APPEND to the result, otherwise set result
14800 #             to NONDIR_REPLACEMENT.
14801 #             value returned in "$func_dirname_result"
14802 #   basename: Compute filename of FILE.
14803 #             value retuned in "$func_basename_result"
14804 # Implementation must be kept synchronized with func_dirname
14805 # and func_basename. For efficiency, we do not delegate to
14806 # those functions but instead duplicate the functionality here.
14807 func_dirname_and_basename ()
14808 {
14809   case ${1} in
14810     */*) func_dirname_result="${1%/*}${2}" ;;
14811     *  ) func_dirname_result="${3}" ;;
14812   esac
14813   func_basename_result="${1##*/}"
14814 }
14815
14816 # func_stripname prefix suffix name
14817 # strip PREFIX and SUFFIX off of NAME.
14818 # PREFIX and SUFFIX must not contain globbing or regex special
14819 # characters, hashes, percent signs, but SUFFIX may contain a leading
14820 # dot (in which case that matches only a dot).
14821 func_stripname ()
14822 {
14823   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14824   # positional parameters, so assign one to ordinary parameter first.
14825   func_stripname_result=${3}
14826   func_stripname_result=${func_stripname_result#"${1}"}
14827   func_stripname_result=${func_stripname_result%"${2}"}
14828 }
14829
14830 # func_opt_split
14831 func_opt_split ()
14832 {
14833   func_opt_split_opt=${1%%=*}
14834   func_opt_split_arg=${1#*=}
14835 }
14836
14837 # func_lo2o object
14838 func_lo2o ()
14839 {
14840   case ${1} in
14841     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14842     *)    func_lo2o_result=${1} ;;
14843   esac
14844 }
14845
14846 # func_xform libobj-or-source
14847 func_xform ()
14848 {
14849   func_xform_result=${1%.*}.lo
14850 }
14851
14852 # func_arith arithmetic-term...
14853 func_arith ()
14854 {
14855   func_arith_result=$(( $* ))
14856 }
14857
14858 # func_len string
14859 # STRING may not start with a hyphen.
14860 func_len ()
14861 {
14862   func_len_result=${#1}
14863 }
14864
14865 _LT_EOF
14866     ;;
14867   *) # Bourne compatible functions.
14868     cat << \_LT_EOF >> "$cfgfile"
14869
14870 # func_dirname file append nondir_replacement
14871 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14872 # otherwise set result to NONDIR_REPLACEMENT.
14873 func_dirname ()
14874 {
14875   # Extract subdirectory from the argument.
14876   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14877   if test "X$func_dirname_result" = "X${1}"; then
14878     func_dirname_result="${3}"
14879   else
14880     func_dirname_result="$func_dirname_result${2}"
14881   fi
14882 }
14883
14884 # func_basename file
14885 func_basename ()
14886 {
14887   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14888 }
14889
14890
14891 # func_stripname prefix suffix name
14892 # strip PREFIX and SUFFIX off of NAME.
14893 # PREFIX and SUFFIX must not contain globbing or regex special
14894 # characters, hashes, percent signs, but SUFFIX may contain a leading
14895 # dot (in which case that matches only a dot).
14896 # func_strip_suffix prefix name
14897 func_stripname ()
14898 {
14899   case ${2} in
14900     .*) func_stripname_result=`$ECHO "X${3}" \
14901            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14902     *)  func_stripname_result=`$ECHO "X${3}" \
14903            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14904   esac
14905 }
14906
14907 # sed scripts:
14908 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14909 my_sed_long_arg='1s/^-[^=]*=//'
14910
14911 # func_opt_split
14912 func_opt_split ()
14913 {
14914   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14915   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14916 }
14917
14918 # func_lo2o object
14919 func_lo2o ()
14920 {
14921   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14922 }
14923
14924 # func_xform libobj-or-source
14925 func_xform ()
14926 {
14927   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14928 }
14929
14930 # func_arith arithmetic-term...
14931 func_arith ()
14932 {
14933   func_arith_result=`expr "$@"`
14934 }
14935
14936 # func_len string
14937 # STRING may not start with a hyphen.
14938 func_len ()
14939 {
14940   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14941 }
14942
14943 _LT_EOF
14944 esac
14945
14946 case $lt_shell_append in
14947   yes)
14948     cat << \_LT_EOF >> "$cfgfile"
14949
14950 # func_append var value
14951 # Append VALUE to the end of shell variable VAR.
14952 func_append ()
14953 {
14954   eval "$1+=\$2"
14955 }
14956 _LT_EOF
14957     ;;
14958   *)
14959     cat << \_LT_EOF >> "$cfgfile"
14960
14961 # func_append var value
14962 # Append VALUE to the end of shell variable VAR.
14963 func_append ()
14964 {
14965   eval "$1=\$$1\$2"
14966 }
14967
14968 _LT_EOF
14969     ;;
14970   esac
14971
14972
14973   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14974     || (rm -f "$cfgfile"; exit 1)
14975
14976   mv -f "$cfgfile" "$ofile" ||
14977     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14978   chmod +x "$ofile"
14979
14980  ;;
14981     "include":C) test -d include || mkdir include ;;
14982     "src":C)
14983 test -d src || mkdir src
14984 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
14985  ;;
14986
14987   esac
14988 done # for ac_tag
14989
14990
14991 as_fn_exit 0
14992 _ACEOF
14993 ac_clean_files=$ac_clean_files_save
14994
14995 test $ac_write_fail = 0 ||
14996   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14997
14998
14999 # configure is writing to config.log, and then calls config.status.
15000 # config.status does its own redirection, appending to config.log.
15001 # Unfortunately, on DOS this fails, as config.log is still kept open
15002 # by configure, so config.status won't be able to write to it; its
15003 # output is simply discarded.  So we exec the FD to /dev/null,
15004 # effectively closing config.log, so it can be properly (re)opened and
15005 # appended to by config.status.  When coming back to configure, we
15006 # need to make the FD available again.
15007 if test "$no_create" != yes; then
15008   ac_cs_success=:
15009   ac_config_status_args=
15010   test "$silent" = yes &&
15011     ac_config_status_args="$ac_config_status_args --quiet"
15012   exec 5>/dev/null
15013   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15014   exec 5>>config.log
15015   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15016   # would make configure fail if this is the last instruction.
15017   $ac_cs_success || as_fn_exit $?
15018 fi
15019 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15021 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15022 fi
15023