Rebase
[platform/upstream/libffi.git] / .pc / debug-build / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libffi 3.0.10rc0.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libffi'
747 PACKAGE_TARNAME='libffi'
748 PACKAGE_VERSION='3.0.10rc0'
749 PACKAGE_STRING='libffi 3.0.10rc0'
750 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
751
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 #  include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 #  include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 toolexeclibdir
793 toolexecdir
794 TARGETDIR
795 TARGET
796 HAVE_LONG_DOUBLE
797 ALLOCA
798 PA64_HPUX_FALSE
799 PA64_HPUX_TRUE
800 PA_HPUX_FALSE
801 PA_HPUX_TRUE
802 PA_LINUX_FALSE
803 PA_LINUX_TRUE
804 SH64_FALSE
805 SH64_TRUE
806 SH_FALSE
807 SH_TRUE
808 X86_64_FALSE
809 X86_64_TRUE
810 S390_FALSE
811 S390_TRUE
812 FRV_FALSE
813 FRV_TRUE
814 LIBFFI_CRIS_FALSE
815 LIBFFI_CRIS_TRUE
816 AVR32_FALSE
817 AVR32_TRUE
818 ARM_FALSE
819 ARM_TRUE
820 POWERPC_FREEBSD_FALSE
821 POWERPC_FREEBSD_TRUE
822 POWERPC_DARWIN_FALSE
823 POWERPC_DARWIN_TRUE
824 POWERPC_AIX_FALSE
825 POWERPC_AIX_TRUE
826 POWERPC_FALSE
827 POWERPC_TRUE
828 MOXIE_FALSE
829 MOXIE_TRUE
830 M68K_FALSE
831 M68K_TRUE
832 M32R_FALSE
833 M32R_TRUE
834 IA64_FALSE
835 IA64_TRUE
836 ALPHA_FALSE
837 ALPHA_TRUE
838 X86_DARWIN_FALSE
839 X86_DARWIN_TRUE
840 X86_WIN64_FALSE
841 X86_WIN64_TRUE
842 X86_WIN32_FALSE
843 X86_WIN32_TRUE
844 X86_FREEBSD_FALSE
845 X86_FREEBSD_TRUE
846 X86_FALSE
847 X86_TRUE
848 SPARC_FALSE
849 SPARC_TRUE
850 MIPS_FALSE
851 MIPS_TRUE
852 AM_LTLDFLAGS
853 AM_RUNTESTFLAGS
854 TESTSUBDIR_FALSE
855 TESTSUBDIR_TRUE
856 MAINT
857 MAINTAINER_MODE_FALSE
858 MAINTAINER_MODE_TRUE
859 CPP
860 OTOOL64
861 OTOOL
862 LIPO
863 NMEDIT
864 DSYMUTIL
865 lt_ECHO
866 RANLIB
867 AR
868 OBJDUMP
869 LN_S
870 NM
871 ac_ct_DUMPBIN
872 DUMPBIN
873 LD
874 FGREP
875 EGREP
876 GREP
877 SED
878 LIBTOOL
879 am__fastdepCCAS_FALSE
880 am__fastdepCCAS_TRUE
881 CCASDEPMODE
882 CCASFLAGS
883 CCAS
884 am__fastdepCC_FALSE
885 am__fastdepCC_TRUE
886 CCDEPMODE
887 AMDEPBACKSLASH
888 AMDEP_FALSE
889 AMDEP_TRUE
890 am__quote
891 am__include
892 DEPDIR
893 OBJEXT
894 EXEEXT
895 ac_ct_CC
896 CPPFLAGS
897 LDFLAGS
898 CFLAGS
899 CC
900 am__untar
901 am__tar
902 AMTAR
903 am__leading_dot
904 SET_MAKE
905 AWK
906 mkdir_p
907 MKDIR_P
908 INSTALL_STRIP_PROGRAM
909 STRIP
910 install_sh
911 MAKEINFO
912 AUTOHEADER
913 AUTOMAKE
914 AUTOCONF
915 ACLOCAL
916 VERSION
917 PACKAGE
918 CYGPATH_W
919 am__isrc
920 INSTALL_DATA
921 INSTALL_SCRIPT
922 INSTALL_PROGRAM
923 target_os
924 target_vendor
925 target_cpu
926 target
927 host_os
928 host_vendor
929 host_cpu
930 host
931 build_os
932 build_vendor
933 build_cpu
934 build
935 target_alias
936 host_alias
937 build_alias
938 LIBS
939 ECHO_T
940 ECHO_N
941 ECHO_C
942 DEFS
943 mandir
944 localedir
945 libdir
946 psdir
947 pdfdir
948 dvidir
949 htmldir
950 infodir
951 docdir
952 oldincludedir
953 includedir
954 localstatedir
955 sharedstatedir
956 sysconfdir
957 datadir
958 datarootdir
959 libexecdir
960 sbindir
961 bindir
962 program_transform_name
963 prefix
964 exec_prefix
965 PACKAGE_BUGREPORT
966 PACKAGE_STRING
967 PACKAGE_VERSION
968 PACKAGE_TARNAME
969 PACKAGE_NAME
970 PATH_SEPARATOR
971 SHELL'
972 ac_subst_files=''
973 ac_user_opts='
974 enable_option_checking
975 enable_dependency_tracking
976 enable_shared
977 enable_static
978 with_pic
979 enable_fast_install
980 with_gnu_ld
981 enable_libtool_lock
982 enable_maintainer_mode
983 enable_debug
984 enable_structs
985 enable_raw_api
986 enable_purify_safety
987 '
988       ac_precious_vars='build_alias
989 host_alias
990 target_alias
991 CCAS
992 CCASFLAGS
993 CPP
994 CPPFLAGS'
995
996
997 # Initialize some variables set by options.
998 ac_init_help=
999 ac_init_version=false
1000 ac_unrecognized_opts=
1001 ac_unrecognized_sep=
1002 # The variables have the same names as the options, with
1003 # dashes changed to underlines.
1004 cache_file=/dev/null
1005 exec_prefix=NONE
1006 no_create=
1007 no_recursion=
1008 prefix=NONE
1009 program_prefix=NONE
1010 program_suffix=NONE
1011 program_transform_name=s,x,x,
1012 silent=
1013 site=
1014 srcdir=
1015 verbose=
1016 x_includes=NONE
1017 x_libraries=NONE
1018
1019 # Installation directory options.
1020 # These are left unexpanded so users can "make install exec_prefix=/foo"
1021 # and all the variables that are supposed to be based on exec_prefix
1022 # by default will actually change.
1023 # Use braces instead of parens because sh, perl, etc. also accept them.
1024 # (The list follows the same order as the GNU Coding Standards.)
1025 bindir='${exec_prefix}/bin'
1026 sbindir='${exec_prefix}/sbin'
1027 libexecdir='${exec_prefix}/libexec'
1028 datarootdir='${prefix}/share'
1029 datadir='${datarootdir}'
1030 sysconfdir='${prefix}/etc'
1031 sharedstatedir='${prefix}/com'
1032 localstatedir='${prefix}/var'
1033 includedir='${prefix}/include'
1034 oldincludedir='/usr/include'
1035 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1036 infodir='${datarootdir}/info'
1037 htmldir='${docdir}'
1038 dvidir='${docdir}'
1039 pdfdir='${docdir}'
1040 psdir='${docdir}'
1041 libdir='${exec_prefix}/lib'
1042 localedir='${datarootdir}/locale'
1043 mandir='${datarootdir}/man'
1044
1045 ac_prev=
1046 ac_dashdash=
1047 for ac_option
1048 do
1049   # If the previous option needs an argument, assign it.
1050   if test -n "$ac_prev"; then
1051     eval $ac_prev=\$ac_option
1052     ac_prev=
1053     continue
1054   fi
1055
1056   case $ac_option in
1057   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058   *)    ac_optarg=yes ;;
1059   esac
1060
1061   # Accept the important Cygnus configure options, so we can diagnose typos.
1062
1063   case $ac_dashdash$ac_option in
1064   --)
1065     ac_dashdash=yes ;;
1066
1067   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1068     ac_prev=bindir ;;
1069   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1070     bindir=$ac_optarg ;;
1071
1072   -build | --build | --buil | --bui | --bu)
1073     ac_prev=build_alias ;;
1074   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1075     build_alias=$ac_optarg ;;
1076
1077   -cache-file | --cache-file | --cache-fil | --cache-fi \
1078   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1079     ac_prev=cache_file ;;
1080   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1081   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1082     cache_file=$ac_optarg ;;
1083
1084   --config-cache | -C)
1085     cache_file=config.cache ;;
1086
1087   -datadir | --datadir | --datadi | --datad)
1088     ac_prev=datadir ;;
1089   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1090     datadir=$ac_optarg ;;
1091
1092   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1093   | --dataroo | --dataro | --datar)
1094     ac_prev=datarootdir ;;
1095   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1096   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1097     datarootdir=$ac_optarg ;;
1098
1099   -disable-* | --disable-*)
1100     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1104    { (exit 1); exit 1; }; }
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "enable_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval enable_$ac_useropt=no ;;
1115
1116   -docdir | --docdir | --docdi | --doc | --do)
1117     ac_prev=docdir ;;
1118   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1119     docdir=$ac_optarg ;;
1120
1121   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1122     ac_prev=dvidir ;;
1123   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1124     dvidir=$ac_optarg ;;
1125
1126   -enable-* | --enable-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1131    { (exit 1); exit 1; }; }
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "enable_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval enable_$ac_useropt=\$ac_optarg ;;
1142
1143   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1144   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1145   | --exec | --exe | --ex)
1146     ac_prev=exec_prefix ;;
1147   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1148   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1149   | --exec=* | --exe=* | --ex=*)
1150     exec_prefix=$ac_optarg ;;
1151
1152   -gas | --gas | --ga | --g)
1153     # Obsolete; use --with-gas.
1154     with_gas=yes ;;
1155
1156   -help | --help | --hel | --he | -h)
1157     ac_init_help=long ;;
1158   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1159     ac_init_help=recursive ;;
1160   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1161     ac_init_help=short ;;
1162
1163   -host | --host | --hos | --ho)
1164     ac_prev=host_alias ;;
1165   -host=* | --host=* | --hos=* | --ho=*)
1166     host_alias=$ac_optarg ;;
1167
1168   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1169     ac_prev=htmldir ;;
1170   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1171   | --ht=*)
1172     htmldir=$ac_optarg ;;
1173
1174   -includedir | --includedir | --includedi | --included | --include \
1175   | --includ | --inclu | --incl | --inc)
1176     ac_prev=includedir ;;
1177   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1178   | --includ=* | --inclu=* | --incl=* | --inc=*)
1179     includedir=$ac_optarg ;;
1180
1181   -infodir | --infodir | --infodi | --infod | --info | --inf)
1182     ac_prev=infodir ;;
1183   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1184     infodir=$ac_optarg ;;
1185
1186   -libdir | --libdir | --libdi | --libd)
1187     ac_prev=libdir ;;
1188   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1189     libdir=$ac_optarg ;;
1190
1191   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1192   | --libexe | --libex | --libe)
1193     ac_prev=libexecdir ;;
1194   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1195   | --libexe=* | --libex=* | --libe=*)
1196     libexecdir=$ac_optarg ;;
1197
1198   -localedir | --localedir | --localedi | --localed | --locale)
1199     ac_prev=localedir ;;
1200   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1201     localedir=$ac_optarg ;;
1202
1203   -localstatedir | --localstatedir | --localstatedi | --localstated \
1204   | --localstate | --localstat | --localsta | --localst | --locals)
1205     ac_prev=localstatedir ;;
1206   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1207   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1208     localstatedir=$ac_optarg ;;
1209
1210   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1211     ac_prev=mandir ;;
1212   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1213     mandir=$ac_optarg ;;
1214
1215   -nfp | --nfp | --nf)
1216     # Obsolete; use --without-fp.
1217     with_fp=no ;;
1218
1219   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1220   | --no-cr | --no-c | -n)
1221     no_create=yes ;;
1222
1223   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1224   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1225     no_recursion=yes ;;
1226
1227   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1228   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1229   | --oldin | --oldi | --old | --ol | --o)
1230     ac_prev=oldincludedir ;;
1231   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1232   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1233   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1234     oldincludedir=$ac_optarg ;;
1235
1236   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1237     ac_prev=prefix ;;
1238   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1239     prefix=$ac_optarg ;;
1240
1241   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1242   | --program-pre | --program-pr | --program-p)
1243     ac_prev=program_prefix ;;
1244   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1245   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1246     program_prefix=$ac_optarg ;;
1247
1248   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1249   | --program-suf | --program-su | --program-s)
1250     ac_prev=program_suffix ;;
1251   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1252   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1253     program_suffix=$ac_optarg ;;
1254
1255   -program-transform-name | --program-transform-name \
1256   | --program-transform-nam | --program-transform-na \
1257   | --program-transform-n | --program-transform- \
1258   | --program-transform | --program-transfor \
1259   | --program-transfo | --program-transf \
1260   | --program-trans | --program-tran \
1261   | --progr-tra | --program-tr | --program-t)
1262     ac_prev=program_transform_name ;;
1263   -program-transform-name=* | --program-transform-name=* \
1264   | --program-transform-nam=* | --program-transform-na=* \
1265   | --program-transform-n=* | --program-transform-=* \
1266   | --program-transform=* | --program-transfor=* \
1267   | --program-transfo=* | --program-transf=* \
1268   | --program-trans=* | --program-tran=* \
1269   | --progr-tra=* | --program-tr=* | --program-t=*)
1270     program_transform_name=$ac_optarg ;;
1271
1272   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1273     ac_prev=pdfdir ;;
1274   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1275     pdfdir=$ac_optarg ;;
1276
1277   -psdir | --psdir | --psdi | --psd | --ps)
1278     ac_prev=psdir ;;
1279   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1280     psdir=$ac_optarg ;;
1281
1282   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283   | -silent | --silent | --silen | --sile | --sil)
1284     silent=yes ;;
1285
1286   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1287     ac_prev=sbindir ;;
1288   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1289   | --sbi=* | --sb=*)
1290     sbindir=$ac_optarg ;;
1291
1292   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1293   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1294   | --sharedst | --shareds | --shared | --share | --shar \
1295   | --sha | --sh)
1296     ac_prev=sharedstatedir ;;
1297   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1298   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1299   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1300   | --sha=* | --sh=*)
1301     sharedstatedir=$ac_optarg ;;
1302
1303   -site | --site | --sit)
1304     ac_prev=site ;;
1305   -site=* | --site=* | --sit=*)
1306     site=$ac_optarg ;;
1307
1308   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1309     ac_prev=srcdir ;;
1310   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1311     srcdir=$ac_optarg ;;
1312
1313   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1314   | --syscon | --sysco | --sysc | --sys | --sy)
1315     ac_prev=sysconfdir ;;
1316   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1317   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1318     sysconfdir=$ac_optarg ;;
1319
1320   -target | --target | --targe | --targ | --tar | --ta | --t)
1321     ac_prev=target_alias ;;
1322   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1323     target_alias=$ac_optarg ;;
1324
1325   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1326     verbose=yes ;;
1327
1328   -version | --version | --versio | --versi | --vers | -V)
1329     ac_init_version=: ;;
1330
1331   -with-* | --with-*)
1332     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1333     # Reject names that are not valid shell variable names.
1334     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1336    { (exit 1); exit 1; }; }
1337     ac_useropt_orig=$ac_useropt
1338     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339     case $ac_user_opts in
1340       *"
1341 "with_$ac_useropt"
1342 "*) ;;
1343       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1344          ac_unrecognized_sep=', ';;
1345     esac
1346     eval with_$ac_useropt=\$ac_optarg ;;
1347
1348   -without-* | --without-*)
1349     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1350     # Reject names that are not valid shell variable names.
1351     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1353    { (exit 1); exit 1; }; }
1354     ac_useropt_orig=$ac_useropt
1355     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356     case $ac_user_opts in
1357       *"
1358 "with_$ac_useropt"
1359 "*) ;;
1360       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1361          ac_unrecognized_sep=', ';;
1362     esac
1363     eval with_$ac_useropt=no ;;
1364
1365   --x)
1366     # Obsolete; use --with-x.
1367     with_x=yes ;;
1368
1369   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1370   | --x-incl | --x-inc | --x-in | --x-i)
1371     ac_prev=x_includes ;;
1372   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1373   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1374     x_includes=$ac_optarg ;;
1375
1376   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1377   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1378     ac_prev=x_libraries ;;
1379   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1380   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1381     x_libraries=$ac_optarg ;;
1382
1383   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1384 Try \`$0 --help' for more information." >&2
1385    { (exit 1); exit 1; }; }
1386     ;;
1387
1388   *=*)
1389     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390     # Reject names that are not valid shell variable names.
1391     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1392       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1393    { (exit 1); exit 1; }; }
1394     eval $ac_envvar=\$ac_optarg
1395     export $ac_envvar ;;
1396
1397   *)
1398     # FIXME: should be removed in autoconf 3.0.
1399     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1403     ;;
1404
1405   esac
1406 done
1407
1408 if test -n "$ac_prev"; then
1409   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1410   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1411    { (exit 1); exit 1; }; }
1412 fi
1413
1414 if test -n "$ac_unrecognized_opts"; then
1415   case $enable_option_checking in
1416     no) ;;
1417     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1418    { (exit 1); exit 1; }; } ;;
1419     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420   esac
1421 fi
1422
1423 # Check all directory arguments for consistency.
1424 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425                 datadir sysconfdir sharedstatedir localstatedir includedir \
1426                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427                 libdir localedir mandir
1428 do
1429   eval ac_val=\$$ac_var
1430   # Remove trailing slashes.
1431   case $ac_val in
1432     */ )
1433       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434       eval $ac_var=\$ac_val;;
1435   esac
1436   # Be sure to have absolute directory names.
1437   case $ac_val in
1438     [\\/$]* | ?:[\\/]* )  continue;;
1439     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440   esac
1441   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1442    { (exit 1); exit 1; }; }
1443 done
1444
1445 # There might be people who depend on the old broken behavior: `$host'
1446 # used to hold the argument of --host etc.
1447 # FIXME: To remove some day.
1448 build=$build_alias
1449 host=$host_alias
1450 target=$target_alias
1451
1452 # FIXME: To remove some day.
1453 if test "x$host_alias" != x; then
1454   if test "x$build_alias" = x; then
1455     cross_compiling=maybe
1456     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1457     If a cross compiler is detected then cross compile mode will be used." >&2
1458   elif test "x$build_alias" != "x$host_alias"; then
1459     cross_compiling=yes
1460   fi
1461 fi
1462
1463 ac_tool_prefix=
1464 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465
1466 test "$silent" = yes && exec 6>/dev/null
1467
1468
1469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di=`ls -di .` &&
1471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1473    { (exit 1); exit 1; }; }
1474 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1475   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1476    { (exit 1); exit 1; }; }
1477
1478
1479 # Find the source files, if location was not specified.
1480 if test -z "$srcdir"; then
1481   ac_srcdir_defaulted=yes
1482   # Try the directory containing this script, then the parent directory.
1483   ac_confdir=`$as_dirname -- "$as_myself" ||
1484 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1485          X"$as_myself" : 'X\(//\)[^/]' \| \
1486          X"$as_myself" : 'X\(//\)$' \| \
1487          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1488 $as_echo X"$as_myself" |
1489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1490             s//\1/
1491             q
1492           }
1493           /^X\(\/\/\)[^/].*/{
1494             s//\1/
1495             q
1496           }
1497           /^X\(\/\/\)$/{
1498             s//\1/
1499             q
1500           }
1501           /^X\(\/\).*/{
1502             s//\1/
1503             q
1504           }
1505           s/.*/./; q'`
1506   srcdir=$ac_confdir
1507   if test ! -r "$srcdir/$ac_unique_file"; then
1508     srcdir=..
1509   fi
1510 else
1511   ac_srcdir_defaulted=no
1512 fi
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1514   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1515   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1516    { (exit 1); exit 1; }; }
1517 fi
1518 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1519 ac_abs_confdir=`(
1520         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1521    { (exit 1); exit 1; }; }
1522         pwd)`
1523 # When building in place, set srcdir=.
1524 if test "$ac_abs_confdir" = "$ac_pwd"; then
1525   srcdir=.
1526 fi
1527 # Remove unnecessary trailing slashes from srcdir.
1528 # Double slashes in file names in object file debugging info
1529 # mess up M-x gdb in Emacs.
1530 case $srcdir in
1531 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1532 esac
1533 for ac_var in $ac_precious_vars; do
1534   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1535   eval ac_env_${ac_var}_value=\$${ac_var}
1536   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1538 done
1539
1540 #
1541 # Report the --help message.
1542 #
1543 if test "$ac_init_help" = "long"; then
1544   # Omit some internal or obsolete options to make the list less imposing.
1545   # This message is too long to be a string in the A/UX 3.1 sh.
1546   cat <<_ACEOF
1547 \`configure' configures libffi 3.0.10rc0 to adapt to many kinds of systems.
1548
1549 Usage: $0 [OPTION]... [VAR=VALUE]...
1550
1551 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1552 VAR=VALUE.  See below for descriptions of some of the useful variables.
1553
1554 Defaults for the options are specified in brackets.
1555
1556 Configuration:
1557   -h, --help              display this help and exit
1558       --help=short        display options specific to this package
1559       --help=recursive    display the short help of all the included packages
1560   -V, --version           display version information and exit
1561   -q, --quiet, --silent   do not print \`checking...' messages
1562       --cache-file=FILE   cache test results in FILE [disabled]
1563   -C, --config-cache      alias for \`--cache-file=config.cache'
1564   -n, --no-create         do not create output files
1565       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1566
1567 Installation directories:
1568   --prefix=PREFIX         install architecture-independent files in PREFIX
1569                           [$ac_default_prefix]
1570   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1571                           [PREFIX]
1572
1573 By default, \`make install' will install all the files in
1574 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1575 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1576 for instance \`--prefix=\$HOME'.
1577
1578 For better control, use the options below.
1579
1580 Fine tuning of the installation directories:
1581   --bindir=DIR            user executables [EPREFIX/bin]
1582   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1583   --libexecdir=DIR        program executables [EPREFIX/libexec]
1584   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1585   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1586   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1587   --libdir=DIR            object code libraries [EPREFIX/lib]
1588   --includedir=DIR        C header files [PREFIX/include]
1589   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1590   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1591   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1592   --infodir=DIR           info documentation [DATAROOTDIR/info]
1593   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1594   --mandir=DIR            man documentation [DATAROOTDIR/man]
1595   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1596   --htmldir=DIR           html documentation [DOCDIR]
1597   --dvidir=DIR            dvi documentation [DOCDIR]
1598   --pdfdir=DIR            pdf documentation [DOCDIR]
1599   --psdir=DIR             ps documentation [DOCDIR]
1600 _ACEOF
1601
1602   cat <<\_ACEOF
1603
1604 Program names:
1605   --program-prefix=PREFIX            prepend PREFIX to installed program names
1606   --program-suffix=SUFFIX            append SUFFIX to installed program names
1607   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1608
1609 System types:
1610   --build=BUILD     configure for building on BUILD [guessed]
1611   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1612   --target=TARGET   configure for building compilers for TARGET [HOST]
1613 _ACEOF
1614 fi
1615
1616 if test -n "$ac_init_help"; then
1617   case $ac_init_help in
1618      short | recursive ) echo "Configuration of libffi 3.0.10rc0:";;
1619    esac
1620   cat <<\_ACEOF
1621
1622 Optional Features:
1623   --disable-option-checking  ignore unrecognized --enable/--with options
1624   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1625   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1626   --disable-dependency-tracking  speeds up one-time build
1627   --enable-dependency-tracking   do not reject slow dependency extractors
1628   --enable-shared[=PKGS]  build shared libraries [default=yes]
1629   --enable-static[=PKGS]  build static libraries [default=yes]
1630   --enable-fast-install[=PKGS]
1631                           optimize for fast installation [default=yes]
1632   --disable-libtool-lock  avoid locking (might break parallel builds)
1633   --enable-maintainer-mode  enable make rules and dependencies not useful
1634                           (and sometimes confusing) to the casual installer
1635   --enable-debug          debugging mode
1636   --disable-structs       omit code for struct support
1637   --disable-raw-api       make the raw api unavailable
1638   --enable-purify-safety  purify-safe mode
1639
1640 Optional Packages:
1641   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1642   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1643   --with-pic              try to use only PIC/non-PIC objects [default=use
1644                           both]
1645   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1646
1647 Some influential environment variables:
1648   CC          C compiler command
1649   CFLAGS      C compiler flags
1650   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1651               nonstandard directory <lib dir>
1652   LIBS        libraries to pass to the linker, e.g. -l<library>
1653   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1654               you have headers in a nonstandard directory <include dir>
1655   CCAS        assembler compiler command (defaults to CC)
1656   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1657   CPP         C preprocessor
1658
1659 Use these variables to override the choices made by `configure' or to help
1660 it to find libraries and programs with nonstandard names/locations.
1661
1662 Report bugs to <http://gcc.gnu.org/bugs.html>.
1663 _ACEOF
1664 ac_status=$?
1665 fi
1666
1667 if test "$ac_init_help" = "recursive"; then
1668   # If there are subdirs, report their specific --help.
1669   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670     test -d "$ac_dir" ||
1671       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672       continue
1673     ac_builddir=.
1674
1675 case "$ac_dir" in
1676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *)
1678   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1679   # A ".." for each directory in $ac_dir_suffix.
1680   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1681   case $ac_top_builddir_sub in
1682   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684   esac ;;
1685 esac
1686 ac_abs_top_builddir=$ac_pwd
1687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1688 # for backward compatibility:
1689 ac_top_builddir=$ac_top_build_prefix
1690
1691 case $srcdir in
1692   .)  # We are building in place.
1693     ac_srcdir=.
1694     ac_top_srcdir=$ac_top_builddir_sub
1695     ac_abs_top_srcdir=$ac_pwd ;;
1696   [\\/]* | ?:[\\/]* )  # Absolute name.
1697     ac_srcdir=$srcdir$ac_dir_suffix;
1698     ac_top_srcdir=$srcdir
1699     ac_abs_top_srcdir=$srcdir ;;
1700   *) # Relative name.
1701     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702     ac_top_srcdir=$ac_top_build_prefix$srcdir
1703     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1704 esac
1705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706
1707     cd "$ac_dir" || { ac_status=$?; continue; }
1708     # Check for guested configure.
1709     if test -f "$ac_srcdir/configure.gnu"; then
1710       echo &&
1711       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712     elif test -f "$ac_srcdir/configure"; then
1713       echo &&
1714       $SHELL "$ac_srcdir/configure" --help=recursive
1715     else
1716       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717     fi || ac_status=$?
1718     cd "$ac_pwd" || { ac_status=$?; break; }
1719   done
1720 fi
1721
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1724   cat <<\_ACEOF
1725 libffi configure 3.0.10rc0
1726 generated by GNU Autoconf 2.63
1727
1728 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1729 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1730 This configure script is free software; the Free Software Foundation
1731 gives unlimited permission to copy, distribute and modify it.
1732 _ACEOF
1733   exit
1734 fi
1735 cat >config.log <<_ACEOF
1736 This file contains any messages produced by compilers while
1737 running configure, to aid debugging if configure makes a mistake.
1738
1739 It was created by libffi $as_me 3.0.10rc0, which was
1740 generated by GNU Autoconf 2.63.  Invocation command line was
1741
1742   $ $0 $@
1743
1744 _ACEOF
1745 exec 5>>config.log
1746 {
1747 cat <<_ASUNAME
1748 ## --------- ##
1749 ## Platform. ##
1750 ## --------- ##
1751
1752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1757
1758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1759 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1760
1761 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1762 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1764 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1765 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1766 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1767 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1768
1769 _ASUNAME
1770
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1773 do
1774   IFS=$as_save_IFS
1775   test -z "$as_dir" && as_dir=.
1776   $as_echo "PATH: $as_dir"
1777 done
1778 IFS=$as_save_IFS
1779
1780 } >&5
1781
1782 cat >&5 <<_ACEOF
1783
1784
1785 ## ----------- ##
1786 ## Core tests. ##
1787 ## ----------- ##
1788
1789 _ACEOF
1790
1791
1792 # Keep a trace of the command line.
1793 # Strip out --no-create and --no-recursion so they do not pile up.
1794 # Strip out --silent because we don't want to record it for future runs.
1795 # Also quote any args containing shell meta-characters.
1796 # Make two passes to allow for proper duplicate-argument suppression.
1797 ac_configure_args=
1798 ac_configure_args0=
1799 ac_configure_args1=
1800 ac_must_keep_next=false
1801 for ac_pass in 1 2
1802 do
1803   for ac_arg
1804   do
1805     case $ac_arg in
1806     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1807     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1808     | -silent | --silent | --silen | --sile | --sil)
1809       continue ;;
1810     *\'*)
1811       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812     esac
1813     case $ac_pass in
1814     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1815     2)
1816       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1817       if test $ac_must_keep_next = true; then
1818         ac_must_keep_next=false # Got value, back to normal.
1819       else
1820         case $ac_arg in
1821           *=* | --config-cache | -C | -disable-* | --disable-* \
1822           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1823           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1824           | -with-* | --with-* | -without-* | --without-* | --x)
1825             case "$ac_configure_args0 " in
1826               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827             esac
1828             ;;
1829           -* ) ac_must_keep_next=true ;;
1830         esac
1831       fi
1832       ac_configure_args="$ac_configure_args '$ac_arg'"
1833       ;;
1834     esac
1835   done
1836 done
1837 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1838 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1839
1840 # When interrupted or exit'd, cleanup temporary files, and complete
1841 # config.log.  We remove comments because anyway the quotes in there
1842 # would cause problems or look ugly.
1843 # WARNING: Use '\'' to represent an apostrophe within the trap.
1844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1845 trap 'exit_status=$?
1846   # Save into config.log some information that might help in debugging.
1847   {
1848     echo
1849
1850     cat <<\_ASBOX
1851 ## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##
1854 _ASBOX
1855     echo
1856     # The following way of writing the cache mishandles newlines in values,
1857 (
1858   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859     eval ac_val=\$$ac_var
1860     case $ac_val in #(
1861     *${as_nl}*)
1862       case $ac_var in #(
1863       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865       esac
1866       case $ac_var in #(
1867       _ | IFS | as_nl) ;; #(
1868       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869       *) $as_unset $ac_var ;;
1870       esac ;;
1871     esac
1872   done
1873   (set) 2>&1 |
1874     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875     *${as_nl}ac_space=\ *)
1876       sed -n \
1877         "s/'\''/'\''\\\\'\'''\''/g;
1878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879       ;; #(
1880     *)
1881       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882       ;;
1883     esac |
1884     sort
1885 )
1886     echo
1887
1888     cat <<\_ASBOX
1889 ## ----------------- ##
1890 ## Output variables. ##
1891 ## ----------------- ##
1892 _ASBOX
1893     echo
1894     for ac_var in $ac_subst_vars
1895     do
1896       eval ac_val=\$$ac_var
1897       case $ac_val in
1898       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899       esac
1900       $as_echo "$ac_var='\''$ac_val'\''"
1901     done | sort
1902     echo
1903
1904     if test -n "$ac_subst_files"; then
1905       cat <<\_ASBOX
1906 ## ------------------- ##
1907 ## File substitutions. ##
1908 ## ------------------- ##
1909 _ASBOX
1910       echo
1911       for ac_var in $ac_subst_files
1912       do
1913         eval ac_val=\$$ac_var
1914         case $ac_val in
1915         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916         esac
1917         $as_echo "$ac_var='\''$ac_val'\''"
1918       done | sort
1919       echo
1920     fi
1921
1922     if test -s confdefs.h; then
1923       cat <<\_ASBOX
1924 ## ----------- ##
1925 ## confdefs.h. ##
1926 ## ----------- ##
1927 _ASBOX
1928       echo
1929       cat confdefs.h
1930       echo
1931     fi
1932     test "$ac_signal" != 0 &&
1933       $as_echo "$as_me: caught signal $ac_signal"
1934     $as_echo "$as_me: exit $exit_status"
1935   } >&5
1936   rm -f core *.core core.conftest.* &&
1937     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938     exit $exit_status
1939 ' 0
1940 for ac_signal in 1 2 13 15; do
1941   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1942 done
1943 ac_signal=0
1944
1945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1946 rm -f -r conftest* confdefs.h
1947
1948 # Predefined preprocessor variables.
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_NAME "$PACKAGE_NAME"
1952 _ACEOF
1953
1954
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1957 _ACEOF
1958
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1962 _ACEOF
1963
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_STRING "$PACKAGE_STRING"
1967 _ACEOF
1968
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972 _ACEOF
1973
1974
1975 # Let the site file select an alternate cache file if it wants to.
1976 # Prefer an explicitly selected file to automatically selected ones.
1977 ac_site_file1=NONE
1978 ac_site_file2=NONE
1979 if test -n "$CONFIG_SITE"; then
1980   ac_site_file1=$CONFIG_SITE
1981 elif test "x$prefix" != xNONE; then
1982   ac_site_file1=$prefix/share/config.site
1983   ac_site_file2=$prefix/etc/config.site
1984 else
1985   ac_site_file1=$ac_default_prefix/share/config.site
1986   ac_site_file2=$ac_default_prefix/etc/config.site
1987 fi
1988 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1989 do
1990   test "x$ac_site_file" = xNONE && continue
1991   if test -r "$ac_site_file"; then
1992     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1993 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1994     sed 's/^/| /' "$ac_site_file" >&5
1995     . "$ac_site_file"
1996   fi
1997 done
1998
1999 if test -r "$cache_file"; then
2000   # Some versions of bash will fail to source /dev/null (special
2001   # files actually), so we avoid doing that.
2002   if test -f "$cache_file"; then
2003     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2004 $as_echo "$as_me: loading cache $cache_file" >&6;}
2005     case $cache_file in
2006       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2007       *)                      . "./$cache_file";;
2008     esac
2009   fi
2010 else
2011   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2012 $as_echo "$as_me: creating cache $cache_file" >&6;}
2013   >$cache_file
2014 fi
2015
2016 # Check that the precious variables saved in the cache have kept the same
2017 # value.
2018 ac_cache_corrupted=false
2019 for ac_var in $ac_precious_vars; do
2020   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2021   eval ac_new_set=\$ac_env_${ac_var}_set
2022   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2023   eval ac_new_val=\$ac_env_${ac_var}_value
2024   case $ac_old_set,$ac_new_set in
2025     set,)
2026       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2027 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2028       ac_cache_corrupted=: ;;
2029     ,set)
2030       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2031 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2032       ac_cache_corrupted=: ;;
2033     ,);;
2034     *)
2035       if test "x$ac_old_val" != "x$ac_new_val"; then
2036         # differences in whitespace do not lead to failure.
2037         ac_old_val_w=`echo x $ac_old_val`
2038         ac_new_val_w=`echo x $ac_new_val`
2039         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2040           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2041 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2042           ac_cache_corrupted=:
2043         else
2044           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2045 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2046           eval $ac_var=\$ac_old_val
2047         fi
2048         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2049 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2050         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2051 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2052       fi;;
2053   esac
2054   # Pass precious variables to config.status.
2055   if test "$ac_new_set" = set; then
2056     case $ac_new_val in
2057     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2058     *) ac_arg=$ac_var=$ac_new_val ;;
2059     esac
2060     case " $ac_configure_args " in
2061       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2062       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2063     esac
2064   fi
2065 done
2066 if $ac_cache_corrupted; then
2067   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2069   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2070 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2071   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2072 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106
2107 ac_config_headers="$ac_config_headers fficonfig.h"
2108
2109
2110 ac_aux_dir=
2111 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2112   if test -f "$ac_dir/install-sh"; then
2113     ac_aux_dir=$ac_dir
2114     ac_install_sh="$ac_aux_dir/install-sh -c"
2115     break
2116   elif test -f "$ac_dir/install.sh"; then
2117     ac_aux_dir=$ac_dir
2118     ac_install_sh="$ac_aux_dir/install.sh -c"
2119     break
2120   elif test -f "$ac_dir/shtool"; then
2121     ac_aux_dir=$ac_dir
2122     ac_install_sh="$ac_aux_dir/shtool install -c"
2123     break
2124   fi
2125 done
2126 if test -z "$ac_aux_dir"; then
2127   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2128 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2129    { (exit 1); exit 1; }; }
2130 fi
2131
2132 # These three variables are undocumented and unsupported,
2133 # and are intended to be withdrawn in a future Autoconf release.
2134 # They can cause serious problems if a builder's source tree is in a directory
2135 # whose full name contains unusual characters.
2136 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2137 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2138 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2139
2140
2141 # Make sure we can run config.sub.
2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2145    { (exit 1); exit 1; }; }
2146
2147 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2148 $as_echo_n "checking build system type... " >&6; }
2149 if test "${ac_cv_build+set}" = set; then
2150   $as_echo_n "(cached) " >&6
2151 else
2152   ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158    { (exit 1); exit 1; }; }
2159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2162    { (exit 1); exit 1; }; }
2163
2164 fi
2165 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166 $as_echo "$ac_cv_build" >&6; }
2167 case $ac_cv_build in
2168 *-*-*) ;;
2169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2171    { (exit 1); exit 1; }; };;
2172 esac
2173 build=$ac_cv_build
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_build
2176 shift
2177 build_cpu=$1
2178 build_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 build_os=$*
2183 IFS=$ac_save_IFS
2184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2185
2186
2187 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2188 $as_echo_n "checking host system type... " >&6; }
2189 if test "${ac_cv_host+set}" = set; then
2190   $as_echo_n "(cached) " >&6
2191 else
2192   if test "x$host_alias" = x; then
2193   ac_cv_host=$ac_cv_build
2194 else
2195   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2198    { (exit 1); exit 1; }; }
2199 fi
2200
2201 fi
2202 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 $as_echo "$ac_cv_host" >&6; }
2204 case $ac_cv_host in
2205 *-*-*) ;;
2206 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2208    { (exit 1); exit 1; }; };;
2209 esac
2210 host=$ac_cv_host
2211 ac_save_IFS=$IFS; IFS='-'
2212 set x $ac_cv_host
2213 shift
2214 host_cpu=$1
2215 host_vendor=$2
2216 shift; shift
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2219 host_os=$*
2220 IFS=$ac_save_IFS
2221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2222
2223
2224 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2225 $as_echo_n "checking target system type... " >&6; }
2226 if test "${ac_cv_target+set}" = set; then
2227   $as_echo_n "(cached) " >&6
2228 else
2229   if test "x$target_alias" = x; then
2230   ac_cv_target=$ac_cv_host
2231 else
2232   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237
2238 fi
2239 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240 $as_echo "$ac_cv_target" >&6; }
2241 case $ac_cv_target in
2242 *-*-*) ;;
2243 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2245    { (exit 1); exit 1; }; };;
2246 esac
2247 target=$ac_cv_target
2248 ac_save_IFS=$IFS; IFS='-'
2249 set x $ac_cv_target
2250 shift
2251 target_cpu=$1
2252 target_vendor=$2
2253 shift; shift
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2256 target_os=$*
2257 IFS=$ac_save_IFS
2258 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2259
2260
2261 # The aliases save the names the user supplied, while $host etc.
2262 # will get canonicalized.
2263 test -n "$target_alias" &&
2264   test "$program_prefix$program_suffix$program_transform_name" = \
2265     NONENONEs,x,x, &&
2266   program_prefix=${target_alias}-
2267 target_alias=${target_alias-$host_alias}
2268
2269 . ${srcdir}/configure.host
2270
2271 am__api_version='1.11'
2272
2273 # Find a good install program.  We prefer a C program (faster),
2274 # so one script is as good as another.  But avoid the broken or
2275 # incompatible versions:
2276 # SysV /etc/install, /usr/sbin/install
2277 # SunOS /usr/etc/install
2278 # IRIX /sbin/install
2279 # AIX /bin/install
2280 # AmigaOS /C/install, which installs bootblocks on floppy discs
2281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284 # OS/2's system install, which has a completely different semantic
2285 # ./install, which can be erroneously created by make from ./install.sh.
2286 # Reject install programs that cannot install multiple files.
2287 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2289 if test -z "$INSTALL"; then
2290 if test "${ac_cv_path_install+set}" = set; then
2291   $as_echo_n "(cached) " >&6
2292 else
2293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   # Account for people who put trailing slashes in PATH elements.
2299 case $as_dir/ in
2300   ./ | .// | /cC/* | \
2301   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2302   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2303   /usr/ucb/* ) ;;
2304   *)
2305     # OSF1 and SCO ODT 3.0 have their own names for install.
2306     # Don't use installbsd from OSF since it installs stuff as root
2307     # by default.
2308     for ac_prog in ginstall scoinst install; do
2309       for ac_exec_ext in '' $ac_executable_extensions; do
2310         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2311           if test $ac_prog = install &&
2312             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313             # AIX install.  It has an incompatible calling convention.
2314             :
2315           elif test $ac_prog = install &&
2316             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317             # program-specific install script used by HP pwplus--don't use.
2318             :
2319           else
2320             rm -rf conftest.one conftest.two conftest.dir
2321             echo one > conftest.one
2322             echo two > conftest.two
2323             mkdir conftest.dir
2324             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2325               test -s conftest.one && test -s conftest.two &&
2326               test -s conftest.dir/conftest.one &&
2327               test -s conftest.dir/conftest.two
2328             then
2329               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2330               break 3
2331             fi
2332           fi
2333         fi
2334       done
2335     done
2336     ;;
2337 esac
2338
2339 done
2340 IFS=$as_save_IFS
2341
2342 rm -rf conftest.one conftest.two conftest.dir
2343
2344 fi
2345   if test "${ac_cv_path_install+set}" = set; then
2346     INSTALL=$ac_cv_path_install
2347   else
2348     # As a last resort, use the slow shell script.  Don't cache a
2349     # value for INSTALL within a source directory, because that will
2350     # break other packages using the cache if that directory is
2351     # removed, or if the value is a relative name.
2352     INSTALL=$ac_install_sh
2353   fi
2354 fi
2355 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2356 $as_echo "$INSTALL" >&6; }
2357
2358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2359 # It thinks the first close brace ends the variable substitution.
2360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2361
2362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2363
2364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2365
2366 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2367 $as_echo_n "checking whether build environment is sane... " >&6; }
2368 # Just in case
2369 sleep 1
2370 echo timestamp > conftest.file
2371 # Reject unsafe characters in $srcdir or the absolute working directory
2372 # name.  Accept space and tab only in the latter.
2373 am_lf='
2374 '
2375 case `pwd` in
2376   *[\\\"\#\$\&\'\`$am_lf]*)
2377     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2378 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2379    { (exit 1); exit 1; }; };;
2380 esac
2381 case $srcdir in
2382   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2383     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2384 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2385    { (exit 1); exit 1; }; };;
2386 esac
2387
2388 # Do `set' in a subshell so we don't clobber the current shell's
2389 # arguments.  Must try -L first in case configure is actually a
2390 # symlink; some systems play weird games with the mod time of symlinks
2391 # (eg FreeBSD returns the mod time of the symlink's containing
2392 # directory).
2393 if (
2394    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395    if test "$*" = "X"; then
2396       # -L didn't work.
2397       set X `ls -t "$srcdir/configure" conftest.file`
2398    fi
2399    rm -f conftest.file
2400    if test "$*" != "X $srcdir/configure conftest.file" \
2401       && test "$*" != "X conftest.file $srcdir/configure"; then
2402
2403       # If neither matched, then we have a broken ls.  This can happen
2404       # if, for instance, CONFIG_SHELL is bash and it inherits a
2405       # broken ls alias from the environment.  This has actually
2406       # happened.  Such a system could not be considered "sane".
2407       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2408 alias in your environment" >&5
2409 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2410 alias in your environment" >&2;}
2411    { (exit 1); exit 1; }; }
2412    fi
2413
2414    test "$2" = conftest.file
2415    )
2416 then
2417    # Ok.
2418    :
2419 else
2420    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2421 Check your system clock" >&5
2422 $as_echo "$as_me: error: newly created file is older than distributed files!
2423 Check your system clock" >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426 { $as_echo "$as_me:$LINENO: result: yes" >&5
2427 $as_echo "yes" >&6; }
2428 test "$program_prefix" != NONE &&
2429   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2437
2438 # expand $ac_aux_dir to an absolute path
2439 am_aux_dir=`cd $ac_aux_dir && pwd`
2440
2441 if test x"${MISSING+set}" != xset; then
2442   case $am_aux_dir in
2443   *\ * | *\     *)
2444     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2445   *)
2446     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447   esac
2448 fi
2449 # Use eval to expand $SHELL
2450 if eval "$MISSING --run true"; then
2451   am_missing_run="$MISSING --run "
2452 else
2453   am_missing_run=
2454   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2455 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2456 fi
2457
2458 if test x"${install_sh}" != xset; then
2459   case $am_aux_dir in
2460   *\ * | *\     *)
2461     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2462   *)
2463     install_sh="\${SHELL} $am_aux_dir/install-sh"
2464   esac
2465 fi
2466
2467 # Installed binaries are usually stripped using `strip' when the user
2468 # run `make install-strip'.  However `strip' might not be the right
2469 # tool to use in cross-compilation environments, therefore Automake
2470 # will honor the `STRIP' environment variable to overrule this program.
2471 if test "$cross_compiling" != no; then
2472   if test -n "$ac_tool_prefix"; then
2473   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}strip; ac_word=$2
2475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if test "${ac_cv_prog_STRIP+set}" = set; then
2478   $as_echo_n "(cached) " >&6
2479 else
2480   if test -n "$STRIP"; then
2481   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 STRIP=$ac_cv_prog_STRIP
2501 if test -n "$STRIP"; then
2502   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2503 $as_echo "$STRIP" >&6; }
2504 else
2505   { $as_echo "$as_me:$LINENO: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_STRIP"; then
2512   ac_ct_STRIP=$STRIP
2513   # Extract the first word of "strip", so it can be a program name with args.
2514 set dummy strip; ac_word=$2
2515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2518   $as_echo_n "(cached) " >&6
2519 else
2520   if test -n "$ac_ct_STRIP"; then
2521   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528   for ac_exec_ext in '' $ac_executable_extensions; do
2529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530     ac_cv_prog_ac_ct_STRIP="strip"
2531     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2541 if test -n "$ac_ct_STRIP"; then
2542   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2543 $as_echo "$ac_ct_STRIP" >&6; }
2544 else
2545   { $as_echo "$as_me:$LINENO: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549   if test "x$ac_ct_STRIP" = x; then
2550     STRIP=":"
2551   else
2552     case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2556 ac_tool_warned=yes ;;
2557 esac
2558     STRIP=$ac_ct_STRIP
2559   fi
2560 else
2561   STRIP="$ac_cv_prog_STRIP"
2562 fi
2563
2564 fi
2565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566
2567 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2569 if test -z "$MKDIR_P"; then
2570   if test "${ac_cv_path_mkdir+set}" = set; then
2571   $as_echo_n "(cached) " >&6
2572 else
2573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_prog in mkdir gmkdir; do
2579          for ac_exec_ext in '' $ac_executable_extensions; do
2580            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2581            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2582              'mkdir (GNU coreutils) '* | \
2583              'mkdir (coreutils) '* | \
2584              'mkdir (fileutils) '4.1*)
2585                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586                break 3;;
2587            esac
2588          done
2589        done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594
2595   if test "${ac_cv_path_mkdir+set}" = set; then
2596     MKDIR_P="$ac_cv_path_mkdir -p"
2597   else
2598     # As a last resort, use the slow shell script.  Don't cache a
2599     # value for MKDIR_P within a source directory, because that will
2600     # break other packages using the cache if that directory is
2601     # removed, or if the value is a relative name.
2602     test -d ./--version && rmdir ./--version
2603     MKDIR_P="$ac_install_sh -d"
2604   fi
2605 fi
2606 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2607 $as_echo "$MKDIR_P" >&6; }
2608
2609 mkdir_p="$MKDIR_P"
2610 case $mkdir_p in
2611   [\\/$]* | ?:[\\/]*) ;;
2612   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2613 esac
2614
2615 for ac_prog in gawk mawk nawk awk
2616 do
2617   # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_AWK+set}" = set; then
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test -n "$AWK"; then
2625   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632   for ac_exec_ext in '' $ac_executable_extensions; do
2633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634     ac_cv_prog_AWK="$ac_prog"
2635     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 AWK=$ac_cv_prog_AWK
2645 if test -n "$AWK"; then
2646   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2647 $as_echo "$AWK" >&6; }
2648 else
2649   { $as_echo "$as_me:$LINENO: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654   test -n "$AWK" && break
2655 done
2656
2657 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2658 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2659 set x ${MAKE-make}
2660 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2661 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2662   $as_echo_n "(cached) " >&6
2663 else
2664   cat >conftest.make <<\_ACEOF
2665 SHELL = /bin/sh
2666 all:
2667         @echo '@@@%%%=$(MAKE)=@@@%%%'
2668 _ACEOF
2669 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2670 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2671   *@@@%%%=?*=@@@%%%*)
2672     eval ac_cv_prog_make_${ac_make}_set=yes;;
2673   *)
2674     eval ac_cv_prog_make_${ac_make}_set=no;;
2675 esac
2676 rm -f conftest.make
2677 fi
2678 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2679   { $as_echo "$as_me:$LINENO: result: yes" >&5
2680 $as_echo "yes" >&6; }
2681   SET_MAKE=
2682 else
2683   { $as_echo "$as_me:$LINENO: result: no" >&5
2684 $as_echo "no" >&6; }
2685   SET_MAKE="MAKE=${MAKE-make}"
2686 fi
2687
2688 rm -rf .tst 2>/dev/null
2689 mkdir .tst 2>/dev/null
2690 if test -d .tst; then
2691   am__leading_dot=.
2692 else
2693   am__leading_dot=_
2694 fi
2695 rmdir .tst 2>/dev/null
2696
2697 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2698   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2699   # is not polluted with repeated "-I."
2700   am__isrc=' -I$(srcdir)'
2701   # test to see if srcdir already configured
2702   if test -f $srcdir/config.status; then
2703     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2704 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2705    { (exit 1); exit 1; }; }
2706   fi
2707 fi
2708
2709 # test whether we have cygpath
2710 if test -z "$CYGPATH_W"; then
2711   if (cygpath --version) >/dev/null 2>/dev/null; then
2712     CYGPATH_W='cygpath -w'
2713   else
2714     CYGPATH_W=echo
2715   fi
2716 fi
2717
2718
2719 # Define the identity of the package.
2720  PACKAGE='libffi'
2721  VERSION='3.0.10rc0'
2722
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE "$PACKAGE"
2726 _ACEOF
2727
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define VERSION "$VERSION"
2731 _ACEOF
2732
2733 # Some tools Automake needs.
2734
2735 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2736
2737
2738 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2739
2740
2741 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2742
2743
2744 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2745
2746
2747 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2748
2749 # We need awk for the "check" target.  The system "awk" is bad on
2750 # some platforms.
2751 # Always define AMTAR for backward compatibility.
2752
2753 AMTAR=${AMTAR-"${am_missing_run}tar"}
2754
2755 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2756
2757
2758
2759
2760
2761
2762 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2763 # We must force CC to /not/ be precious variables; otherwise
2764 # the wrong, non-multilib-adjusted value will be used in multilibs.
2765 # As a side effect, we have to subst CFLAGS ourselves.
2766
2767
2768
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 if test -n "$ac_tool_prefix"; then
2775   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780   $as_echo_n "(cached) " >&6
2781 else
2782   if test -n "$CC"; then
2783   ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2793     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2806 else
2807   { $as_echo "$as_me:$LINENO: result: no" >&5
2808 $as_echo "no" >&6; }
2809 fi
2810
2811
2812 fi
2813 if test -z "$ac_cv_prog_CC"; then
2814   ac_ct_CC=$CC
2815   # Extract the first word of "gcc", so it can be a program name with args.
2816 set dummy gcc; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test -n "$ac_ct_CC"; then
2823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_ac_ct_CC="gcc"
2833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845 $as_echo "$ac_ct_CC" >&6; }
2846 else
2847   { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851   if test "x$ac_ct_CC" = x; then
2852     CC=""
2853   else
2854     case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858 ac_tool_warned=yes ;;
2859 esac
2860     CC=$ac_ct_CC
2861   fi
2862 else
2863   CC="$ac_cv_prog_CC"
2864 fi
2865
2866 if test -z "$CC"; then
2867           if test -n "$ac_tool_prefix"; then
2868     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}cc; ac_word=$2
2870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$CC"; then
2876   ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883   for ac_exec_ext in '' $ac_executable_extensions; do
2884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885     ac_cv_prog_CC="${ac_tool_prefix}cc"
2886     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890 done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900   { $as_echo "$as_me:$LINENO: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905   fi
2906 fi
2907 if test -z "$CC"; then
2908   # Extract the first word of "cc", so it can be a program name with args.
2909 set dummy cc; ac_word=$2
2910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$CC"; then
2916   ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918   ac_prog_rejected=no
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924   for ac_exec_ext in '' $ac_executable_extensions; do
2925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2927        ac_prog_rejected=yes
2928        continue
2929      fi
2930     ac_cv_prog_CC="cc"
2931     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932     break 2
2933   fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 if test $ac_prog_rejected = yes; then
2939   # We found a bogon in the path, so make sure we never use it.
2940   set dummy $ac_cv_prog_CC
2941   shift
2942   if test $# != 0; then
2943     # We chose a different compiler from the bogus one.
2944     # However, it has the same basename, so the bogon will be chosen
2945     # first if we set CC to just the basename; use the full file name.
2946     shift
2947     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2948   fi
2949 fi
2950 fi
2951 fi
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957   { $as_echo "$as_me:$LINENO: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961
2962 fi
2963 if test -z "$CC"; then
2964   if test -n "$ac_tool_prefix"; then
2965   for ac_prog in cl.exe
2966   do
2967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then
2972   $as_echo_n "(cached) " >&6
2973 else
2974   if test -n "$CC"; then
2975   ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982   for ac_exec_ext in '' $ac_executable_extensions; do
2983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2985     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999   { $as_echo "$as_me:$LINENO: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003
3004     test -n "$CC" && break
3005   done
3006 fi
3007 if test -z "$CC"; then
3008   ac_ct_CC=$CC
3009   for ac_prog in cl.exe
3010 do
3011   # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3016   $as_echo_n "(cached) " >&6
3017 else
3018   if test -n "$ac_ct_CC"; then
3019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024   IFS=$as_save_IFS
3025   test -z "$as_dir" && as_dir=.
3026   for ac_exec_ext in '' $ac_executable_extensions; do
3027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028     ac_cv_prog_ac_ct_CC="$ac_prog"
3029     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030     break 2
3031   fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3042 else
3043   { $as_echo "$as_me:$LINENO: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048   test -n "$ac_ct_CC" && break
3049 done
3050
3051   if test "x$ac_ct_CC" = x; then
3052     CC=""
3053   else
3054     case $cross_compiling:$ac_tool_warned in
3055 yes:)
3056 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058 ac_tool_warned=yes ;;
3059 esac
3060     CC=$ac_ct_CC
3061   fi
3062 fi
3063
3064 fi
3065
3066
3067 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3070 See \`config.log' for more details." >&5
3071 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3072 See \`config.log' for more details." >&2;}
3073    { (exit 1); exit 1; }; }; }
3074
3075 # Provide some information about the compiler.
3076 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3077 set X $ac_compile
3078 ac_compiler=$2
3079 { (ac_try="$ac_compiler --version >&5"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086   (eval "$ac_compiler --version >&5") 2>&5
3087   ac_status=$?
3088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }
3090 { (ac_try="$ac_compiler -v >&5"
3091 case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096 $as_echo "$ac_try_echo") >&5
3097   (eval "$ac_compiler -v >&5") 2>&5
3098   ac_status=$?
3099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }
3101 { (ac_try="$ac_compiler -V >&5"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108   (eval "$ac_compiler -V >&5") 2>&5
3109   ac_status=$?
3110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }
3112
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 ac_clean_files_save=$ac_clean_files
3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3130 # Try to create an executable without -o first, disregard a.out.
3131 # It will help us diagnose broken compilers, and finding out an intuition
3132 # of exeext.
3133 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
3135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3136
3137 # The possible output files:
3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139
3140 ac_rmfiles=
3141 for ac_file in $ac_files
3142 do
3143   case $ac_file in
3144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3146   esac
3147 done
3148 rm -f $ac_rmfiles
3149
3150 if { (ac_try="$ac_link_default"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157   (eval "$ac_link_default") 2>&5
3158   ac_status=$?
3159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; then
3161   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3163 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3164 # so that the user can short-circuit this test for compilers unknown to
3165 # Autoconf.
3166 for ac_file in $ac_files ''
3167 do
3168   test -f "$ac_file" || continue
3169   case $ac_file in
3170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171         ;;
3172     [ab].out )
3173         # We found the default executable, but exeext='' is most
3174         # certainly right.
3175         break;;
3176     *.* )
3177         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3178         then :; else
3179            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180         fi
3181         # We set ac_cv_exeext here because the later test for it is not
3182         # safe: cross compilers may not add the suffix if given an `-o'
3183         # argument, so we may need to know it at that point already.
3184         # Even if this section looks crufty: it has the advantage of
3185         # actually working.
3186         break;;
3187     * )
3188         break;;
3189   esac
3190 done
3191 test "$ac_cv_exeext" = no && ac_cv_exeext=
3192
3193 else
3194   ac_file=''
3195 fi
3196
3197 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3198 $as_echo "$ac_file" >&6; }
3199 if test -z "$ac_file"; then
3200   $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3206 See \`config.log' for more details." >&5
3207 $as_echo "$as_me: error: C compiler cannot create executables
3208 See \`config.log' for more details." >&2;}
3209    { (exit 77); exit 77; }; }; }
3210 fi
3211
3212 ac_exeext=$ac_cv_exeext
3213
3214 # Check that the compiler produces executables we can run.  If not, either
3215 # the compiler is broken, or we cross compile.
3216 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3217 $as_echo_n "checking whether the C compiler works... " >&6; }
3218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3219 # If not cross compiling, check that we can run a simple program.
3220 if test "$cross_compiling" != yes; then
3221   if { ac_try='./$ac_file'
3222   { (case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3227 $as_echo "$ac_try_echo") >&5
3228   (eval "$ac_try") 2>&5
3229   ac_status=$?
3230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); }; }; then
3232     cross_compiling=no
3233   else
3234     if test "$cross_compiling" = maybe; then
3235         cross_compiling=yes
3236     else
3237         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3240 If you meant to cross compile, use \`--host'.
3241 See \`config.log' for more details." >&5
3242 $as_echo "$as_me: error: cannot run C compiled programs.
3243 If you meant to cross compile, use \`--host'.
3244 See \`config.log' for more details." >&2;}
3245    { (exit 1); exit 1; }; }; }
3246     fi
3247   fi
3248 fi
3249 { $as_echo "$as_me:$LINENO: result: yes" >&5
3250 $as_echo "yes" >&6; }
3251
3252 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3253 ac_clean_files=$ac_clean_files_save
3254 # Check that the compiler produces executables we can run.  If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3257 $as_echo_n "checking whether we are cross compiling... " >&6; }
3258 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3259 $as_echo "$cross_compiling" >&6; }
3260
3261 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3262 $as_echo_n "checking for suffix of executables... " >&6; }
3263 if { (ac_try="$ac_link"
3264 case "(($ac_try" in
3265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266   *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270   (eval "$ac_link") 2>&5
3271   ac_status=$?
3272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; then
3274   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3275 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3276 # work properly (i.e., refer to `conftest.exe'), while it won't with
3277 # `rm'.
3278 for ac_file in conftest.exe conftest conftest.*; do
3279   test -f "$ac_file" || continue
3280   case $ac_file in
3281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283           break;;
3284     * ) break;;
3285   esac
3286 done
3287 else
3288   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3291 See \`config.log' for more details." >&5
3292 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3293 See \`config.log' for more details." >&2;}
3294    { (exit 1); exit 1; }; }; }
3295 fi
3296
3297 rm -f conftest$ac_cv_exeext
3298 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3299 $as_echo "$ac_cv_exeext" >&6; }
3300
3301 rm -f conftest.$ac_ext
3302 EXEEXT=$ac_cv_exeext
3303 ac_exeext=$EXEEXT
3304 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if test "${ac_cv_objext+set}" = set; then
3307   $as_echo_n "(cached) " >&6
3308 else
3309   cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315
3316 int
3317 main ()
3318 {
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.o conftest.obj
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3331 $as_echo "$ac_try_echo") >&5
3332   (eval "$ac_compile") 2>&5
3333   ac_status=$?
3334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; then
3336   for ac_file in conftest.o conftest.obj conftest.*; do
3337   test -f "$ac_file" || continue;
3338   case $ac_file in
3339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3340     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341        break;;
3342   esac
3343 done
3344 else
3345   $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details." >&5
3352 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3353 See \`config.log' for more details." >&2;}
3354    { (exit 1); exit 1; }; }; }
3355 fi
3356
3357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3358 fi
3359 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3360 $as_echo "$ac_cv_objext" >&6; }
3361 OBJEXT=$ac_cv_objext
3362 ac_objext=$OBJEXT
3363 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3364 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3366   $as_echo_n "(cached) " >&6
3367 else
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374
3375 int
3376 main ()
3377 {
3378 #ifndef __GNUC__
3379        choke me
3380 #endif
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393 $as_echo "$ac_try_echo") >&5
3394   (eval "$ac_compile") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } && {
3401          test -z "$ac_c_werror_flag" ||
3402          test ! -s conftest.err
3403        } && test -s conftest.$ac_objext; then
3404   ac_compiler_gnu=yes
3405 else
3406   $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409         ac_compiler_gnu=no
3410 fi
3411
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414
3415 fi
3416 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3418 if test $ac_compiler_gnu = yes; then
3419   GCC=yes
3420 else
3421   GCC=
3422 fi
3423 ac_test_CFLAGS=${CFLAGS+set}
3424 ac_save_CFLAGS=$CFLAGS
3425 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3426 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3427 if test "${ac_cv_prog_cc_g+set}" = set; then
3428   $as_echo_n "(cached) " >&6
3429 else
3430   ac_save_c_werror_flag=$ac_c_werror_flag
3431    ac_c_werror_flag=yes
3432    ac_cv_prog_cc_g=no
3433    CFLAGS="-g"
3434    cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440
3441 int
3442 main ()
3443 {
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456 $as_echo "$ac_try_echo") >&5
3457   (eval "$ac_compile") 2>conftest.er1
3458   ac_status=$?
3459   grep -v '^ *+' conftest.er1 >conftest.err
3460   rm -f conftest.er1
3461   cat conftest.err >&5
3462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); } && {
3464          test -z "$ac_c_werror_flag" ||
3465          test ! -s conftest.err
3466        } && test -s conftest.$ac_objext; then
3467   ac_cv_prog_cc_g=yes
3468 else
3469   $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472         CFLAGS=""
3473       cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496   (eval "$ac_compile") 2>conftest.er1
3497   ac_status=$?
3498   grep -v '^ *+' conftest.er1 >conftest.err
3499   rm -f conftest.er1
3500   cat conftest.err >&5
3501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } && {
3503          test -z "$ac_c_werror_flag" ||
3504          test ! -s conftest.err
3505        } && test -s conftest.$ac_objext; then
3506   :
3507 else
3508   $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511         ac_c_werror_flag=$ac_save_c_werror_flag
3512          CFLAGS="-g"
3513          cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h.  */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535 $as_echo "$ac_try_echo") >&5
3536   (eval "$ac_compile") 2>conftest.er1
3537   ac_status=$?
3538   grep -v '^ *+' conftest.er1 >conftest.err
3539   rm -f conftest.er1
3540   cat conftest.err >&5
3541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); } && {
3543          test -z "$ac_c_werror_flag" ||
3544          test ! -s conftest.err
3545        } && test -s conftest.$ac_objext; then
3546   ac_cv_prog_cc_g=yes
3547 else
3548   $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551
3552 fi
3553
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 fi
3559
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561    ac_c_werror_flag=$ac_save_c_werror_flag
3562 fi
3563 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3564 $as_echo "$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566   CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568   if test "$GCC" = yes; then
3569     CFLAGS="-g -O2"
3570   else
3571     CFLAGS="-g"
3572   fi
3573 else
3574   if test "$GCC" = yes; then
3575     CFLAGS="-O2"
3576   else
3577     CFLAGS=
3578   fi
3579 fi
3580 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3581 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3582 if test "${ac_cv_prog_cc_c89+set}" = set; then
3583   $as_echo_n "(cached) " >&6
3584 else
3585   ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #include <stdarg.h>
3594 #include <stdio.h>
3595 #include <sys/types.h>
3596 #include <sys/stat.h>
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3601      char **p;
3602      int i;
3603 {
3604   return p[i];
3605 }
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3607 {
3608   char *s;
3609   va_list v;
3610   va_start (v,p);
3611   s = g (p, va_arg (v,int));
3612   va_end (v);
3613   return s;
3614 }
3615
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3617    function prototypes and stuff, but not '\xHH' hex character constants.
3618    These don't provoke an error unfortunately, instead are silently treated
3619    as 'x'.  The following induces an error, until -std is added to get
3620    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3621    array size at least.  It's necessary to write '\x00'==0 to get something
3622    that's true only with -std.  */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626    inside strings and character constants.  */
3627 #define FOO(x) 'x'
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634 int argc;
3635 char **argv;
3636 int
3637 main ()
3638 {
3639 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 do
3647   CC="$ac_save_CC $ac_arg"
3648   rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3650 case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656   (eval "$ac_compile") 2>conftest.er1
3657   ac_status=$?
3658   grep -v '^ *+' conftest.er1 >conftest.err
3659   rm -f conftest.er1
3660   cat conftest.err >&5
3661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } && {
3663          test -z "$ac_c_werror_flag" ||
3664          test ! -s conftest.err
3665        } && test -s conftest.$ac_objext; then
3666   ac_cv_prog_cc_c89=$ac_arg
3667 else
3668   $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671
3672 fi
3673
3674 rm -f core conftest.err conftest.$ac_objext
3675   test "x$ac_cv_prog_cc_c89" != "xno" && break
3676 done
3677 rm -f conftest.$ac_ext
3678 CC=$ac_save_CC
3679
3680 fi
3681 # AC_CACHE_VAL
3682 case "x$ac_cv_prog_cc_c89" in
3683   x)
3684     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3685 $as_echo "none needed" >&6; } ;;
3686   xno)
3687     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3688 $as_echo "unsupported" >&6; } ;;
3689   *)
3690     CC="$CC $ac_cv_prog_cc_c89"
3691     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693 esac
3694
3695
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 DEPDIR="${am__leading_dot}deps"
3702
3703 ac_config_commands="$ac_config_commands depfiles"
3704
3705
3706 am_make=${MAKE-make}
3707 cat > confinc << 'END'
3708 am__doit:
3709         @echo this is the am__doit target
3710 .PHONY: am__doit
3711 END
3712 # If we don't find an include directive, just comment out the code.
3713 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3714 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3715 am__include="#"
3716 am__quote=
3717 _am_result=none
3718 # First try GNU make style include.
3719 echo "include confinc" > confmf
3720 # Ignore all kinds of additional output from `make'.
3721 case `$am_make -s -f confmf 2> /dev/null` in #(
3722 *the\ am__doit\ target*)
3723   am__include=include
3724   am__quote=
3725   _am_result=GNU
3726   ;;
3727 esac
3728 # Now try BSD make style include.
3729 if test "$am__include" = "#"; then
3730    echo '.include "confinc"' > confmf
3731    case `$am_make -s -f confmf 2> /dev/null` in #(
3732    *the\ am__doit\ target*)
3733      am__include=.include
3734      am__quote="\""
3735      _am_result=BSD
3736      ;;
3737    esac
3738 fi
3739
3740
3741 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3742 $as_echo "$_am_result" >&6; }
3743 rm -f confinc confmf
3744
3745 # Check whether --enable-dependency-tracking was given.
3746 if test "${enable_dependency_tracking+set}" = set; then
3747   enableval=$enable_dependency_tracking;
3748 fi
3749
3750 if test "x$enable_dependency_tracking" != xno; then
3751   am_depcomp="$ac_aux_dir/depcomp"
3752   AMDEPBACKSLASH='\'
3753 fi
3754  if test "x$enable_dependency_tracking" != xno; then
3755   AMDEP_TRUE=
3756   AMDEP_FALSE='#'
3757 else
3758   AMDEP_TRUE='#'
3759   AMDEP_FALSE=
3760 fi
3761
3762
3763
3764 depcc="$CC"   am_compiler_list=
3765
3766 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3767 $as_echo_n "checking dependency style of $depcc... " >&6; }
3768 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3769   $as_echo_n "(cached) " >&6
3770 else
3771   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3772   # We make a subdir and do the tests there.  Otherwise we can end up
3773   # making bogus files that we don't know about and never remove.  For
3774   # instance it was reported that on HP-UX the gcc test will end up
3775   # making a dummy file named `D' -- because `-MD' means `put the output
3776   # in D'.
3777   mkdir conftest.dir
3778   # Copy depcomp to subdir because otherwise we won't find it if we're
3779   # using a relative directory.
3780   cp "$am_depcomp" conftest.dir
3781   cd conftest.dir
3782   # We will build objects and dependencies in a subdirectory because
3783   # it helps to detect inapplicable dependency modes.  For instance
3784   # both Tru64's cc and ICC support -MD to output dependencies as a
3785   # side effect of compilation, but ICC will put the dependencies in
3786   # the current directory while Tru64 will put them in the object
3787   # directory.
3788   mkdir sub
3789
3790   am_cv_CC_dependencies_compiler_type=none
3791   if test "$am_compiler_list" = ""; then
3792      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3793   fi
3794   am__universal=false
3795   case " $depcc " in #(
3796      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3797      esac
3798
3799   for depmode in $am_compiler_list; do
3800     # Setup a source with many dependencies, because some compilers
3801     # like to wrap large dependency lists on column 80 (with \), and
3802     # we should not choose a depcomp mode which is confused by this.
3803     #
3804     # We need to recreate these files for each test, as the compiler may
3805     # overwrite some of them when testing with obscure command lines.
3806     # This happens at least with the AIX C compiler.
3807     : > sub/conftest.c
3808     for i in 1 2 3 4 5 6; do
3809       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3810       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3811       # Solaris 8's {/usr,}/bin/sh.
3812       touch sub/conftst$i.h
3813     done
3814     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3815
3816     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3817     # mode.  It turns out that the SunPro C++ compiler does not properly
3818     # handle `-M -o', and we need to detect this.  Also, some Intel
3819     # versions had trouble with output in subdirs
3820     am__obj=sub/conftest.${OBJEXT-o}
3821     am__minus_obj="-o $am__obj"
3822     case $depmode in
3823     gcc)
3824       # This depmode causes a compiler race in universal mode.
3825       test "$am__universal" = false || continue
3826       ;;
3827     nosideeffect)
3828       # after this tag, mechanisms are not by side-effect, so they'll
3829       # only be used when explicitly requested
3830       if test "x$enable_dependency_tracking" = xyes; then
3831         continue
3832       else
3833         break
3834       fi
3835       ;;
3836     msvisualcpp | msvcmsys)
3837       # This compiler won't grok `-c -o', but also, the minuso test has
3838       # not run yet.  These depmodes are late enough in the game, and
3839       # so weak that their functioning should not be impacted.
3840       am__obj=conftest.${OBJEXT-o}
3841       am__minus_obj=
3842       ;;
3843     none) break ;;
3844     esac
3845     if depmode=$depmode \
3846        source=sub/conftest.c object=$am__obj \
3847        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3848        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3849          >/dev/null 2>conftest.err &&
3850        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3851        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3852        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3853        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3854       # icc doesn't choke on unknown options, it will just issue warnings
3855       # or remarks (even with -Werror).  So we grep stderr for any message
3856       # that says an option was ignored or not supported.
3857       # When given -MP, icc 7.0 and 7.1 complain thusly:
3858       #   icc: Command line warning: ignoring option '-M'; no argument required
3859       # The diagnosis changed in icc 8.0:
3860       #   icc: Command line remark: option '-MP' not supported
3861       if (grep 'ignoring option' conftest.err ||
3862           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3863         am_cv_CC_dependencies_compiler_type=$depmode
3864         break
3865       fi
3866     fi
3867   done
3868
3869   cd ..
3870   rm -rf conftest.dir
3871 else
3872   am_cv_CC_dependencies_compiler_type=none
3873 fi
3874
3875 fi
3876 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3877 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3878 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3879
3880  if
3881   test "x$enable_dependency_tracking" != xno \
3882   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3883   am__fastdepCC_TRUE=
3884   am__fastdepCC_FALSE='#'
3885 else
3886   am__fastdepCC_TRUE='#'
3887   am__fastdepCC_FALSE=
3888 fi
3889
3890
3891
3892
3893
3894
3895
3896 # By default we simply use the C compiler to build assembly code.
3897
3898 test "${CCAS+set}" = set || CCAS=$CC
3899 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3900
3901
3902
3903 depcc="$CCAS"   am_compiler_list=
3904
3905 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3906 $as_echo_n "checking dependency style of $depcc... " >&6; }
3907 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3908   $as_echo_n "(cached) " >&6
3909 else
3910   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3911   # We make a subdir and do the tests there.  Otherwise we can end up
3912   # making bogus files that we don't know about and never remove.  For
3913   # instance it was reported that on HP-UX the gcc test will end up
3914   # making a dummy file named `D' -- because `-MD' means `put the output
3915   # in D'.
3916   mkdir conftest.dir
3917   # Copy depcomp to subdir because otherwise we won't find it if we're
3918   # using a relative directory.
3919   cp "$am_depcomp" conftest.dir
3920   cd conftest.dir
3921   # We will build objects and dependencies in a subdirectory because
3922   # it helps to detect inapplicable dependency modes.  For instance
3923   # both Tru64's cc and ICC support -MD to output dependencies as a
3924   # side effect of compilation, but ICC will put the dependencies in
3925   # the current directory while Tru64 will put them in the object
3926   # directory.
3927   mkdir sub
3928
3929   am_cv_CCAS_dependencies_compiler_type=none
3930   if test "$am_compiler_list" = ""; then
3931      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3932   fi
3933   am__universal=false
3934
3935
3936   for depmode in $am_compiler_list; do
3937     # Setup a source with many dependencies, because some compilers
3938     # like to wrap large dependency lists on column 80 (with \), and
3939     # we should not choose a depcomp mode which is confused by this.
3940     #
3941     # We need to recreate these files for each test, as the compiler may
3942     # overwrite some of them when testing with obscure command lines.
3943     # This happens at least with the AIX C compiler.
3944     : > sub/conftest.c
3945     for i in 1 2 3 4 5 6; do
3946       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3947       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3948       # Solaris 8's {/usr,}/bin/sh.
3949       touch sub/conftst$i.h
3950     done
3951     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3952
3953     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3954     # mode.  It turns out that the SunPro C++ compiler does not properly
3955     # handle `-M -o', and we need to detect this.  Also, some Intel
3956     # versions had trouble with output in subdirs
3957     am__obj=sub/conftest.${OBJEXT-o}
3958     am__minus_obj="-o $am__obj"
3959     case $depmode in
3960     gcc)
3961       # This depmode causes a compiler race in universal mode.
3962       test "$am__universal" = false || continue
3963       ;;
3964     nosideeffect)
3965       # after this tag, mechanisms are not by side-effect, so they'll
3966       # only be used when explicitly requested
3967       if test "x$enable_dependency_tracking" = xyes; then
3968         continue
3969       else
3970         break
3971       fi
3972       ;;
3973     msvisualcpp | msvcmsys)
3974       # This compiler won't grok `-c -o', but also, the minuso test has
3975       # not run yet.  These depmodes are late enough in the game, and
3976       # so weak that their functioning should not be impacted.
3977       am__obj=conftest.${OBJEXT-o}
3978       am__minus_obj=
3979       ;;
3980     none) break ;;
3981     esac
3982     if depmode=$depmode \
3983        source=sub/conftest.c object=$am__obj \
3984        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3985        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3986          >/dev/null 2>conftest.err &&
3987        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3988        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3989        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3990        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3991       # icc doesn't choke on unknown options, it will just issue warnings
3992       # or remarks (even with -Werror).  So we grep stderr for any message
3993       # that says an option was ignored or not supported.
3994       # When given -MP, icc 7.0 and 7.1 complain thusly:
3995       #   icc: Command line warning: ignoring option '-M'; no argument required
3996       # The diagnosis changed in icc 8.0:
3997       #   icc: Command line remark: option '-MP' not supported
3998       if (grep 'ignoring option' conftest.err ||
3999           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4000         am_cv_CCAS_dependencies_compiler_type=$depmode
4001         break
4002       fi
4003     fi
4004   done
4005
4006   cd ..
4007   rm -rf conftest.dir
4008 else
4009   am_cv_CCAS_dependencies_compiler_type=none
4010 fi
4011
4012 fi
4013 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4014 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4015 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4016
4017  if
4018   test "x$enable_dependency_tracking" != xno \
4019   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4020   am__fastdepCCAS_TRUE=
4021   am__fastdepCCAS_FALSE='#'
4022 else
4023   am__fastdepCCAS_TRUE='#'
4024   am__fastdepCCAS_FALSE=
4025 fi
4026
4027
4028 if test "x$CC" != xcc; then
4029   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4030 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4031 else
4032   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4033 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4034 fi
4035 set dummy $CC; ac_cc=`$as_echo "$2" |
4036                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4037 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4038   $as_echo_n "(cached) " >&6
4039 else
4040   cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h.  */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h.  */
4046
4047 int
4048 main ()
4049 {
4050
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 # Make sure it works both with $CC and with simple cc.
4056 # We do the test twice because some compilers refuse to overwrite an
4057 # existing .o file with -o, though they will create one.
4058 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4059 rm -f conftest2.*
4060 if { (case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4065 $as_echo "$ac_try_echo") >&5
4066   (eval "$ac_try") 2>&5
4067   ac_status=$?
4068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } &&
4070    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076   (eval "$ac_try") 2>&5
4077   ac_status=$?
4078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); };
4080 then
4081   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4082   if test "x$CC" != xcc; then
4083     # Test first that cc exists at all.
4084     if { ac_try='cc -c conftest.$ac_ext >&5'
4085   { (case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4090 $as_echo "$ac_try_echo") >&5
4091   (eval "$ac_try") 2>&5
4092   ac_status=$?
4093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); }; }; then
4095       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4096       rm -f conftest2.*
4097       if { (case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4102 $as_echo "$ac_try_echo") >&5
4103   (eval "$ac_try") 2>&5
4104   ac_status=$?
4105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); } &&
4107          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109   *) ac_try_echo=$ac_try;;
4110 esac
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113   (eval "$ac_try") 2>&5
4114   ac_status=$?
4115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); };
4117       then
4118         # cc works too.
4119         :
4120       else
4121         # cc exists but doesn't like -o.
4122         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4123       fi
4124     fi
4125   fi
4126 else
4127   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4128 fi
4129 rm -f core conftest*
4130
4131 fi
4132 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4133   { $as_echo "$as_me:$LINENO: result: yes" >&5
4134 $as_echo "yes" >&6; }
4135 else
4136   { $as_echo "$as_me:$LINENO: result: no" >&5
4137 $as_echo "no" >&6; }
4138
4139 cat >>confdefs.h <<\_ACEOF
4140 #define NO_MINUS_C_MINUS_O 1
4141 _ACEOF
4142
4143 fi
4144
4145 # FIXME: we rely on the cache variable name because
4146 # there is no other way.
4147 set dummy $CC
4148 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4149 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4150 if test "$am_t" != yes; then
4151    # Losing compiler, so override with the script.
4152    # FIXME: It is wrong to rewrite CC.
4153    # But if we don't then we get into trouble of one sort or another.
4154    # A longer-term fix would be to have automake use am__CC in this case,
4155    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4156    CC="$am_aux_dir/compile $CC"
4157 fi
4158
4159
4160 case `pwd` in
4161   *\ * | *\     *)
4162     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4163 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4164 esac
4165
4166
4167
4168 macro_version='2.2.6b'
4169 macro_revision='1.3017'
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183 ltmain="$ac_aux_dir/ltmain.sh"
4184
4185 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4186 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4187 if test "${ac_cv_path_SED+set}" = set; then
4188   $as_echo_n "(cached) " >&6
4189 else
4190             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4191      for ac_i in 1 2 3 4 5 6 7; do
4192        ac_script="$ac_script$as_nl$ac_script"
4193      done
4194      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4195      $as_unset ac_script || ac_script=
4196      if test -z "$SED"; then
4197   ac_path_SED_found=false
4198   # Loop through the user's path and test for each of PROGNAME-LIST
4199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204   for ac_prog in sed gsed; do
4205     for ac_exec_ext in '' $ac_executable_extensions; do
4206       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4207       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4208 # Check for GNU ac_path_SED and select it if it is found.
4209   # Check for GNU $ac_path_SED
4210 case `"$ac_path_SED" --version 2>&1` in
4211 *GNU*)
4212   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4213 *)
4214   ac_count=0
4215   $as_echo_n 0123456789 >"conftest.in"
4216   while :
4217   do
4218     cat "conftest.in" "conftest.in" >"conftest.tmp"
4219     mv "conftest.tmp" "conftest.in"
4220     cp "conftest.in" "conftest.nl"
4221     $as_echo '' >> "conftest.nl"
4222     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224     ac_count=`expr $ac_count + 1`
4225     if test $ac_count -gt ${ac_path_SED_max-0}; then
4226       # Best one so far, save it but keep looking for a better one
4227       ac_cv_path_SED="$ac_path_SED"
4228       ac_path_SED_max=$ac_count
4229     fi
4230     # 10*(2^10) chars as input seems more than enough
4231     test $ac_count -gt 10 && break
4232   done
4233   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4235
4236       $ac_path_SED_found && break 3
4237     done
4238   done
4239 done
4240 IFS=$as_save_IFS
4241   if test -z "$ac_cv_path_SED"; then
4242     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4243 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4244    { (exit 1); exit 1; }; }
4245   fi
4246 else
4247   ac_cv_path_SED=$SED
4248 fi
4249
4250 fi
4251 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4252 $as_echo "$ac_cv_path_SED" >&6; }
4253  SED="$ac_cv_path_SED"
4254   rm -f conftest.sed
4255
4256 test -z "$SED" && SED=sed
4257 Xsed="$SED -e 1s/^X//"
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4270 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4271 if test "${ac_cv_path_GREP+set}" = set; then
4272   $as_echo_n "(cached) " >&6
4273 else
4274   if test -z "$GREP"; then
4275   ac_path_GREP_found=false
4276   # Loop through the user's path and test for each of PROGNAME-LIST
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282   for ac_prog in grep ggrep; do
4283     for ac_exec_ext in '' $ac_executable_extensions; do
4284       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4285       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4286 # Check for GNU ac_path_GREP and select it if it is found.
4287   # Check for GNU $ac_path_GREP
4288 case `"$ac_path_GREP" --version 2>&1` in
4289 *GNU*)
4290   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4291 *)
4292   ac_count=0
4293   $as_echo_n 0123456789 >"conftest.in"
4294   while :
4295   do
4296     cat "conftest.in" "conftest.in" >"conftest.tmp"
4297     mv "conftest.tmp" "conftest.in"
4298     cp "conftest.in" "conftest.nl"
4299     $as_echo 'GREP' >> "conftest.nl"
4300     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302     ac_count=`expr $ac_count + 1`
4303     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4304       # Best one so far, save it but keep looking for a better one
4305       ac_cv_path_GREP="$ac_path_GREP"
4306       ac_path_GREP_max=$ac_count
4307     fi
4308     # 10*(2^10) chars as input seems more than enough
4309     test $ac_count -gt 10 && break
4310   done
4311   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312 esac
4313
4314       $ac_path_GREP_found && break 3
4315     done
4316   done
4317 done
4318 IFS=$as_save_IFS
4319   if test -z "$ac_cv_path_GREP"; then
4320     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4321 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4322    { (exit 1); exit 1; }; }
4323   fi
4324 else
4325   ac_cv_path_GREP=$GREP
4326 fi
4327
4328 fi
4329 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4330 $as_echo "$ac_cv_path_GREP" >&6; }
4331  GREP="$ac_cv_path_GREP"
4332
4333
4334 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4335 $as_echo_n "checking for egrep... " >&6; }
4336 if test "${ac_cv_path_EGREP+set}" = set; then
4337   $as_echo_n "(cached) " >&6
4338 else
4339   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4340    then ac_cv_path_EGREP="$GREP -E"
4341    else
4342      if test -z "$EGREP"; then
4343   ac_path_EGREP_found=false
4344   # Loop through the user's path and test for each of PROGNAME-LIST
4345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for ac_prog in egrep; do
4351     for ac_exec_ext in '' $ac_executable_extensions; do
4352       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4353       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4354 # Check for GNU ac_path_EGREP and select it if it is found.
4355   # Check for GNU $ac_path_EGREP
4356 case `"$ac_path_EGREP" --version 2>&1` in
4357 *GNU*)
4358   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4359 *)
4360   ac_count=0
4361   $as_echo_n 0123456789 >"conftest.in"
4362   while :
4363   do
4364     cat "conftest.in" "conftest.in" >"conftest.tmp"
4365     mv "conftest.tmp" "conftest.in"
4366     cp "conftest.in" "conftest.nl"
4367     $as_echo 'EGREP' >> "conftest.nl"
4368     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370     ac_count=`expr $ac_count + 1`
4371     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4372       # Best one so far, save it but keep looking for a better one
4373       ac_cv_path_EGREP="$ac_path_EGREP"
4374       ac_path_EGREP_max=$ac_count
4375     fi
4376     # 10*(2^10) chars as input seems more than enough
4377     test $ac_count -gt 10 && break
4378   done
4379   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4381
4382       $ac_path_EGREP_found && break 3
4383     done
4384   done
4385 done
4386 IFS=$as_save_IFS
4387   if test -z "$ac_cv_path_EGREP"; then
4388     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4389 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4390    { (exit 1); exit 1; }; }
4391   fi
4392 else
4393   ac_cv_path_EGREP=$EGREP
4394 fi
4395
4396    fi
4397 fi
4398 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4399 $as_echo "$ac_cv_path_EGREP" >&6; }
4400  EGREP="$ac_cv_path_EGREP"
4401
4402
4403 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4404 $as_echo_n "checking for fgrep... " >&6; }
4405 if test "${ac_cv_path_FGREP+set}" = set; then
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4409    then ac_cv_path_FGREP="$GREP -F"
4410    else
4411      if test -z "$FGREP"; then
4412   ac_path_FGREP_found=false
4413   # Loop through the user's path and test for each of PROGNAME-LIST
4414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419   for ac_prog in fgrep; do
4420     for ac_exec_ext in '' $ac_executable_extensions; do
4421       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4422       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4423 # Check for GNU ac_path_FGREP and select it if it is found.
4424   # Check for GNU $ac_path_FGREP
4425 case `"$ac_path_FGREP" --version 2>&1` in
4426 *GNU*)
4427   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4428 *)
4429   ac_count=0
4430   $as_echo_n 0123456789 >"conftest.in"
4431   while :
4432   do
4433     cat "conftest.in" "conftest.in" >"conftest.tmp"
4434     mv "conftest.tmp" "conftest.in"
4435     cp "conftest.in" "conftest.nl"
4436     $as_echo 'FGREP' >> "conftest.nl"
4437     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439     ac_count=`expr $ac_count + 1`
4440     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4441       # Best one so far, save it but keep looking for a better one
4442       ac_cv_path_FGREP="$ac_path_FGREP"
4443       ac_path_FGREP_max=$ac_count
4444     fi
4445     # 10*(2^10) chars as input seems more than enough
4446     test $ac_count -gt 10 && break
4447   done
4448   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449 esac
4450
4451       $ac_path_FGREP_found && break 3
4452     done
4453   done
4454 done
4455 IFS=$as_save_IFS
4456   if test -z "$ac_cv_path_FGREP"; then
4457     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4458 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4459    { (exit 1); exit 1; }; }
4460   fi
4461 else
4462   ac_cv_path_FGREP=$FGREP
4463 fi
4464
4465    fi
4466 fi
4467 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4468 $as_echo "$ac_cv_path_FGREP" >&6; }
4469  FGREP="$ac_cv_path_FGREP"
4470
4471
4472 test -z "$GREP" && GREP=grep
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492 # Check whether --with-gnu-ld was given.
4493 if test "${with_gnu_ld+set}" = set; then
4494   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4495 else
4496   with_gnu_ld=no
4497 fi
4498
4499 ac_prog=ld
4500 if test "$GCC" = yes; then
4501   # Check if gcc -print-prog-name=ld gives a path.
4502   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4503 $as_echo_n "checking for ld used by $CC... " >&6; }
4504   case $host in
4505   *-*-mingw*)
4506     # gcc leaves a trailing carriage return which upsets mingw
4507     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4508   *)
4509     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4510   esac
4511   case $ac_prog in
4512     # Accept absolute paths.
4513     [\\/]* | ?:[\\/]*)
4514       re_direlt='/[^/][^/]*/\.\./'
4515       # Canonicalize the pathname of ld
4516       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4517       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4518         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4519       done
4520       test -z "$LD" && LD="$ac_prog"
4521       ;;
4522   "")
4523     # If it fails, then pretend we aren't using GCC.
4524     ac_prog=ld
4525     ;;
4526   *)
4527     # If it is relative, then search for the first ld in PATH.
4528     with_gnu_ld=unknown
4529     ;;
4530   esac
4531 elif test "$with_gnu_ld" = yes; then
4532   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4533 $as_echo_n "checking for GNU ld... " >&6; }
4534 else
4535   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4536 $as_echo_n "checking for non-GNU ld... " >&6; }
4537 fi
4538 if test "${lt_cv_path_LD+set}" = set; then
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -z "$LD"; then
4542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4543   for ac_dir in $PATH; do
4544     IFS="$lt_save_ifs"
4545     test -z "$ac_dir" && ac_dir=.
4546     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547       lt_cv_path_LD="$ac_dir/$ac_prog"
4548       # Check to see if the program is GNU ld.  I'd rather use --version,
4549       # but apparently some variants of GNU ld only accept -v.
4550       # Break only if it was the GNU/non-GNU ld that we prefer.
4551       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4552       *GNU* | *'with BFD'*)
4553         test "$with_gnu_ld" != no && break
4554         ;;
4555       *)
4556         test "$with_gnu_ld" != yes && break
4557         ;;
4558       esac
4559     fi
4560   done
4561   IFS="$lt_save_ifs"
4562 else
4563   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4564 fi
4565 fi
4566
4567 LD="$lt_cv_path_LD"
4568 if test -n "$LD"; then
4569   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4570 $as_echo "$LD" >&6; }
4571 else
4572   { $as_echo "$as_me:$LINENO: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4576 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4577    { (exit 1); exit 1; }; }
4578 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4581   $as_echo_n "(cached) " >&6
4582 else
4583   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4584 case `$LD -v 2>&1 </dev/null` in
4585 *GNU* | *'with BFD'*)
4586   lt_cv_prog_gnu_ld=yes
4587   ;;
4588 *)
4589   lt_cv_prog_gnu_ld=no
4590   ;;
4591 esac
4592 fi
4593 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4595 with_gnu_ld=$lt_cv_prog_gnu_ld
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4606 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4607 if test "${lt_cv_path_NM+set}" = set; then
4608   $as_echo_n "(cached) " >&6
4609 else
4610   if test -n "$NM"; then
4611   # Let the user override the test.
4612   lt_cv_path_NM="$NM"
4613 else
4614   lt_nm_to_check="${ac_tool_prefix}nm"
4615   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4616     lt_nm_to_check="$lt_nm_to_check nm"
4617   fi
4618   for lt_tmp_nm in $lt_nm_to_check; do
4619     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4620     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4621       IFS="$lt_save_ifs"
4622       test -z "$ac_dir" && ac_dir=.
4623       tmp_nm="$ac_dir/$lt_tmp_nm"
4624       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4625         # Check to see if the nm accepts a BSD-compat flag.
4626         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4627         #   nm: unknown option "B" ignored
4628         # Tru64's nm complains that /dev/null is an invalid object file
4629         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4630         */dev/null* | *'Invalid file or object type'*)
4631           lt_cv_path_NM="$tmp_nm -B"
4632           break
4633           ;;
4634         *)
4635           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4636           */dev/null*)
4637             lt_cv_path_NM="$tmp_nm -p"
4638             break
4639             ;;
4640           *)
4641             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4642             continue # so that we can try to find one that supports BSD flags
4643             ;;
4644           esac
4645           ;;
4646         esac
4647       fi
4648     done
4649     IFS="$lt_save_ifs"
4650   done
4651   : ${lt_cv_path_NM=no}
4652 fi
4653 fi
4654 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4655 $as_echo "$lt_cv_path_NM" >&6; }
4656 if test "$lt_cv_path_NM" != "no"; then
4657   NM="$lt_cv_path_NM"
4658 else
4659   # Didn't find any BSD compatible name lister, look for dumpbin.
4660   if test -n "$ac_tool_prefix"; then
4661   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4662   do
4663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4668   $as_echo_n "(cached) " >&6
4669 else
4670   if test -n "$DUMPBIN"; then
4671   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678   for ac_exec_ext in '' $ac_executable_extensions; do
4679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4681     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 DUMPBIN=$ac_cv_prog_DUMPBIN
4691 if test -n "$DUMPBIN"; then
4692   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4693 $as_echo "$DUMPBIN" >&6; }
4694 else
4695   { $as_echo "$as_me:$LINENO: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699
4700     test -n "$DUMPBIN" && break
4701   done
4702 fi
4703 if test -z "$DUMPBIN"; then
4704   ac_ct_DUMPBIN=$DUMPBIN
4705   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4706 do
4707   # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4712   $as_echo_n "(cached) " >&6
4713 else
4714   if test -n "$ac_ct_DUMPBIN"; then
4715   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4725     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4735 if test -n "$ac_ct_DUMPBIN"; then
4736   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4737 $as_echo "$ac_ct_DUMPBIN" >&6; }
4738 else
4739   { $as_echo "$as_me:$LINENO: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744   test -n "$ac_ct_DUMPBIN" && break
4745 done
4746
4747   if test "x$ac_ct_DUMPBIN" = x; then
4748     DUMPBIN=":"
4749   else
4750     case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756     DUMPBIN=$ac_ct_DUMPBIN
4757   fi
4758 fi
4759
4760
4761   if test "$DUMPBIN" != ":"; then
4762     NM="$DUMPBIN"
4763   fi
4764 fi
4765 test -z "$NM" && NM=nm
4766
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4773 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4774 if test "${lt_cv_nm_interface+set}" = set; then
4775   $as_echo_n "(cached) " >&6
4776 else
4777   lt_cv_nm_interface="BSD nm"
4778   echo "int some_variable = 0;" > conftest.$ac_ext
4779   (eval echo "\"\$as_me:4779: $ac_compile\"" >&5)
4780   (eval "$ac_compile" 2>conftest.err)
4781   cat conftest.err >&5
4782   (eval echo "\"\$as_me:4782: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4783   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4784   cat conftest.err >&5
4785   (eval echo "\"\$as_me:4785: output\"" >&5)
4786   cat conftest.out >&5
4787   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4788     lt_cv_nm_interface="MS dumpbin"
4789   fi
4790   rm -f conftest*
4791 fi
4792 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4793 $as_echo "$lt_cv_nm_interface" >&6; }
4794
4795 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4796 $as_echo_n "checking whether ln -s works... " >&6; }
4797 LN_S=$as_ln_s
4798 if test "$LN_S" = "ln -s"; then
4799   { $as_echo "$as_me:$LINENO: result: yes" >&5
4800 $as_echo "yes" >&6; }
4801 else
4802   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4803 $as_echo "no, using $LN_S" >&6; }
4804 fi
4805
4806 # find the maximum length of command line arguments
4807 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4808 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4809 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4810   $as_echo_n "(cached) " >&6
4811 else
4812     i=0
4813   teststring="ABCD"
4814
4815   case $build_os in
4816   msdosdjgpp*)
4817     # On DJGPP, this test can blow up pretty badly due to problems in libc
4818     # (any single argument exceeding 2000 bytes causes a buffer overrun
4819     # during glob expansion).  Even if it were fixed, the result of this
4820     # check would be larger than it should be.
4821     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4822     ;;
4823
4824   gnu*)
4825     # Under GNU Hurd, this test is not required because there is
4826     # no limit to the length of command line arguments.
4827     # Libtool will interpret -1 as no limit whatsoever
4828     lt_cv_sys_max_cmd_len=-1;
4829     ;;
4830
4831   cygwin* | mingw* | cegcc*)
4832     # On Win9x/ME, this test blows up -- it succeeds, but takes
4833     # about 5 minutes as the teststring grows exponentially.
4834     # Worse, since 9x/ME are not pre-emptively multitasking,
4835     # you end up with a "frozen" computer, even though with patience
4836     # the test eventually succeeds (with a max line length of 256k).
4837     # Instead, let's just punt: use the minimum linelength reported by
4838     # all of the supported platforms: 8192 (on NT/2K/XP).
4839     lt_cv_sys_max_cmd_len=8192;
4840     ;;
4841
4842   amigaos*)
4843     # On AmigaOS with pdksh, this test takes hours, literally.
4844     # So we just punt and use a minimum line length of 8192.
4845     lt_cv_sys_max_cmd_len=8192;
4846     ;;
4847
4848   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4849     # This has been around since 386BSD, at least.  Likely further.
4850     if test -x /sbin/sysctl; then
4851       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4852     elif test -x /usr/sbin/sysctl; then
4853       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4854     else
4855       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4856     fi
4857     # And add a safety zone
4858     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4859     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4860     ;;
4861
4862   interix*)
4863     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4864     lt_cv_sys_max_cmd_len=196608
4865     ;;
4866
4867   osf*)
4868     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4869     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4870     # nice to cause kernel panics so lets avoid the loop below.
4871     # First set a reasonable default.
4872     lt_cv_sys_max_cmd_len=16384
4873     #
4874     if test -x /sbin/sysconfig; then
4875       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4876         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4877       esac
4878     fi
4879     ;;
4880   sco3.2v5*)
4881     lt_cv_sys_max_cmd_len=102400
4882     ;;
4883   sysv5* | sco5v6* | sysv4.2uw2*)
4884     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4885     if test -n "$kargmax"; then
4886       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4887     else
4888       lt_cv_sys_max_cmd_len=32768
4889     fi
4890     ;;
4891   *)
4892     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4893     if test -n "$lt_cv_sys_max_cmd_len"; then
4894       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896     else
4897       # Make teststring a little bigger before we do anything with it.
4898       # a 1K string should be a reasonable start.
4899       for i in 1 2 3 4 5 6 7 8 ; do
4900         teststring=$teststring$teststring
4901       done
4902       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4903       # If test is not a shell built-in, we'll probably end up computing a
4904       # maximum length that is only half of the actual maximum length, but
4905       # we can't tell.
4906       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4907                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4908               test $i != 17 # 1/2 MB should be enough
4909       do
4910         i=`expr $i + 1`
4911         teststring=$teststring$teststring
4912       done
4913       # Only check the string length outside the loop.
4914       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4915       teststring=
4916       # Add a significant safety factor because C++ compilers can tack on
4917       # massive amounts of additional arguments before passing them to the
4918       # linker.  It appears as though 1/2 is a usable value.
4919       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4920     fi
4921     ;;
4922   esac
4923
4924 fi
4925
4926 if test -n $lt_cv_sys_max_cmd_len ; then
4927   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4928 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4929 else
4930   { $as_echo "$as_me:$LINENO: result: none" >&5
4931 $as_echo "none" >&6; }
4932 fi
4933 max_cmd_len=$lt_cv_sys_max_cmd_len
4934
4935
4936
4937
4938
4939
4940 : ${CP="cp -f"}
4941 : ${MV="mv -f"}
4942 : ${RM="rm -f"}
4943
4944 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4946 # Try some XSI features
4947 xsi_shell=no
4948 ( _lt_dummy="a/b/c"
4949   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4950       = c,a/b,, \
4951     && eval 'test $(( 1 + 1 )) -eq 2 \
4952     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4953   && xsi_shell=yes
4954 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4955 $as_echo "$xsi_shell" >&6; }
4956
4957
4958 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4959 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4960 lt_shell_append=no
4961 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4962     >/dev/null 2>&1 \
4963   && lt_shell_append=yes
4964 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4965 $as_echo "$lt_shell_append" >&6; }
4966
4967
4968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4969   lt_unset=unset
4970 else
4971   lt_unset=false
4972 fi
4973
4974
4975
4976
4977
4978 # test EBCDIC or ASCII
4979 case `echo X|tr X '\101'` in
4980  A) # ASCII based system
4981     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4982   lt_SP2NL='tr \040 \012'
4983   lt_NL2SP='tr \015\012 \040\040'
4984   ;;
4985  *) # EBCDIC based system
4986   lt_SP2NL='tr \100 \n'
4987   lt_NL2SP='tr \r\n \100\100'
4988   ;;
4989 esac
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5000 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5001 if test "${lt_cv_ld_reload_flag+set}" = set; then
5002   $as_echo_n "(cached) " >&6
5003 else
5004   lt_cv_ld_reload_flag='-r'
5005 fi
5006 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5007 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5008 reload_flag=$lt_cv_ld_reload_flag
5009 case $reload_flag in
5010 "" | " "*) ;;
5011 *) reload_flag=" $reload_flag" ;;
5012 esac
5013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5014 case $host_os in
5015   darwin*)
5016     if test "$GCC" = yes; then
5017       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5018     else
5019       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020     fi
5021     ;;
5022 esac
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 if test -n "$ac_tool_prefix"; then
5033   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5038   $as_echo_n "(cached) " >&6
5039 else
5040   if test -n "$OBJDUMP"; then
5041   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046   IFS=$as_save_IFS
5047   test -z "$as_dir" && as_dir=.
5048   for ac_exec_ext in '' $ac_executable_extensions; do
5049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052     break 2
5053   fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 OBJDUMP=$ac_cv_prog_OBJDUMP
5061 if test -n "$OBJDUMP"; then
5062   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5063 $as_echo "$OBJDUMP" >&6; }
5064 else
5065   { $as_echo "$as_me:$LINENO: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 fi
5071 if test -z "$ac_cv_prog_OBJDUMP"; then
5072   ac_ct_OBJDUMP=$OBJDUMP
5073   # Extract the first word of "objdump", so it can be a program name with args.
5074 set dummy objdump; ac_word=$2
5075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5078   $as_echo_n "(cached) " >&6
5079 else
5080   if test -n "$ac_ct_OBJDUMP"; then
5081   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   for ac_exec_ext in '' $ac_executable_extensions; do
5089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5091     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095 done
5096 IFS=$as_save_IFS
5097
5098 fi
5099 fi
5100 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5101 if test -n "$ac_ct_OBJDUMP"; then
5102   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5103 $as_echo "$ac_ct_OBJDUMP" >&6; }
5104 else
5105   { $as_echo "$as_me:$LINENO: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109   if test "x$ac_ct_OBJDUMP" = x; then
5110     OBJDUMP="false"
5111   else
5112     case $cross_compiling:$ac_tool_warned in
5113 yes:)
5114 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118     OBJDUMP=$ac_ct_OBJDUMP
5119   fi
5120 else
5121   OBJDUMP="$ac_cv_prog_OBJDUMP"
5122 fi
5123
5124 test -z "$OBJDUMP" && OBJDUMP=objdump
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5135 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5136 if test "${lt_cv_deplibs_check_method+set}" = set; then
5137   $as_echo_n "(cached) " >&6
5138 else
5139   lt_cv_file_magic_cmd='$MAGIC_CMD'
5140 lt_cv_file_magic_test_file=
5141 lt_cv_deplibs_check_method='unknown'
5142 # Need to set the preceding variable on all platforms that support
5143 # interlibrary dependencies.
5144 # 'none' -- dependencies not supported.
5145 # `unknown' -- same as none, but documents that we really don't know.
5146 # 'pass_all' -- all dependencies passed with no checks.
5147 # 'test_compile' -- check by making test program.
5148 # 'file_magic [[regex]]' -- check by looking for files in library path
5149 # which responds to the $file_magic_cmd with a given extended regex.
5150 # If you have `file' or equivalent on your system and you're not sure
5151 # whether `pass_all' will *always* work, you probably want this one.
5152
5153 case $host_os in
5154 aix[4-9]*)
5155   lt_cv_deplibs_check_method=pass_all
5156   ;;
5157
5158 beos*)
5159   lt_cv_deplibs_check_method=pass_all
5160   ;;
5161
5162 bsdi[45]*)
5163   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5164   lt_cv_file_magic_cmd='/usr/bin/file -L'
5165   lt_cv_file_magic_test_file=/shlib/libc.so
5166   ;;
5167
5168 cygwin*)
5169   # func_win32_libid is a shell function defined in ltmain.sh
5170   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5171   lt_cv_file_magic_cmd='func_win32_libid'
5172   ;;
5173
5174 mingw* | pw32*)
5175   # Base MSYS/MinGW do not provide the 'file' command needed by
5176   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5177   # unless we find 'file', for example because we are cross-compiling.
5178   if ( file / ) >/dev/null 2>&1; then
5179     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5180     lt_cv_file_magic_cmd='func_win32_libid'
5181   else
5182     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5183     lt_cv_file_magic_cmd='$OBJDUMP -f'
5184   fi
5185   ;;
5186
5187 cegcc)
5188   # use the weaker test based on 'objdump'. See mingw*.
5189   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5190   lt_cv_file_magic_cmd='$OBJDUMP -f'
5191   ;;
5192
5193 darwin* | rhapsody*)
5194   lt_cv_deplibs_check_method=pass_all
5195   ;;
5196
5197 freebsd* | dragonfly*)
5198   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5199     case $host_cpu in
5200     i*86 )
5201       # Not sure whether the presence of OpenBSD here was a mistake.
5202       # Let's accept both of them until this is cleared up.
5203       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5204       lt_cv_file_magic_cmd=/usr/bin/file
5205       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5206       ;;
5207     esac
5208   else
5209     lt_cv_deplibs_check_method=pass_all
5210   fi
5211   ;;
5212
5213 gnu*)
5214   lt_cv_deplibs_check_method=pass_all
5215   ;;
5216
5217 hpux10.20* | hpux11*)
5218   lt_cv_file_magic_cmd=/usr/bin/file
5219   case $host_cpu in
5220   ia64*)
5221     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5222     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5223     ;;
5224   hppa*64*)
5225     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]'
5226     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5227     ;;
5228   *)
5229     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5230     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5231     ;;
5232   esac
5233   ;;
5234
5235 interix[3-9]*)
5236   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5237   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5238   ;;
5239
5240 irix5* | irix6* | nonstopux*)
5241   case $LD in
5242   *-32|*"-32 ") libmagic=32-bit;;
5243   *-n32|*"-n32 ") libmagic=N32;;
5244   *-64|*"-64 ") libmagic=64-bit;;
5245   *) libmagic=never-match;;
5246   esac
5247   lt_cv_deplibs_check_method=pass_all
5248   ;;
5249
5250 # This must be Linux ELF.
5251 linux* | k*bsd*-gnu)
5252   lt_cv_deplibs_check_method=pass_all
5253   ;;
5254
5255 netbsd*)
5256   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5257     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5258   else
5259     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5260   fi
5261   ;;
5262
5263 newos6*)
5264   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5265   lt_cv_file_magic_cmd=/usr/bin/file
5266   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5267   ;;
5268
5269 *nto* | *qnx*)
5270   lt_cv_deplibs_check_method=pass_all
5271   ;;
5272
5273 openbsd*)
5274   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5275     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5276   else
5277     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5278   fi
5279   ;;
5280
5281 osf3* | osf4* | osf5*)
5282   lt_cv_deplibs_check_method=pass_all
5283   ;;
5284
5285 rdos*)
5286   lt_cv_deplibs_check_method=pass_all
5287   ;;
5288
5289 solaris*)
5290   lt_cv_deplibs_check_method=pass_all
5291   ;;
5292
5293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5294   lt_cv_deplibs_check_method=pass_all
5295   ;;
5296
5297 sysv4 | sysv4.3*)
5298   case $host_vendor in
5299   motorola)
5300     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]'
5301     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5302     ;;
5303   ncr)
5304     lt_cv_deplibs_check_method=pass_all
5305     ;;
5306   sequent)
5307     lt_cv_file_magic_cmd='/bin/file'
5308     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5309     ;;
5310   sni)
5311     lt_cv_file_magic_cmd='/bin/file'
5312     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5313     lt_cv_file_magic_test_file=/lib/libc.so
5314     ;;
5315   siemens)
5316     lt_cv_deplibs_check_method=pass_all
5317     ;;
5318   pc)
5319     lt_cv_deplibs_check_method=pass_all
5320     ;;
5321   esac
5322   ;;
5323
5324 tpf*)
5325   lt_cv_deplibs_check_method=pass_all
5326   ;;
5327 esac
5328
5329 fi
5330 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5331 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5332 file_magic_cmd=$lt_cv_file_magic_cmd
5333 deplibs_check_method=$lt_cv_deplibs_check_method
5334 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347 if test -n "$ac_tool_prefix"; then
5348   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}ar; ac_word=$2
5350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_prog_AR+set}" = set; then
5353   $as_echo_n "(cached) " >&6
5354 else
5355   if test -n "$AR"; then
5356   ac_cv_prog_AR="$AR" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363   for ac_exec_ext in '' $ac_executable_extensions; do
5364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365     ac_cv_prog_AR="${ac_tool_prefix}ar"
5366     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370 done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 AR=$ac_cv_prog_AR
5376 if test -n "$AR"; then
5377   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5378 $as_echo "$AR" >&6; }
5379 else
5380   { $as_echo "$as_me:$LINENO: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385 fi
5386 if test -z "$ac_cv_prog_AR"; then
5387   ac_ct_AR=$AR
5388   # Extract the first word of "ar", so it can be a program name with args.
5389 set dummy ar; ac_word=$2
5390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5393   $as_echo_n "(cached) " >&6
5394 else
5395   if test -n "$ac_ct_AR"; then
5396   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403   for ac_exec_ext in '' $ac_executable_extensions; do
5404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405     ac_cv_prog_ac_ct_AR="ar"
5406     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410 done
5411 IFS=$as_save_IFS
5412
5413 fi
5414 fi
5415 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5416 if test -n "$ac_ct_AR"; then
5417   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5418 $as_echo "$ac_ct_AR" >&6; }
5419 else
5420   { $as_echo "$as_me:$LINENO: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423
5424   if test "x$ac_ct_AR" = x; then
5425     AR="false"
5426   else
5427     case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433     AR=$ac_ct_AR
5434   fi
5435 else
5436   AR="$ac_cv_prog_AR"
5437 fi
5438
5439 test -z "$AR" && AR=ar
5440 test -z "$AR_FLAGS" && AR_FLAGS=cru
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 if test -n "$ac_tool_prefix"; then
5453   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}strip; ac_word=$2
5455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if test "${ac_cv_prog_STRIP+set}" = set; then
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if test -n "$STRIP"; then
5461   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468   for ac_exec_ext in '' $ac_executable_extensions; do
5469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5471     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475 done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 STRIP=$ac_cv_prog_STRIP
5481 if test -n "$STRIP"; then
5482   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5483 $as_echo "$STRIP" >&6; }
5484 else
5485   { $as_echo "$as_me:$LINENO: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489
5490 fi
5491 if test -z "$ac_cv_prog_STRIP"; then
5492   ac_ct_STRIP=$STRIP
5493   # Extract the first word of "strip", so it can be a program name with args.
5494 set dummy strip; ac_word=$2
5495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if test -n "$ac_ct_STRIP"; then
5501   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508   for ac_exec_ext in '' $ac_executable_extensions; do
5509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510     ac_cv_prog_ac_ct_STRIP="strip"
5511     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515 done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5521 if test -n "$ac_ct_STRIP"; then
5522   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5523 $as_echo "$ac_ct_STRIP" >&6; }
5524 else
5525   { $as_echo "$as_me:$LINENO: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529   if test "x$ac_ct_STRIP" = x; then
5530     STRIP=":"
5531   else
5532     case $cross_compiling:$ac_tool_warned in
5533 yes:)
5534 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5537 esac
5538     STRIP=$ac_ct_STRIP
5539   fi
5540 else
5541   STRIP="$ac_cv_prog_STRIP"
5542 fi
5543
5544 test -z "$STRIP" && STRIP=:
5545
5546
5547
5548
5549
5550
5551 if test -n "$ac_tool_prefix"; then
5552   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_prog_RANLIB+set}" = set; then
5557   $as_echo_n "(cached) " >&6
5558 else
5559   if test -n "$RANLIB"; then
5560   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567   for ac_exec_ext in '' $ac_executable_extensions; do
5568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 RANLIB=$ac_cv_prog_RANLIB
5580 if test -n "$RANLIB"; then
5581   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5582 $as_echo "$RANLIB" >&6; }
5583 else
5584   { $as_echo "$as_me:$LINENO: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 fi
5590 if test -z "$ac_cv_prog_RANLIB"; then
5591   ac_ct_RANLIB=$RANLIB
5592   # Extract the first word of "ranlib", so it can be a program name with args.
5593 set dummy ranlib; ac_word=$2
5594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5597   $as_echo_n "(cached) " >&6
5598 else
5599   if test -n "$ac_ct_RANLIB"; then
5600   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607   for ac_exec_ext in '' $ac_executable_extensions; do
5608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609     ac_cv_prog_ac_ct_RANLIB="ranlib"
5610     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614 done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5620 if test -n "$ac_ct_RANLIB"; then
5621   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5622 $as_echo "$ac_ct_RANLIB" >&6; }
5623 else
5624   { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628   if test "x$ac_ct_RANLIB" = x; then
5629     RANLIB=":"
5630   else
5631     case $cross_compiling:$ac_tool_warned in
5632 yes:)
5633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637     RANLIB=$ac_ct_RANLIB
5638   fi
5639 else
5640   RANLIB="$ac_cv_prog_RANLIB"
5641 fi
5642
5643 test -z "$RANLIB" && RANLIB=:
5644
5645
5646
5647
5648
5649
5650 # Determine commands to create old-style static archives.
5651 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5652 old_postinstall_cmds='chmod 644 $oldlib'
5653 old_postuninstall_cmds=
5654
5655 if test -n "$RANLIB"; then
5656   case $host_os in
5657   openbsd*)
5658     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5659     ;;
5660   *)
5661     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5662     ;;
5663   esac
5664   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5665 fi
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 # If no C compiler was specified, use CC.
5701 LTCC=${LTCC-"$CC"}
5702
5703 # If no C compiler flags were specified, use CFLAGS.
5704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5705
5706 # Allow CC to be a program name with arguments.
5707 compiler=$CC
5708
5709
5710 # Check for command to grab the raw symbol name followed by C symbol from nm.
5711 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5712 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5713 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5714   $as_echo_n "(cached) " >&6
5715 else
5716
5717 # These are sane defaults that work on at least a few old systems.
5718 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5719
5720 # Character class describing NM global symbol codes.
5721 symcode='[BCDEGRST]'
5722
5723 # Regexp to match symbols that can be accessed directly from C.
5724 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5725
5726 # Define system-specific variables.
5727 case $host_os in
5728 aix*)
5729   symcode='[BCDT]'
5730   ;;
5731 cygwin* | mingw* | pw32* | cegcc*)
5732   symcode='[ABCDGISTW]'
5733   ;;
5734 hpux*)
5735   if test "$host_cpu" = ia64; then
5736     symcode='[ABCDEGRST]'
5737   fi
5738   ;;
5739 irix* | nonstopux*)
5740   symcode='[BCDEGRST]'
5741   ;;
5742 osf*)
5743   symcode='[BCDEGQRST]'
5744   ;;
5745 solaris*)
5746   symcode='[BDRT]'
5747   ;;
5748 sco3.2v5*)
5749   symcode='[DT]'
5750   ;;
5751 sysv4.2uw2*)
5752   symcode='[DT]'
5753   ;;
5754 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5755   symcode='[ABDT]'
5756   ;;
5757 sysv4)
5758   symcode='[DFNSTU]'
5759   ;;
5760 esac
5761
5762 # If we're using GNU nm, then use its standard symbol codes.
5763 case `$NM -V 2>&1` in
5764 *GNU* | *'with BFD'*)
5765   symcode='[ABCDGIRSTW]' ;;
5766 esac
5767
5768 # Transform an extracted symbol line into a proper C declaration.
5769 # Some systems (esp. on ia64) link data and code symbols differently,
5770 # so use this general approach.
5771 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5772
5773 # Transform an extracted symbol line into symbol name and symbol address
5774 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5775 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'"
5776
5777 # Handle CRLF in mingw tool chain
5778 opt_cr=
5779 case $build_os in
5780 mingw*)
5781   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5782   ;;
5783 esac
5784
5785 # Try without a prefix underscore, then with it.
5786 for ac_symprfx in "" "_"; do
5787
5788   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5789   symxfrm="\\1 $ac_symprfx\\2 \\2"
5790
5791   # Write the raw and C identifiers.
5792   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5793     # Fake it for dumpbin and say T for any non-static function
5794     # and D for any global variable.
5795     # Also find C++ and __fastcall symbols from MSVC++,
5796     # which start with @ or ?.
5797     lt_cv_sys_global_symbol_pipe="$AWK '"\
5798 "     {last_section=section; section=\$ 3};"\
5799 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5800 "     \$ 0!~/External *\|/{next};"\
5801 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5802 "     {if(hide[section]) next};"\
5803 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5804 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5805 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5806 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5807 "     ' prfx=^$ac_symprfx"
5808   else
5809     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5810   fi
5811
5812   # Check to see that the pipe works correctly.
5813   pipe_works=no
5814
5815   rm -f conftest*
5816   cat > conftest.$ac_ext <<_LT_EOF
5817 #ifdef __cplusplus
5818 extern "C" {
5819 #endif
5820 char nm_test_var;
5821 void nm_test_func(void);
5822 void nm_test_func(void){}
5823 #ifdef __cplusplus
5824 }
5825 #endif
5826 int main(){nm_test_var='a';nm_test_func();return(0);}
5827 _LT_EOF
5828
5829   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830   (eval $ac_compile) 2>&5
5831   ac_status=$?
5832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); }; then
5834     # Now try to grab the symbols.
5835     nlist=conftest.nm
5836     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5837   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5838   ac_status=$?
5839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && test -s "$nlist"; then
5841       # Try sorting and uniquifying the output.
5842       if sort "$nlist" | uniq > "$nlist"T; then
5843         mv -f "$nlist"T "$nlist"
5844       else
5845         rm -f "$nlist"T
5846       fi
5847
5848       # Make sure that we snagged all the symbols we need.
5849       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5850         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5851           cat <<_LT_EOF > conftest.$ac_ext
5852 #ifdef __cplusplus
5853 extern "C" {
5854 #endif
5855
5856 _LT_EOF
5857           # Now generate the symbol file.
5858           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5859
5860           cat <<_LT_EOF >> conftest.$ac_ext
5861
5862 /* The mapping between symbol names and symbols.  */
5863 const struct {
5864   const char *name;
5865   void       *address;
5866 }
5867 lt__PROGRAM__LTX_preloaded_symbols[] =
5868 {
5869   { "@PROGRAM@", (void *) 0 },
5870 _LT_EOF
5871           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5872           cat <<\_LT_EOF >> conftest.$ac_ext
5873   {0, (void *) 0}
5874 };
5875
5876 /* This works around a problem in FreeBSD linker */
5877 #ifdef FREEBSD_WORKAROUND
5878 static const void *lt_preloaded_setup() {
5879   return lt__PROGRAM__LTX_preloaded_symbols;
5880 }
5881 #endif
5882
5883 #ifdef __cplusplus
5884 }
5885 #endif
5886 _LT_EOF
5887           # Now try linking the two files.
5888           mv conftest.$ac_objext conftstm.$ac_objext
5889           lt_save_LIBS="$LIBS"
5890           lt_save_CFLAGS="$CFLAGS"
5891           LIBS="conftstm.$ac_objext"
5892           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5893           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894   (eval $ac_link) 2>&5
5895   ac_status=$?
5896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5898             pipe_works=yes
5899           fi
5900           LIBS="$lt_save_LIBS"
5901           CFLAGS="$lt_save_CFLAGS"
5902         else
5903           echo "cannot find nm_test_func in $nlist" >&5
5904         fi
5905       else
5906         echo "cannot find nm_test_var in $nlist" >&5
5907       fi
5908     else
5909       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5910     fi
5911   else
5912     echo "$progname: failed program was:" >&5
5913     cat conftest.$ac_ext >&5
5914   fi
5915   rm -rf conftest* conftst*
5916
5917   # Do not use the global_symbol_pipe unless it works.
5918   if test "$pipe_works" = yes; then
5919     break
5920   else
5921     lt_cv_sys_global_symbol_pipe=
5922   fi
5923 done
5924
5925 fi
5926
5927 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5928   lt_cv_sys_global_symbol_to_cdecl=
5929 fi
5930 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5931   { $as_echo "$as_me:$LINENO: result: failed" >&5
5932 $as_echo "failed" >&6; }
5933 else
5934   { $as_echo "$as_me:$LINENO: result: ok" >&5
5935 $as_echo "ok" >&6; }
5936 fi
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960 # Check whether --enable-libtool-lock was given.
5961 if test "${enable_libtool_lock+set}" = set; then
5962   enableval=$enable_libtool_lock;
5963 fi
5964
5965 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5966
5967 # Some flags need to be propagated to the compiler or linker for good
5968 # libtool support.
5969 case $host in
5970 ia64-*-hpux*)
5971   # Find out which ABI we are using.
5972   echo 'int i;' > conftest.$ac_ext
5973   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974   (eval $ac_compile) 2>&5
5975   ac_status=$?
5976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; then
5978     case `/usr/bin/file conftest.$ac_objext` in
5979       *ELF-32*)
5980         HPUX_IA64_MODE="32"
5981         ;;
5982       *ELF-64*)
5983         HPUX_IA64_MODE="64"
5984         ;;
5985     esac
5986   fi
5987   rm -rf conftest*
5988   ;;
5989 *-*-irix6*)
5990   # Find out which ABI we are using.
5991   echo '#line 5991 "configure"' > conftest.$ac_ext
5992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993   (eval $ac_compile) 2>&5
5994   ac_status=$?
5995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; then
5997     if test "$lt_cv_prog_gnu_ld" = yes; then
5998       case `/usr/bin/file conftest.$ac_objext` in
5999         *32-bit*)
6000           LD="${LD-ld} -melf32bsmip"
6001           ;;
6002         *N32*)
6003           LD="${LD-ld} -melf32bmipn32"
6004           ;;
6005         *64-bit*)
6006           LD="${LD-ld} -melf64bmip"
6007         ;;
6008       esac
6009     else
6010       case `/usr/bin/file conftest.$ac_objext` in
6011         *32-bit*)
6012           LD="${LD-ld} -32"
6013           ;;
6014         *N32*)
6015           LD="${LD-ld} -n32"
6016           ;;
6017         *64-bit*)
6018           LD="${LD-ld} -64"
6019           ;;
6020       esac
6021     fi
6022   fi
6023   rm -rf conftest*
6024   ;;
6025
6026 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6027 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6028   # Find out which ABI we are using.
6029   echo 'int i;' > conftest.$ac_ext
6030   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031   (eval $ac_compile) 2>&5
6032   ac_status=$?
6033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; then
6035     case `/usr/bin/file conftest.o` in
6036       *32-bit*)
6037         case $host in
6038           x86_64-*kfreebsd*-gnu)
6039             LD="${LD-ld} -m elf_i386_fbsd"
6040             ;;
6041           x86_64-*linux*)
6042             LD="${LD-ld} -m elf_i386"
6043             ;;
6044           ppc64-*linux*|powerpc64-*linux*)
6045             LD="${LD-ld} -m elf32ppclinux"
6046             ;;
6047           s390x-*linux*)
6048             LD="${LD-ld} -m elf_s390"
6049             ;;
6050           sparc64-*linux*)
6051             LD="${LD-ld} -m elf32_sparc"
6052             ;;
6053         esac
6054         ;;
6055       *64-bit*)
6056         case $host in
6057           x86_64-*kfreebsd*-gnu)
6058             LD="${LD-ld} -m elf_x86_64_fbsd"
6059             ;;
6060           x86_64-*linux*)
6061             LD="${LD-ld} -m elf_x86_64"
6062             ;;
6063           ppc*-*linux*|powerpc*-*linux*)
6064             LD="${LD-ld} -m elf64ppc"
6065             ;;
6066           s390*-*linux*|s390*-*tpf*)
6067             LD="${LD-ld} -m elf64_s390"
6068             ;;
6069           sparc*-*linux*)
6070             LD="${LD-ld} -m elf64_sparc"
6071             ;;
6072         esac
6073         ;;
6074     esac
6075   fi
6076   rm -rf conftest*
6077   ;;
6078
6079 *-*-sco3.2v5*)
6080   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6081   SAVE_CFLAGS="$CFLAGS"
6082   CFLAGS="$CFLAGS -belf"
6083   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6084 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6085 if test "${lt_cv_cc_needs_belf+set}" = set; then
6086   $as_echo_n "(cached) " >&6
6087 else
6088   ac_ext=c
6089 ac_cpp='$CPP $CPPFLAGS'
6090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6093
6094      cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100
6101 int
6102 main ()
6103 {
6104
6105   ;
6106   return 0;
6107 }
6108 _ACEOF
6109 rm -f conftest.$ac_objext conftest$ac_exeext
6110 if { (ac_try="$ac_link"
6111 case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6116 $as_echo "$ac_try_echo") >&5
6117   (eval "$ac_link") 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } && {
6124          test -z "$ac_c_werror_flag" ||
6125          test ! -s conftest.err
6126        } && test -s conftest$ac_exeext && {
6127          test "$cross_compiling" = yes ||
6128          $as_test_x conftest$ac_exeext
6129        }; then
6130   lt_cv_cc_needs_belf=yes
6131 else
6132   $as_echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135         lt_cv_cc_needs_belf=no
6136 fi
6137
6138 rm -rf conftest.dSYM
6139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6140       conftest$ac_exeext conftest.$ac_ext
6141      ac_ext=c
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147 fi
6148 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6149 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6150   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6151     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6152     CFLAGS="$SAVE_CFLAGS"
6153   fi
6154   ;;
6155 sparc*-*solaris*)
6156   # Find out which ABI we are using.
6157   echo 'int i;' > conftest.$ac_ext
6158   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159   (eval $ac_compile) 2>&5
6160   ac_status=$?
6161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); }; then
6163     case `/usr/bin/file conftest.o` in
6164     *64-bit*)
6165       case $lt_cv_prog_gnu_ld in
6166       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6167       *)
6168         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6169           LD="${LD-ld} -64"
6170         fi
6171         ;;
6172       esac
6173       ;;
6174     esac
6175   fi
6176   rm -rf conftest*
6177   ;;
6178 esac
6179
6180 need_locks="$enable_libtool_lock"
6181
6182
6183   case $host_os in
6184     rhapsody* | darwin*)
6185     if test -n "$ac_tool_prefix"; then
6186   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6191   $as_echo_n "(cached) " >&6
6192 else
6193   if test -n "$DSYMUTIL"; then
6194   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6204     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6214 if test -n "$DSYMUTIL"; then
6215   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6216 $as_echo "$DSYMUTIL" >&6; }
6217 else
6218   { $as_echo "$as_me:$LINENO: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221
6222
6223 fi
6224 if test -z "$ac_cv_prog_DSYMUTIL"; then
6225   ac_ct_DSYMUTIL=$DSYMUTIL
6226   # Extract the first word of "dsymutil", so it can be a program name with args.
6227 set dummy dsymutil; ac_word=$2
6228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6231   $as_echo_n "(cached) " >&6
6232 else
6233   if test -n "$ac_ct_DSYMUTIL"; then
6234   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241   for ac_exec_ext in '' $ac_executable_extensions; do
6242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6244     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6254 if test -n "$ac_ct_DSYMUTIL"; then
6255   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6256 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6257 else
6258   { $as_echo "$as_me:$LINENO: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262   if test "x$ac_ct_DSYMUTIL" = x; then
6263     DSYMUTIL=":"
6264   else
6265     case $cross_compiling:$ac_tool_warned in
6266 yes:)
6267 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6270 esac
6271     DSYMUTIL=$ac_ct_DSYMUTIL
6272   fi
6273 else
6274   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6275 fi
6276
6277     if test -n "$ac_tool_prefix"; then
6278   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6279 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6283   $as_echo_n "(cached) " >&6
6284 else
6285   if test -n "$NMEDIT"; then
6286   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293   for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6296     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 NMEDIT=$ac_cv_prog_NMEDIT
6306 if test -n "$NMEDIT"; then
6307   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6308 $as_echo "$NMEDIT" >&6; }
6309 else
6310   { $as_echo "$as_me:$LINENO: result: no" >&5
6311 $as_echo "no" >&6; }
6312 fi
6313
6314
6315 fi
6316 if test -z "$ac_cv_prog_NMEDIT"; then
6317   ac_ct_NMEDIT=$NMEDIT
6318   # Extract the first word of "nmedit", so it can be a program name with args.
6319 set dummy nmedit; ac_word=$2
6320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6323   $as_echo_n "(cached) " >&6
6324 else
6325   if test -n "$ac_ct_NMEDIT"; then
6326   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333   for ac_exec_ext in '' $ac_executable_extensions; do
6334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6346 if test -n "$ac_ct_NMEDIT"; then
6347   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6348 $as_echo "$ac_ct_NMEDIT" >&6; }
6349 else
6350   { $as_echo "$as_me:$LINENO: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354   if test "x$ac_ct_NMEDIT" = x; then
6355     NMEDIT=":"
6356   else
6357     case $cross_compiling:$ac_tool_warned in
6358 yes:)
6359 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361 ac_tool_warned=yes ;;
6362 esac
6363     NMEDIT=$ac_ct_NMEDIT
6364   fi
6365 else
6366   NMEDIT="$ac_cv_prog_NMEDIT"
6367 fi
6368
6369     if test -n "$ac_tool_prefix"; then
6370   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6371 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if test "${ac_cv_prog_LIPO+set}" = set; then
6375   $as_echo_n "(cached) " >&6
6376 else
6377   if test -n "$LIPO"; then
6378   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385   for ac_exec_ext in '' $ac_executable_extensions; do
6386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6388     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392 done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 LIPO=$ac_cv_prog_LIPO
6398 if test -n "$LIPO"; then
6399   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6400 $as_echo "$LIPO" >&6; }
6401 else
6402   { $as_echo "$as_me:$LINENO: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405
6406
6407 fi
6408 if test -z "$ac_cv_prog_LIPO"; then
6409   ac_ct_LIPO=$LIPO
6410   # Extract the first word of "lipo", so it can be a program name with args.
6411 set dummy lipo; ac_word=$2
6412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6415   $as_echo_n "(cached) " >&6
6416 else
6417   if test -n "$ac_ct_LIPO"; then
6418   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425   for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_prog_ac_ct_LIPO="lipo"
6428     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6438 if test -n "$ac_ct_LIPO"; then
6439   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6440 $as_echo "$ac_ct_LIPO" >&6; }
6441 else
6442   { $as_echo "$as_me:$LINENO: result: no" >&5
6443 $as_echo "no" >&6; }
6444 fi
6445
6446   if test "x$ac_ct_LIPO" = x; then
6447     LIPO=":"
6448   else
6449     case $cross_compiling:$ac_tool_warned in
6450 yes:)
6451 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455     LIPO=$ac_ct_LIPO
6456   fi
6457 else
6458   LIPO="$ac_cv_prog_LIPO"
6459 fi
6460
6461     if test -n "$ac_tool_prefix"; then
6462   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6463 set dummy ${ac_tool_prefix}otool; ac_word=$2
6464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if test "${ac_cv_prog_OTOOL+set}" = set; then
6467   $as_echo_n "(cached) " >&6
6468 else
6469   if test -n "$OTOOL"; then
6470   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477   for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6480     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 OTOOL=$ac_cv_prog_OTOOL
6490 if test -n "$OTOOL"; then
6491   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6492 $as_echo "$OTOOL" >&6; }
6493 else
6494   { $as_echo "$as_me:$LINENO: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498
6499 fi
6500 if test -z "$ac_cv_prog_OTOOL"; then
6501   ac_ct_OTOOL=$OTOOL
6502   # Extract the first word of "otool", so it can be a program name with args.
6503 set dummy otool; ac_word=$2
6504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$ac_ct_OTOOL"; then
6510   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517   for ac_exec_ext in '' $ac_executable_extensions; do
6518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519     ac_cv_prog_ac_ct_OTOOL="otool"
6520     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524 done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6530 if test -n "$ac_ct_OTOOL"; then
6531   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6532 $as_echo "$ac_ct_OTOOL" >&6; }
6533 else
6534   { $as_echo "$as_me:$LINENO: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538   if test "x$ac_ct_OTOOL" = x; then
6539     OTOOL=":"
6540   else
6541     case $cross_compiling:$ac_tool_warned in
6542 yes:)
6543 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545 ac_tool_warned=yes ;;
6546 esac
6547     OTOOL=$ac_ct_OTOOL
6548   fi
6549 else
6550   OTOOL="$ac_cv_prog_OTOOL"
6551 fi
6552
6553     if test -n "$ac_tool_prefix"; then
6554   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6559   $as_echo_n "(cached) " >&6
6560 else
6561   if test -n "$OTOOL64"; then
6562   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567   IFS=$as_save_IFS
6568   test -z "$as_dir" && as_dir=.
6569   for ac_exec_ext in '' $ac_executable_extensions; do
6570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6572     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573     break 2
6574   fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 OTOOL64=$ac_cv_prog_OTOOL64
6582 if test -n "$OTOOL64"; then
6583   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6584 $as_echo "$OTOOL64" >&6; }
6585 else
6586   { $as_echo "$as_me:$LINENO: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590
6591 fi
6592 if test -z "$ac_cv_prog_OTOOL64"; then
6593   ac_ct_OTOOL64=$OTOOL64
6594   # Extract the first word of "otool64", so it can be a program name with args.
6595 set dummy otool64; ac_word=$2
6596 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6599   $as_echo_n "(cached) " >&6
6600 else
6601   if test -n "$ac_ct_OTOOL64"; then
6602   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609   for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_prog_ac_ct_OTOOL64="otool64"
6612     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6622 if test -n "$ac_ct_OTOOL64"; then
6623   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6624 $as_echo "$ac_ct_OTOOL64" >&6; }
6625 else
6626   { $as_echo "$as_me:$LINENO: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630   if test "x$ac_ct_OTOOL64" = x; then
6631     OTOOL64=":"
6632   else
6633     case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639     OTOOL64=$ac_ct_OTOOL64
6640   fi
6641 else
6642   OTOOL64="$ac_cv_prog_OTOOL64"
6643 fi
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6672 $as_echo_n "checking for -single_module linker flag... " >&6; }
6673 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6674   $as_echo_n "(cached) " >&6
6675 else
6676   lt_cv_apple_cc_single_mod=no
6677       if test -z "${LT_MULTI_MODULE}"; then
6678         # By default we will add the -single_module flag. You can override
6679         # by either setting the environment variable LT_MULTI_MODULE
6680         # non-empty at configure time, or by adding -multi_module to the
6681         # link flags.
6682         rm -rf libconftest.dylib*
6683         echo "int foo(void){return 1;}" > conftest.c
6684         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6685 -dynamiclib -Wl,-single_module conftest.c" >&5
6686         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6687           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6688         _lt_result=$?
6689         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6690           lt_cv_apple_cc_single_mod=yes
6691         else
6692           cat conftest.err >&5
6693         fi
6694         rm -rf libconftest.dylib*
6695         rm -f conftest.*
6696       fi
6697 fi
6698 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6699 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6700     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6701 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6702 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6703   $as_echo_n "(cached) " >&6
6704 else
6705   lt_cv_ld_exported_symbols_list=no
6706       save_LDFLAGS=$LDFLAGS
6707       echo "_main" > conftest.sym
6708       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6709       cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h.  */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h.  */
6715
6716 int
6717 main ()
6718 {
6719
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (ac_try="$ac_link"
6726 case "(($ac_try" in
6727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728   *) ac_try_echo=$ac_try;;
6729 esac
6730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6731 $as_echo "$ac_try_echo") >&5
6732   (eval "$ac_link") 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } && {
6739          test -z "$ac_c_werror_flag" ||
6740          test ! -s conftest.err
6741        } && test -s conftest$ac_exeext && {
6742          test "$cross_compiling" = yes ||
6743          $as_test_x conftest$ac_exeext
6744        }; then
6745   lt_cv_ld_exported_symbols_list=yes
6746 else
6747   $as_echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750         lt_cv_ld_exported_symbols_list=no
6751 fi
6752
6753 rm -rf conftest.dSYM
6754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6755       conftest$ac_exeext conftest.$ac_ext
6756         LDFLAGS="$save_LDFLAGS"
6757
6758 fi
6759 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6760 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6761     case $host_os in
6762     rhapsody* | darwin1.[012])
6763       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6764     darwin1.*)
6765       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6766     darwin*) # darwin 5.x on
6767       # if running on 10.5 or later, the deployment target defaults
6768       # to the OS version, if on x86, and 10.4, the deployment
6769       # target defaults to 10.4. Don't you love it?
6770       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6771         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6772           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6773         10.[012]*)
6774           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6775         10.*)
6776           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6777       esac
6778     ;;
6779   esac
6780     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6781       _lt_dar_single_mod='$single_module'
6782     fi
6783     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6784       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6785     else
6786       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6787     fi
6788     if test "$DSYMUTIL" != ":"; then
6789       _lt_dsymutil='~$DSYMUTIL $lib || :'
6790     else
6791       _lt_dsymutil=
6792     fi
6793     ;;
6794   esac
6795
6796 ac_ext=c
6797 ac_cpp='$CPP $CPPFLAGS'
6798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6801 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6802 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6803 # On Suns, sometimes $CPP names a directory.
6804 if test -n "$CPP" && test -d "$CPP"; then
6805   CPP=
6806 fi
6807 if test -z "$CPP"; then
6808   if test "${ac_cv_prog_CPP+set}" = set; then
6809   $as_echo_n "(cached) " >&6
6810 else
6811       # Double quotes because CPP needs to be expanded
6812     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6813     do
6814       ac_preproc_ok=false
6815 for ac_c_preproc_warn_flag in '' yes
6816 do
6817   # Use a header file that comes with gcc, so configuring glibc
6818   # with a fresh cross-compiler works.
6819   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6820   # <limits.h> exists even on freestanding compilers.
6821   # On the NeXT, cc -E runs the code through the compiler's parser,
6822   # not just through cpp. "Syntax error" is here to catch this case.
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829 #ifdef __STDC__
6830 # include <limits.h>
6831 #else
6832 # include <assert.h>
6833 #endif
6834                      Syntax error
6835 _ACEOF
6836 if { (ac_try="$ac_cpp conftest.$ac_ext"
6837 case "(($ac_try" in
6838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839   *) ac_try_echo=$ac_try;;
6840 esac
6841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842 $as_echo "$ac_try_echo") >&5
6843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6844   ac_status=$?
6845   grep -v '^ *+' conftest.er1 >conftest.err
6846   rm -f conftest.er1
6847   cat conftest.err >&5
6848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); } >/dev/null && {
6850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6851          test ! -s conftest.err
6852        }; then
6853   :
6854 else
6855   $as_echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858   # Broken: fails on valid input.
6859 continue
6860 fi
6861
6862 rm -f conftest.err conftest.$ac_ext
6863
6864   # OK, works on sane cases.  Now check whether nonexistent headers
6865   # can be detected and how.
6866   cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872 #include <ac_nonexistent.h>
6873 _ACEOF
6874 if { (ac_try="$ac_cpp conftest.$ac_ext"
6875 case "(($ac_try" in
6876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877   *) ac_try_echo=$ac_try;;
6878 esac
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } >/dev/null && {
6888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6889          test ! -s conftest.err
6890        }; then
6891   # Broken: success on invalid input.
6892 continue
6893 else
6894   $as_echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897   # Passes both tests.
6898 ac_preproc_ok=:
6899 break
6900 fi
6901
6902 rm -f conftest.err conftest.$ac_ext
6903
6904 done
6905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6906 rm -f conftest.err conftest.$ac_ext
6907 if $ac_preproc_ok; then
6908   break
6909 fi
6910
6911     done
6912     ac_cv_prog_CPP=$CPP
6913
6914 fi
6915   CPP=$ac_cv_prog_CPP
6916 else
6917   ac_cv_prog_CPP=$CPP
6918 fi
6919 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6920 $as_echo "$CPP" >&6; }
6921 ac_preproc_ok=false
6922 for ac_c_preproc_warn_flag in '' yes
6923 do
6924   # Use a header file that comes with gcc, so configuring glibc
6925   # with a fresh cross-compiler works.
6926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927   # <limits.h> exists even on freestanding compilers.
6928   # On the NeXT, cc -E runs the code through the compiler's parser,
6929   # not just through cpp. "Syntax error" is here to catch this case.
6930   cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 #ifdef __STDC__
6937 # include <limits.h>
6938 #else
6939 # include <assert.h>
6940 #endif
6941                      Syntax error
6942 _ACEOF
6943 if { (ac_try="$ac_cpp conftest.$ac_ext"
6944 case "(($ac_try" in
6945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946   *) ac_try_echo=$ac_try;;
6947 esac
6948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949 $as_echo "$ac_try_echo") >&5
6950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } >/dev/null && {
6957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6958          test ! -s conftest.err
6959        }; then
6960   :
6961 else
6962   $as_echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965   # Broken: fails on valid input.
6966 continue
6967 fi
6968
6969 rm -f conftest.err conftest.$ac_ext
6970
6971   # OK, works on sane cases.  Now check whether nonexistent headers
6972   # can be detected and how.
6973   cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979 #include <ac_nonexistent.h>
6980 _ACEOF
6981 if { (ac_try="$ac_cpp conftest.$ac_ext"
6982 case "(($ac_try" in
6983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984   *) ac_try_echo=$ac_try;;
6985 esac
6986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6987 $as_echo "$ac_try_echo") >&5
6988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6989   ac_status=$?
6990   grep -v '^ *+' conftest.er1 >conftest.err
6991   rm -f conftest.er1
6992   cat conftest.err >&5
6993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994   (exit $ac_status); } >/dev/null && {
6995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6996          test ! -s conftest.err
6997        }; then
6998   # Broken: success on invalid input.
6999 continue
7000 else
7001   $as_echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004   # Passes both tests.
7005 ac_preproc_ok=:
7006 break
7007 fi
7008
7009 rm -f conftest.err conftest.$ac_ext
7010
7011 done
7012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7013 rm -f conftest.err conftest.$ac_ext
7014 if $ac_preproc_ok; then
7015   :
7016 else
7017   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7019 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7020 See \`config.log' for more details." >&5
7021 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7022 See \`config.log' for more details." >&2;}
7023    { (exit 1); exit 1; }; }; }
7024 fi
7025
7026 ac_ext=c
7027 ac_cpp='$CPP $CPPFLAGS'
7028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031
7032
7033 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7034 $as_echo_n "checking for ANSI C header files... " >&6; }
7035 if test "${ac_cv_header_stdc+set}" = set; then
7036   $as_echo_n "(cached) " >&6
7037 else
7038   cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 #include <stdlib.h>
7045 #include <stdarg.h>
7046 #include <string.h>
7047 #include <float.h>
7048
7049 int
7050 main ()
7051 {
7052
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061   *) ac_try_echo=$ac_try;;
7062 esac
7063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7064 $as_echo "$ac_try_echo") >&5
7065   (eval "$ac_compile") 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && {
7072          test -z "$ac_c_werror_flag" ||
7073          test ! -s conftest.err
7074        } && test -s conftest.$ac_objext; then
7075   ac_cv_header_stdc=yes
7076 else
7077   $as_echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080         ac_cv_header_stdc=no
7081 fi
7082
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084
7085 if test $ac_cv_header_stdc = yes; then
7086   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7087   cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h.  */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h.  */
7093 #include <string.h>
7094
7095 _ACEOF
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097   $EGREP "memchr" >/dev/null 2>&1; then
7098   :
7099 else
7100   ac_cv_header_stdc=no
7101 fi
7102 rm -f conftest*
7103
7104 fi
7105
7106 if test $ac_cv_header_stdc = yes; then
7107   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7108   cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h.  */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h.  */
7114 #include <stdlib.h>
7115
7116 _ACEOF
7117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7118   $EGREP "free" >/dev/null 2>&1; then
7119   :
7120 else
7121   ac_cv_header_stdc=no
7122 fi
7123 rm -f conftest*
7124
7125 fi
7126
7127 if test $ac_cv_header_stdc = yes; then
7128   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7129   if test "$cross_compiling" = yes; then
7130   :
7131 else
7132   cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h.  */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h.  */
7138 #include <ctype.h>
7139 #include <stdlib.h>
7140 #if ((' ' & 0x0FF) == 0x020)
7141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7143 #else
7144 # define ISLOWER(c) \
7145                    (('a' <= (c) && (c) <= 'i') \
7146                      || ('j' <= (c) && (c) <= 'r') \
7147                      || ('s' <= (c) && (c) <= 'z'))
7148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7149 #endif
7150
7151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7152 int
7153 main ()
7154 {
7155   int i;
7156   for (i = 0; i < 256; i++)
7157     if (XOR (islower (i), ISLOWER (i))
7158         || toupper (i) != TOUPPER (i))
7159       return 2;
7160   return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest$ac_exeext
7164 if { (ac_try="$ac_link"
7165 case "(($ac_try" in
7166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167   *) ac_try_echo=$ac_try;;
7168 esac
7169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7170 $as_echo "$ac_try_echo") >&5
7171   (eval "$ac_link") 2>&5
7172   ac_status=$?
7173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7175   { (case "(($ac_try" in
7176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177   *) ac_try_echo=$ac_try;;
7178 esac
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181   (eval "$ac_try") 2>&5
7182   ac_status=$?
7183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; }; then
7185   :
7186 else
7187   $as_echo "$as_me: program exited with status $ac_status" >&5
7188 $as_echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ( exit $ac_status )
7192 ac_cv_header_stdc=no
7193 fi
7194 rm -rf conftest.dSYM
7195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7196 fi
7197
7198
7199 fi
7200 fi
7201 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7202 $as_echo "$ac_cv_header_stdc" >&6; }
7203 if test $ac_cv_header_stdc = yes; then
7204
7205 cat >>confdefs.h <<\_ACEOF
7206 #define STDC_HEADERS 1
7207 _ACEOF
7208
7209 fi
7210
7211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7222                   inttypes.h stdint.h unistd.h
7223 do
7224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7226 $as_echo_n "checking for $ac_header... " >&6; }
7227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7228   $as_echo_n "(cached) " >&6
7229 else
7230   cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236 $ac_includes_default
7237
7238 #include <$ac_header>
7239 _ACEOF
7240 rm -f conftest.$ac_objext
7241 if { (ac_try="$ac_compile"
7242 case "(($ac_try" in
7243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244   *) ac_try_echo=$ac_try;;
7245 esac
7246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247 $as_echo "$ac_try_echo") >&5
7248   (eval "$ac_compile") 2>conftest.er1
7249   ac_status=$?
7250   grep -v '^ *+' conftest.er1 >conftest.err
7251   rm -f conftest.er1
7252   cat conftest.err >&5
7253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } && {
7255          test -z "$ac_c_werror_flag" ||
7256          test ! -s conftest.err
7257        } && test -s conftest.$ac_objext; then
7258   eval "$as_ac_Header=yes"
7259 else
7260   $as_echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263         eval "$as_ac_Header=no"
7264 fi
7265
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 ac_res=`eval 'as_val=${'$as_ac_Header'}
7269                  $as_echo "$as_val"'`
7270                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7271 $as_echo "$ac_res" >&6; }
7272 as_val=`eval 'as_val=${'$as_ac_Header'}
7273                  $as_echo "$as_val"'`
7274    if test "x$as_val" = x""yes; then
7275   cat >>confdefs.h <<_ACEOF
7276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277 _ACEOF
7278
7279 fi
7280
7281 done
7282
7283
7284
7285 for ac_header in dlfcn.h
7286 do
7287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 $as_echo_n "checking for $ac_header... " >&6; }
7290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291   $as_echo_n "(cached) " >&6
7292 else
7293   cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299 $ac_includes_default
7300
7301 #include <$ac_header>
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307   *) ac_try_echo=$ac_try;;
7308 esac
7309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7310 $as_echo "$ac_try_echo") >&5
7311   (eval "$ac_compile") 2>conftest.er1
7312   ac_status=$?
7313   grep -v '^ *+' conftest.er1 >conftest.err
7314   rm -f conftest.er1
7315   cat conftest.err >&5
7316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); } && {
7318          test -z "$ac_c_werror_flag" ||
7319          test ! -s conftest.err
7320        } && test -s conftest.$ac_objext; then
7321   eval "$as_ac_Header=yes"
7322 else
7323   $as_echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326         eval "$as_ac_Header=no"
7327 fi
7328
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 fi
7331 ac_res=`eval 'as_val=${'$as_ac_Header'}
7332                  $as_echo "$as_val"'`
7333                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7334 $as_echo "$ac_res" >&6; }
7335 as_val=`eval 'as_val=${'$as_ac_Header'}
7336                  $as_echo "$as_val"'`
7337    if test "x$as_val" = x""yes; then
7338   cat >>confdefs.h <<_ACEOF
7339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340 _ACEOF
7341
7342 fi
7343
7344 done
7345
7346
7347
7348 # Set options
7349
7350
7351
7352         enable_dlopen=no
7353
7354
7355   enable_win32_dll=no
7356
7357
7358             # Check whether --enable-shared was given.
7359 if test "${enable_shared+set}" = set; then
7360   enableval=$enable_shared; p=${PACKAGE-default}
7361     case $enableval in
7362     yes) enable_shared=yes ;;
7363     no) enable_shared=no ;;
7364     *)
7365       enable_shared=no
7366       # Look at the argument we got.  We use all the common list separators.
7367       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7368       for pkg in $enableval; do
7369         IFS="$lt_save_ifs"
7370         if test "X$pkg" = "X$p"; then
7371           enable_shared=yes
7372         fi
7373       done
7374       IFS="$lt_save_ifs"
7375       ;;
7376     esac
7377 else
7378   enable_shared=yes
7379 fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389   # Check whether --enable-static was given.
7390 if test "${enable_static+set}" = set; then
7391   enableval=$enable_static; p=${PACKAGE-default}
7392     case $enableval in
7393     yes) enable_static=yes ;;
7394     no) enable_static=no ;;
7395     *)
7396      enable_static=no
7397       # Look at the argument we got.  We use all the common list separators.
7398       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7399       for pkg in $enableval; do
7400         IFS="$lt_save_ifs"
7401         if test "X$pkg" = "X$p"; then
7402           enable_static=yes
7403         fi
7404       done
7405       IFS="$lt_save_ifs"
7406       ;;
7407     esac
7408 else
7409   enable_static=yes
7410 fi
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421 # Check whether --with-pic was given.
7422 if test "${with_pic+set}" = set; then
7423   withval=$with_pic; pic_mode="$withval"
7424 else
7425   pic_mode=default
7426 fi
7427
7428
7429 test -z "$pic_mode" && pic_mode=default
7430
7431
7432
7433
7434
7435
7436
7437   # Check whether --enable-fast-install was given.
7438 if test "${enable_fast_install+set}" = set; then
7439   enableval=$enable_fast_install; p=${PACKAGE-default}
7440     case $enableval in
7441     yes) enable_fast_install=yes ;;
7442     no) enable_fast_install=no ;;
7443     *)
7444       enable_fast_install=no
7445       # Look at the argument we got.  We use all the common list separators.
7446       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7447       for pkg in $enableval; do
7448         IFS="$lt_save_ifs"
7449         if test "X$pkg" = "X$p"; then
7450           enable_fast_install=yes
7451         fi
7452       done
7453       IFS="$lt_save_ifs"
7454       ;;
7455     esac
7456 else
7457   enable_fast_install=yes
7458 fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 # This can be used to rebuild libtool when needed
7471 LIBTOOL_DEPS="$ltmain"
7472
7473 # Always use our own libtool.
7474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 test -z "$LN_S" && LN_S="ln -s"
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515 if test -n "${ZSH_VERSION+set}" ; then
7516    setopt NO_GLOB_SUBST
7517 fi
7518
7519 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7520 $as_echo_n "checking for objdir... " >&6; }
7521 if test "${lt_cv_objdir+set}" = set; then
7522   $as_echo_n "(cached) " >&6
7523 else
7524   rm -f .libs 2>/dev/null
7525 mkdir .libs 2>/dev/null
7526 if test -d .libs; then
7527   lt_cv_objdir=.libs
7528 else
7529   # MS-DOS does not allow filenames that begin with a dot.
7530   lt_cv_objdir=_libs
7531 fi
7532 rmdir .libs 2>/dev/null
7533 fi
7534 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7535 $as_echo "$lt_cv_objdir" >&6; }
7536 objdir=$lt_cv_objdir
7537
7538
7539
7540
7541
7542 cat >>confdefs.h <<_ACEOF
7543 #define LT_OBJDIR "$lt_cv_objdir/"
7544 _ACEOF
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 case $host_os in
7563 aix3*)
7564   # AIX sometimes has problems with the GCC collect2 program.  For some
7565   # reason, if we set the COLLECT_NAMES environment variable, the problems
7566   # vanish in a puff of smoke.
7567   if test "X${COLLECT_NAMES+set}" != Xset; then
7568     COLLECT_NAMES=
7569     export COLLECT_NAMES
7570   fi
7571   ;;
7572 esac
7573
7574 # Sed substitution that helps us do robust quoting.  It backslashifies
7575 # metacharacters that are still active within double-quoted strings.
7576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7577
7578 # Same as above, but do not quote variable references.
7579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7580
7581 # Sed substitution to delay expansion of an escaped shell variable in a
7582 # double_quote_subst'ed string.
7583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7584
7585 # Sed substitution to delay expansion of an escaped single quote.
7586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7587
7588 # Sed substitution to avoid accidental globbing in evaled expressions
7589 no_glob_subst='s/\*/\\\*/g'
7590
7591 # Global variables:
7592 ofile=libtool
7593 can_build_shared=yes
7594
7595 # All known linkers require a `.a' archive for static linking (except MSVC,
7596 # which needs '.lib').
7597 libext=a
7598
7599 with_gnu_ld="$lt_cv_prog_gnu_ld"
7600
7601 old_CC="$CC"
7602 old_CFLAGS="$CFLAGS"
7603
7604 # Set sane defaults for various variables
7605 test -z "$CC" && CC=cc
7606 test -z "$LTCC" && LTCC=$CC
7607 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7608 test -z "$LD" && LD=ld
7609 test -z "$ac_objext" && ac_objext=o
7610
7611 for cc_temp in $compiler""; do
7612   case $cc_temp in
7613     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7614     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7615     \-*) ;;
7616     *) break;;
7617   esac
7618 done
7619 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7620
7621
7622 # Only perform the check for file, if the check method requires it
7623 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7624 case $deplibs_check_method in
7625 file_magic*)
7626   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7627     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7628 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7630   $as_echo_n "(cached) " >&6
7631 else
7632   case $MAGIC_CMD in
7633 [\\/*] |  ?:[\\/]*)
7634   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635   ;;
7636 *)
7637   lt_save_MAGIC_CMD="$MAGIC_CMD"
7638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640   for ac_dir in $ac_dummy; do
7641     IFS="$lt_save_ifs"
7642     test -z "$ac_dir" && ac_dir=.
7643     if test -f $ac_dir/${ac_tool_prefix}file; then
7644       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7645       if test -n "$file_magic_test_file"; then
7646         case $deplibs_check_method in
7647         "file_magic "*)
7648           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651             $EGREP "$file_magic_regex" > /dev/null; then
7652             :
7653           else
7654             cat <<_LT_EOF 1>&2
7655
7656 *** Warning: the command libtool uses to detect shared libraries,
7657 *** $file_magic_cmd, produces output that libtool cannot recognize.
7658 *** The result is that libtool may fail to recognize shared libraries
7659 *** as such.  This will affect the creation of libtool libraries that
7660 *** depend on shared libraries, but programs linked with such libtool
7661 *** libraries will work regardless of this problem.  Nevertheless, you
7662 *** may want to report the problem to your system manager and/or to
7663 *** bug-libtool@gnu.org
7664
7665 _LT_EOF
7666           fi ;;
7667         esac
7668       fi
7669       break
7670     fi
7671   done
7672   IFS="$lt_save_ifs"
7673   MAGIC_CMD="$lt_save_MAGIC_CMD"
7674   ;;
7675 esac
7676 fi
7677
7678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679 if test -n "$MAGIC_CMD"; then
7680   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7681 $as_echo "$MAGIC_CMD" >&6; }
7682 else
7683   { $as_echo "$as_me:$LINENO: result: no" >&5
7684 $as_echo "no" >&6; }
7685 fi
7686
7687
7688
7689
7690
7691 if test -z "$lt_cv_path_MAGIC_CMD"; then
7692   if test -n "$ac_tool_prefix"; then
7693     { $as_echo "$as_me:$LINENO: checking for file" >&5
7694 $as_echo_n "checking for file... " >&6; }
7695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7696   $as_echo_n "(cached) " >&6
7697 else
7698   case $MAGIC_CMD in
7699 [\\/*] |  ?:[\\/]*)
7700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701   ;;
7702 *)
7703   lt_save_MAGIC_CMD="$MAGIC_CMD"
7704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706   for ac_dir in $ac_dummy; do
7707     IFS="$lt_save_ifs"
7708     test -z "$ac_dir" && ac_dir=.
7709     if test -f $ac_dir/file; then
7710       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7711       if test -n "$file_magic_test_file"; then
7712         case $deplibs_check_method in
7713         "file_magic "*)
7714           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717             $EGREP "$file_magic_regex" > /dev/null; then
7718             :
7719           else
7720             cat <<_LT_EOF 1>&2
7721
7722 *** Warning: the command libtool uses to detect shared libraries,
7723 *** $file_magic_cmd, produces output that libtool cannot recognize.
7724 *** The result is that libtool may fail to recognize shared libraries
7725 *** as such.  This will affect the creation of libtool libraries that
7726 *** depend on shared libraries, but programs linked with such libtool
7727 *** libraries will work regardless of this problem.  Nevertheless, you
7728 *** may want to report the problem to your system manager and/or to
7729 *** bug-libtool@gnu.org
7730
7731 _LT_EOF
7732           fi ;;
7733         esac
7734       fi
7735       break
7736     fi
7737   done
7738   IFS="$lt_save_ifs"
7739   MAGIC_CMD="$lt_save_MAGIC_CMD"
7740   ;;
7741 esac
7742 fi
7743
7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745 if test -n "$MAGIC_CMD"; then
7746   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7747 $as_echo "$MAGIC_CMD" >&6; }
7748 else
7749   { $as_echo "$as_me:$LINENO: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754   else
7755     MAGIC_CMD=:
7756   fi
7757 fi
7758
7759   fi
7760   ;;
7761 esac
7762
7763 # Use C for the default configuration in the libtool script
7764
7765 lt_save_CC="$CC"
7766 ac_ext=c
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771
7772
7773 # Source file extension for C test sources.
7774 ac_ext=c
7775
7776 # Object file extension for compiled C test sources.
7777 objext=o
7778 objext=$objext
7779
7780 # Code to be used in simple compile tests
7781 lt_simple_compile_test_code="int some_variable = 0;"
7782
7783 # Code to be used in simple link tests
7784 lt_simple_link_test_code='int main(){return(0);}'
7785
7786
7787
7788
7789
7790
7791
7792 # If no C compiler was specified, use CC.
7793 LTCC=${LTCC-"$CC"}
7794
7795 # If no C compiler flags were specified, use CFLAGS.
7796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7797
7798 # Allow CC to be a program name with arguments.
7799 compiler=$CC
7800
7801 # Save the default compiler, since it gets overwritten when the other
7802 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7803 compiler_DEFAULT=$CC
7804
7805 # save warnings/boilerplate of simple test code
7806 ac_outfile=conftest.$ac_objext
7807 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7808 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7809 _lt_compiler_boilerplate=`cat conftest.err`
7810 $RM conftest*
7811
7812 ac_outfile=conftest.$ac_objext
7813 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7814 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7815 _lt_linker_boilerplate=`cat conftest.err`
7816 $RM -r conftest*
7817
7818
7819 if test -n "$compiler"; then
7820
7821 lt_prog_compiler_no_builtin_flag=
7822
7823 if test "$GCC" = yes; then
7824   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7825
7826   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7827 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7828 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7829   $as_echo_n "(cached) " >&6
7830 else
7831   lt_cv_prog_compiler_rtti_exceptions=no
7832    ac_outfile=conftest.$ac_objext
7833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7834    lt_compiler_flag="-fno-rtti -fno-exceptions"
7835    # Insert the option either (1) after the last *FLAGS variable, or
7836    # (2) before a word containing "conftest.", or (3) at the end.
7837    # Note that $ac_compile itself does not contain backslashes and begins
7838    # with a dollar sign (not a hyphen), so the echo should work correctly.
7839    # The option is referenced via a variable to avoid confusing sed.
7840    lt_compile=`echo "$ac_compile" | $SED \
7841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7843    -e 's:$: $lt_compiler_flag:'`
7844    (eval echo "\"\$as_me:7844: $lt_compile\"" >&5)
7845    (eval "$lt_compile" 2>conftest.err)
7846    ac_status=$?
7847    cat conftest.err >&5
7848    echo "$as_me:7848: \$? = $ac_status" >&5
7849    if (exit $ac_status) && test -s "$ac_outfile"; then
7850      # The compiler can only warn and ignore the option if not recognized
7851      # So say no if there are warnings other than the usual output.
7852      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7853      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7855        lt_cv_prog_compiler_rtti_exceptions=yes
7856      fi
7857    fi
7858    $RM conftest*
7859
7860 fi
7861 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7862 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7863
7864 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7865     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7866 else
7867     :
7868 fi
7869
7870 fi
7871
7872
7873
7874
7875
7876
7877   lt_prog_compiler_wl=
7878 lt_prog_compiler_pic=
7879 lt_prog_compiler_static=
7880
7881 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7882 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7883
7884   if test "$GCC" = yes; then
7885     lt_prog_compiler_wl='-Wl,'
7886     lt_prog_compiler_static='-static'
7887
7888     case $host_os in
7889       aix*)
7890       # All AIX code is PIC.
7891       if test "$host_cpu" = ia64; then
7892         # AIX 5 now supports IA64 processor
7893         lt_prog_compiler_static='-Bstatic'
7894       fi
7895       ;;
7896
7897     amigaos*)
7898       case $host_cpu in
7899       powerpc)
7900             # see comment about AmigaOS4 .so support
7901             lt_prog_compiler_pic='-fPIC'
7902         ;;
7903       m68k)
7904             # FIXME: we need at least 68020 code to build shared libraries, but
7905             # adding the `-m68020' flag to GCC prevents building anything better,
7906             # like `-m68040'.
7907             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7908         ;;
7909       esac
7910       ;;
7911
7912     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7913       # PIC is the default for these OSes.
7914       ;;
7915
7916     mingw* | cygwin* | pw32* | os2* | cegcc*)
7917       # This hack is so that the source file can tell whether it is being
7918       # built for inclusion in a dll (and should export symbols for example).
7919       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7920       # (--disable-auto-import) libraries
7921       lt_prog_compiler_pic='-DDLL_EXPORT'
7922       ;;
7923
7924     darwin* | rhapsody*)
7925       # PIC is the default on this platform
7926       # Common symbols not allowed in MH_DYLIB files
7927       lt_prog_compiler_pic='-fno-common'
7928       ;;
7929
7930     hpux*)
7931       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7932       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7933       # sets the default TLS model and affects inlining.
7934       case $host_cpu in
7935       hppa*64*)
7936         # +Z the default
7937         ;;
7938       *)
7939         lt_prog_compiler_pic='-fPIC'
7940         ;;
7941       esac
7942       ;;
7943
7944     interix[3-9]*)
7945       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7946       # Instead, we relocate shared libraries at runtime.
7947       ;;
7948
7949     msdosdjgpp*)
7950       # Just because we use GCC doesn't mean we suddenly get shared libraries
7951       # on systems that don't support them.
7952       lt_prog_compiler_can_build_shared=no
7953       enable_shared=no
7954       ;;
7955
7956     *nto* | *qnx*)
7957       # QNX uses GNU C++, but need to define -shared option too, otherwise
7958       # it will coredump.
7959       lt_prog_compiler_pic='-fPIC -shared'
7960       ;;
7961
7962     sysv4*MP*)
7963       if test -d /usr/nec; then
7964         lt_prog_compiler_pic=-Kconform_pic
7965       fi
7966       ;;
7967
7968     *)
7969       lt_prog_compiler_pic='-fPIC'
7970       ;;
7971     esac
7972   else
7973     # PORTME Check for flag to pass linker flags through the system compiler.
7974     case $host_os in
7975     aix*)
7976       lt_prog_compiler_wl='-Wl,'
7977       if test "$host_cpu" = ia64; then
7978         # AIX 5 now supports IA64 processor
7979         lt_prog_compiler_static='-Bstatic'
7980       else
7981         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7982       fi
7983       ;;
7984
7985     mingw* | cygwin* | pw32* | os2* | cegcc*)
7986       # This hack is so that the source file can tell whether it is being
7987       # built for inclusion in a dll (and should export symbols for example).
7988       lt_prog_compiler_pic='-DDLL_EXPORT'
7989       ;;
7990
7991     hpux9* | hpux10* | hpux11*)
7992       lt_prog_compiler_wl='-Wl,'
7993       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7994       # not for PA HP-UX.
7995       case $host_cpu in
7996       hppa*64*|ia64*)
7997         # +Z the default
7998         ;;
7999       *)
8000         lt_prog_compiler_pic='+Z'
8001         ;;
8002       esac
8003       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8004       lt_prog_compiler_static='${wl}-a ${wl}archive'
8005       ;;
8006
8007     irix5* | irix6* | nonstopux*)
8008       lt_prog_compiler_wl='-Wl,'
8009       # PIC (with -KPIC) is the default.
8010       lt_prog_compiler_static='-non_shared'
8011       ;;
8012
8013     linux* | k*bsd*-gnu)
8014       case $cc_basename in
8015       # old Intel for x86_64 which still supported -KPIC.
8016       ecc*)
8017         lt_prog_compiler_wl='-Wl,'
8018         lt_prog_compiler_pic='-KPIC'
8019         lt_prog_compiler_static='-static'
8020         ;;
8021       # icc used to be incompatible with GCC.
8022       # ICC 10 doesn't accept -KPIC any more.
8023       icc* | ifort*)
8024         lt_prog_compiler_wl='-Wl,'
8025         lt_prog_compiler_pic='-fPIC'
8026         lt_prog_compiler_static='-static'
8027         ;;
8028       # Lahey Fortran 8.1.
8029       lf95*)
8030         lt_prog_compiler_wl='-Wl,'
8031         lt_prog_compiler_pic='--shared'
8032         lt_prog_compiler_static='--static'
8033         ;;
8034       pgcc* | pgf77* | pgf90* | pgf95*)
8035         # Portland Group compilers (*not* the Pentium gcc compiler,
8036         # which looks to be a dead project)
8037         lt_prog_compiler_wl='-Wl,'
8038         lt_prog_compiler_pic='-fpic'
8039         lt_prog_compiler_static='-Bstatic'
8040         ;;
8041       ccc*)
8042         lt_prog_compiler_wl='-Wl,'
8043         # All Alpha code is PIC.
8044         lt_prog_compiler_static='-non_shared'
8045         ;;
8046       xl*)
8047         # IBM XL C 8.0/Fortran 10.1 on PPC
8048         lt_prog_compiler_wl='-Wl,'
8049         lt_prog_compiler_pic='-qpic'
8050         lt_prog_compiler_static='-qstaticlink'
8051         ;;
8052       *)
8053         case `$CC -V 2>&1 | sed 5q` in
8054         *Sun\ C*)
8055           # Sun C 5.9
8056           lt_prog_compiler_pic='-KPIC'
8057           lt_prog_compiler_static='-Bstatic'
8058           lt_prog_compiler_wl='-Wl,'
8059           ;;
8060         *Sun\ F*)
8061           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8062           lt_prog_compiler_pic='-KPIC'
8063           lt_prog_compiler_static='-Bstatic'
8064           lt_prog_compiler_wl=''
8065           ;;
8066         esac
8067         ;;
8068       esac
8069       ;;
8070
8071     newsos6)
8072       lt_prog_compiler_pic='-KPIC'
8073       lt_prog_compiler_static='-Bstatic'
8074       ;;
8075
8076     *nto* | *qnx*)
8077       # QNX uses GNU C++, but need to define -shared option too, otherwise
8078       # it will coredump.
8079       lt_prog_compiler_pic='-fPIC -shared'
8080       ;;
8081
8082     osf3* | osf4* | osf5*)
8083       lt_prog_compiler_wl='-Wl,'
8084       # All OSF/1 code is PIC.
8085       lt_prog_compiler_static='-non_shared'
8086       ;;
8087
8088     rdos*)
8089       lt_prog_compiler_static='-non_shared'
8090       ;;
8091
8092     solaris*)
8093       lt_prog_compiler_pic='-KPIC'
8094       lt_prog_compiler_static='-Bstatic'
8095       case $cc_basename in
8096       f77* | f90* | f95*)
8097         lt_prog_compiler_wl='-Qoption ld ';;
8098       *)
8099         lt_prog_compiler_wl='-Wl,';;
8100       esac
8101       ;;
8102
8103     sunos4*)
8104       lt_prog_compiler_wl='-Qoption ld '
8105       lt_prog_compiler_pic='-PIC'
8106       lt_prog_compiler_static='-Bstatic'
8107       ;;
8108
8109     sysv4 | sysv4.2uw2* | sysv4.3*)
8110       lt_prog_compiler_wl='-Wl,'
8111       lt_prog_compiler_pic='-KPIC'
8112       lt_prog_compiler_static='-Bstatic'
8113       ;;
8114
8115     sysv4*MP*)
8116       if test -d /usr/nec ;then
8117         lt_prog_compiler_pic='-Kconform_pic'
8118         lt_prog_compiler_static='-Bstatic'
8119       fi
8120       ;;
8121
8122     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8123       lt_prog_compiler_wl='-Wl,'
8124       lt_prog_compiler_pic='-KPIC'
8125       lt_prog_compiler_static='-Bstatic'
8126       ;;
8127
8128     unicos*)
8129       lt_prog_compiler_wl='-Wl,'
8130       lt_prog_compiler_can_build_shared=no
8131       ;;
8132
8133     uts4*)
8134       lt_prog_compiler_pic='-pic'
8135       lt_prog_compiler_static='-Bstatic'
8136       ;;
8137
8138     *)
8139       lt_prog_compiler_can_build_shared=no
8140       ;;
8141     esac
8142   fi
8143
8144 case $host_os in
8145   # For platforms which do not support PIC, -DPIC is meaningless:
8146   *djgpp*)
8147     lt_prog_compiler_pic=
8148     ;;
8149   *)
8150     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8151     ;;
8152 esac
8153 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8154 $as_echo "$lt_prog_compiler_pic" >&6; }
8155
8156
8157
8158
8159
8160
8161 #
8162 # Check to make sure the PIC flag actually works.
8163 #
8164 if test -n "$lt_prog_compiler_pic"; then
8165   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8166 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8167 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8168   $as_echo_n "(cached) " >&6
8169 else
8170   lt_cv_prog_compiler_pic_works=no
8171    ac_outfile=conftest.$ac_objext
8172    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8173    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8174    # Insert the option either (1) after the last *FLAGS variable, or
8175    # (2) before a word containing "conftest.", or (3) at the end.
8176    # Note that $ac_compile itself does not contain backslashes and begins
8177    # with a dollar sign (not a hyphen), so the echo should work correctly.
8178    # The option is referenced via a variable to avoid confusing sed.
8179    lt_compile=`echo "$ac_compile" | $SED \
8180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182    -e 's:$: $lt_compiler_flag:'`
8183    (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
8184    (eval "$lt_compile" 2>conftest.err)
8185    ac_status=$?
8186    cat conftest.err >&5
8187    echo "$as_me:8187: \$? = $ac_status" >&5
8188    if (exit $ac_status) && test -s "$ac_outfile"; then
8189      # The compiler can only warn and ignore the option if not recognized
8190      # So say no if there are warnings other than the usual output.
8191      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8192      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8193      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8194        lt_cv_prog_compiler_pic_works=yes
8195      fi
8196    fi
8197    $RM conftest*
8198
8199 fi
8200 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8201 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8202
8203 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8204     case $lt_prog_compiler_pic in
8205      "" | " "*) ;;
8206      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8207      esac
8208 else
8209     lt_prog_compiler_pic=
8210      lt_prog_compiler_can_build_shared=no
8211 fi
8212
8213 fi
8214
8215
8216
8217
8218
8219
8220 #
8221 # Check to make sure the static flag actually works.
8222 #
8223 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8224 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8225 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8226 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8227   $as_echo_n "(cached) " >&6
8228 else
8229   lt_cv_prog_compiler_static_works=no
8230    save_LDFLAGS="$LDFLAGS"
8231    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8232    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8233    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8234      # The linker can only warn and ignore the option if not recognized
8235      # So say no if there are warnings
8236      if test -s conftest.err; then
8237        # Append any errors to the config.log.
8238        cat conftest.err 1>&5
8239        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8240        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8241        if diff conftest.exp conftest.er2 >/dev/null; then
8242          lt_cv_prog_compiler_static_works=yes
8243        fi
8244      else
8245        lt_cv_prog_compiler_static_works=yes
8246      fi
8247    fi
8248    $RM -r conftest*
8249    LDFLAGS="$save_LDFLAGS"
8250
8251 fi
8252 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8253 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8254
8255 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8256     :
8257 else
8258     lt_prog_compiler_static=
8259 fi
8260
8261
8262
8263
8264
8265
8266
8267   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8268 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8269 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8270   $as_echo_n "(cached) " >&6
8271 else
8272   lt_cv_prog_compiler_c_o=no
8273    $RM -r conftest 2>/dev/null
8274    mkdir conftest
8275    cd conftest
8276    mkdir out
8277    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8278
8279    lt_compiler_flag="-o out/conftest2.$ac_objext"
8280    # Insert the option either (1) after the last *FLAGS variable, or
8281    # (2) before a word containing "conftest.", or (3) at the end.
8282    # Note that $ac_compile itself does not contain backslashes and begins
8283    # with a dollar sign (not a hyphen), so the echo should work correctly.
8284    lt_compile=`echo "$ac_compile" | $SED \
8285    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8286    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8287    -e 's:$: $lt_compiler_flag:'`
8288    (eval echo "\"\$as_me:8288: $lt_compile\"" >&5)
8289    (eval "$lt_compile" 2>out/conftest.err)
8290    ac_status=$?
8291    cat out/conftest.err >&5
8292    echo "$as_me:8292: \$? = $ac_status" >&5
8293    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8294    then
8295      # The compiler can only warn and ignore the option if not recognized
8296      # So say no if there are warnings
8297      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8298      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8299      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8300        lt_cv_prog_compiler_c_o=yes
8301      fi
8302    fi
8303    chmod u+w . 2>&5
8304    $RM conftest*
8305    # SGI C++ compiler will create directory out/ii_files/ for
8306    # template instantiation
8307    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8308    $RM out/* && rmdir out
8309    cd ..
8310    $RM -r conftest
8311    $RM conftest*
8312
8313 fi
8314 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8315 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8316
8317
8318
8319
8320
8321
8322   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8323 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8324 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8325   $as_echo_n "(cached) " >&6
8326 else
8327   lt_cv_prog_compiler_c_o=no
8328    $RM -r conftest 2>/dev/null
8329    mkdir conftest
8330    cd conftest
8331    mkdir out
8332    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8333
8334    lt_compiler_flag="-o out/conftest2.$ac_objext"
8335    # Insert the option either (1) after the last *FLAGS variable, or
8336    # (2) before a word containing "conftest.", or (3) at the end.
8337    # Note that $ac_compile itself does not contain backslashes and begins
8338    # with a dollar sign (not a hyphen), so the echo should work correctly.
8339    lt_compile=`echo "$ac_compile" | $SED \
8340    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8341    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8342    -e 's:$: $lt_compiler_flag:'`
8343    (eval echo "\"\$as_me:8343: $lt_compile\"" >&5)
8344    (eval "$lt_compile" 2>out/conftest.err)
8345    ac_status=$?
8346    cat out/conftest.err >&5
8347    echo "$as_me:8347: \$? = $ac_status" >&5
8348    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8349    then
8350      # The compiler can only warn and ignore the option if not recognized
8351      # So say no if there are warnings
8352      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8353      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8354      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8355        lt_cv_prog_compiler_c_o=yes
8356      fi
8357    fi
8358    chmod u+w . 2>&5
8359    $RM conftest*
8360    # SGI C++ compiler will create directory out/ii_files/ for
8361    # template instantiation
8362    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8363    $RM out/* && rmdir out
8364    cd ..
8365    $RM -r conftest
8366    $RM conftest*
8367
8368 fi
8369 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8370 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8371
8372
8373
8374
8375 hard_links="nottested"
8376 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8377   # do not overwrite the value of need_locks provided by the user
8378   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8379 $as_echo_n "checking if we can lock with hard links... " >&6; }
8380   hard_links=yes
8381   $RM conftest*
8382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8383   touch conftest.a
8384   ln conftest.a conftest.b 2>&5 || hard_links=no
8385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8386   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8387 $as_echo "$hard_links" >&6; }
8388   if test "$hard_links" = no; then
8389     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8390 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8391     need_locks=warn
8392   fi
8393 else
8394   need_locks=no
8395 fi
8396
8397
8398
8399
8400
8401
8402   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8403 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8404
8405   runpath_var=
8406   allow_undefined_flag=
8407   always_export_symbols=no
8408   archive_cmds=
8409   archive_expsym_cmds=
8410   compiler_needs_object=no
8411   enable_shared_with_static_runtimes=no
8412   export_dynamic_flag_spec=
8413   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8414   hardcode_automatic=no
8415   hardcode_direct=no
8416   hardcode_direct_absolute=no
8417   hardcode_libdir_flag_spec=
8418   hardcode_libdir_flag_spec_ld=
8419   hardcode_libdir_separator=
8420   hardcode_minus_L=no
8421   hardcode_shlibpath_var=unsupported
8422   inherit_rpath=no
8423   link_all_deplibs=unknown
8424   module_cmds=
8425   module_expsym_cmds=
8426   old_archive_from_new_cmds=
8427   old_archive_from_expsyms_cmds=
8428   thread_safe_flag_spec=
8429   whole_archive_flag_spec=
8430   # include_expsyms should be a list of space-separated symbols to be *always*
8431   # included in the symbol list
8432   include_expsyms=
8433   # exclude_expsyms can be an extended regexp of symbols to exclude
8434   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8435   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8436   # as well as any symbol that contains `d'.
8437   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8438   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8439   # platforms (ab)use it in PIC code, but their linkers get confused if
8440   # the symbol is explicitly referenced.  Since portable code cannot
8441   # rely on this symbol name, it's probably fine to never include it in
8442   # preloaded symbol tables.
8443   # Exclude shared library initialization/finalization symbols.
8444   extract_expsyms_cmds=
8445
8446   case $host_os in
8447   cygwin* | mingw* | pw32* | cegcc*)
8448     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8449     # When not using gcc, we currently assume that we are using
8450     # Microsoft Visual C++.
8451     if test "$GCC" != yes; then
8452       with_gnu_ld=no
8453     fi
8454     ;;
8455   interix*)
8456     # we just hope/assume this is gcc and not c89 (= MSVC++)
8457     with_gnu_ld=yes
8458     ;;
8459   openbsd*)
8460     with_gnu_ld=no
8461     ;;
8462   esac
8463
8464   ld_shlibs=yes
8465   if test "$with_gnu_ld" = yes; then
8466     # If archive_cmds runs LD, not CC, wlarc should be empty
8467     wlarc='${wl}'
8468
8469     # Set some defaults for GNU ld with shared library support. These
8470     # are reset later if shared libraries are not supported. Putting them
8471     # here allows them to be overridden if necessary.
8472     runpath_var=LD_RUN_PATH
8473     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8474     export_dynamic_flag_spec='${wl}--export-dynamic'
8475     # ancient GNU ld didn't support --whole-archive et. al.
8476     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8477       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8478     else
8479       whole_archive_flag_spec=
8480     fi
8481     supports_anon_versioning=no
8482     case `$LD -v 2>&1` in
8483       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8484       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8485       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8486       *\ 2.11.*) ;; # other 2.11 versions
8487       *) supports_anon_versioning=yes ;;
8488     esac
8489
8490     # See if GNU ld supports shared libraries.
8491     case $host_os in
8492     aix[3-9]*)
8493       # On AIX/PPC, the GNU linker is very broken
8494       if test "$host_cpu" != ia64; then
8495         ld_shlibs=no
8496         cat <<_LT_EOF 1>&2
8497
8498 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8499 *** to be unable to reliably create shared libraries on AIX.
8500 *** Therefore, libtool is disabling shared libraries support.  If you
8501 *** really care for shared libraries, you may want to modify your PATH
8502 *** so that a non-GNU linker is found, and then restart.
8503
8504 _LT_EOF
8505       fi
8506       ;;
8507
8508     amigaos*)
8509       case $host_cpu in
8510       powerpc)
8511             # see comment about AmigaOS4 .so support
8512             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513             archive_expsym_cmds=''
8514         ;;
8515       m68k)
8516             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)'
8517             hardcode_libdir_flag_spec='-L$libdir'
8518             hardcode_minus_L=yes
8519         ;;
8520       esac
8521       ;;
8522
8523     beos*)
8524       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8525         allow_undefined_flag=unsupported
8526         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8527         # support --undefined.  This deserves some investigation.  FIXME
8528         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529       else
8530         ld_shlibs=no
8531       fi
8532       ;;
8533
8534     cygwin* | mingw* | pw32* | cegcc*)
8535       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8536       # as there is no search path for DLLs.
8537       hardcode_libdir_flag_spec='-L$libdir'
8538       allow_undefined_flag=unsupported
8539       always_export_symbols=no
8540       enable_shared_with_static_runtimes=yes
8541       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8542
8543       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8544         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8545         # If the export-symbols file already is a .def file (1st line
8546         # is EXPORTS), use it as is; otherwise, prepend...
8547         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8548           cp $export_symbols $output_objdir/$soname.def;
8549         else
8550           echo EXPORTS > $output_objdir/$soname.def;
8551           cat $export_symbols >> $output_objdir/$soname.def;
8552         fi~
8553         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8554       else
8555         ld_shlibs=no
8556       fi
8557       ;;
8558
8559     interix[3-9]*)
8560       hardcode_direct=no
8561       hardcode_shlibpath_var=no
8562       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8563       export_dynamic_flag_spec='${wl}-E'
8564       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8565       # Instead, shared libraries are loaded at an image base (0x10000000 by
8566       # default) and relocated if they conflict, which is a slow very memory
8567       # consuming and fragmenting process.  To avoid this, we pick a random,
8568       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8569       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8570       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8571       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'
8572       ;;
8573
8574     gnu* | linux* | tpf* | k*bsd*-gnu)
8575       tmp_diet=no
8576       if test "$host_os" = linux-dietlibc; then
8577         case $cc_basename in
8578           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8579         esac
8580       fi
8581       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8582          && test "$tmp_diet" = no
8583       then
8584         tmp_addflag=
8585         tmp_sharedflag='-shared'
8586         case $cc_basename,$host_cpu in
8587         pgcc*)                          # Portland Group C compiler
8588           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'
8589           tmp_addflag=' $pic_flag'
8590           ;;
8591         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8592           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'
8593           tmp_addflag=' $pic_flag -Mnomain' ;;
8594         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8595           tmp_addflag=' -i_dynamic' ;;
8596         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8597           tmp_addflag=' -i_dynamic -nofor_main' ;;
8598         ifc* | ifort*)                  # Intel Fortran compiler
8599           tmp_addflag=' -nofor_main' ;;
8600         lf95*)                          # Lahey Fortran 8.1
8601           whole_archive_flag_spec=
8602           tmp_sharedflag='--shared' ;;
8603         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8604           tmp_sharedflag='-qmkshrobj'
8605           tmp_addflag= ;;
8606         esac
8607         case `$CC -V 2>&1 | sed 5q` in
8608         *Sun\ C*)                       # Sun C 5.9
8609           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'
8610           compiler_needs_object=yes
8611           tmp_sharedflag='-G' ;;
8612         *Sun\ F*)                       # Sun Fortran 8.3
8613           tmp_sharedflag='-G' ;;
8614         esac
8615         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616
8617         if test "x$supports_anon_versioning" = xyes; then
8618           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8619             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8620             echo "local: *; };" >> $output_objdir/$libname.ver~
8621             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8622         fi
8623
8624         case $cc_basename in
8625         xlf*)
8626           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8627           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8628           hardcode_libdir_flag_spec=
8629           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8630           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8631           if test "x$supports_anon_versioning" = xyes; then
8632             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634               echo "local: *; };" >> $output_objdir/$libname.ver~
8635               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8636           fi
8637           ;;
8638         esac
8639       else
8640         ld_shlibs=no
8641       fi
8642       ;;
8643
8644     netbsd*)
8645       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8646         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8647         wlarc=
8648       else
8649         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651       fi
8652       ;;
8653
8654     solaris*)
8655       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8656         ld_shlibs=no
8657         cat <<_LT_EOF 1>&2
8658
8659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8660 *** create shared libraries on Solaris systems.  Therefore, libtool
8661 *** is disabling shared libraries support.  We urge you to upgrade GNU
8662 *** binutils to release 2.9.1 or newer.  Another option is to modify
8663 *** your PATH or compiler configuration so that the native linker is
8664 *** used, and then restart.
8665
8666 _LT_EOF
8667       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8668         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670       else
8671         ld_shlibs=no
8672       fi
8673       ;;
8674
8675     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8676       case `$LD -v 2>&1` in
8677         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8678         ld_shlibs=no
8679         cat <<_LT_EOF 1>&2
8680
8681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8682 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8683 *** is disabling shared libraries support.  We urge you to upgrade GNU
8684 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8685 *** your PATH or compiler configuration so that the native linker is
8686 *** used, and then restart.
8687
8688 _LT_EOF
8689         ;;
8690         *)
8691           # For security reasons, it is highly recommended that you always
8692           # use absolute paths for naming shared libraries, and exclude the
8693           # DT_RUNPATH tag from executables and libraries.  But doing so
8694           # requires that you compile everything twice, which is a pain.
8695           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8696             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699           else
8700             ld_shlibs=no
8701           fi
8702         ;;
8703       esac
8704       ;;
8705
8706     sunos4*)
8707       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8708       wlarc=
8709       hardcode_direct=yes
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     *)
8714       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717       else
8718         ld_shlibs=no
8719       fi
8720       ;;
8721     esac
8722
8723     if test "$ld_shlibs" = no; then
8724       runpath_var=
8725       hardcode_libdir_flag_spec=
8726       export_dynamic_flag_spec=
8727       whole_archive_flag_spec=
8728     fi
8729   else
8730     # PORTME fill in a description of your system's linker (not GNU ld)
8731     case $host_os in
8732     aix3*)
8733       allow_undefined_flag=unsupported
8734       always_export_symbols=yes
8735       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'
8736       # Note: this linker hardcodes the directories in LIBPATH if there
8737       # are no directories specified by -L.
8738       hardcode_minus_L=yes
8739       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8740         # Neither direct hardcoding nor static linking is supported with a
8741         # broken collect2.
8742         hardcode_direct=unsupported
8743       fi
8744       ;;
8745
8746     aix[4-9]*)
8747       if test "$host_cpu" = ia64; then
8748         # On IA64, the linker does run time linking by default, so we don't
8749         # have to do anything special.
8750         aix_use_runtimelinking=no
8751         exp_sym_flag='-Bexport'
8752         no_entry_flag=""
8753       else
8754         # If we're using GNU nm, then we don't want the "-C" option.
8755         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8756         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8757           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'
8758         else
8759           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'
8760         fi
8761         aix_use_runtimelinking=no
8762
8763         # Test if we are trying to use run time linking or normal
8764         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8765         # need to do runtime linking.
8766         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8767           for ld_flag in $LDFLAGS; do
8768           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8769             aix_use_runtimelinking=yes
8770             break
8771           fi
8772           done
8773           ;;
8774         esac
8775
8776         exp_sym_flag='-bexport'
8777         no_entry_flag='-bnoentry'
8778       fi
8779
8780       # When large executables or shared objects are built, AIX ld can
8781       # have problems creating the table of contents.  If linking a library
8782       # or program results in "error TOC overflow" add -mminimal-toc to
8783       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8784       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8785
8786       archive_cmds=''
8787       hardcode_direct=yes
8788       hardcode_direct_absolute=yes
8789       hardcode_libdir_separator=':'
8790       link_all_deplibs=yes
8791       file_list_spec='${wl}-f,'
8792
8793       if test "$GCC" = yes; then
8794         case $host_os in aix4.[012]|aix4.[012].*)
8795         # We only want to do this on AIX 4.2 and lower, the check
8796         # below for broken collect2 doesn't work under 4.3+
8797           collect2name=`${CC} -print-prog-name=collect2`
8798           if test -f "$collect2name" &&
8799            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8800           then
8801           # We have reworked collect2
8802           :
8803           else
8804           # We have old collect2
8805           hardcode_direct=unsupported
8806           # It fails to find uninstalled libraries when the uninstalled
8807           # path is not listed in the libpath.  Setting hardcode_minus_L
8808           # to unsupported forces relinking
8809           hardcode_minus_L=yes
8810           hardcode_libdir_flag_spec='-L$libdir'
8811           hardcode_libdir_separator=
8812           fi
8813           ;;
8814         esac
8815         shared_flag='-shared'
8816         if test "$aix_use_runtimelinking" = yes; then
8817           shared_flag="$shared_flag "'${wl}-G'
8818         fi
8819       else
8820         # not using gcc
8821         if test "$host_cpu" = ia64; then
8822         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8823         # chokes on -Wl,-G. The following line is correct:
8824           shared_flag='-G'
8825         else
8826           if test "$aix_use_runtimelinking" = yes; then
8827             shared_flag='${wl}-G'
8828           else
8829             shared_flag='${wl}-bM:SRE'
8830           fi
8831         fi
8832       fi
8833
8834       export_dynamic_flag_spec='${wl}-bexpall'
8835       # It seems that -bexpall does not export symbols beginning with
8836       # underscore (_), so it is better to generate a list of symbols to export.
8837       always_export_symbols=yes
8838       if test "$aix_use_runtimelinking" = yes; then
8839         # Warning - without using the other runtime loading flags (-brtl),
8840         # -berok will link without error, but may produce a broken library.
8841         allow_undefined_flag='-berok'
8842         # Determine the default libpath from the value encoded in an
8843         # empty executable.
8844         cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h.  */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h.  */
8850
8851 int
8852 main ()
8853 {
8854
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (ac_try="$ac_link"
8861 case "(($ac_try" in
8862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863   *) ac_try_echo=$ac_try;;
8864 esac
8865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866 $as_echo "$ac_try_echo") >&5
8867   (eval "$ac_link") 2>conftest.er1
8868   ac_status=$?
8869   grep -v '^ *+' conftest.er1 >conftest.err
8870   rm -f conftest.er1
8871   cat conftest.err >&5
8872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); } && {
8874          test -z "$ac_c_werror_flag" ||
8875          test ! -s conftest.err
8876        } && test -s conftest$ac_exeext && {
8877          test "$cross_compiling" = yes ||
8878          $as_test_x conftest$ac_exeext
8879        }; then
8880
8881 lt_aix_libpath_sed='
8882     /Import File Strings/,/^$/ {
8883         /^0/ {
8884             s/^0  *\(.*\)$/\1/
8885             p
8886         }
8887     }'
8888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 # Check for a 64-bit object if we didn't find anything.
8890 if test -z "$aix_libpath"; then
8891   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 fi
8893 else
8894   $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897
8898 fi
8899
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902       conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8905         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906         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"
8907       else
8908         if test "$host_cpu" = ia64; then
8909           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8910           allow_undefined_flag="-z nodefs"
8911           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"
8912         else
8913          # Determine the default libpath from the value encoded in an
8914          # empty executable.
8915          cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h.  */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h.  */
8921
8922 int
8923 main ()
8924 {
8925
8926   ;
8927   return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (ac_try="$ac_link"
8932 case "(($ac_try" in
8933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934   *) ac_try_echo=$ac_try;;
8935 esac
8936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938   (eval "$ac_link") 2>conftest.er1
8939   ac_status=$?
8940   grep -v '^ *+' conftest.er1 >conftest.err
8941   rm -f conftest.er1
8942   cat conftest.err >&5
8943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } && {
8945          test -z "$ac_c_werror_flag" ||
8946          test ! -s conftest.err
8947        } && test -s conftest$ac_exeext && {
8948          test "$cross_compiling" = yes ||
8949          $as_test_x conftest$ac_exeext
8950        }; then
8951
8952 lt_aix_libpath_sed='
8953     /Import File Strings/,/^$/ {
8954         /^0/ {
8955             s/^0  *\(.*\)$/\1/
8956             p
8957         }
8958     }'
8959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 # Check for a 64-bit object if we didn't find anything.
8961 if test -z "$aix_libpath"; then
8962   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963 fi
8964 else
8965   $as_echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967
8968
8969 fi
8970
8971 rm -rf conftest.dSYM
8972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8973       conftest$ac_exeext conftest.$ac_ext
8974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8975
8976          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8977           # Warning - without using the other run time loading flags,
8978           # -berok will link without error, but may produce a broken library.
8979           no_undefined_flag=' ${wl}-bernotok'
8980           allow_undefined_flag=' ${wl}-berok'
8981           # Exported symbols can be pulled into shared objects from archives
8982           whole_archive_flag_spec='$convenience'
8983           archive_cmds_need_lc=yes
8984           # This is similar to how AIX traditionally builds its shared libraries.
8985           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'
8986         fi
8987       fi
8988       ;;
8989
8990     amigaos*)
8991       case $host_cpu in
8992       powerpc)
8993             # see comment about AmigaOS4 .so support
8994             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8995             archive_expsym_cmds=''
8996         ;;
8997       m68k)
8998             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)'
8999             hardcode_libdir_flag_spec='-L$libdir'
9000             hardcode_minus_L=yes
9001         ;;
9002       esac
9003       ;;
9004
9005     bsdi[45]*)
9006       export_dynamic_flag_spec=-rdynamic
9007       ;;
9008
9009     cygwin* | mingw* | pw32* | cegcc*)
9010       # When not using gcc, we currently assume that we are using
9011       # Microsoft Visual C++.
9012       # hardcode_libdir_flag_spec is actually meaningless, as there is
9013       # no search path for DLLs.
9014       hardcode_libdir_flag_spec=' '
9015       allow_undefined_flag=unsupported
9016       # Tell ltmain to make .lib files, not .a files.
9017       libext=lib
9018       # Tell ltmain to make .dll files, not .so files.
9019       shrext_cmds=".dll"
9020       # FIXME: Setting linknames here is a bad hack.
9021       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9022       # The linker will automatically build a .lib file if we build a DLL.
9023       old_archive_from_new_cmds='true'
9024       # FIXME: Should let the user specify the lib program.
9025       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9026       fix_srcfile_path='`cygpath -w "$srcfile"`'
9027       enable_shared_with_static_runtimes=yes
9028       ;;
9029
9030     darwin* | rhapsody*)
9031
9032
9033   archive_cmds_need_lc=no
9034   hardcode_direct=no
9035   hardcode_automatic=yes
9036   hardcode_shlibpath_var=unsupported
9037   whole_archive_flag_spec=''
9038   link_all_deplibs=yes
9039   allow_undefined_flag="$_lt_dar_allow_undefined"
9040   case $cc_basename in
9041      ifort*) _lt_dar_can_shared=yes ;;
9042      *) _lt_dar_can_shared=$GCC ;;
9043   esac
9044   if test "$_lt_dar_can_shared" = "yes"; then
9045     output_verbose_link_cmd=echo
9046     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9047     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9048     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}"
9049     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}"
9050
9051   else
9052   ld_shlibs=no
9053   fi
9054
9055       ;;
9056
9057     dgux*)
9058       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059       hardcode_libdir_flag_spec='-L$libdir'
9060       hardcode_shlibpath_var=no
9061       ;;
9062
9063     freebsd1*)
9064       ld_shlibs=no
9065       ;;
9066
9067     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9068     # support.  Future versions do this automatically, but an explicit c++rt0.o
9069     # does not break anything, and helps significantly (at the cost of a little
9070     # extra space).
9071     freebsd2.2*)
9072       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9073       hardcode_libdir_flag_spec='-R$libdir'
9074       hardcode_direct=yes
9075       hardcode_shlibpath_var=no
9076       ;;
9077
9078     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9079     freebsd2*)
9080       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9081       hardcode_direct=yes
9082       hardcode_minus_L=yes
9083       hardcode_shlibpath_var=no
9084       ;;
9085
9086     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9087     freebsd* | dragonfly*)
9088       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9089       hardcode_libdir_flag_spec='-R$libdir'
9090       hardcode_direct=yes
9091       hardcode_shlibpath_var=no
9092       ;;
9093
9094     hpux9*)
9095       if test "$GCC" = yes; then
9096         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'
9097       else
9098         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'
9099       fi
9100       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9101       hardcode_libdir_separator=:
9102       hardcode_direct=yes
9103
9104       # hardcode_minus_L: Not really in the search PATH,
9105       # but as the default location of the library.
9106       hardcode_minus_L=yes
9107       export_dynamic_flag_spec='${wl}-E'
9108       ;;
9109
9110     hpux10*)
9111       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9112         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9113       else
9114         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9115       fi
9116       if test "$with_gnu_ld" = no; then
9117         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9118         hardcode_libdir_flag_spec_ld='+b $libdir'
9119         hardcode_libdir_separator=:
9120         hardcode_direct=yes
9121         hardcode_direct_absolute=yes
9122         export_dynamic_flag_spec='${wl}-E'
9123         # hardcode_minus_L: Not really in the search PATH,
9124         # but as the default location of the library.
9125         hardcode_minus_L=yes
9126       fi
9127       ;;
9128
9129     hpux11*)
9130       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9131         case $host_cpu in
9132         hppa*64*)
9133           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9134           ;;
9135         ia64*)
9136           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9137           ;;
9138         *)
9139           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9140           ;;
9141         esac
9142       else
9143         case $host_cpu in
9144         hppa*64*)
9145           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9146           ;;
9147         ia64*)
9148           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9149           ;;
9150         *)
9151           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152           ;;
9153         esac
9154       fi
9155       if test "$with_gnu_ld" = no; then
9156         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9157         hardcode_libdir_separator=:
9158
9159         case $host_cpu in
9160         hppa*64*|ia64*)
9161           hardcode_direct=no
9162           hardcode_shlibpath_var=no
9163           ;;
9164         *)
9165           hardcode_direct=yes
9166           hardcode_direct_absolute=yes
9167           export_dynamic_flag_spec='${wl}-E'
9168
9169           # hardcode_minus_L: Not really in the search PATH,
9170           # but as the default location of the library.
9171           hardcode_minus_L=yes
9172           ;;
9173         esac
9174       fi
9175       ;;
9176
9177     irix5* | irix6* | nonstopux*)
9178       if test "$GCC" = yes; then
9179         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'
9180         # Try to use the -exported_symbol ld option, if it does not
9181         # work, assume that -exports_file does not work either and
9182         # implicitly export all symbols.
9183         save_LDFLAGS="$LDFLAGS"
9184         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9185         cat >conftest.$ac_ext <<_ACEOF
9186 int foo(void) {}
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (ac_try="$ac_link"
9190 case "(($ac_try" in
9191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192   *) ac_try_echo=$ac_try;;
9193 esac
9194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195 $as_echo "$ac_try_echo") >&5
9196   (eval "$ac_link") 2>conftest.er1
9197   ac_status=$?
9198   grep -v '^ *+' conftest.er1 >conftest.err
9199   rm -f conftest.er1
9200   cat conftest.err >&5
9201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } && {
9203          test -z "$ac_c_werror_flag" ||
9204          test ! -s conftest.err
9205        } && test -s conftest$ac_exeext && {
9206          test "$cross_compiling" = yes ||
9207          $as_test_x conftest$ac_exeext
9208        }; then
9209   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'
9210
9211 else
9212   $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215
9216 fi
9217
9218 rm -rf conftest.dSYM
9219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9220       conftest$ac_exeext conftest.$ac_ext
9221         LDFLAGS="$save_LDFLAGS"
9222       else
9223         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'
9224         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'
9225       fi
9226       archive_cmds_need_lc='no'
9227       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9228       hardcode_libdir_separator=:
9229       inherit_rpath=yes
9230       link_all_deplibs=yes
9231       ;;
9232
9233     netbsd*)
9234       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9235         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9236       else
9237         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9238       fi
9239       hardcode_libdir_flag_spec='-R$libdir'
9240       hardcode_direct=yes
9241       hardcode_shlibpath_var=no
9242       ;;
9243
9244     newsos6)
9245       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9246       hardcode_direct=yes
9247       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9248       hardcode_libdir_separator=:
9249       hardcode_shlibpath_var=no
9250       ;;
9251
9252     *nto* | *qnx*)
9253       ;;
9254
9255     openbsd*)
9256       if test -f /usr/libexec/ld.so; then
9257         hardcode_direct=yes
9258         hardcode_shlibpath_var=no
9259         hardcode_direct_absolute=yes
9260         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9261           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9263           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264           export_dynamic_flag_spec='${wl}-E'
9265         else
9266           case $host_os in
9267            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9268              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9269              hardcode_libdir_flag_spec='-R$libdir'
9270              ;;
9271            *)
9272              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9273              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9274              ;;
9275           esac
9276         fi
9277       else
9278         ld_shlibs=no
9279       fi
9280       ;;
9281
9282     os2*)
9283       hardcode_libdir_flag_spec='-L$libdir'
9284       hardcode_minus_L=yes
9285       allow_undefined_flag=unsupported
9286       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'
9287       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9288       ;;
9289
9290     osf3*)
9291       if test "$GCC" = yes; then
9292         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9293         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'
9294       else
9295         allow_undefined_flag=' -expect_unresolved \*'
9296         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'
9297       fi
9298       archive_cmds_need_lc='no'
9299       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300       hardcode_libdir_separator=:
9301       ;;
9302
9303     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9304       if test "$GCC" = yes; then
9305         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9306         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'
9307         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308       else
9309         allow_undefined_flag=' -expect_unresolved \*'
9310         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'
9311         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~
9312         $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'
9313
9314         # Both c and cxx compiler support -rpath directly
9315         hardcode_libdir_flag_spec='-rpath $libdir'
9316       fi
9317       archive_cmds_need_lc='no'
9318       hardcode_libdir_separator=:
9319       ;;
9320
9321     solaris*)
9322       no_undefined_flag=' -z defs'
9323       if test "$GCC" = yes; then
9324         wlarc='${wl}'
9325         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9326         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9327           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9328       else
9329         case `$CC -V 2>&1` in
9330         *"Compilers 5.0"*)
9331           wlarc=''
9332           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9335           ;;
9336         *)
9337           wlarc='${wl}'
9338           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9339           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9340           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9341           ;;
9342         esac
9343       fi
9344       hardcode_libdir_flag_spec='-R$libdir'
9345       hardcode_shlibpath_var=no
9346       case $host_os in
9347       solaris2.[0-5] | solaris2.[0-5].*) ;;
9348       *)
9349         # The compiler driver will combine and reorder linker options,
9350         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9351         # but is careful enough not to reorder.
9352         # Supported since Solaris 2.6 (maybe 2.5.1?)
9353         if test "$GCC" = yes; then
9354           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9355         else
9356           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9357         fi
9358         ;;
9359       esac
9360       link_all_deplibs=yes
9361       ;;
9362
9363     sunos4*)
9364       if test "x$host_vendor" = xsequent; then
9365         # Use $CC to link under sequent, because it throws in some extra .o
9366         # files that make .init and .fini sections work.
9367         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9368       else
9369         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9370       fi
9371       hardcode_libdir_flag_spec='-L$libdir'
9372       hardcode_direct=yes
9373       hardcode_minus_L=yes
9374       hardcode_shlibpath_var=no
9375       ;;
9376
9377     sysv4)
9378       case $host_vendor in
9379         sni)
9380           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9381           hardcode_direct=yes # is this really true???
9382         ;;
9383         siemens)
9384           ## LD is ld it makes a PLAMLIB
9385           ## CC just makes a GrossModule.
9386           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9387           reload_cmds='$CC -r -o $output$reload_objs'
9388           hardcode_direct=no
9389         ;;
9390         motorola)
9391           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9393         ;;
9394       esac
9395       runpath_var='LD_RUN_PATH'
9396       hardcode_shlibpath_var=no
9397       ;;
9398
9399     sysv4.3*)
9400       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401       hardcode_shlibpath_var=no
9402       export_dynamic_flag_spec='-Bexport'
9403       ;;
9404
9405     sysv4*MP*)
9406       if test -d /usr/nec; then
9407         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408         hardcode_shlibpath_var=no
9409         runpath_var=LD_RUN_PATH
9410         hardcode_runpath_var=yes
9411         ld_shlibs=yes
9412       fi
9413       ;;
9414
9415     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9416       no_undefined_flag='${wl}-z,text'
9417       archive_cmds_need_lc=no
9418       hardcode_shlibpath_var=no
9419       runpath_var='LD_RUN_PATH'
9420
9421       if test "$GCC" = yes; then
9422         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424       else
9425         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427       fi
9428       ;;
9429
9430     sysv5* | sco3.2v5* | sco5v6*)
9431       # Note: We can NOT use -z defs as we might desire, because we do not
9432       # link with -lc, and that would cause any symbols used from libc to
9433       # always be unresolved, which means just about no library would
9434       # ever link correctly.  If we're not using GNU ld we use -z text
9435       # though, which does catch some bad symbols but isn't as heavy-handed
9436       # as -z defs.
9437       no_undefined_flag='${wl}-z,text'
9438       allow_undefined_flag='${wl}-z,nodefs'
9439       archive_cmds_need_lc=no
9440       hardcode_shlibpath_var=no
9441       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9442       hardcode_libdir_separator=':'
9443       link_all_deplibs=yes
9444       export_dynamic_flag_spec='${wl}-Bexport'
9445       runpath_var='LD_RUN_PATH'
9446
9447       if test "$GCC" = yes; then
9448         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450       else
9451         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453       fi
9454       ;;
9455
9456     uts4*)
9457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458       hardcode_libdir_flag_spec='-L$libdir'
9459       hardcode_shlibpath_var=no
9460       ;;
9461
9462     *)
9463       ld_shlibs=no
9464       ;;
9465     esac
9466
9467     if test x$host_vendor = xsni; then
9468       case $host in
9469       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9470         export_dynamic_flag_spec='${wl}-Blargedynsym'
9471         ;;
9472       esac
9473     fi
9474   fi
9475
9476 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9477 $as_echo "$ld_shlibs" >&6; }
9478 test "$ld_shlibs" = no && can_build_shared=no
9479
9480 with_gnu_ld=$with_gnu_ld
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496 #
9497 # Do we need to explicitly link libc?
9498 #
9499 case "x$archive_cmds_need_lc" in
9500 x|xyes)
9501   # Assume -lc should be added
9502   archive_cmds_need_lc=yes
9503
9504   if test "$enable_shared" = yes && test "$GCC" = yes; then
9505     case $archive_cmds in
9506     *'~'*)
9507       # FIXME: we may have to deal with multi-command sequences.
9508       ;;
9509     '$CC '*)
9510       # Test whether the compiler implicitly links with -lc since on some
9511       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9512       # to ld, don't add -lc before -lgcc.
9513       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9514 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9515       $RM conftest*
9516       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9517
9518       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9519   (eval $ac_compile) 2>&5
9520   ac_status=$?
9521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } 2>conftest.err; then
9523         soname=conftest
9524         lib=conftest
9525         libobjs=conftest.$ac_objext
9526         deplibs=
9527         wl=$lt_prog_compiler_wl
9528         pic_flag=$lt_prog_compiler_pic
9529         compiler_flags=-v
9530         linker_flags=-v
9531         verstring=
9532         output_objdir=.
9533         libname=conftest
9534         lt_save_allow_undefined_flag=$allow_undefined_flag
9535         allow_undefined_flag=
9536         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9537   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9538   ac_status=$?
9539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }
9541         then
9542           archive_cmds_need_lc=no
9543         else
9544           archive_cmds_need_lc=yes
9545         fi
9546         allow_undefined_flag=$lt_save_allow_undefined_flag
9547       else
9548         cat conftest.err 1>&5
9549       fi
9550       $RM conftest*
9551       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9552 $as_echo "$archive_cmds_need_lc" >&6; }
9553       ;;
9554     esac
9555   fi
9556   ;;
9557 esac
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9716 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9717
9718 if test "$GCC" = yes; then
9719   case $host_os in
9720     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9721     *) lt_awk_arg="/^libraries:/" ;;
9722   esac
9723   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9724   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9725     # if the path contains ";" then we assume it to be the separator
9726     # otherwise default to the standard path separator (i.e. ":") - it is
9727     # assumed that no part of a normal pathname contains ";" but that should
9728     # okay in the real world where ";" in dirpaths is itself problematic.
9729     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9730   else
9731     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9732   fi
9733   # Ok, now we have the path, separated by spaces, we can step through it
9734   # and add multilib dir if necessary.
9735   lt_tmp_lt_search_path_spec=
9736   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9737   for lt_sys_path in $lt_search_path_spec; do
9738     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9739       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9740     else
9741       test -d "$lt_sys_path" && \
9742         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9743     fi
9744   done
9745   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9746 BEGIN {RS=" "; FS="/|\n";} {
9747   lt_foo="";
9748   lt_count=0;
9749   for (lt_i = NF; lt_i > 0; lt_i--) {
9750     if ($lt_i != "" && $lt_i != ".") {
9751       if ($lt_i == "..") {
9752         lt_count++;
9753       } else {
9754         if (lt_count == 0) {
9755           lt_foo="/" $lt_i lt_foo;
9756         } else {
9757           lt_count--;
9758         }
9759       }
9760     }
9761   }
9762   if (lt_foo != "") { lt_freq[lt_foo]++; }
9763   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9764 }'`
9765   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9766 else
9767   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9768 fi
9769 library_names_spec=
9770 libname_spec='lib$name'
9771 soname_spec=
9772 shrext_cmds=".so"
9773 postinstall_cmds=
9774 postuninstall_cmds=
9775 finish_cmds=
9776 finish_eval=
9777 shlibpath_var=
9778 shlibpath_overrides_runpath=unknown
9779 version_type=none
9780 dynamic_linker="$host_os ld.so"
9781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9782 need_lib_prefix=unknown
9783 hardcode_into_libs=no
9784
9785 # when you set need_version to no, make sure it does not cause -set_version
9786 # flags to be left without arguments
9787 need_version=unknown
9788
9789 case $host_os in
9790 aix3*)
9791   version_type=linux
9792   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9793   shlibpath_var=LIBPATH
9794
9795   # AIX 3 has no versioning support, so we append a major version to the name.
9796   soname_spec='${libname}${release}${shared_ext}$major'
9797   ;;
9798
9799 aix[4-9]*)
9800   version_type=linux
9801   need_lib_prefix=no
9802   need_version=no
9803   hardcode_into_libs=yes
9804   if test "$host_cpu" = ia64; then
9805     # AIX 5 supports IA64
9806     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9807     shlibpath_var=LD_LIBRARY_PATH
9808   else
9809     # With GCC up to 2.95.x, collect2 would create an import file
9810     # for dependence libraries.  The import file would start with
9811     # the line `#! .'.  This would cause the generated library to
9812     # depend on `.', always an invalid library.  This was fixed in
9813     # development snapshots of GCC prior to 3.0.
9814     case $host_os in
9815       aix4 | aix4.[01] | aix4.[01].*)
9816       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9817            echo ' yes '
9818            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9819         :
9820       else
9821         can_build_shared=no
9822       fi
9823       ;;
9824     esac
9825     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9826     # soname into executable. Probably we can add versioning support to
9827     # collect2, so additional links can be useful in future.
9828     if test "$aix_use_runtimelinking" = yes; then
9829       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9830       # instead of lib<name>.a to let people know that these are not
9831       # typical AIX shared libraries.
9832       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833     else
9834       # We preserve .a as extension for shared libraries through AIX4.2
9835       # and later when we are not doing run time linking.
9836       library_names_spec='${libname}${release}.a $libname.a'
9837       soname_spec='${libname}${release}${shared_ext}$major'
9838     fi
9839     shlibpath_var=LIBPATH
9840   fi
9841   ;;
9842
9843 amigaos*)
9844   case $host_cpu in
9845   powerpc)
9846     # Since July 2007 AmigaOS4 officially supports .so libraries.
9847     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849     ;;
9850   m68k)
9851     library_names_spec='$libname.ixlibrary $libname.a'
9852     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9853     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'
9854     ;;
9855   esac
9856   ;;
9857
9858 beos*)
9859   library_names_spec='${libname}${shared_ext}'
9860   dynamic_linker="$host_os ld.so"
9861   shlibpath_var=LIBRARY_PATH
9862   ;;
9863
9864 bsdi[45]*)
9865   version_type=linux
9866   need_version=no
9867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868   soname_spec='${libname}${release}${shared_ext}$major'
9869   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9870   shlibpath_var=LD_LIBRARY_PATH
9871   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9872   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9873   # the default ld.so.conf also contains /usr/contrib/lib and
9874   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9875   # libtool to hard-code these into programs
9876   ;;
9877
9878 cygwin* | mingw* | pw32* | cegcc*)
9879   version_type=windows
9880   shrext_cmds=".dll"
9881   need_version=no
9882   need_lib_prefix=no
9883
9884   case $GCC,$host_os in
9885   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9886     library_names_spec='$libname.dll.a'
9887     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9888     postinstall_cmds='base_file=`basename \${file}`~
9889       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9890       dldir=$destdir/`dirname \$dlpath`~
9891       test -d \$dldir || mkdir -p \$dldir~
9892       $install_prog $dir/$dlname \$dldir/$dlname~
9893       chmod a+x \$dldir/$dlname~
9894       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9895         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9896       fi'
9897     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9898       dlpath=$dir/\$dldll~
9899        $RM \$dlpath'
9900     shlibpath_overrides_runpath=yes
9901
9902     case $host_os in
9903     cygwin*)
9904       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9905       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9906       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9907       ;;
9908     mingw* | cegcc*)
9909       # MinGW DLLs use traditional 'lib' prefix
9910       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9911       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9912       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9913         # It is most probably a Windows format PATH printed by
9914         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9915         # path with ; separators, and with drive letters. We can handle the
9916         # drive letters (cygwin fileutils understands them), so leave them,
9917         # especially as we might pass files found there to a mingw objdump,
9918         # which wouldn't understand a cygwinified path. Ahh.
9919         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9920       else
9921         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9922       fi
9923       ;;
9924     pw32*)
9925       # pw32 DLLs use 'pw' prefix rather than 'lib'
9926       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9927       ;;
9928     esac
9929     ;;
9930
9931   *)
9932     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9933     ;;
9934   esac
9935   dynamic_linker='Win32 ld.exe'
9936   # FIXME: first we should search . and the directory the executable is in
9937   shlibpath_var=PATH
9938   ;;
9939
9940 darwin* | rhapsody*)
9941   dynamic_linker="$host_os dyld"
9942   version_type=darwin
9943   need_lib_prefix=no
9944   need_version=no
9945   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9946   soname_spec='${libname}${release}${major}$shared_ext'
9947   shlibpath_overrides_runpath=yes
9948   shlibpath_var=DYLD_LIBRARY_PATH
9949   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9950
9951   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9952   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9953   ;;
9954
9955 dgux*)
9956   version_type=linux
9957   need_lib_prefix=no
9958   need_version=no
9959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9960   soname_spec='${libname}${release}${shared_ext}$major'
9961   shlibpath_var=LD_LIBRARY_PATH
9962   ;;
9963
9964 freebsd1*)
9965   dynamic_linker=no
9966   ;;
9967
9968 freebsd* | dragonfly*)
9969   # DragonFly does not have aout.  When/if they implement a new
9970   # versioning mechanism, adjust this.
9971   if test -x /usr/bin/objformat; then
9972     objformat=`/usr/bin/objformat`
9973   else
9974     case $host_os in
9975     freebsd[123]*) objformat=aout ;;
9976     *) objformat=elf ;;
9977     esac
9978   fi
9979   version_type=freebsd-$objformat
9980   case $version_type in
9981     freebsd-elf*)
9982       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9983       need_version=no
9984       need_lib_prefix=no
9985       ;;
9986     freebsd-*)
9987       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9988       need_version=yes
9989       ;;
9990   esac
9991   shlibpath_var=LD_LIBRARY_PATH
9992   case $host_os in
9993   freebsd2*)
9994     shlibpath_overrides_runpath=yes
9995     ;;
9996   freebsd3.[01]* | freebsdelf3.[01]*)
9997     shlibpath_overrides_runpath=yes
9998     hardcode_into_libs=yes
9999     ;;
10000   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10001   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10002     shlibpath_overrides_runpath=no
10003     hardcode_into_libs=yes
10004     ;;
10005   *) # from 4.6 on, and DragonFly
10006     shlibpath_overrides_runpath=yes
10007     hardcode_into_libs=yes
10008     ;;
10009   esac
10010   ;;
10011
10012 gnu*)
10013   version_type=linux
10014   need_lib_prefix=no
10015   need_version=no
10016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10017   soname_spec='${libname}${release}${shared_ext}$major'
10018   shlibpath_var=LD_LIBRARY_PATH
10019   hardcode_into_libs=yes
10020   ;;
10021
10022 hpux9* | hpux10* | hpux11*)
10023   # Give a soname corresponding to the major version so that dld.sl refuses to
10024   # link against other versions.
10025   version_type=sunos
10026   need_lib_prefix=no
10027   need_version=no
10028   case $host_cpu in
10029   ia64*)
10030     shrext_cmds='.so'
10031     hardcode_into_libs=yes
10032     dynamic_linker="$host_os dld.so"
10033     shlibpath_var=LD_LIBRARY_PATH
10034     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036     soname_spec='${libname}${release}${shared_ext}$major'
10037     if test "X$HPUX_IA64_MODE" = X32; then
10038       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10039     else
10040       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10041     fi
10042     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10043     ;;
10044   hppa*64*)
10045     shrext_cmds='.sl'
10046     hardcode_into_libs=yes
10047     dynamic_linker="$host_os dld.sl"
10048     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10049     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051     soname_spec='${libname}${release}${shared_ext}$major'
10052     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10053     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10054     ;;
10055   *)
10056     shrext_cmds='.sl'
10057     dynamic_linker="$host_os dld.sl"
10058     shlibpath_var=SHLIB_PATH
10059     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061     soname_spec='${libname}${release}${shared_ext}$major'
10062     ;;
10063   esac
10064   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10065   postinstall_cmds='chmod 555 $lib'
10066   ;;
10067
10068 interix[3-9]*)
10069   version_type=linux
10070   need_lib_prefix=no
10071   need_version=no
10072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10075   shlibpath_var=LD_LIBRARY_PATH
10076   shlibpath_overrides_runpath=no
10077   hardcode_into_libs=yes
10078   ;;
10079
10080 irix5* | irix6* | nonstopux*)
10081   case $host_os in
10082     nonstopux*) version_type=nonstopux ;;
10083     *)
10084         if test "$lt_cv_prog_gnu_ld" = yes; then
10085                 version_type=linux
10086         else
10087                 version_type=irix
10088         fi ;;
10089   esac
10090   need_lib_prefix=no
10091   need_version=no
10092   soname_spec='${libname}${release}${shared_ext}$major'
10093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10094   case $host_os in
10095   irix5* | nonstopux*)
10096     libsuff= shlibsuff=
10097     ;;
10098   *)
10099     case $LD in # libtool.m4 will add one of these switches to LD
10100     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10101       libsuff= shlibsuff= libmagic=32-bit;;
10102     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10103       libsuff=32 shlibsuff=N32 libmagic=N32;;
10104     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10105       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10106     *) libsuff= shlibsuff= libmagic=never-match;;
10107     esac
10108     ;;
10109   esac
10110   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10111   shlibpath_overrides_runpath=no
10112   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10113   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10114   hardcode_into_libs=yes
10115   ;;
10116
10117 # No shared lib support for Linux oldld, aout, or coff.
10118 linux*oldld* | linux*aout* | linux*coff*)
10119   dynamic_linker=no
10120   ;;
10121
10122 # This must be Linux ELF.
10123 linux* | k*bsd*-gnu)
10124   version_type=linux
10125   need_lib_prefix=no
10126   need_version=no
10127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128   soname_spec='${libname}${release}${shared_ext}$major'
10129   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10130   shlibpath_var=LD_LIBRARY_PATH
10131   shlibpath_overrides_runpath=no
10132   # Some binutils ld are patched to set DT_RUNPATH
10133   save_LDFLAGS=$LDFLAGS
10134   save_libdir=$libdir
10135   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10136        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10137   cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h.  */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h.  */
10143
10144 int
10145 main ()
10146 {
10147
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159 $as_echo "$ac_try_echo") >&5
10160   (eval "$ac_link") 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } && {
10167          test -z "$ac_c_werror_flag" ||
10168          test ! -s conftest.err
10169        } && test -s conftest$ac_exeext && {
10170          test "$cross_compiling" = yes ||
10171          $as_test_x conftest$ac_exeext
10172        }; then
10173   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10174   shlibpath_overrides_runpath=yes
10175 fi
10176
10177 else
10178   $as_echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181
10182 fi
10183
10184 rm -rf conftest.dSYM
10185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10186       conftest$ac_exeext conftest.$ac_ext
10187   LDFLAGS=$save_LDFLAGS
10188   libdir=$save_libdir
10189
10190   # This implies no fast_install, which is unacceptable.
10191   # Some rework will be needed to allow for fast_install
10192   # before this can be enabled.
10193   hardcode_into_libs=yes
10194
10195   # Add ABI-specific directories to the system library path.
10196   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10197
10198   # Append ld.so.conf contents to the search path
10199   if test -f /etc/ld.so.conf; then
10200     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' ' '`
10201     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10202   fi
10203
10204   # We used to test for /lib/ld.so.1 and disable shared libraries on
10205   # powerpc, because MkLinux only supported shared libraries with the
10206   # GNU dynamic linker.  Since this was broken with cross compilers,
10207   # most powerpc-linux boxes support dynamic linking these days and
10208   # people can always --disable-shared, the test was removed, and we
10209   # assume the GNU/Linux dynamic linker is in use.
10210   dynamic_linker='GNU/Linux ld.so'
10211   ;;
10212
10213 netbsd*)
10214   version_type=sunos
10215   need_lib_prefix=no
10216   need_version=no
10217   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10219     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10220     dynamic_linker='NetBSD (a.out) ld.so'
10221   else
10222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10223     soname_spec='${libname}${release}${shared_ext}$major'
10224     dynamic_linker='NetBSD ld.elf_so'
10225   fi
10226   shlibpath_var=LD_LIBRARY_PATH
10227   shlibpath_overrides_runpath=yes
10228   hardcode_into_libs=yes
10229   ;;
10230
10231 newsos6)
10232   version_type=linux
10233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234   shlibpath_var=LD_LIBRARY_PATH
10235   shlibpath_overrides_runpath=yes
10236   ;;
10237
10238 *nto* | *qnx*)
10239   version_type=qnx
10240   need_lib_prefix=no
10241   need_version=no
10242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243   soname_spec='${libname}${release}${shared_ext}$major'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   shlibpath_overrides_runpath=no
10246   hardcode_into_libs=yes
10247   dynamic_linker='ldqnx.so'
10248   ;;
10249
10250 openbsd*)
10251   version_type=sunos
10252   sys_lib_dlsearch_path_spec="/usr/lib"
10253   need_lib_prefix=no
10254   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10255   case $host_os in
10256     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10257     *)                          need_version=no  ;;
10258   esac
10259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10261   shlibpath_var=LD_LIBRARY_PATH
10262   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10263     case $host_os in
10264       openbsd2.[89] | openbsd2.[89].*)
10265         shlibpath_overrides_runpath=no
10266         ;;
10267       *)
10268         shlibpath_overrides_runpath=yes
10269         ;;
10270       esac
10271   else
10272     shlibpath_overrides_runpath=yes
10273   fi
10274   ;;
10275
10276 os2*)
10277   libname_spec='$name'
10278   shrext_cmds=".dll"
10279   need_lib_prefix=no
10280   library_names_spec='$libname${shared_ext} $libname.a'
10281   dynamic_linker='OS/2 ld.exe'
10282   shlibpath_var=LIBPATH
10283   ;;
10284
10285 osf3* | osf4* | osf5*)
10286   version_type=osf
10287   need_lib_prefix=no
10288   need_version=no
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291   shlibpath_var=LD_LIBRARY_PATH
10292   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10293   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10294   ;;
10295
10296 rdos*)
10297   dynamic_linker=no
10298   ;;
10299
10300 solaris*)
10301   version_type=linux
10302   need_lib_prefix=no
10303   need_version=no
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   shlibpath_overrides_runpath=yes
10308   hardcode_into_libs=yes
10309   # ldd complains unless libraries are executable
10310   postinstall_cmds='chmod +x $lib'
10311   ;;
10312
10313 sunos4*)
10314   version_type=sunos
10315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10317   shlibpath_var=LD_LIBRARY_PATH
10318   shlibpath_overrides_runpath=yes
10319   if test "$with_gnu_ld" = yes; then
10320     need_lib_prefix=no
10321   fi
10322   need_version=yes
10323   ;;
10324
10325 sysv4 | sysv4.3*)
10326   version_type=linux
10327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328   soname_spec='${libname}${release}${shared_ext}$major'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   case $host_vendor in
10331     sni)
10332       shlibpath_overrides_runpath=no
10333       need_lib_prefix=no
10334       runpath_var=LD_RUN_PATH
10335       ;;
10336     siemens)
10337       need_lib_prefix=no
10338       ;;
10339     motorola)
10340       need_lib_prefix=no
10341       need_version=no
10342       shlibpath_overrides_runpath=no
10343       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10344       ;;
10345   esac
10346   ;;
10347
10348 sysv4*MP*)
10349   if test -d /usr/nec ;then
10350     version_type=linux
10351     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10352     soname_spec='$libname${shared_ext}.$major'
10353     shlibpath_var=LD_LIBRARY_PATH
10354   fi
10355   ;;
10356
10357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10358   version_type=freebsd-elf
10359   need_lib_prefix=no
10360   need_version=no
10361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10362   soname_spec='${libname}${release}${shared_ext}$major'
10363   shlibpath_var=LD_LIBRARY_PATH
10364   shlibpath_overrides_runpath=yes
10365   hardcode_into_libs=yes
10366   if test "$with_gnu_ld" = yes; then
10367     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10368   else
10369     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10370     case $host_os in
10371       sco3.2v5*)
10372         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10373         ;;
10374     esac
10375   fi
10376   sys_lib_dlsearch_path_spec='/usr/lib'
10377   ;;
10378
10379 tpf*)
10380   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10381   version_type=linux
10382   need_lib_prefix=no
10383   need_version=no
10384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385   shlibpath_var=LD_LIBRARY_PATH
10386   shlibpath_overrides_runpath=no
10387   hardcode_into_libs=yes
10388   ;;
10389
10390 uts4*)
10391   version_type=linux
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   shlibpath_var=LD_LIBRARY_PATH
10395   ;;
10396
10397 *)
10398   dynamic_linker=no
10399   ;;
10400 esac
10401 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10402 $as_echo "$dynamic_linker" >&6; }
10403 test "$dynamic_linker" = no && can_build_shared=no
10404
10405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10406 if test "$GCC" = yes; then
10407   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10408 fi
10409
10410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10411   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10412 fi
10413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10414   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10415 fi
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10505 hardcode_action=
10506 if test -n "$hardcode_libdir_flag_spec" ||
10507    test -n "$runpath_var" ||
10508    test "X$hardcode_automatic" = "Xyes" ; then
10509
10510   # We can hardcode non-existent directories.
10511   if test "$hardcode_direct" != no &&
10512      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10513      # have to relink, otherwise we might link with an installed library
10514      # when we should be linking with a yet-to-be-installed one
10515      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10516      test "$hardcode_minus_L" != no; then
10517     # Linking always hardcodes the temporary library directory.
10518     hardcode_action=relink
10519   else
10520     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10521     hardcode_action=immediate
10522   fi
10523 else
10524   # We cannot hardcode anything, or else we can only hardcode existing
10525   # directories.
10526   hardcode_action=unsupported
10527 fi
10528 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10529 $as_echo "$hardcode_action" >&6; }
10530
10531 if test "$hardcode_action" = relink ||
10532    test "$inherit_rpath" = yes; then
10533   # Fast installation is not supported
10534   enable_fast_install=no
10535 elif test "$shlibpath_overrides_runpath" = yes ||
10536      test "$enable_shared" = no; then
10537   # Fast installation is not necessary
10538   enable_fast_install=needless
10539 fi
10540
10541
10542
10543
10544
10545
10546   if test "x$enable_dlopen" != xyes; then
10547   enable_dlopen=unknown
10548   enable_dlopen_self=unknown
10549   enable_dlopen_self_static=unknown
10550 else
10551   lt_cv_dlopen=no
10552   lt_cv_dlopen_libs=
10553
10554   case $host_os in
10555   beos*)
10556     lt_cv_dlopen="load_add_on"
10557     lt_cv_dlopen_libs=
10558     lt_cv_dlopen_self=yes
10559     ;;
10560
10561   mingw* | pw32* | cegcc*)
10562     lt_cv_dlopen="LoadLibrary"
10563     lt_cv_dlopen_libs=
10564     ;;
10565
10566   cygwin*)
10567     lt_cv_dlopen="dlopen"
10568     lt_cv_dlopen_libs=
10569     ;;
10570
10571   darwin*)
10572   # if libdl is installed we need to link against it
10573     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10576   $as_echo_n "(cached) " >&6
10577 else
10578   ac_check_lib_save_LIBS=$LIBS
10579 LIBS="-ldl  $LIBS"
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586
10587 /* Override any GCC internal prototype to avoid an error.
10588    Use char because int might match the return type of a GCC
10589    builtin and then its argument prototype would still apply.  */
10590 #ifdef __cplusplus
10591 extern "C"
10592 #endif
10593 char dlopen ();
10594 int
10595 main ()
10596 {
10597 return dlopen ();
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606   *) ac_try_echo=$ac_try;;
10607 esac
10608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609 $as_echo "$ac_try_echo") >&5
10610   (eval "$ac_link") 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } && {
10617          test -z "$ac_c_werror_flag" ||
10618          test ! -s conftest.err
10619        } && test -s conftest$ac_exeext && {
10620          test "$cross_compiling" = yes ||
10621          $as_test_x conftest$ac_exeext
10622        }; then
10623   ac_cv_lib_dl_dlopen=yes
10624 else
10625   $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628         ac_cv_lib_dl_dlopen=no
10629 fi
10630
10631 rm -rf conftest.dSYM
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633       conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10635 fi
10636 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10638 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10639   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10640 else
10641
10642     lt_cv_dlopen="dyld"
10643     lt_cv_dlopen_libs=
10644     lt_cv_dlopen_self=yes
10645
10646 fi
10647
10648     ;;
10649
10650   *)
10651     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10652 $as_echo_n "checking for shl_load... " >&6; }
10653 if test "${ac_cv_func_shl_load+set}" = set; then
10654   $as_echo_n "(cached) " >&6
10655 else
10656   cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h.  */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h.  */
10662 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10664 #define shl_load innocuous_shl_load
10665
10666 /* System header to define __stub macros and hopefully few prototypes,
10667     which can conflict with char shl_load (); below.
10668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669     <limits.h> exists even on freestanding compilers.  */
10670
10671 #ifdef __STDC__
10672 # include <limits.h>
10673 #else
10674 # include <assert.h>
10675 #endif
10676
10677 #undef shl_load
10678
10679 /* Override any GCC internal prototype to avoid an error.
10680    Use char because int might match the return type of a GCC
10681    builtin and then its argument prototype would still apply.  */
10682 #ifdef __cplusplus
10683 extern "C"
10684 #endif
10685 char shl_load ();
10686 /* The GNU C library defines this for functions which it implements
10687     to always fail with ENOSYS.  Some functions are actually named
10688     something starting with __ and the normal name is an alias.  */
10689 #if defined __stub_shl_load || defined __stub___shl_load
10690 choke me
10691 #endif
10692
10693 int
10694 main ()
10695 {
10696 return shl_load ();
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709   (eval "$ac_link") 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } && {
10716          test -z "$ac_c_werror_flag" ||
10717          test ! -s conftest.err
10718        } && test -s conftest$ac_exeext && {
10719          test "$cross_compiling" = yes ||
10720          $as_test_x conftest$ac_exeext
10721        }; then
10722   ac_cv_func_shl_load=yes
10723 else
10724   $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727         ac_cv_func_shl_load=no
10728 fi
10729
10730 rm -rf conftest.dSYM
10731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10732       conftest$ac_exeext conftest.$ac_ext
10733 fi
10734 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10735 $as_echo "$ac_cv_func_shl_load" >&6; }
10736 if test "x$ac_cv_func_shl_load" = x""yes; then
10737   lt_cv_dlopen="shl_load"
10738 else
10739   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10740 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10742   $as_echo_n "(cached) " >&6
10743 else
10744   ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-ldld  $LIBS"
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752
10753 /* Override any GCC internal prototype to avoid an error.
10754    Use char because int might match the return type of a GCC
10755    builtin and then its argument prototype would still apply.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char shl_load ();
10760 int
10761 main ()
10762 {
10763 return shl_load ();
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 rm -f conftest.$ac_objext conftest$ac_exeext
10769 if { (ac_try="$ac_link"
10770 case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10775 $as_echo "$ac_try_echo") >&5
10776   (eval "$ac_link") 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } && {
10783          test -z "$ac_c_werror_flag" ||
10784          test ! -s conftest.err
10785        } && test -s conftest$ac_exeext && {
10786          test "$cross_compiling" = yes ||
10787          $as_test_x conftest$ac_exeext
10788        }; then
10789   ac_cv_lib_dld_shl_load=yes
10790 else
10791   $as_echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794         ac_cv_lib_dld_shl_load=no
10795 fi
10796
10797 rm -rf conftest.dSYM
10798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10799       conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10801 fi
10802 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10804 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10805   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10806 else
10807   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10808 $as_echo_n "checking for dlopen... " >&6; }
10809 if test "${ac_cv_func_dlopen+set}" = set; then
10810   $as_echo_n "(cached) " >&6
10811 else
10812   cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h.  */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h.  */
10818 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10820 #define dlopen innocuous_dlopen
10821
10822 /* System header to define __stub macros and hopefully few prototypes,
10823     which can conflict with char dlopen (); below.
10824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10825     <limits.h> exists even on freestanding compilers.  */
10826
10827 #ifdef __STDC__
10828 # include <limits.h>
10829 #else
10830 # include <assert.h>
10831 #endif
10832
10833 #undef dlopen
10834
10835 /* Override any GCC internal prototype to avoid an error.
10836    Use char because int might match the return type of a GCC
10837    builtin and then its argument prototype would still apply.  */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 char dlopen ();
10842 /* The GNU C library defines this for functions which it implements
10843     to always fail with ENOSYS.  Some functions are actually named
10844     something starting with __ and the normal name is an alias.  */
10845 #if defined __stub_dlopen || defined __stub___dlopen
10846 choke me
10847 #endif
10848
10849 int
10850 main ()
10851 {
10852 return dlopen ();
10853   ;
10854   return 0;
10855 }
10856 _ACEOF
10857 rm -f conftest.$ac_objext conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861   *) ac_try_echo=$ac_try;;
10862 esac
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865   (eval "$ac_link") 2>conftest.er1
10866   ac_status=$?
10867   grep -v '^ *+' conftest.er1 >conftest.err
10868   rm -f conftest.er1
10869   cat conftest.err >&5
10870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } && {
10872          test -z "$ac_c_werror_flag" ||
10873          test ! -s conftest.err
10874        } && test -s conftest$ac_exeext && {
10875          test "$cross_compiling" = yes ||
10876          $as_test_x conftest$ac_exeext
10877        }; then
10878   ac_cv_func_dlopen=yes
10879 else
10880   $as_echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883         ac_cv_func_dlopen=no
10884 fi
10885
10886 rm -rf conftest.dSYM
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888       conftest$ac_exeext conftest.$ac_ext
10889 fi
10890 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10891 $as_echo "$ac_cv_func_dlopen" >&6; }
10892 if test "x$ac_cv_func_dlopen" = x""yes; then
10893   lt_cv_dlopen="dlopen"
10894 else
10895   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10897 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10898   $as_echo_n "(cached) " >&6
10899 else
10900   ac_check_lib_save_LIBS=$LIBS
10901 LIBS="-ldl  $LIBS"
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h.  */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h.  */
10908
10909 /* Override any GCC internal prototype to avoid an error.
10910    Use char because int might match the return type of a GCC
10911    builtin and then its argument prototype would still apply.  */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char dlopen ();
10916 int
10917 main ()
10918 {
10919 return dlopen ();
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932   (eval "$ac_link") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } && {
10939          test -z "$ac_c_werror_flag" ||
10940          test ! -s conftest.err
10941        } && test -s conftest$ac_exeext && {
10942          test "$cross_compiling" = yes ||
10943          $as_test_x conftest$ac_exeext
10944        }; then
10945   ac_cv_lib_dl_dlopen=yes
10946 else
10947   $as_echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950         ac_cv_lib_dl_dlopen=no
10951 fi
10952
10953 rm -rf conftest.dSYM
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955       conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10957 fi
10958 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10959 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10960 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10961   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10962 else
10963   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10964 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10966   $as_echo_n "(cached) " >&6
10967 else
10968   ac_check_lib_save_LIBS=$LIBS
10969 LIBS="-lsvld  $LIBS"
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976
10977 /* Override any GCC internal prototype to avoid an error.
10978    Use char because int might match the return type of a GCC
10979    builtin and then its argument prototype would still apply.  */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char dlopen ();
10984 int
10985 main ()
10986 {
10987 return dlopen ();
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (ac_try="$ac_link"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000   (eval "$ac_link") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } && {
11007          test -z "$ac_c_werror_flag" ||
11008          test ! -s conftest.err
11009        } && test -s conftest$ac_exeext && {
11010          test "$cross_compiling" = yes ||
11011          $as_test_x conftest$ac_exeext
11012        }; then
11013   ac_cv_lib_svld_dlopen=yes
11014 else
11015   $as_echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018         ac_cv_lib_svld_dlopen=no
11019 fi
11020
11021 rm -rf conftest.dSYM
11022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11023       conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11025 fi
11026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11027 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11028 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11030 else
11031   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11032 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11033 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11034   $as_echo_n "(cached) " >&6
11035 else
11036   ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-ldld  $LIBS"
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h.  */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h.  */
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046    Use char because int might match the return type of a GCC
11047    builtin and then its argument prototype would still apply.  */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dld_link ();
11052 int
11053 main ()
11054 {
11055 return dld_link ();
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068   (eval "$ac_link") 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } && {
11075          test -z "$ac_c_werror_flag" ||
11076          test ! -s conftest.err
11077        } && test -s conftest$ac_exeext && {
11078          test "$cross_compiling" = yes ||
11079          $as_test_x conftest$ac_exeext
11080        }; then
11081   ac_cv_lib_dld_dld_link=yes
11082 else
11083   $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086         ac_cv_lib_dld_dld_link=no
11087 fi
11088
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091       conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11093 fi
11094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11095 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11096 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11097   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11098 fi
11099
11100
11101 fi
11102
11103
11104 fi
11105
11106
11107 fi
11108
11109
11110 fi
11111
11112
11113 fi
11114
11115     ;;
11116   esac
11117
11118   if test "x$lt_cv_dlopen" != xno; then
11119     enable_dlopen=yes
11120   else
11121     enable_dlopen=no
11122   fi
11123
11124   case $lt_cv_dlopen in
11125   dlopen)
11126     save_CPPFLAGS="$CPPFLAGS"
11127     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11128
11129     save_LDFLAGS="$LDFLAGS"
11130     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11131
11132     save_LIBS="$LIBS"
11133     LIBS="$lt_cv_dlopen_libs $LIBS"
11134
11135     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11136 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11137 if test "${lt_cv_dlopen_self+set}" = set; then
11138   $as_echo_n "(cached) " >&6
11139 else
11140           if test "$cross_compiling" = yes; then :
11141   lt_cv_dlopen_self=cross
11142 else
11143   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11144   lt_status=$lt_dlunknown
11145   cat > conftest.$ac_ext <<_LT_EOF
11146 #line 11146 "configure"
11147 #include "confdefs.h"
11148
11149 #if HAVE_DLFCN_H
11150 #include <dlfcn.h>
11151 #endif
11152
11153 #include <stdio.h>
11154
11155 #ifdef RTLD_GLOBAL
11156 #  define LT_DLGLOBAL           RTLD_GLOBAL
11157 #else
11158 #  ifdef DL_GLOBAL
11159 #    define LT_DLGLOBAL         DL_GLOBAL
11160 #  else
11161 #    define LT_DLGLOBAL         0
11162 #  endif
11163 #endif
11164
11165 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11166    find out it does not work in some platform. */
11167 #ifndef LT_DLLAZY_OR_NOW
11168 #  ifdef RTLD_LAZY
11169 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11170 #  else
11171 #    ifdef DL_LAZY
11172 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11173 #    else
11174 #      ifdef RTLD_NOW
11175 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11176 #      else
11177 #        ifdef DL_NOW
11178 #          define LT_DLLAZY_OR_NOW      DL_NOW
11179 #        else
11180 #          define LT_DLLAZY_OR_NOW      0
11181 #        endif
11182 #      endif
11183 #    endif
11184 #  endif
11185 #endif
11186
11187 void fnord() { int i=42;}
11188 int main ()
11189 {
11190   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11191   int status = $lt_dlunknown;
11192
11193   if (self)
11194     {
11195       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11196       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11197       /* dlclose (self); */
11198     }
11199   else
11200     puts (dlerror ());
11201
11202   return status;
11203 }
11204 _LT_EOF
11205   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206   (eval $ac_link) 2>&5
11207   ac_status=$?
11208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11210     (./conftest; exit; ) >&5 2>/dev/null
11211     lt_status=$?
11212     case x$lt_status in
11213       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11214       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11215       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11216     esac
11217   else :
11218     # compilation failed
11219     lt_cv_dlopen_self=no
11220   fi
11221 fi
11222 rm -fr conftest*
11223
11224
11225 fi
11226 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11227 $as_echo "$lt_cv_dlopen_self" >&6; }
11228
11229     if test "x$lt_cv_dlopen_self" = xyes; then
11230       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11231       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11232 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11233 if test "${lt_cv_dlopen_self_static+set}" = set; then
11234   $as_echo_n "(cached) " >&6
11235 else
11236           if test "$cross_compiling" = yes; then :
11237   lt_cv_dlopen_self_static=cross
11238 else
11239   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11240   lt_status=$lt_dlunknown
11241   cat > conftest.$ac_ext <<_LT_EOF
11242 #line 11242 "configure"
11243 #include "confdefs.h"
11244
11245 #if HAVE_DLFCN_H
11246 #include <dlfcn.h>
11247 #endif
11248
11249 #include <stdio.h>
11250
11251 #ifdef RTLD_GLOBAL
11252 #  define LT_DLGLOBAL           RTLD_GLOBAL
11253 #else
11254 #  ifdef DL_GLOBAL
11255 #    define LT_DLGLOBAL         DL_GLOBAL
11256 #  else
11257 #    define LT_DLGLOBAL         0
11258 #  endif
11259 #endif
11260
11261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11262    find out it does not work in some platform. */
11263 #ifndef LT_DLLAZY_OR_NOW
11264 #  ifdef RTLD_LAZY
11265 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11266 #  else
11267 #    ifdef DL_LAZY
11268 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11269 #    else
11270 #      ifdef RTLD_NOW
11271 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11272 #      else
11273 #        ifdef DL_NOW
11274 #          define LT_DLLAZY_OR_NOW      DL_NOW
11275 #        else
11276 #          define LT_DLLAZY_OR_NOW      0
11277 #        endif
11278 #      endif
11279 #    endif
11280 #  endif
11281 #endif
11282
11283 void fnord() { int i=42;}
11284 int main ()
11285 {
11286   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287   int status = $lt_dlunknown;
11288
11289   if (self)
11290     {
11291       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11292       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11293       /* dlclose (self); */
11294     }
11295   else
11296     puts (dlerror ());
11297
11298   return status;
11299 }
11300 _LT_EOF
11301   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302   (eval $ac_link) 2>&5
11303   ac_status=$?
11304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11306     (./conftest; exit; ) >&5 2>/dev/null
11307     lt_status=$?
11308     case x$lt_status in
11309       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11310       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11311       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11312     esac
11313   else :
11314     # compilation failed
11315     lt_cv_dlopen_self_static=no
11316   fi
11317 fi
11318 rm -fr conftest*
11319
11320
11321 fi
11322 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11323 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11324     fi
11325
11326     CPPFLAGS="$save_CPPFLAGS"
11327     LDFLAGS="$save_LDFLAGS"
11328     LIBS="$save_LIBS"
11329     ;;
11330   esac
11331
11332   case $lt_cv_dlopen_self in
11333   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11334   *) enable_dlopen_self=unknown ;;
11335   esac
11336
11337   case $lt_cv_dlopen_self_static in
11338   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11339   *) enable_dlopen_self_static=unknown ;;
11340   esac
11341 fi
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 striplib=
11360 old_striplib=
11361 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11362 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11363 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11364   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11365   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11366   { $as_echo "$as_me:$LINENO: result: yes" >&5
11367 $as_echo "yes" >&6; }
11368 else
11369 # FIXME - insert some real tests, host_os isn't really good enough
11370   case $host_os in
11371   darwin*)
11372     if test -n "$STRIP" ; then
11373       striplib="$STRIP -x"
11374       old_striplib="$STRIP -S"
11375       { $as_echo "$as_me:$LINENO: result: yes" >&5
11376 $as_echo "yes" >&6; }
11377     else
11378       { $as_echo "$as_me:$LINENO: result: no" >&5
11379 $as_echo "no" >&6; }
11380     fi
11381     ;;
11382   *)
11383     { $as_echo "$as_me:$LINENO: result: no" >&5
11384 $as_echo "no" >&6; }
11385     ;;
11386   esac
11387 fi
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400   # Report which library types will actually be built
11401   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11402 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11403   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11404 $as_echo "$can_build_shared" >&6; }
11405
11406   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11407 $as_echo_n "checking whether to build shared libraries... " >&6; }
11408   test "$can_build_shared" = "no" && enable_shared=no
11409
11410   # On AIX, shared libraries and static libraries use the same namespace, and
11411   # are all built from PIC.
11412   case $host_os in
11413   aix3*)
11414     test "$enable_shared" = yes && enable_static=no
11415     if test -n "$RANLIB"; then
11416       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11417       postinstall_cmds='$RANLIB $lib'
11418     fi
11419     ;;
11420
11421   aix[4-9]*)
11422     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11423       test "$enable_shared" = yes && enable_static=no
11424     fi
11425     ;;
11426   esac
11427   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11428 $as_echo "$enable_shared" >&6; }
11429
11430   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11431 $as_echo_n "checking whether to build static libraries... " >&6; }
11432   # Make sure either enable_shared or enable_static is yes.
11433   test "$enable_shared" = yes || enable_static=yes
11434   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11435 $as_echo "$enable_static" >&6; }
11436
11437
11438
11439
11440 fi
11441 ac_ext=c
11442 ac_cpp='$CPP $CPPFLAGS'
11443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11446
11447 CC="$lt_save_CC"
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461         ac_config_commands="$ac_config_commands libtool"
11462
11463
11464
11465
11466 # Only expand once:
11467
11468
11469
11470
11471
11472 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11473 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11474     # Check whether --enable-maintainer-mode was given.
11475 if test "${enable_maintainer_mode+set}" = set; then
11476   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11477 else
11478   USE_MAINTAINER_MODE=no
11479 fi
11480
11481   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11482 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11483    if test $USE_MAINTAINER_MODE = yes; then
11484   MAINTAINER_MODE_TRUE=
11485   MAINTAINER_MODE_FALSE='#'
11486 else
11487   MAINTAINER_MODE_TRUE='#'
11488   MAINTAINER_MODE_FALSE=
11489 fi
11490
11491   MAINT=$MAINTAINER_MODE_TRUE
11492
11493
11494
11495
11496 for ac_header in sys/mman.h
11497 do
11498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11501 $as_echo_n "checking for $ac_header... " >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503   $as_echo_n "(cached) " >&6
11504 fi
11505 ac_res=`eval 'as_val=${'$as_ac_Header'}
11506                  $as_echo "$as_val"'`
11507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11508 $as_echo "$ac_res" >&6; }
11509 else
11510   # Is the header compilable?
11511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11512 $as_echo_n "checking $ac_header usability... " >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519 $ac_includes_default
11520 #include <$ac_header>
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526   *) ac_try_echo=$ac_try;;
11527 esac
11528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11529 $as_echo "$ac_try_echo") >&5
11530   (eval "$ac_compile") 2>conftest.er1
11531   ac_status=$?
11532   grep -v '^ *+' conftest.er1 >conftest.err
11533   rm -f conftest.er1
11534   cat conftest.err >&5
11535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } && {
11537          test -z "$ac_c_werror_flag" ||
11538          test ! -s conftest.err
11539        } && test -s conftest.$ac_objext; then
11540   ac_header_compiler=yes
11541 else
11542   $as_echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545         ac_header_compiler=no
11546 fi
11547
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 $as_echo "$ac_header_compiler" >&6; }
11551
11552 # Is the header present?
11553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 $as_echo_n "checking $ac_header presence... " >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h.  */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h.  */
11561 #include <$ac_header>
11562 _ACEOF
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11569 $as_echo "$ac_try_echo") >&5
11570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11571   ac_status=$?
11572   grep -v '^ *+' conftest.er1 >conftest.err
11573   rm -f conftest.er1
11574   cat conftest.err >&5
11575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); } >/dev/null && {
11577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11578          test ! -s conftest.err
11579        }; then
11580   ac_header_preproc=yes
11581 else
11582   $as_echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585   ac_header_preproc=no
11586 fi
11587
11588 rm -f conftest.err conftest.$ac_ext
11589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11590 $as_echo "$ac_header_preproc" >&6; }
11591
11592 # So?  What about this header?
11593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11594   yes:no: )
11595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11599     ac_header_preproc=yes
11600     ;;
11601   no:yes:* )
11602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11605 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11609 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11614     ( cat <<\_ASBOX
11615 ## ------------------------------------------- ##
11616 ## Report this to http://gcc.gnu.org/bugs.html ##
11617 ## ------------------------------------------- ##
11618 _ASBOX
11619      ) | sed "s/^/$as_me: WARNING:     /" >&2
11620     ;;
11621 esac
11622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11623 $as_echo_n "checking for $ac_header... " >&6; }
11624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11625   $as_echo_n "(cached) " >&6
11626 else
11627   eval "$as_ac_Header=\$ac_header_preproc"
11628 fi
11629 ac_res=`eval 'as_val=${'$as_ac_Header'}
11630                  $as_echo "$as_val"'`
11631                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11632 $as_echo "$ac_res" >&6; }
11633
11634 fi
11635 as_val=`eval 'as_val=${'$as_ac_Header'}
11636                  $as_echo "$as_val"'`
11637    if test "x$as_val" = x""yes; then
11638   cat >>confdefs.h <<_ACEOF
11639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11640 _ACEOF
11641
11642 fi
11643
11644 done
11645
11646
11647 for ac_func in mmap
11648 do
11649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11650 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11651 $as_echo_n "checking for $ac_func... " >&6; }
11652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11653   $as_echo_n "(cached) " >&6
11654 else
11655   cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11663 #define $ac_func innocuous_$ac_func
11664
11665 /* System header to define __stub macros and hopefully few prototypes,
11666     which can conflict with char $ac_func (); below.
11667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11668     <limits.h> exists even on freestanding compilers.  */
11669
11670 #ifdef __STDC__
11671 # include <limits.h>
11672 #else
11673 # include <assert.h>
11674 #endif
11675
11676 #undef $ac_func
11677
11678 /* Override any GCC internal prototype to avoid an error.
11679    Use char because int might match the return type of a GCC
11680    builtin and then its argument prototype would still apply.  */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 char $ac_func ();
11685 /* The GNU C library defines this for functions which it implements
11686     to always fail with ENOSYS.  Some functions are actually named
11687     something starting with __ and the normal name is an alias.  */
11688 #if defined __stub_$ac_func || defined __stub___$ac_func
11689 choke me
11690 #endif
11691
11692 int
11693 main ()
11694 {
11695 return $ac_func ();
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (ac_try="$ac_link"
11702 case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708   (eval "$ac_link") 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } && {
11715          test -z "$ac_c_werror_flag" ||
11716          test ! -s conftest.err
11717        } && test -s conftest$ac_exeext && {
11718          test "$cross_compiling" = yes ||
11719          $as_test_x conftest$ac_exeext
11720        }; then
11721   eval "$as_ac_var=yes"
11722 else
11723   $as_echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726         eval "$as_ac_var=no"
11727 fi
11728
11729 rm -rf conftest.dSYM
11730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11731       conftest$ac_exeext conftest.$ac_ext
11732 fi
11733 ac_res=`eval 'as_val=${'$as_ac_var'}
11734                  $as_echo "$as_val"'`
11735                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11736 $as_echo "$ac_res" >&6; }
11737 as_val=`eval 'as_val=${'$as_ac_var'}
11738                  $as_echo "$as_val"'`
11739    if test "x$as_val" = x""yes; then
11740   cat >>confdefs.h <<_ACEOF
11741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 _ACEOF
11743
11744 fi
11745 done
11746
11747
11748 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11749   { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11750 $as_echo_n "checking for sys/mman.h... " >&6; }
11751 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11752   $as_echo_n "(cached) " >&6
11753 fi
11754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11755 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11756 else
11757   # Is the header compilable?
11758 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11759 $as_echo_n "checking sys/mman.h usability... " >&6; }
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766 $ac_includes_default
11767 #include <sys/mman.h>
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777   (eval "$ac_compile") 2>conftest.er1
11778   ac_status=$?
11779   grep -v '^ *+' conftest.er1 >conftest.err
11780   rm -f conftest.er1
11781   cat conftest.err >&5
11782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } && {
11784          test -z "$ac_c_werror_flag" ||
11785          test ! -s conftest.err
11786        } && test -s conftest.$ac_objext; then
11787   ac_header_compiler=yes
11788 else
11789   $as_echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792         ac_header_compiler=no
11793 fi
11794
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 $as_echo "$ac_header_compiler" >&6; }
11798
11799 # Is the header present?
11800 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11801 $as_echo_n "checking sys/mman.h presence... " >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 #include <sys/mman.h>
11809 _ACEOF
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
11811 case "(($ac_try" in
11812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813   *) ac_try_echo=$ac_try;;
11814 esac
11815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816 $as_echo "$ac_try_echo") >&5
11817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11818   ac_status=$?
11819   grep -v '^ *+' conftest.er1 >conftest.err
11820   rm -f conftest.er1
11821   cat conftest.err >&5
11822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } >/dev/null && {
11824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11825          test ! -s conftest.err
11826        }; then
11827   ac_header_preproc=yes
11828 else
11829   $as_echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832   ac_header_preproc=no
11833 fi
11834
11835 rm -f conftest.err conftest.$ac_ext
11836 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11837 $as_echo "$ac_header_preproc" >&6; }
11838
11839 # So?  What about this header?
11840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841   yes:no: )
11842     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11843 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11844     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11845 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11846     ac_header_preproc=yes
11847     ;;
11848   no:yes:* )
11849     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11850 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11851     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
11852 $as_echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
11853     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11854 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11855     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
11856 $as_echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11857     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11858 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11859     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11860 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11861     ( cat <<\_ASBOX
11862 ## ------------------------------------------- ##
11863 ## Report this to http://gcc.gnu.org/bugs.html ##
11864 ## ------------------------------------------- ##
11865 _ASBOX
11866      ) | sed "s/^/$as_me: WARNING:     /" >&2
11867     ;;
11868 esac
11869 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11870 $as_echo_n "checking for sys/mman.h... " >&6; }
11871 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11872   $as_echo_n "(cached) " >&6
11873 else
11874   ac_cv_header_sys_mman_h=$ac_header_preproc
11875 fi
11876 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11877 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11878
11879 fi
11880 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11881   libffi_header_sys_mman_h=yes
11882 else
11883   libffi_header_sys_mman_h=no
11884 fi
11885
11886
11887 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11888 $as_echo_n "checking for mmap... " >&6; }
11889 if test "${ac_cv_func_mmap+set}" = set; then
11890   $as_echo_n "(cached) " >&6
11891 else
11892   cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11900 #define mmap innocuous_mmap
11901
11902 /* System header to define __stub macros and hopefully few prototypes,
11903     which can conflict with char mmap (); below.
11904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11905     <limits.h> exists even on freestanding compilers.  */
11906
11907 #ifdef __STDC__
11908 # include <limits.h>
11909 #else
11910 # include <assert.h>
11911 #endif
11912
11913 #undef mmap
11914
11915 /* Override any GCC internal prototype to avoid an error.
11916    Use char because int might match the return type of a GCC
11917    builtin and then its argument prototype would still apply.  */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 char mmap ();
11922 /* The GNU C library defines this for functions which it implements
11923     to always fail with ENOSYS.  Some functions are actually named
11924     something starting with __ and the normal name is an alias.  */
11925 #if defined __stub_mmap || defined __stub___mmap
11926 choke me
11927 #endif
11928
11929 int
11930 main ()
11931 {
11932 return mmap ();
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (ac_try="$ac_link"
11939 case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11944 $as_echo "$ac_try_echo") >&5
11945   (eval "$ac_link") 2>conftest.er1
11946   ac_status=$?
11947   grep -v '^ *+' conftest.er1 >conftest.err
11948   rm -f conftest.er1
11949   cat conftest.err >&5
11950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } && {
11952          test -z "$ac_c_werror_flag" ||
11953          test ! -s conftest.err
11954        } && test -s conftest$ac_exeext && {
11955          test "$cross_compiling" = yes ||
11956          $as_test_x conftest$ac_exeext
11957        }; then
11958   ac_cv_func_mmap=yes
11959 else
11960   $as_echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963         ac_cv_func_mmap=no
11964 fi
11965
11966 rm -rf conftest.dSYM
11967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11968       conftest$ac_exeext conftest.$ac_ext
11969 fi
11970 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11971 $as_echo "$ac_cv_func_mmap" >&6; }
11972 if test "x$ac_cv_func_mmap" = x""yes; then
11973   libffi_func_mmap=yes
11974 else
11975   libffi_func_mmap=no
11976 fi
11977
11978 if test "$libffi_header_sys_mman_h" != yes \
11979  || test "$libffi_func_mmap" != yes; then
11980    ac_cv_func_mmap_file=no
11981    ac_cv_func_mmap_dev_zero=no
11982    ac_cv_func_mmap_anon=no
11983 else
11984    { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11985 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11986 if test "${ac_cv_func_mmap_file+set}" = set; then
11987   $as_echo_n "(cached) " >&6
11988 else
11989   # Add a system to this blacklist if
11990    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11991    # memory area containing the same data that you'd get if you applied
11992    # read() to the same fd.  The only system known to have a problem here
11993    # is VMS, where text files have record structure.
11994    case "$host_os" in
11995      vms* | ultrix*)
11996         ac_cv_func_mmap_file=no ;;
11997      *)
11998         ac_cv_func_mmap_file=yes;;
11999    esac
12000 fi
12001 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12002 $as_echo "$ac_cv_func_mmap_file" >&6; }
12003    { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12004 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12005 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12006   $as_echo_n "(cached) " >&6
12007 else
12008   # Add a system to this blacklist if it has mmap() but /dev/zero
12009    # does not exist, or if mmapping /dev/zero does not give anonymous
12010    # zeroed pages with both the following properties:
12011    # 1. If you map N consecutive pages in with one call, and then
12012    #    unmap any subset of those pages, the pages that were not
12013    #    explicitly unmapped remain accessible.
12014    # 2. If you map two adjacent blocks of memory and then unmap them
12015    #    both at once, they must both go away.
12016    # Systems known to be in this category are Windows (all variants),
12017    # VMS, and Darwin.
12018    case "$host_os" in
12019      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12020         ac_cv_func_mmap_dev_zero=no ;;
12021      *)
12022         ac_cv_func_mmap_dev_zero=yes;;
12023    esac
12024 fi
12025 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12026 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12027
12028    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12029    { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12030 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12031 if test "${ac_cv_decl_map_anon+set}" = set; then
12032   $as_echo_n "(cached) " >&6
12033 else
12034   cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 #include <sys/types.h>
12041 #include <sys/mman.h>
12042 #include <unistd.h>
12043
12044 #ifndef MAP_ANONYMOUS
12045 #define MAP_ANONYMOUS MAP_ANON
12046 #endif
12047
12048 int
12049 main ()
12050 {
12051 int n = MAP_ANONYMOUS;
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (ac_try="$ac_compile"
12058 case "(($ac_try" in
12059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060   *) ac_try_echo=$ac_try;;
12061 esac
12062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12063 $as_echo "$ac_try_echo") >&5
12064   (eval "$ac_compile") 2>conftest.er1
12065   ac_status=$?
12066   grep -v '^ *+' conftest.er1 >conftest.err
12067   rm -f conftest.er1
12068   cat conftest.err >&5
12069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } && {
12071          test -z "$ac_c_werror_flag" ||
12072          test ! -s conftest.err
12073        } && test -s conftest.$ac_objext; then
12074   ac_cv_decl_map_anon=yes
12075 else
12076   $as_echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079         ac_cv_decl_map_anon=no
12080 fi
12081
12082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 fi
12084 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12085 $as_echo "$ac_cv_decl_map_anon" >&6; }
12086
12087    if test $ac_cv_decl_map_anon = no; then
12088      ac_cv_func_mmap_anon=no
12089    else
12090      { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12091 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12092 if test "${ac_cv_func_mmap_anon+set}" = set; then
12093   $as_echo_n "(cached) " >&6
12094 else
12095   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12096    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12097    # doesn't give anonymous zeroed pages with the same properties listed
12098    # above for use of /dev/zero.
12099    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12100    case "$host_os" in
12101      vms* | cygwin* | pe | mingw* | sco* | udk* )
12102         ac_cv_func_mmap_anon=no ;;
12103      *)
12104         ac_cv_func_mmap_anon=yes;;
12105    esac
12106 fi
12107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12108 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12109    fi
12110 fi
12111
12112 if test $ac_cv_func_mmap_file = yes; then
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_MMAP_FILE 1
12116 _ACEOF
12117
12118 fi
12119 if test $ac_cv_func_mmap_dev_zero = yes; then
12120
12121 cat >>confdefs.h <<\_ACEOF
12122 #define HAVE_MMAP_DEV_ZERO 1
12123 _ACEOF
12124
12125 fi
12126 if test $ac_cv_func_mmap_anon = yes; then
12127
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_MMAP_ANON 1
12130 _ACEOF
12131
12132 fi
12133
12134
12135  if test -d $srcdir/testsuite; then
12136   TESTSUBDIR_TRUE=
12137   TESTSUBDIR_FALSE='#'
12138 else
12139   TESTSUBDIR_TRUE='#'
12140   TESTSUBDIR_FALSE=
12141 fi
12142
12143
12144 TARGETDIR="unknown"
12145 case "$host" in
12146   alpha*-*-*)
12147         TARGET=ALPHA; TARGETDIR=alpha;
12148         # Support 128-bit long double, changeable via command-line switch.
12149         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12150         ;;
12151
12152   arm*-*-*)
12153         TARGET=ARM; TARGETDIR=arm
12154         ;;
12155
12156   amd64-*-freebsd* | amd64-*-openbsd*)
12157         TARGET=X86_64; TARGETDIR=x86
12158         ;;
12159
12160   amd64-*-freebsd*)
12161         TARGET=X86_64; TARGETDIR=x86
12162         ;;
12163
12164   avr32*-*-*)
12165         TARGET=AVR32; TARGETDIR=avr32
12166         ;;
12167
12168   cris-*-*)
12169         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12170         ;;
12171
12172   frv-*-*)
12173         TARGET=FRV; TARGETDIR=frv
12174         ;;
12175
12176   hppa*-*-linux* | parisc*-*-linux*)
12177         TARGET=PA_LINUX; TARGETDIR=pa
12178         ;;
12179   hppa*64-*-hpux*)
12180         TARGET=PA64_HPUX; TARGETDIR=pa
12181         ;;
12182   hppa*-*-hpux*)
12183         TARGET=PA_HPUX; TARGETDIR=pa
12184         ;;
12185
12186   i?86-*-freebsd* | i?86-*-openbsd*)
12187         TARGET=X86_FREEBSD; TARGETDIR=x86
12188         ;;
12189   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
12190         TARGET=X86_WIN32; TARGETDIR=x86
12191         # All mingw/cygwin/win32 builds require this for sharedlib
12192         AM_LTLDFLAGS="-no-undefined"
12193         ;;
12194   i?86-*-darwin*)
12195         TARGET=X86_DARWIN; TARGETDIR=x86
12196         ;;
12197   i?86-*-solaris2.1[0-9]*)
12198         TARGET=X86_64; TARGETDIR=x86
12199         ;;
12200   i?86-*-*)
12201         TARGET=X86; TARGETDIR=x86
12202         ;;
12203
12204   ia64*-*-*)
12205         TARGET=IA64; TARGETDIR=ia64
12206         ;;
12207
12208   m32r*-*-*)
12209         TARGET=M32R; TARGETDIR=m32r
12210         ;;
12211
12212   m68k-*-*)
12213         TARGET=M68K; TARGETDIR=m68k
12214         ;;
12215
12216   mips-sgi-irix5.* | mips-sgi-irix6.*)
12217         TARGET=MIPS; TARGETDIR=mips
12218         ;;
12219   mips*-*-linux*)
12220         # Support 128-bit long double for NewABI.
12221         HAVE_LONG_DOUBLE='defined(__mips64)'
12222         TARGET=MIPS; TARGETDIR=mips
12223         ;;
12224
12225   powerpc*-*-linux* | powerpc-*-sysv*)
12226         TARGET=POWERPC; TARGETDIR=powerpc
12227         ;;
12228   powerpc-*-beos*)
12229         TARGET=POWERPC; TARGETDIR=powerpc
12230         ;;
12231   powerpc-*-darwin*)
12232         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12233         ;;
12234   powerpc-*-aix* | rs6000-*-aix*)
12235         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12236         ;;
12237   powerpc-*-freebsd*)
12238         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12239         ;;
12240  powerpc64-*-freebsd*)
12241         TARGET=POWERPC; TARGETDIR=powerpc
12242         ;;
12243   powerpc*-*-rtems*)
12244         TARGET=POWERPC; TARGETDIR=powerpc
12245         ;;
12246
12247   s390-*-* | s390x-*-*)
12248         TARGET=S390; TARGETDIR=s390
12249         ;;
12250
12251   sh-*-* | sh[34]*-*-*)
12252         TARGET=SH; TARGETDIR=sh
12253         ;;
12254   sh64-*-* | sh5*-*-*)
12255         TARGET=SH64; TARGETDIR=sh64
12256         ;;
12257
12258   sparc*-*-*)
12259         TARGET=SPARC; TARGETDIR=sparc
12260         ;;
12261
12262   x86_64-*-darwin*)
12263         TARGET=X86_DARWIN; TARGETDIR=x86
12264         ;;
12265
12266   x86_64-*-cygwin* | x86_64-*-mingw*)
12267         TARGET=X86_WIN64; TARGETDIR=x86
12268         ;;
12269
12270   x86_64-*-*)
12271         TARGET=X86_64; TARGETDIR=x86
12272         ;;
12273 esac
12274
12275
12276
12277
12278 if test $TARGETDIR = unknown; then
12279   { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12280 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12281    { (exit 1); exit 1; }; }
12282 fi
12283
12284  if test x$TARGET = xMIPS; then
12285   MIPS_TRUE=
12286   MIPS_FALSE='#'
12287 else
12288   MIPS_TRUE='#'
12289   MIPS_FALSE=
12290 fi
12291
12292  if test x$TARGET = xSPARC; then
12293   SPARC_TRUE=
12294   SPARC_FALSE='#'
12295 else
12296   SPARC_TRUE='#'
12297   SPARC_FALSE=
12298 fi
12299
12300  if test x$TARGET = xX86; then
12301   X86_TRUE=
12302   X86_FALSE='#'
12303 else
12304   X86_TRUE='#'
12305   X86_FALSE=
12306 fi
12307
12308  if test x$TARGET = xX86_FREEBSD; then
12309   X86_FREEBSD_TRUE=
12310   X86_FREEBSD_FALSE='#'
12311 else
12312   X86_FREEBSD_TRUE='#'
12313   X86_FREEBSD_FALSE=
12314 fi
12315
12316  if test x$TARGET = xX86_WIN32; then
12317   X86_WIN32_TRUE=
12318   X86_WIN32_FALSE='#'
12319 else
12320   X86_WIN32_TRUE='#'
12321   X86_WIN32_FALSE=
12322 fi
12323
12324  if test x$TARGET = xX86_WIN64; then
12325   X86_WIN64_TRUE=
12326   X86_WIN64_FALSE='#'
12327 else
12328   X86_WIN64_TRUE='#'
12329   X86_WIN64_FALSE=
12330 fi
12331
12332  if test x$TARGET = xX86_DARWIN; then
12333   X86_DARWIN_TRUE=
12334   X86_DARWIN_FALSE='#'
12335 else
12336   X86_DARWIN_TRUE='#'
12337   X86_DARWIN_FALSE=
12338 fi
12339
12340  if test x$TARGET = xALPHA; then
12341   ALPHA_TRUE=
12342   ALPHA_FALSE='#'
12343 else
12344   ALPHA_TRUE='#'
12345   ALPHA_FALSE=
12346 fi
12347
12348  if test x$TARGET = xIA64; then
12349   IA64_TRUE=
12350   IA64_FALSE='#'
12351 else
12352   IA64_TRUE='#'
12353   IA64_FALSE=
12354 fi
12355
12356  if test x$TARGET = xM32R; then
12357   M32R_TRUE=
12358   M32R_FALSE='#'
12359 else
12360   M32R_TRUE='#'
12361   M32R_FALSE=
12362 fi
12363
12364  if test x$TARGET = xM68K; then
12365   M68K_TRUE=
12366   M68K_FALSE='#'
12367 else
12368   M68K_TRUE='#'
12369   M68K_FALSE=
12370 fi
12371
12372  if test x$TARGET = xMOXIE; then
12373   MOXIE_TRUE=
12374   MOXIE_FALSE='#'
12375 else
12376   MOXIE_TRUE='#'
12377   MOXIE_FALSE=
12378 fi
12379
12380  if test x$TARGET = xPOWERPC; then
12381   POWERPC_TRUE=
12382   POWERPC_FALSE='#'
12383 else
12384   POWERPC_TRUE='#'
12385   POWERPC_FALSE=
12386 fi
12387
12388  if test x$TARGET = xPOWERPC_AIX; then
12389   POWERPC_AIX_TRUE=
12390   POWERPC_AIX_FALSE='#'
12391 else
12392   POWERPC_AIX_TRUE='#'
12393   POWERPC_AIX_FALSE=
12394 fi
12395
12396  if test x$TARGET = xPOWERPC_DARWIN; then
12397   POWERPC_DARWIN_TRUE=
12398   POWERPC_DARWIN_FALSE='#'
12399 else
12400   POWERPC_DARWIN_TRUE='#'
12401   POWERPC_DARWIN_FALSE=
12402 fi
12403
12404  if test x$TARGET = xPOWERPC_FREEBSD; then
12405   POWERPC_FREEBSD_TRUE=
12406   POWERPC_FREEBSD_FALSE='#'
12407 else
12408   POWERPC_FREEBSD_TRUE='#'
12409   POWERPC_FREEBSD_FALSE=
12410 fi
12411
12412  if test x$TARGET = xARM; then
12413   ARM_TRUE=
12414   ARM_FALSE='#'
12415 else
12416   ARM_TRUE='#'
12417   ARM_FALSE=
12418 fi
12419
12420  if test x$TARGET = xAVR32; then
12421   AVR32_TRUE=
12422   AVR32_FALSE='#'
12423 else
12424   AVR32_TRUE='#'
12425   AVR32_FALSE=
12426 fi
12427
12428  if test x$TARGET = xLIBFFI_CRIS; then
12429   LIBFFI_CRIS_TRUE=
12430   LIBFFI_CRIS_FALSE='#'
12431 else
12432   LIBFFI_CRIS_TRUE='#'
12433   LIBFFI_CRIS_FALSE=
12434 fi
12435
12436  if test x$TARGET = xFRV; then
12437   FRV_TRUE=
12438   FRV_FALSE='#'
12439 else
12440   FRV_TRUE='#'
12441   FRV_FALSE=
12442 fi
12443
12444  if test x$TARGET = xS390; then
12445   S390_TRUE=
12446   S390_FALSE='#'
12447 else
12448   S390_TRUE='#'
12449   S390_FALSE=
12450 fi
12451
12452  if test x$TARGET = xX86_64; then
12453   X86_64_TRUE=
12454   X86_64_FALSE='#'
12455 else
12456   X86_64_TRUE='#'
12457   X86_64_FALSE=
12458 fi
12459
12460  if test x$TARGET = xSH; then
12461   SH_TRUE=
12462   SH_FALSE='#'
12463 else
12464   SH_TRUE='#'
12465   SH_FALSE=
12466 fi
12467
12468  if test x$TARGET = xSH64; then
12469   SH64_TRUE=
12470   SH64_FALSE='#'
12471 else
12472   SH64_TRUE='#'
12473   SH64_FALSE=
12474 fi
12475
12476  if test x$TARGET = xPA_LINUX; then
12477   PA_LINUX_TRUE=
12478   PA_LINUX_FALSE='#'
12479 else
12480   PA_LINUX_TRUE='#'
12481   PA_LINUX_FALSE=
12482 fi
12483
12484  if test x$TARGET = xPA_HPUX; then
12485   PA_HPUX_TRUE=
12486   PA_HPUX_FALSE='#'
12487 else
12488   PA_HPUX_TRUE='#'
12489   PA_HPUX_FALSE=
12490 fi
12491
12492  if test x$TARGET = xPA64_HPUX; then
12493   PA64_HPUX_TRUE=
12494   PA64_HPUX_FALSE='#'
12495 else
12496   PA64_HPUX_TRUE='#'
12497   PA64_HPUX_FALSE=
12498 fi
12499
12500
12501 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12502 $as_echo_n "checking for ANSI C header files... " >&6; }
12503 if test "${ac_cv_header_stdc+set}" = set; then
12504   $as_echo_n "(cached) " >&6
12505 else
12506   cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 #include <stdlib.h>
12513 #include <stdarg.h>
12514 #include <string.h>
12515 #include <float.h>
12516
12517 int
12518 main ()
12519 {
12520
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (ac_try="$ac_compile"
12527 case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12532 $as_echo "$ac_try_echo") >&5
12533   (eval "$ac_compile") 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } && {
12540          test -z "$ac_c_werror_flag" ||
12541          test ! -s conftest.err
12542        } && test -s conftest.$ac_objext; then
12543   ac_cv_header_stdc=yes
12544 else
12545   $as_echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548         ac_cv_header_stdc=no
12549 fi
12550
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552
12553 if test $ac_cv_header_stdc = yes; then
12554   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12555   cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h.  */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h.  */
12561 #include <string.h>
12562
12563 _ACEOF
12564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12565   $EGREP "memchr" >/dev/null 2>&1; then
12566   :
12567 else
12568   ac_cv_header_stdc=no
12569 fi
12570 rm -f conftest*
12571
12572 fi
12573
12574 if test $ac_cv_header_stdc = yes; then
12575   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12576   cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 #include <stdlib.h>
12583
12584 _ACEOF
12585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12586   $EGREP "free" >/dev/null 2>&1; then
12587   :
12588 else
12589   ac_cv_header_stdc=no
12590 fi
12591 rm -f conftest*
12592
12593 fi
12594
12595 if test $ac_cv_header_stdc = yes; then
12596   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12597   if test "$cross_compiling" = yes; then
12598   :
12599 else
12600   cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606 #include <ctype.h>
12607 #include <stdlib.h>
12608 #if ((' ' & 0x0FF) == 0x020)
12609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12611 #else
12612 # define ISLOWER(c) \
12613                    (('a' <= (c) && (c) <= 'i') \
12614                      || ('j' <= (c) && (c) <= 'r') \
12615                      || ('s' <= (c) && (c) <= 'z'))
12616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12617 #endif
12618
12619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12620 int
12621 main ()
12622 {
12623   int i;
12624   for (i = 0; i < 256; i++)
12625     if (XOR (islower (i), ISLOWER (i))
12626         || toupper (i) != TOUPPER (i))
12627       return 2;
12628   return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest$ac_exeext
12632 if { (ac_try="$ac_link"
12633 case "(($ac_try" in
12634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635   *) ac_try_echo=$ac_try;;
12636 esac
12637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12638 $as_echo "$ac_try_echo") >&5
12639   (eval "$ac_link") 2>&5
12640   ac_status=$?
12641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12643   { (case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649   (eval "$ac_try") 2>&5
12650   ac_status=$?
12651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; }; then
12653   :
12654 else
12655   $as_echo "$as_me: program exited with status $ac_status" >&5
12656 $as_echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ( exit $ac_status )
12660 ac_cv_header_stdc=no
12661 fi
12662 rm -rf conftest.dSYM
12663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12664 fi
12665
12666
12667 fi
12668 fi
12669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12670 $as_echo "$ac_cv_header_stdc" >&6; }
12671 if test $ac_cv_header_stdc = yes; then
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define STDC_HEADERS 1
12675 _ACEOF
12676
12677 fi
12678
12679
12680 for ac_func in memcpy
12681 do
12682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12683 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12684 $as_echo_n "checking for $ac_func... " >&6; }
12685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12686   $as_echo_n "(cached) " >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12696 #define $ac_func innocuous_$ac_func
12697
12698 /* System header to define __stub macros and hopefully few prototypes,
12699     which can conflict with char $ac_func (); below.
12700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12701     <limits.h> exists even on freestanding compilers.  */
12702
12703 #ifdef __STDC__
12704 # include <limits.h>
12705 #else
12706 # include <assert.h>
12707 #endif
12708
12709 #undef $ac_func
12710
12711 /* Override any GCC internal prototype to avoid an error.
12712    Use char because int might match the return type of a GCC
12713    builtin and then its argument prototype would still apply.  */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 char $ac_func ();
12718 /* The GNU C library defines this for functions which it implements
12719     to always fail with ENOSYS.  Some functions are actually named
12720     something starting with __ and the normal name is an alias.  */
12721 #if defined __stub_$ac_func || defined __stub___$ac_func
12722 choke me
12723 #endif
12724
12725 int
12726 main ()
12727 {
12728 return $ac_func ();
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (ac_try="$ac_link"
12735 case "(($ac_try" in
12736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737   *) ac_try_echo=$ac_try;;
12738 esac
12739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12740 $as_echo "$ac_try_echo") >&5
12741   (eval "$ac_link") 2>conftest.er1
12742   ac_status=$?
12743   grep -v '^ *+' conftest.er1 >conftest.err
12744   rm -f conftest.er1
12745   cat conftest.err >&5
12746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } && {
12748          test -z "$ac_c_werror_flag" ||
12749          test ! -s conftest.err
12750        } && test -s conftest$ac_exeext && {
12751          test "$cross_compiling" = yes ||
12752          $as_test_x conftest$ac_exeext
12753        }; then
12754   eval "$as_ac_var=yes"
12755 else
12756   $as_echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759         eval "$as_ac_var=no"
12760 fi
12761
12762 rm -rf conftest.dSYM
12763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12764       conftest$ac_exeext conftest.$ac_ext
12765 fi
12766 ac_res=`eval 'as_val=${'$as_ac_var'}
12767                  $as_echo "$as_val"'`
12768                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12769 $as_echo "$ac_res" >&6; }
12770 as_val=`eval 'as_val=${'$as_ac_var'}
12771                  $as_echo "$as_val"'`
12772    if test "x$as_val" = x""yes; then
12773   cat >>confdefs.h <<_ACEOF
12774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12775 _ACEOF
12776
12777 fi
12778 done
12779
12780 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12781 # for constant arguments.  Useless!
12782 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12783 $as_echo_n "checking for working alloca.h... " >&6; }
12784 if test "${ac_cv_working_alloca_h+set}" = set; then
12785   $as_echo_n "(cached) " >&6
12786 else
12787   cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 #include <alloca.h>
12794 int
12795 main ()
12796 {
12797 char *p = (char *) alloca (2 * sizeof (int));
12798                           if (p) return 0;
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807   *) ac_try_echo=$ac_try;;
12808 esac
12809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12810 $as_echo "$ac_try_echo") >&5
12811   (eval "$ac_link") 2>conftest.er1
12812   ac_status=$?
12813   grep -v '^ *+' conftest.er1 >conftest.err
12814   rm -f conftest.er1
12815   cat conftest.err >&5
12816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); } && {
12818          test -z "$ac_c_werror_flag" ||
12819          test ! -s conftest.err
12820        } && test -s conftest$ac_exeext && {
12821          test "$cross_compiling" = yes ||
12822          $as_test_x conftest$ac_exeext
12823        }; then
12824   ac_cv_working_alloca_h=yes
12825 else
12826   $as_echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829         ac_cv_working_alloca_h=no
12830 fi
12831
12832 rm -rf conftest.dSYM
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834       conftest$ac_exeext conftest.$ac_ext
12835 fi
12836 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12837 $as_echo "$ac_cv_working_alloca_h" >&6; }
12838 if test $ac_cv_working_alloca_h = yes; then
12839
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_ALLOCA_H 1
12842 _ACEOF
12843
12844 fi
12845
12846 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12847 $as_echo_n "checking for alloca... " >&6; }
12848 if test "${ac_cv_func_alloca_works+set}" = set; then
12849   $as_echo_n "(cached) " >&6
12850 else
12851   cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857 #ifdef __GNUC__
12858 # define alloca __builtin_alloca
12859 #else
12860 # ifdef _MSC_VER
12861 #  include <malloc.h>
12862 #  define alloca _alloca
12863 # else
12864 #  ifdef HAVE_ALLOCA_H
12865 #   include <alloca.h>
12866 #  else
12867 #   ifdef _AIX
12868  #pragma alloca
12869 #   else
12870 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12871 char *alloca ();
12872 #    endif
12873 #   endif
12874 #  endif
12875 # endif
12876 #endif
12877
12878 int
12879 main ()
12880 {
12881 char *p = (char *) alloca (1);
12882                                     if (p) return 0;
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891   *) ac_try_echo=$ac_try;;
12892 esac
12893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895   (eval "$ac_link") 2>conftest.er1
12896   ac_status=$?
12897   grep -v '^ *+' conftest.er1 >conftest.err
12898   rm -f conftest.er1
12899   cat conftest.err >&5
12900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } && {
12902          test -z "$ac_c_werror_flag" ||
12903          test ! -s conftest.err
12904        } && test -s conftest$ac_exeext && {
12905          test "$cross_compiling" = yes ||
12906          $as_test_x conftest$ac_exeext
12907        }; then
12908   ac_cv_func_alloca_works=yes
12909 else
12910   $as_echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913         ac_cv_func_alloca_works=no
12914 fi
12915
12916 rm -rf conftest.dSYM
12917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12918       conftest$ac_exeext conftest.$ac_ext
12919 fi
12920 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12921 $as_echo "$ac_cv_func_alloca_works" >&6; }
12922
12923 if test $ac_cv_func_alloca_works = yes; then
12924
12925 cat >>confdefs.h <<\_ACEOF
12926 #define HAVE_ALLOCA 1
12927 _ACEOF
12928
12929 else
12930   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12931 # that cause trouble.  Some versions do not even contain alloca or
12932 # contain a buggy version.  If you still want to use their alloca,
12933 # use ar to extract alloca.o from them instead of compiling alloca.c.
12934
12935 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12936
12937 cat >>confdefs.h <<\_ACEOF
12938 #define C_ALLOCA 1
12939 _ACEOF
12940
12941
12942 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12943 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12944 if test "${ac_cv_os_cray+set}" = set; then
12945   $as_echo_n "(cached) " >&6
12946 else
12947   cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953 #if defined CRAY && ! defined CRAY2
12954 webecray
12955 #else
12956 wenotbecray
12957 #endif
12958
12959 _ACEOF
12960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12961   $EGREP "webecray" >/dev/null 2>&1; then
12962   ac_cv_os_cray=yes
12963 else
12964   ac_cv_os_cray=no
12965 fi
12966 rm -f conftest*
12967
12968 fi
12969 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12970 $as_echo "$ac_cv_os_cray" >&6; }
12971 if test $ac_cv_os_cray = yes; then
12972   for ac_func in _getb67 GETB67 getb67; do
12973     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12974 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12975 $as_echo_n "checking for $ac_func... " >&6; }
12976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12977   $as_echo_n "(cached) " >&6
12978 else
12979   cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12987 #define $ac_func innocuous_$ac_func
12988
12989 /* System header to define __stub macros and hopefully few prototypes,
12990     which can conflict with char $ac_func (); below.
12991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12992     <limits.h> exists even on freestanding compilers.  */
12993
12994 #ifdef __STDC__
12995 # include <limits.h>
12996 #else
12997 # include <assert.h>
12998 #endif
12999
13000 #undef $ac_func
13001
13002 /* Override any GCC internal prototype to avoid an error.
13003    Use char because int might match the return type of a GCC
13004    builtin and then its argument prototype would still apply.  */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 char $ac_func ();
13009 /* The GNU C library defines this for functions which it implements
13010     to always fail with ENOSYS.  Some functions are actually named
13011     something starting with __ and the normal name is an alias.  */
13012 #if defined __stub_$ac_func || defined __stub___$ac_func
13013 choke me
13014 #endif
13015
13016 int
13017 main ()
13018 {
13019 return $ac_func ();
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext conftest$ac_exeext
13025 if { (ac_try="$ac_link"
13026 case "(($ac_try" in
13027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028   *) ac_try_echo=$ac_try;;
13029 esac
13030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13031 $as_echo "$ac_try_echo") >&5
13032   (eval "$ac_link") 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } && {
13039          test -z "$ac_c_werror_flag" ||
13040          test ! -s conftest.err
13041        } && test -s conftest$ac_exeext && {
13042          test "$cross_compiling" = yes ||
13043          $as_test_x conftest$ac_exeext
13044        }; then
13045   eval "$as_ac_var=yes"
13046 else
13047   $as_echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050         eval "$as_ac_var=no"
13051 fi
13052
13053 rm -rf conftest.dSYM
13054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13055       conftest$ac_exeext conftest.$ac_ext
13056 fi
13057 ac_res=`eval 'as_val=${'$as_ac_var'}
13058                  $as_echo "$as_val"'`
13059                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13060 $as_echo "$ac_res" >&6; }
13061 as_val=`eval 'as_val=${'$as_ac_var'}
13062                  $as_echo "$as_val"'`
13063    if test "x$as_val" = x""yes; then
13064
13065 cat >>confdefs.h <<_ACEOF
13066 #define CRAY_STACKSEG_END $ac_func
13067 _ACEOF
13068
13069     break
13070 fi
13071
13072   done
13073 fi
13074
13075 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13076 $as_echo_n "checking stack direction for C alloca... " >&6; }
13077 if test "${ac_cv_c_stack_direction+set}" = set; then
13078   $as_echo_n "(cached) " >&6
13079 else
13080   if test "$cross_compiling" = yes; then
13081   ac_cv_c_stack_direction=0
13082 else
13083   cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089 $ac_includes_default
13090 int
13091 find_stack_direction ()
13092 {
13093   static char *addr = 0;
13094   auto char dummy;
13095   if (addr == 0)
13096     {
13097       addr = &dummy;
13098       return find_stack_direction ();
13099     }
13100   else
13101     return (&dummy > addr) ? 1 : -1;
13102 }
13103
13104 int
13105 main ()
13106 {
13107   return find_stack_direction () < 0;
13108 }
13109 _ACEOF
13110 rm -f conftest$ac_exeext
13111 if { (ac_try="$ac_link"
13112 case "(($ac_try" in
13113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114   *) ac_try_echo=$ac_try;;
13115 esac
13116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13117 $as_echo "$ac_try_echo") >&5
13118   (eval "$ac_link") 2>&5
13119   ac_status=$?
13120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13122   { (case "(($ac_try" in
13123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124   *) ac_try_echo=$ac_try;;
13125 esac
13126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13127 $as_echo "$ac_try_echo") >&5
13128   (eval "$ac_try") 2>&5
13129   ac_status=$?
13130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132   ac_cv_c_stack_direction=1
13133 else
13134   $as_echo "$as_me: program exited with status $ac_status" >&5
13135 $as_echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ( exit $ac_status )
13139 ac_cv_c_stack_direction=-1
13140 fi
13141 rm -rf conftest.dSYM
13142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13143 fi
13144
13145
13146 fi
13147 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13148 $as_echo "$ac_cv_c_stack_direction" >&6; }
13149
13150 cat >>confdefs.h <<_ACEOF
13151 #define STACK_DIRECTION $ac_cv_c_stack_direction
13152 _ACEOF
13153
13154
13155 fi
13156
13157
13158 # The cast to long int works around a bug in the HP C Compiler
13159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13161 # This bug is HP SR number 8606223364.
13162 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13163 $as_echo_n "checking size of double... " >&6; }
13164 if test "${ac_cv_sizeof_double+set}" = set; then
13165   $as_echo_n "(cached) " >&6
13166 else
13167   if test "$cross_compiling" = yes; then
13168   # Depending upon the size, compute the lo and hi bounds.
13169 cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175 $ac_includes_default
13176 int
13177 main ()
13178 {
13179 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13180 test_array [0] = 0
13181
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (ac_try="$ac_compile"
13188 case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13193 $as_echo "$ac_try_echo") >&5
13194   (eval "$ac_compile") 2>conftest.er1
13195   ac_status=$?
13196   grep -v '^ *+' conftest.er1 >conftest.err
13197   rm -f conftest.er1
13198   cat conftest.err >&5
13199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); } && {
13201          test -z "$ac_c_werror_flag" ||
13202          test ! -s conftest.err
13203        } && test -s conftest.$ac_objext; then
13204   ac_lo=0 ac_mid=0
13205   while :; do
13206     cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212 $ac_includes_default
13213 int
13214 main ()
13215 {
13216 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13217 test_array [0] = 0
13218
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (ac_try="$ac_compile"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13230 $as_echo "$ac_try_echo") >&5
13231   (eval "$ac_compile") 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } && {
13238          test -z "$ac_c_werror_flag" ||
13239          test ! -s conftest.err
13240        } && test -s conftest.$ac_objext; then
13241   ac_hi=$ac_mid; break
13242 else
13243   $as_echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246         ac_lo=`expr $ac_mid + 1`
13247                         if test $ac_lo -le $ac_mid; then
13248                           ac_lo= ac_hi=
13249                           break
13250                         fi
13251                         ac_mid=`expr 2 '*' $ac_mid + 1`
13252 fi
13253
13254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13255   done
13256 else
13257   $as_echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260         cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 $ac_includes_default
13267 int
13268 main ()
13269 {
13270 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13271 test_array [0] = 0
13272
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 rm -f conftest.$ac_objext
13278 if { (ac_try="$ac_compile"
13279 case "(($ac_try" in
13280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281   *) ac_try_echo=$ac_try;;
13282 esac
13283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13284 $as_echo "$ac_try_echo") >&5
13285   (eval "$ac_compile") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } && {
13292          test -z "$ac_c_werror_flag" ||
13293          test ! -s conftest.err
13294        } && test -s conftest.$ac_objext; then
13295   ac_hi=-1 ac_mid=-1
13296   while :; do
13297     cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303 $ac_includes_default
13304 int
13305 main ()
13306 {
13307 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13308 test_array [0] = 0
13309
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13321 $as_echo "$ac_try_echo") >&5
13322   (eval "$ac_compile") 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } && {
13329          test -z "$ac_c_werror_flag" ||
13330          test ! -s conftest.err
13331        } && test -s conftest.$ac_objext; then
13332   ac_lo=$ac_mid; break
13333 else
13334   $as_echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337         ac_hi=`expr '(' $ac_mid ')' - 1`
13338                         if test $ac_mid -le $ac_hi; then
13339                           ac_lo= ac_hi=
13340                           break
13341                         fi
13342                         ac_mid=`expr 2 '*' $ac_mid`
13343 fi
13344
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346   done
13347 else
13348   $as_echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351         ac_lo= ac_hi=
13352 fi
13353
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 fi
13356
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 # Binary search between lo and hi bounds.
13359 while test "x$ac_lo" != "x$ac_hi"; do
13360   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13361   cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h.  */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h.  */
13367 $ac_includes_default
13368 int
13369 main ()
13370 {
13371 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13372 test_array [0] = 0
13373
13374   ;
13375   return 0;
13376 }
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13385 $as_echo "$ac_try_echo") >&5
13386   (eval "$ac_compile") 2>conftest.er1
13387   ac_status=$?
13388   grep -v '^ *+' conftest.er1 >conftest.err
13389   rm -f conftest.er1
13390   cat conftest.err >&5
13391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } && {
13393          test -z "$ac_c_werror_flag" ||
13394          test ! -s conftest.err
13395        } && test -s conftest.$ac_objext; then
13396   ac_hi=$ac_mid
13397 else
13398   $as_echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401         ac_lo=`expr '(' $ac_mid ')' + 1`
13402 fi
13403
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 done
13406 case $ac_lo in
13407 ?*) ac_cv_sizeof_double=$ac_lo;;
13408 '') if test "$ac_cv_type_double" = yes; then
13409      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13411 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13412 See \`config.log' for more details." >&5
13413 $as_echo "$as_me: error: cannot compute sizeof (double)
13414 See \`config.log' for more details." >&2;}
13415    { (exit 77); exit 77; }; }; }
13416    else
13417      ac_cv_sizeof_double=0
13418    fi ;;
13419 esac
13420 else
13421   cat >conftest.$ac_ext <<_ACEOF
13422 /* confdefs.h.  */
13423 _ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h.  */
13427 $ac_includes_default
13428 static long int longval () { return (long int) (sizeof (double)); }
13429 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13430 #include <stdio.h>
13431 #include <stdlib.h>
13432 int
13433 main ()
13434 {
13435
13436   FILE *f = fopen ("conftest.val", "w");
13437   if (! f)
13438     return 1;
13439   if (((long int) (sizeof (double))) < 0)
13440     {
13441       long int i = longval ();
13442       if (i != ((long int) (sizeof (double))))
13443         return 1;
13444       fprintf (f, "%ld", i);
13445     }
13446   else
13447     {
13448       unsigned long int i = ulongval ();
13449       if (i != ((long int) (sizeof (double))))
13450         return 1;
13451       fprintf (f, "%lu", i);
13452     }
13453   /* Do not output a trailing newline, as this causes \r\n confusion
13454      on some platforms.  */
13455   return ferror (f) || fclose (f) != 0;
13456
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 rm -f conftest$ac_exeext
13462 if { (ac_try="$ac_link"
13463 case "(($ac_try" in
13464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465   *) ac_try_echo=$ac_try;;
13466 esac
13467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13468 $as_echo "$ac_try_echo") >&5
13469   (eval "$ac_link") 2>&5
13470   ac_status=$?
13471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13473   { (case "(($ac_try" in
13474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475   *) ac_try_echo=$ac_try;;
13476 esac
13477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13478 $as_echo "$ac_try_echo") >&5
13479   (eval "$ac_try") 2>&5
13480   ac_status=$?
13481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); }; }; then
13483   ac_cv_sizeof_double=`cat conftest.val`
13484 else
13485   $as_echo "$as_me: program exited with status $ac_status" >&5
13486 $as_echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ( exit $ac_status )
13490 if test "$ac_cv_type_double" = yes; then
13491      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13493 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13494 See \`config.log' for more details." >&5
13495 $as_echo "$as_me: error: cannot compute sizeof (double)
13496 See \`config.log' for more details." >&2;}
13497    { (exit 77); exit 77; }; }; }
13498    else
13499      ac_cv_sizeof_double=0
13500    fi
13501 fi
13502 rm -rf conftest.dSYM
13503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13504 fi
13505 rm -f conftest.val
13506 fi
13507 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13508 $as_echo "$ac_cv_sizeof_double" >&6; }
13509
13510
13511
13512 cat >>confdefs.h <<_ACEOF
13513 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13514 _ACEOF
13515
13516
13517 # The cast to long int works around a bug in the HP C Compiler
13518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13520 # This bug is HP SR number 8606223364.
13521 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13522 $as_echo_n "checking size of long double... " >&6; }
13523 if test "${ac_cv_sizeof_long_double+set}" = set; then
13524   $as_echo_n "(cached) " >&6
13525 else
13526   if test "$cross_compiling" = yes; then
13527   # Depending upon the size, compute the lo and hi bounds.
13528 cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h.  */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h.  */
13534 $ac_includes_default
13535 int
13536 main ()
13537 {
13538 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13539 test_array [0] = 0
13540
13541   ;
13542   return 0;
13543 }
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549   *) ac_try_echo=$ac_try;;
13550 esac
13551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552 $as_echo "$ac_try_echo") >&5
13553   (eval "$ac_compile") 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } && {
13560          test -z "$ac_c_werror_flag" ||
13561          test ! -s conftest.err
13562        } && test -s conftest.$ac_objext; then
13563   ac_lo=0 ac_mid=0
13564   while :; do
13565     cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h.  */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h.  */
13571 $ac_includes_default
13572 int
13573 main ()
13574 {
13575 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13576 test_array [0] = 0
13577
13578   ;
13579   return 0;
13580 }
13581 _ACEOF
13582 rm -f conftest.$ac_objext
13583 if { (ac_try="$ac_compile"
13584 case "(($ac_try" in
13585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586   *) ac_try_echo=$ac_try;;
13587 esac
13588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589 $as_echo "$ac_try_echo") >&5
13590   (eval "$ac_compile") 2>conftest.er1
13591   ac_status=$?
13592   grep -v '^ *+' conftest.er1 >conftest.err
13593   rm -f conftest.er1
13594   cat conftest.err >&5
13595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } && {
13597          test -z "$ac_c_werror_flag" ||
13598          test ! -s conftest.err
13599        } && test -s conftest.$ac_objext; then
13600   ac_hi=$ac_mid; break
13601 else
13602   $as_echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605         ac_lo=`expr $ac_mid + 1`
13606                         if test $ac_lo -le $ac_mid; then
13607                           ac_lo= ac_hi=
13608                           break
13609                         fi
13610                         ac_mid=`expr 2 '*' $ac_mid + 1`
13611 fi
13612
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614   done
13615 else
13616   $as_echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619         cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 $ac_includes_default
13626 int
13627 main ()
13628 {
13629 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13630 test_array [0] = 0
13631
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext
13637 if { (ac_try="$ac_compile"
13638 case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } && {
13651          test -z "$ac_c_werror_flag" ||
13652          test ! -s conftest.err
13653        } && test -s conftest.$ac_objext; then
13654   ac_hi=-1 ac_mid=-1
13655   while :; do
13656     cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h.  */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h.  */
13662 $ac_includes_default
13663 int
13664 main ()
13665 {
13666 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13667 test_array [0] = 0
13668
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677   *) ac_try_echo=$ac_try;;
13678 esac
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681   (eval "$ac_compile") 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } && {
13688          test -z "$ac_c_werror_flag" ||
13689          test ! -s conftest.err
13690        } && test -s conftest.$ac_objext; then
13691   ac_lo=$ac_mid; break
13692 else
13693   $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696         ac_hi=`expr '(' $ac_mid ')' - 1`
13697                         if test $ac_mid -le $ac_hi; then
13698                           ac_lo= ac_hi=
13699                           break
13700                         fi
13701                         ac_mid=`expr 2 '*' $ac_mid`
13702 fi
13703
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705   done
13706 else
13707   $as_echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710         ac_lo= ac_hi=
13711 fi
13712
13713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 fi
13715
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 # Binary search between lo and hi bounds.
13718 while test "x$ac_lo" != "x$ac_hi"; do
13719   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13720   cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h.  */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h.  */
13726 $ac_includes_default
13727 int
13728 main ()
13729 {
13730 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13731 test_array [0] = 0
13732
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13744 $as_echo "$ac_try_echo") >&5
13745   (eval "$ac_compile") 2>conftest.er1
13746   ac_status=$?
13747   grep -v '^ *+' conftest.er1 >conftest.err
13748   rm -f conftest.er1
13749   cat conftest.err >&5
13750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } && {
13752          test -z "$ac_c_werror_flag" ||
13753          test ! -s conftest.err
13754        } && test -s conftest.$ac_objext; then
13755   ac_hi=$ac_mid
13756 else
13757   $as_echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760         ac_lo=`expr '(' $ac_mid ')' + 1`
13761 fi
13762
13763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 done
13765 case $ac_lo in
13766 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13767 '') if test "$ac_cv_type_long_double" = yes; then
13768      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13770 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13771 See \`config.log' for more details." >&5
13772 $as_echo "$as_me: error: cannot compute sizeof (long double)
13773 See \`config.log' for more details." >&2;}
13774    { (exit 77); exit 77; }; }; }
13775    else
13776      ac_cv_sizeof_long_double=0
13777    fi ;;
13778 esac
13779 else
13780   cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h.  */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h.  */
13786 $ac_includes_default
13787 static long int longval () { return (long int) (sizeof (long double)); }
13788 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13789 #include <stdio.h>
13790 #include <stdlib.h>
13791 int
13792 main ()
13793 {
13794
13795   FILE *f = fopen ("conftest.val", "w");
13796   if (! f)
13797     return 1;
13798   if (((long int) (sizeof (long double))) < 0)
13799     {
13800       long int i = longval ();
13801       if (i != ((long int) (sizeof (long double))))
13802         return 1;
13803       fprintf (f, "%ld", i);
13804     }
13805   else
13806     {
13807       unsigned long int i = ulongval ();
13808       if (i != ((long int) (sizeof (long double))))
13809         return 1;
13810       fprintf (f, "%lu", i);
13811     }
13812   /* Do not output a trailing newline, as this causes \r\n confusion
13813      on some platforms.  */
13814   return ferror (f) || fclose (f) != 0;
13815
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest$ac_exeext
13821 if { (ac_try="$ac_link"
13822 case "(($ac_try" in
13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824   *) ac_try_echo=$ac_try;;
13825 esac
13826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13827 $as_echo "$ac_try_echo") >&5
13828   (eval "$ac_link") 2>&5
13829   ac_status=$?
13830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13832   { (case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838   (eval "$ac_try") 2>&5
13839   ac_status=$?
13840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; }; then
13842   ac_cv_sizeof_long_double=`cat conftest.val`
13843 else
13844   $as_echo "$as_me: program exited with status $ac_status" >&5
13845 $as_echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848 ( exit $ac_status )
13849 if test "$ac_cv_type_long_double" = yes; then
13850      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13852 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13853 See \`config.log' for more details." >&5
13854 $as_echo "$as_me: error: cannot compute sizeof (long double)
13855 See \`config.log' for more details." >&2;}
13856    { (exit 77); exit 77; }; }; }
13857    else
13858      ac_cv_sizeof_long_double=0
13859    fi
13860 fi
13861 rm -rf conftest.dSYM
13862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13863 fi
13864 rm -f conftest.val
13865 fi
13866 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13867 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13868
13869
13870
13871 cat >>confdefs.h <<_ACEOF
13872 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13873 _ACEOF
13874
13875
13876
13877 # Also AC_SUBST this variable for ffi.h.
13878 if test -z "$HAVE_LONG_DOUBLE"; then
13879   HAVE_LONG_DOUBLE=0
13880   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13881     if test $ac_cv_sizeof_long_double != 0; then
13882       HAVE_LONG_DOUBLE=1
13883
13884 cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_LONG_DOUBLE 1
13886 _ACEOF
13887
13888     fi
13889   fi
13890 fi
13891
13892
13893
13894  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13895 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13896 if test "${ac_cv_c_bigendian+set}" = set; then
13897   $as_echo_n "(cached) " >&6
13898 else
13899   ac_cv_c_bigendian=unknown
13900     # See if we're dealing with a universal compiler.
13901     cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907 #ifndef __APPLE_CC__
13908                not a universal capable compiler
13909              #endif
13910              typedef int dummy;
13911
13912 _ACEOF
13913 rm -f conftest.$ac_objext
13914 if { (ac_try="$ac_compile"
13915 case "(($ac_try" in
13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917   *) ac_try_echo=$ac_try;;
13918 esac
13919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13920 $as_echo "$ac_try_echo") >&5
13921   (eval "$ac_compile") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } && {
13928          test -z "$ac_c_werror_flag" ||
13929          test ! -s conftest.err
13930        } && test -s conftest.$ac_objext; then
13931
13932         # Check for potential -arch flags.  It is not universal unless
13933         # there are some -arch flags.  Note that *ppc* also matches
13934         # ppc64.  This check is also rather less than ideal.
13935         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13936           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13937         esac
13938 else
13939   $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942
13943 fi
13944
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946     if test $ac_cv_c_bigendian = unknown; then
13947       # See if sys/param.h defines the BYTE_ORDER macro.
13948       cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 #include <sys/types.h>
13955              #include <sys/param.h>
13956
13957 int
13958 main ()
13959 {
13960 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13961                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13962                      && LITTLE_ENDIAN)
13963               bogus endian macros
13964              #endif
13965
13966   ;
13967   return 0;
13968 }
13969 _ACEOF
13970 rm -f conftest.$ac_objext
13971 if { (ac_try="$ac_compile"
13972 case "(($ac_try" in
13973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974   *) ac_try_echo=$ac_try;;
13975 esac
13976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13977 $as_echo "$ac_try_echo") >&5
13978   (eval "$ac_compile") 2>conftest.er1
13979   ac_status=$?
13980   grep -v '^ *+' conftest.er1 >conftest.err
13981   rm -f conftest.er1
13982   cat conftest.err >&5
13983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } && {
13985          test -z "$ac_c_werror_flag" ||
13986          test ! -s conftest.err
13987        } && test -s conftest.$ac_objext; then
13988   # It does; now see whether it defined to BIG_ENDIAN or not.
13989          cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995 #include <sys/types.h>
13996                 #include <sys/param.h>
13997
13998 int
13999 main ()
14000 {
14001 #if BYTE_ORDER != BIG_ENDIAN
14002                  not big endian
14003                 #endif
14004
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (ac_try="$ac_compile"
14011 case "(($ac_try" in
14012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013   *) ac_try_echo=$ac_try;;
14014 esac
14015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14016 $as_echo "$ac_try_echo") >&5
14017   (eval "$ac_compile") 2>conftest.er1
14018   ac_status=$?
14019   grep -v '^ *+' conftest.er1 >conftest.err
14020   rm -f conftest.er1
14021   cat conftest.err >&5
14022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); } && {
14024          test -z "$ac_c_werror_flag" ||
14025          test ! -s conftest.err
14026        } && test -s conftest.$ac_objext; then
14027   ac_cv_c_bigendian=yes
14028 else
14029   $as_echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14031
14032         ac_cv_c_bigendian=no
14033 fi
14034
14035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036 else
14037   $as_echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040
14041 fi
14042
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044     fi
14045     if test $ac_cv_c_bigendian = unknown; then
14046       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14047       cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h.  */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h.  */
14053 #include <limits.h>
14054
14055 int
14056 main ()
14057 {
14058 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14059               bogus endian macros
14060              #endif
14061
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (ac_try="$ac_compile"
14068 case "(($ac_try" in
14069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070   *) ac_try_echo=$ac_try;;
14071 esac
14072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14073 $as_echo "$ac_try_echo") >&5
14074   (eval "$ac_compile") 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } && {
14081          test -z "$ac_c_werror_flag" ||
14082          test ! -s conftest.err
14083        } && test -s conftest.$ac_objext; then
14084   # It does; now see whether it defined to _BIG_ENDIAN or not.
14085          cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h.  */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h.  */
14091 #include <limits.h>
14092
14093 int
14094 main ()
14095 {
14096 #ifndef _BIG_ENDIAN
14097                  not big endian
14098                 #endif
14099
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest.$ac_objext
14105 if { (ac_try="$ac_compile"
14106 case "(($ac_try" in
14107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108   *) ac_try_echo=$ac_try;;
14109 esac
14110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14111 $as_echo "$ac_try_echo") >&5
14112   (eval "$ac_compile") 2>conftest.er1
14113   ac_status=$?
14114   grep -v '^ *+' conftest.er1 >conftest.err
14115   rm -f conftest.er1
14116   cat conftest.err >&5
14117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); } && {
14119          test -z "$ac_c_werror_flag" ||
14120          test ! -s conftest.err
14121        } && test -s conftest.$ac_objext; then
14122   ac_cv_c_bigendian=yes
14123 else
14124   $as_echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127         ac_cv_c_bigendian=no
14128 fi
14129
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131 else
14132   $as_echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14134
14135
14136 fi
14137
14138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14139     fi
14140     if test $ac_cv_c_bigendian = unknown; then
14141       # Compile a test program.
14142       if test "$cross_compiling" = yes; then
14143   # Try to guess by grepping values from an object file.
14144          cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h.  */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h.  */
14150 short int ascii_mm[] =
14151                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14152                 short int ascii_ii[] =
14153                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14154                 int use_ascii (int i) {
14155                   return ascii_mm[i] + ascii_ii[i];
14156                 }
14157                 short int ebcdic_ii[] =
14158                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14159                 short int ebcdic_mm[] =
14160                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14161                 int use_ebcdic (int i) {
14162                   return ebcdic_mm[i] + ebcdic_ii[i];
14163                 }
14164                 extern int foo;
14165
14166 int
14167 main ()
14168 {
14169 return use_ascii (foo) == use_ebcdic (foo);
14170   ;
14171   return 0;
14172 }
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (ac_try="$ac_compile"
14176 case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14181 $as_echo "$ac_try_echo") >&5
14182   (eval "$ac_compile") 2>conftest.er1
14183   ac_status=$?
14184   grep -v '^ *+' conftest.er1 >conftest.err
14185   rm -f conftest.er1
14186   cat conftest.err >&5
14187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); } && {
14189          test -z "$ac_c_werror_flag" ||
14190          test ! -s conftest.err
14191        } && test -s conftest.$ac_objext; then
14192   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14193               ac_cv_c_bigendian=yes
14194             fi
14195             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14196               if test "$ac_cv_c_bigendian" = unknown; then
14197                 ac_cv_c_bigendian=no
14198               else
14199                 # finding both strings is unlikely to happen, but who knows?
14200                 ac_cv_c_bigendian=unknown
14201               fi
14202             fi
14203 else
14204   $as_echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207
14208 fi
14209
14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14211 else
14212   cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h.  */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h.  */
14218 $ac_includes_default
14219 int
14220 main ()
14221 {
14222
14223              /* Are we little or big endian?  From Harbison&Steele.  */
14224              union
14225              {
14226                long int l;
14227                char c[sizeof (long int)];
14228              } u;
14229              u.l = 1;
14230              return u.c[sizeof (long int) - 1] == 1;
14231
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 rm -f conftest$ac_exeext
14237 if { (ac_try="$ac_link"
14238 case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14243 $as_echo "$ac_try_echo") >&5
14244   (eval "$ac_link") 2>&5
14245   ac_status=$?
14246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14248   { (case "(($ac_try" in
14249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250   *) ac_try_echo=$ac_try;;
14251 esac
14252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14253 $as_echo "$ac_try_echo") >&5
14254   (eval "$ac_try") 2>&5
14255   ac_status=$?
14256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_cv_c_bigendian=no
14259 else
14260   $as_echo "$as_me: program exited with status $ac_status" >&5
14261 $as_echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264 ( exit $ac_status )
14265 ac_cv_c_bigendian=yes
14266 fi
14267 rm -rf conftest.dSYM
14268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14269 fi
14270
14271
14272     fi
14273 fi
14274 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14275 $as_echo "$ac_cv_c_bigendian" >&6; }
14276  case $ac_cv_c_bigendian in #(
14277    yes)
14278      cat >>confdefs.h <<\_ACEOF
14279 #define WORDS_BIGENDIAN 1
14280 _ACEOF
14281 ;; #(
14282    no)
14283       ;; #(
14284    universal)
14285
14286 cat >>confdefs.h <<\_ACEOF
14287 #define AC_APPLE_UNIVERSAL_BUILD 1
14288 _ACEOF
14289
14290      ;; #(
14291    *)
14292      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14293  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14294 $as_echo "$as_me: error: unknown endianness
14295  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14296    { (exit 1); exit 1; }; } ;;
14297  esac
14298
14299
14300 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14301 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14302 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14303   $as_echo_n "(cached) " >&6
14304 else
14305
14306     libffi_cv_as_cfi_pseudo_op=unknown
14307     cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313 asm (".cfi_startproc\n\t.cfi_endproc");
14314 int
14315 main ()
14316 {
14317
14318   ;
14319   return 0;
14320 }
14321 _ACEOF
14322 rm -f conftest.$ac_objext
14323 if { (ac_try="$ac_compile"
14324 case "(($ac_try" in
14325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326   *) ac_try_echo=$ac_try;;
14327 esac
14328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14329 $as_echo "$ac_try_echo") >&5
14330   (eval "$ac_compile") 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } && {
14337          test -z "$ac_c_werror_flag" ||
14338          test ! -s conftest.err
14339        } && test -s conftest.$ac_objext; then
14340   libffi_cv_as_cfi_pseudo_op=yes
14341 else
14342   $as_echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345         libffi_cv_as_cfi_pseudo_op=no
14346 fi
14347
14348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349
14350 fi
14351 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14352 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14353 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_AS_CFI_PSEUDO_OP 1
14357 _ACEOF
14358
14359 fi
14360
14361 if test x$TARGET = xSPARC; then
14362     { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14363 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14364 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14365   $as_echo_n "(cached) " >&6
14366 else
14367
14368         save_CFLAGS="$CFLAGS"
14369         save_LDFLAGS="$LDFLAGS"
14370         CFLAGS="$CFLAGS -fpic"
14371         LDFLAGS="$LDFLAGS -shared"
14372         cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14379 int
14380 main ()
14381 {
14382
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (ac_try="$ac_link"
14389 case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394 $as_echo "$ac_try_echo") >&5
14395   (eval "$ac_link") 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } && {
14402          test -z "$ac_c_werror_flag" ||
14403          test ! -s conftest.err
14404        } && test -s conftest$ac_exeext && {
14405          test "$cross_compiling" = yes ||
14406          $as_test_x conftest$ac_exeext
14407        }; then
14408   libffi_cv_as_sparc_ua_pcrel=yes
14409 else
14410   $as_echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413         libffi_cv_as_sparc_ua_pcrel=no
14414 fi
14415
14416 rm -rf conftest.dSYM
14417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14418       conftest$ac_exeext conftest.$ac_ext
14419         CFLAGS="$save_CFLAGS"
14420         LDFLAGS="$save_LDFLAGS"
14421 fi
14422 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14423 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14424     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14425
14426 cat >>confdefs.h <<\_ACEOF
14427 #define HAVE_AS_SPARC_UA_PCREL 1
14428 _ACEOF
14429
14430     fi
14431
14432     { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14433 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14434 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14435   $as_echo_n "(cached) " >&6
14436 else
14437
14438        libffi_cv_as_register_pseudo_op=unknown
14439        # Check if we have .register
14440        cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h.  */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h.  */
14446 asm (".register %g2, #scratch");
14447 int
14448 main ()
14449 {
14450
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext
14456 if { (ac_try="$ac_compile"
14457 case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14462 $as_echo "$ac_try_echo") >&5
14463   (eval "$ac_compile") 2>conftest.er1
14464   ac_status=$?
14465   grep -v '^ *+' conftest.er1 >conftest.err
14466   rm -f conftest.er1
14467   cat conftest.err >&5
14468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); } && {
14470          test -z "$ac_c_werror_flag" ||
14471          test ! -s conftest.err
14472        } && test -s conftest.$ac_objext; then
14473   libffi_cv_as_register_pseudo_op=yes
14474 else
14475   $as_echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478         libffi_cv_as_register_pseudo_op=no
14479 fi
14480
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482
14483 fi
14484 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14485 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14486     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14487
14488 cat >>confdefs.h <<\_ACEOF
14489 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14490 _ACEOF
14491
14492     fi
14493 fi
14494
14495 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14496     { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14497 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14498 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14499   $as_echo_n "(cached) " >&6
14500 else
14501
14502         libffi_cv_as_x86_pcrel=yes
14503         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14504         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14505             libffi_cv_as_x86_pcrel=no
14506         fi
14507
14508 fi
14509 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14510 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14511     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14512
14513 cat >>confdefs.h <<\_ACEOF
14514 #define HAVE_AS_X86_PCREL 1
14515 _ACEOF
14516
14517     fi
14518
14519     { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
14520 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14521 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
14522   $as_echo_n "(cached) " >&6
14523 else
14524
14525        libffi_cv_as_ascii_pseudo_op=unknown
14526        # Check if we have .ascii
14527        cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 asm (".ascii \"string\"");
14534 int
14535 main ()
14536 {
14537
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 $as_echo "$ac_try_echo") >&5
14550   (eval "$ac_compile") 2>conftest.er1
14551   ac_status=$?
14552   grep -v '^ *+' conftest.er1 >conftest.err
14553   rm -f conftest.er1
14554   cat conftest.err >&5
14555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); } && {
14557          test -z "$ac_c_werror_flag" ||
14558          test ! -s conftest.err
14559        } && test -s conftest.$ac_objext; then
14560   libffi_cv_as_ascii_pseudo_op=yes
14561 else
14562   $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565         libffi_cv_as_ascii_pseudo_op=no
14566 fi
14567
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569
14570 fi
14571 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
14572 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14573     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14574
14575 cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_AS_ASCII_PSEUDO_OP 1
14577 _ACEOF
14578
14579     fi
14580
14581     { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
14582 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14583 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
14584   $as_echo_n "(cached) " >&6
14585 else
14586
14587        libffi_cv_as_string_pseudo_op=unknown
14588        # Check if we have .string
14589        cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 asm (".string \"string\"");
14596 int
14597 main ()
14598 {
14599
14600   ;
14601   return 0;
14602 }
14603 _ACEOF
14604 rm -f conftest.$ac_objext
14605 if { (ac_try="$ac_compile"
14606 case "(($ac_try" in
14607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608   *) ac_try_echo=$ac_try;;
14609 esac
14610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14611 $as_echo "$ac_try_echo") >&5
14612   (eval "$ac_compile") 2>conftest.er1
14613   ac_status=$?
14614   grep -v '^ *+' conftest.er1 >conftest.err
14615   rm -f conftest.er1
14616   cat conftest.err >&5
14617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); } && {
14619          test -z "$ac_c_werror_flag" ||
14620          test ! -s conftest.err
14621        } && test -s conftest.$ac_objext; then
14622   libffi_cv_as_string_pseudo_op=yes
14623 else
14624   $as_echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14626
14627         libffi_cv_as_string_pseudo_op=no
14628 fi
14629
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631
14632 fi
14633 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
14634 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14635     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14636
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_AS_STRING_PSEUDO_OP 1
14639 _ACEOF
14640
14641     fi
14642 fi
14643
14644 case "$target" in
14645      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14646
14647 cat >>confdefs.h <<\_ACEOF
14648 #define FFI_MMAP_EXEC_WRIT 1
14649 _ACEOF
14650
14651      ;;
14652 esac
14653
14654 if test x$TARGET = xX86_64; then
14655     { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
14656 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14657 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
14658   $as_echo_n "(cached) " >&6
14659 else
14660
14661         libffi_cv_as_x86_64_unwind_section_type=yes
14662         echo '.section .eh_frame,"a",@unwind' > conftest.s
14663         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14664             libffi_cv_as_x86_64_unwind_section_type=no
14665         fi
14666
14667 fi
14668 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14669 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14670     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14671
14672 cat >>confdefs.h <<\_ACEOF
14673 #define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
14674 _ACEOF
14675
14676     fi
14677 fi
14678
14679 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14680 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14681 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14682   $as_echo_n "(cached) " >&6
14683 else
14684
14685         libffi_cv_ro_eh_frame=no
14686         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14687         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14688             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14689                 libffi_cv_ro_eh_frame=yes
14690             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14691                  | grep -v '#write' > /dev/null; then
14692                 libffi_cv_ro_eh_frame=yes
14693             fi
14694         fi
14695         rm -f conftest.*
14696
14697 fi
14698 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14699 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14700 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14701
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_RO_EH_FRAME 1
14704 _ACEOF
14705
14706
14707 cat >>confdefs.h <<\_ACEOF
14708 #define EH_FRAME_FLAGS "a"
14709 _ACEOF
14710
14711 else
14712
14713 cat >>confdefs.h <<\_ACEOF
14714 #define EH_FRAME_FLAGS "aw"
14715 _ACEOF
14716
14717 fi
14718
14719 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14720 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14721 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14722   $as_echo_n "(cached) " >&6
14723 else
14724
14725         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14726         libffi_cv_hidden_visibility_attribute=no
14727         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; }; then
14733             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14734                 libffi_cv_hidden_visibility_attribute=yes
14735             fi
14736         fi
14737         rm -f conftest.*
14738
14739 fi
14740 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14741 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14742 if test $libffi_cv_hidden_visibility_attribute = yes; then
14743
14744 cat >>confdefs.h <<\_ACEOF
14745 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14746 _ACEOF
14747
14748 fi
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758 # Check whether --enable-debug was given.
14759 if test "${enable_debug+set}" = set; then
14760   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14761
14762 cat >>confdefs.h <<\_ACEOF
14763 #define FFI_DEBUG 1
14764 _ACEOF
14765
14766   fi
14767 fi
14768
14769
14770 # Check whether --enable-structs was given.
14771 if test "${enable_structs+set}" = set; then
14772   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14773
14774 cat >>confdefs.h <<\_ACEOF
14775 #define FFI_NO_STRUCTS 1
14776 _ACEOF
14777
14778   fi
14779 fi
14780
14781
14782 # Check whether --enable-raw-api was given.
14783 if test "${enable_raw_api+set}" = set; then
14784   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14785
14786 cat >>confdefs.h <<\_ACEOF
14787 #define FFI_NO_RAW_API 1
14788 _ACEOF
14789
14790   fi
14791 fi
14792
14793
14794 # Check whether --enable-purify-safety was given.
14795 if test "${enable_purify_safety+set}" = set; then
14796   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14797
14798 cat >>confdefs.h <<\_ACEOF
14799 #define USING_PURIFY 1
14800 _ACEOF
14801
14802   fi
14803 fi
14804
14805
14806 if test -n "$with_cross_host" &&
14807    test x"$with_cross_host" != x"no"; then
14808   toolexecdir='$(exec_prefix)/$(target_alias)'
14809   toolexeclibdir='$(toolexecdir)/lib'
14810 else
14811   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14812   toolexeclibdir='$(libdir)'
14813 fi
14814 multi_os_directory=`$CC -print-multi-os-directory`
14815 case $multi_os_directory in
14816   .) ;; # Avoid trailing /.
14817   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14818 esac
14819
14820
14821
14822 if test "${multilib}" = "yes"; then
14823   multilib_arg="--enable-multilib"
14824 else
14825   multilib_arg=
14826 fi
14827
14828 ac_config_commands="$ac_config_commands include"
14829
14830 ac_config_commands="$ac_config_commands src"
14831
14832
14833 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14834
14835
14836 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14837
14838
14839 cat >confcache <<\_ACEOF
14840 # This file is a shell script that caches the results of configure
14841 # tests run on this system so they can be shared between configure
14842 # scripts and configure runs, see configure's option --config-cache.
14843 # It is not useful on other systems.  If it contains results you don't
14844 # want to keep, you may remove or edit it.
14845 #
14846 # config.status only pays attention to the cache file if you give it
14847 # the --recheck option to rerun configure.
14848 #
14849 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14850 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14851 # following values.
14852
14853 _ACEOF
14854
14855 # The following way of writing the cache mishandles newlines in values,
14856 # but we know of no workaround that is simple, portable, and efficient.
14857 # So, we kill variables containing newlines.
14858 # Ultrix sh set writes to stderr and can't be redirected directly,
14859 # and sets the high bit in the cache file unless we assign to the vars.
14860 (
14861   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14862     eval ac_val=\$$ac_var
14863     case $ac_val in #(
14864     *${as_nl}*)
14865       case $ac_var in #(
14866       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14867 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14868       esac
14869       case $ac_var in #(
14870       _ | IFS | as_nl) ;; #(
14871       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14872       *) $as_unset $ac_var ;;
14873       esac ;;
14874     esac
14875   done
14876
14877   (set) 2>&1 |
14878     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14879     *${as_nl}ac_space=\ *)
14880       # `set' does not quote correctly, so add quotes (double-quote
14881       # substitution turns \\\\ into \\, and sed turns \\ into \).
14882       sed -n \
14883         "s/'/'\\\\''/g;
14884           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14885       ;; #(
14886     *)
14887       # `set' quotes correctly as required by POSIX, so do not add quotes.
14888       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14889       ;;
14890     esac |
14891     sort
14892 ) |
14893   sed '
14894      /^ac_cv_env_/b end
14895      t clear
14896      :clear
14897      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14898      t end
14899      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14900      :end' >>confcache
14901 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14902   if test -w "$cache_file"; then
14903     test "x$cache_file" != "x/dev/null" &&
14904       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14905 $as_echo "$as_me: updating cache $cache_file" >&6;}
14906     cat confcache >$cache_file
14907   else
14908     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14909 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14910   fi
14911 fi
14912 rm -f confcache
14913
14914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14915 # Let make expand exec_prefix.
14916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14917
14918 DEFS=-DHAVE_CONFIG_H
14919
14920 ac_libobjs=
14921 ac_ltlibobjs=
14922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14923   # 1. Remove the extension, and $U if already installed.
14924   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14925   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14926   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14927   #    will be set to the directory where LIBOBJS objects are built.
14928   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14929   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14930 done
14931 LIBOBJS=$ac_libobjs
14932
14933 LTLIBOBJS=$ac_ltlibobjs
14934
14935
14936  if test -n "$EXEEXT"; then
14937   am__EXEEXT_TRUE=
14938   am__EXEEXT_FALSE='#'
14939 else
14940   am__EXEEXT_TRUE='#'
14941   am__EXEEXT_FALSE=
14942 fi
14943
14944 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14945   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14946 Usually this means the macro was only invoked conditionally." >&5
14947 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14948 Usually this means the macro was only invoked conditionally." >&2;}
14949    { (exit 1); exit 1; }; }
14950 fi
14951 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14952   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14953 Usually this means the macro was only invoked conditionally." >&5
14954 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14955 Usually this means the macro was only invoked conditionally." >&2;}
14956    { (exit 1); exit 1; }; }
14957 fi
14958 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14959   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
14960 Usually this means the macro was only invoked conditionally." >&5
14961 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
14962 Usually this means the macro was only invoked conditionally." >&2;}
14963    { (exit 1); exit 1; }; }
14964 fi
14965 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14966   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14967 Usually this means the macro was only invoked conditionally." >&5
14968 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14969 Usually this means the macro was only invoked conditionally." >&2;}
14970    { (exit 1); exit 1; }; }
14971 fi
14972 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14973   { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
14974 Usually this means the macro was only invoked conditionally." >&5
14975 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
14976 Usually this means the macro was only invoked conditionally." >&2;}
14977    { (exit 1); exit 1; }; }
14978 fi
14979 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14980   { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
14981 Usually this means the macro was only invoked conditionally." >&5
14982 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
14983 Usually this means the macro was only invoked conditionally." >&2;}
14984    { (exit 1); exit 1; }; }
14985 fi
14986 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14987   { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
14988 Usually this means the macro was only invoked conditionally." >&5
14989 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
14990 Usually this means the macro was only invoked conditionally." >&2;}
14991    { (exit 1); exit 1; }; }
14992 fi
14993 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14994   { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
14995 Usually this means the macro was only invoked conditionally." >&5
14996 $as_echo "$as_me: error: conditional \"X86\" was never defined.
14997 Usually this means the macro was only invoked conditionally." >&2;}
14998    { (exit 1); exit 1; }; }
14999 fi
15000 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15001   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15002 Usually this means the macro was only invoked conditionally." >&5
15003 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
15004 Usually this means the macro was only invoked conditionally." >&2;}
15005    { (exit 1); exit 1; }; }
15006 fi
15007 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15008   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15009 Usually this means the macro was only invoked conditionally." >&5
15010 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
15011 Usually this means the macro was only invoked conditionally." >&2;}
15012    { (exit 1); exit 1; }; }
15013 fi
15014 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15015   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15016 Usually this means the macro was only invoked conditionally." >&5
15017 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
15018 Usually this means the macro was only invoked conditionally." >&2;}
15019    { (exit 1); exit 1; }; }
15020 fi
15021 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15022   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15023 Usually this means the macro was only invoked conditionally." >&5
15024 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
15025 Usually this means the macro was only invoked conditionally." >&2;}
15026    { (exit 1); exit 1; }; }
15027 fi
15028 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15029   { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15030 Usually this means the macro was only invoked conditionally." >&5
15031 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
15032 Usually this means the macro was only invoked conditionally." >&2;}
15033    { (exit 1); exit 1; }; }
15034 fi
15035 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15036   { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15037 Usually this means the macro was only invoked conditionally." >&5
15038 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
15039 Usually this means the macro was only invoked conditionally." >&2;}
15040    { (exit 1); exit 1; }; }
15041 fi
15042 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15043   { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15044 Usually this means the macro was only invoked conditionally." >&5
15045 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
15046 Usually this means the macro was only invoked conditionally." >&2;}
15047    { (exit 1); exit 1; }; }
15048 fi
15049 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15050   { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15051 Usually this means the macro was only invoked conditionally." >&5
15052 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
15053 Usually this means the macro was only invoked conditionally." >&2;}
15054    { (exit 1); exit 1; }; }
15055 fi
15056 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15057   { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15058 Usually this means the macro was only invoked conditionally." >&5
15059 $as_echo "$as_me: error: conditional \"MOXIE\" was never defined.
15060 Usually this means the macro was only invoked conditionally." >&2;}
15061    { (exit 1); exit 1; }; }
15062 fi
15063 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15064   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15065 Usually this means the macro was only invoked conditionally." >&5
15066 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
15067 Usually this means the macro was only invoked conditionally." >&2;}
15068    { (exit 1); exit 1; }; }
15069 fi
15070 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15071   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15072 Usually this means the macro was only invoked conditionally." >&5
15073 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15074 Usually this means the macro was only invoked conditionally." >&2;}
15075    { (exit 1); exit 1; }; }
15076 fi
15077 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15078   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15079 Usually this means the macro was only invoked conditionally." >&5
15080 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15081 Usually this means the macro was only invoked conditionally." >&2;}
15082    { (exit 1); exit 1; }; }
15083 fi
15084 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15085   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15086 Usually this means the macro was only invoked conditionally." >&5
15087 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15088 Usually this means the macro was only invoked conditionally." >&2;}
15089    { (exit 1); exit 1; }; }
15090 fi
15091 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15092   { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15093 Usually this means the macro was only invoked conditionally." >&5
15094 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
15095 Usually this means the macro was only invoked conditionally." >&2;}
15096    { (exit 1); exit 1; }; }
15097 fi
15098 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15099   { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15100 Usually this means the macro was only invoked conditionally." >&5
15101 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15102 Usually this means the macro was only invoked conditionally." >&2;}
15103    { (exit 1); exit 1; }; }
15104 fi
15105 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15106   { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15107 Usually this means the macro was only invoked conditionally." >&5
15108 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15109 Usually this means the macro was only invoked conditionally." >&2;}
15110    { (exit 1); exit 1; }; }
15111 fi
15112 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15113   { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15114 Usually this means the macro was only invoked conditionally." >&5
15115 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
15116 Usually this means the macro was only invoked conditionally." >&2;}
15117    { (exit 1); exit 1; }; }
15118 fi
15119 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15120   { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15121 Usually this means the macro was only invoked conditionally." >&5
15122 $as_echo "$as_me: error: conditional \"S390\" was never defined.
15123 Usually this means the macro was only invoked conditionally." >&2;}
15124    { (exit 1); exit 1; }; }
15125 fi
15126 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15127   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15128 Usually this means the macro was only invoked conditionally." >&5
15129 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15130 Usually this means the macro was only invoked conditionally." >&2;}
15131    { (exit 1); exit 1; }; }
15132 fi
15133 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15134   { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15135 Usually this means the macro was only invoked conditionally." >&5
15136 $as_echo "$as_me: error: conditional \"SH\" was never defined.
15137 Usually this means the macro was only invoked conditionally." >&2;}
15138    { (exit 1); exit 1; }; }
15139 fi
15140 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15141   { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15142 Usually this means the macro was only invoked conditionally." >&5
15143 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
15144 Usually this means the macro was only invoked conditionally." >&2;}
15145    { (exit 1); exit 1; }; }
15146 fi
15147 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15148   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15149 Usually this means the macro was only invoked conditionally." >&5
15150 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15151 Usually this means the macro was only invoked conditionally." >&2;}
15152    { (exit 1); exit 1; }; }
15153 fi
15154 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15155   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15156 Usually this means the macro was only invoked conditionally." >&5
15157 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15158 Usually this means the macro was only invoked conditionally." >&2;}
15159    { (exit 1); exit 1; }; }
15160 fi
15161 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15162   { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15163 Usually this means the macro was only invoked conditionally." >&5
15164 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15165 Usually this means the macro was only invoked conditionally." >&2;}
15166    { (exit 1); exit 1; }; }
15167 fi
15168
15169
15170 : ${CONFIG_STATUS=./config.status}
15171 ac_write_fail=0
15172 ac_clean_files_save=$ac_clean_files
15173 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15174 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15175 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15176 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15177 #! $SHELL
15178 # Generated by $as_me.
15179 # Run this file to recreate the current configuration.
15180 # Compiler output produced by configure, useful for debugging
15181 # configure, is in config.log if it exists.
15182
15183 debug=false
15184 ac_cs_recheck=false
15185 ac_cs_silent=false
15186 SHELL=\${CONFIG_SHELL-$SHELL}
15187 _ACEOF
15188
15189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15190 ## --------------------- ##
15191 ## M4sh Initialization.  ##
15192 ## --------------------- ##
15193
15194 # Be more Bourne compatible
15195 DUALCASE=1; export DUALCASE # for MKS sh
15196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15197   emulate sh
15198   NULLCMD=:
15199   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15200   # is contrary to our usage.  Disable this feature.
15201   alias -g '${1+"$@"}'='"$@"'
15202   setopt NO_GLOB_SUBST
15203 else
15204   case `(set -o) 2>/dev/null` in
15205   *posix*) set -o posix ;;
15206 esac
15207
15208 fi
15209
15210
15211
15212
15213 # PATH needs CR
15214 # Avoid depending upon Character Ranges.
15215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15218 as_cr_digits='0123456789'
15219 as_cr_alnum=$as_cr_Letters$as_cr_digits
15220
15221 as_nl='
15222 '
15223 export as_nl
15224 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15225 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15228 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15229   as_echo='printf %s\n'
15230   as_echo_n='printf %s'
15231 else
15232   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15233     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15234     as_echo_n='/usr/ucb/echo -n'
15235   else
15236     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15237     as_echo_n_body='eval
15238       arg=$1;
15239       case $arg in
15240       *"$as_nl"*)
15241         expr "X$arg" : "X\\(.*\\)$as_nl";
15242         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15243       esac;
15244       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15245     '
15246     export as_echo_n_body
15247     as_echo_n='sh -c $as_echo_n_body as_echo'
15248   fi
15249   export as_echo_body
15250   as_echo='sh -c $as_echo_body as_echo'
15251 fi
15252
15253 # The user is always right.
15254 if test "${PATH_SEPARATOR+set}" != set; then
15255   PATH_SEPARATOR=:
15256   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15257     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15258       PATH_SEPARATOR=';'
15259   }
15260 fi
15261
15262 # Support unset when possible.
15263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15264   as_unset=unset
15265 else
15266   as_unset=false
15267 fi
15268
15269
15270 # IFS
15271 # We need space, tab and new line, in precisely that order.  Quoting is
15272 # there to prevent editors from complaining about space-tab.
15273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15274 # splitting by setting IFS to empty value.)
15275 IFS=" ""        $as_nl"
15276
15277 # Find who we are.  Look in the path if we contain no directory separator.
15278 case $0 in
15279   *[\\/]* ) as_myself=$0 ;;
15280   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $PATH
15282 do
15283   IFS=$as_save_IFS
15284   test -z "$as_dir" && as_dir=.
15285   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15286 done
15287 IFS=$as_save_IFS
15288
15289      ;;
15290 esac
15291 # We did not find ourselves, most probably we were run as `sh COMMAND'
15292 # in which case we are not to be found in the path.
15293 if test "x$as_myself" = x; then
15294   as_myself=$0
15295 fi
15296 if test ! -f "$as_myself"; then
15297   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15298   { (exit 1); exit 1; }
15299 fi
15300
15301 # Work around bugs in pre-3.0 UWIN ksh.
15302 for as_var in ENV MAIL MAILPATH
15303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15304 done
15305 PS1='$ '
15306 PS2='> '
15307 PS4='+ '
15308
15309 # NLS nuisances.
15310 LC_ALL=C
15311 export LC_ALL
15312 LANGUAGE=C
15313 export LANGUAGE
15314
15315 # Required to use basename.
15316 if expr a : '\(a\)' >/dev/null 2>&1 &&
15317    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15318   as_expr=expr
15319 else
15320   as_expr=false
15321 fi
15322
15323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15324   as_basename=basename
15325 else
15326   as_basename=false
15327 fi
15328
15329
15330 # Name of the executable.
15331 as_me=`$as_basename -- "$0" ||
15332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15333          X"$0" : 'X\(//\)$' \| \
15334          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15335 $as_echo X/"$0" |
15336     sed '/^.*\/\([^/][^/]*\)\/*$/{
15337             s//\1/
15338             q
15339           }
15340           /^X\/\(\/\/\)$/{
15341             s//\1/
15342             q
15343           }
15344           /^X\/\(\/\).*/{
15345             s//\1/
15346             q
15347           }
15348           s/.*/./; q'`
15349
15350 # CDPATH.
15351 $as_unset CDPATH
15352
15353
15354
15355   as_lineno_1=$LINENO
15356   as_lineno_2=$LINENO
15357   test "x$as_lineno_1" != "x$as_lineno_2" &&
15358   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15359
15360   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15361   # uniformly replaced by the line number.  The first 'sed' inserts a
15362   # line-number line after each line using $LINENO; the second 'sed'
15363   # does the real work.  The second script uses 'N' to pair each
15364   # line-number line with the line containing $LINENO, and appends
15365   # trailing '-' during substitution so that $LINENO is not a special
15366   # case at line end.
15367   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15368   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15369   # E. McMahon (1931-1989) for sed's syntax.  :-)
15370   sed -n '
15371     p
15372     /[$]LINENO/=
15373   ' <$as_myself |
15374     sed '
15375       s/[$]LINENO.*/&-/
15376       t lineno
15377       b
15378       :lineno
15379       N
15380       :loop
15381       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15382       t loop
15383       s/-\n.*//
15384     ' >$as_me.lineno &&
15385   chmod +x "$as_me.lineno" ||
15386     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15387    { (exit 1); exit 1; }; }
15388
15389   # Don't try to exec as it changes $[0], causing all sort of problems
15390   # (the dirname of $[0] is not the place where we might find the
15391   # original and so on.  Autoconf is especially sensitive to this).
15392   . "./$as_me.lineno"
15393   # Exit status is that of the last command.
15394   exit
15395 }
15396
15397
15398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15399   as_dirname=dirname
15400 else
15401   as_dirname=false
15402 fi
15403
15404 ECHO_C= ECHO_N= ECHO_T=
15405 case `echo -n x` in
15406 -n*)
15407   case `echo 'x\c'` in
15408   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15409   *)   ECHO_C='\c';;
15410   esac;;
15411 *)
15412   ECHO_N='-n';;
15413 esac
15414 if expr a : '\(a\)' >/dev/null 2>&1 &&
15415    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15416   as_expr=expr
15417 else
15418   as_expr=false
15419 fi
15420
15421 rm -f conf$$ conf$$.exe conf$$.file
15422 if test -d conf$$.dir; then
15423   rm -f conf$$.dir/conf$$.file
15424 else
15425   rm -f conf$$.dir
15426   mkdir conf$$.dir 2>/dev/null
15427 fi
15428 if (echo >conf$$.file) 2>/dev/null; then
15429   if ln -s conf$$.file conf$$ 2>/dev/null; then
15430     as_ln_s='ln -s'
15431     # ... but there are two gotchas:
15432     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15433     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15434     # In both cases, we have to default to `cp -p'.
15435     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15436       as_ln_s='cp -p'
15437   elif ln conf$$.file conf$$ 2>/dev/null; then
15438     as_ln_s=ln
15439   else
15440     as_ln_s='cp -p'
15441   fi
15442 else
15443   as_ln_s='cp -p'
15444 fi
15445 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15446 rmdir conf$$.dir 2>/dev/null
15447
15448 if mkdir -p . 2>/dev/null; then
15449   as_mkdir_p=:
15450 else
15451   test -d ./-p && rmdir ./-p
15452   as_mkdir_p=false
15453 fi
15454
15455 if test -x / >/dev/null 2>&1; then
15456   as_test_x='test -x'
15457 else
15458   if ls -dL / >/dev/null 2>&1; then
15459     as_ls_L_option=L
15460   else
15461     as_ls_L_option=
15462   fi
15463   as_test_x='
15464     eval sh -c '\''
15465       if test -d "$1"; then
15466         test -d "$1/.";
15467       else
15468         case $1 in
15469         -*)set "./$1";;
15470         esac;
15471         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15472         ???[sx]*):;;*)false;;esac;fi
15473     '\'' sh
15474   '
15475 fi
15476 as_executable_p=$as_test_x
15477
15478 # Sed expression to map a string onto a valid CPP name.
15479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15480
15481 # Sed expression to map a string onto a valid variable name.
15482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15483
15484
15485 exec 6>&1
15486
15487 # Save the log message, to keep $[0] and so on meaningful, and to
15488 # report actual input values of CONFIG_FILES etc. instead of their
15489 # values after options handling.
15490 ac_log="
15491 This file was extended by libffi $as_me 3.0.10rc0, which was
15492 generated by GNU Autoconf 2.63.  Invocation command line was
15493
15494   CONFIG_FILES    = $CONFIG_FILES
15495   CONFIG_HEADERS  = $CONFIG_HEADERS
15496   CONFIG_LINKS    = $CONFIG_LINKS
15497   CONFIG_COMMANDS = $CONFIG_COMMANDS
15498   $ $0 $@
15499
15500 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15501 "
15502
15503 _ACEOF
15504
15505 case $ac_config_files in *"
15506 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15507 esac
15508
15509 case $ac_config_headers in *"
15510 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15511 esac
15512
15513
15514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15515 # Files that config.status was made for.
15516 config_files="$ac_config_files"
15517 config_headers="$ac_config_headers"
15518 config_links="$ac_config_links"
15519 config_commands="$ac_config_commands"
15520
15521 _ACEOF
15522
15523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15524 ac_cs_usage="\
15525 \`$as_me' instantiates files from templates according to the
15526 current configuration.
15527
15528 Usage: $0 [OPTION]... [FILE]...
15529
15530   -h, --help       print this help, then exit
15531   -V, --version    print version number and configuration settings, then exit
15532   -q, --quiet, --silent
15533                    do not print progress messages
15534   -d, --debug      don't remove temporary files
15535       --recheck    update $as_me by reconfiguring in the same conditions
15536       --file=FILE[:TEMPLATE]
15537                    instantiate the configuration file FILE
15538       --header=FILE[:TEMPLATE]
15539                    instantiate the configuration header FILE
15540
15541 Configuration files:
15542 $config_files
15543
15544 Configuration headers:
15545 $config_headers
15546
15547 Configuration links:
15548 $config_links
15549
15550 Configuration commands:
15551 $config_commands
15552
15553 Report bugs to <bug-autoconf@gnu.org>."
15554
15555 _ACEOF
15556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557 ac_cs_version="\\
15558 libffi config.status 3.0.10rc0
15559 configured by $0, generated by GNU Autoconf 2.63,
15560   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15561
15562 Copyright (C) 2008 Free Software Foundation, Inc.
15563 This config.status script is free software; the Free Software Foundation
15564 gives unlimited permission to copy, distribute and modify it."
15565
15566 ac_pwd='$ac_pwd'
15567 srcdir='$srcdir'
15568 INSTALL='$INSTALL'
15569 MKDIR_P='$MKDIR_P'
15570 AWK='$AWK'
15571 test -n "\$AWK" || AWK=awk
15572 _ACEOF
15573
15574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15575 # The default lists apply if the user does not specify any file.
15576 ac_need_defaults=:
15577 while test $# != 0
15578 do
15579   case $1 in
15580   --*=*)
15581     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15582     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15583     ac_shift=:
15584     ;;
15585   *)
15586     ac_option=$1
15587     ac_optarg=$2
15588     ac_shift=shift
15589     ;;
15590   esac
15591
15592   case $ac_option in
15593   # Handling of the options.
15594   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15595     ac_cs_recheck=: ;;
15596   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15597     $as_echo "$ac_cs_version"; exit ;;
15598   --debug | --debu | --deb | --de | --d | -d )
15599     debug=: ;;
15600   --file | --fil | --fi | --f )
15601     $ac_shift
15602     case $ac_optarg in
15603     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15604     esac
15605     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15606     ac_need_defaults=false;;
15607   --header | --heade | --head | --hea )
15608     $ac_shift
15609     case $ac_optarg in
15610     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15611     esac
15612     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15613     ac_need_defaults=false;;
15614   --he | --h)
15615     # Conflict between --help and --header
15616     { $as_echo "$as_me: error: ambiguous option: $1
15617 Try \`$0 --help' for more information." >&2
15618    { (exit 1); exit 1; }; };;
15619   --help | --hel | -h )
15620     $as_echo "$ac_cs_usage"; exit ;;
15621   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15622   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15623     ac_cs_silent=: ;;
15624
15625   # This is an error.
15626   -*) { $as_echo "$as_me: error: unrecognized option: $1
15627 Try \`$0 --help' for more information." >&2
15628    { (exit 1); exit 1; }; } ;;
15629
15630   *) ac_config_targets="$ac_config_targets $1"
15631      ac_need_defaults=false ;;
15632
15633   esac
15634   shift
15635 done
15636
15637 ac_configure_extra_args=
15638
15639 if $ac_cs_silent; then
15640   exec 6>/dev/null
15641   ac_configure_extra_args="$ac_configure_extra_args --silent"
15642 fi
15643
15644 _ACEOF
15645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15646 if \$ac_cs_recheck; then
15647   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15648   shift
15649   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15650   CONFIG_SHELL='$SHELL'
15651   export CONFIG_SHELL
15652   exec "\$@"
15653 fi
15654
15655 _ACEOF
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 exec 5>>config.log
15658 {
15659   echo
15660   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15661 ## Running $as_me. ##
15662 _ASBOX
15663   $as_echo "$ac_log"
15664 } >&5
15665
15666 _ACEOF
15667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15668 #
15669 # INIT-COMMANDS
15670 #
15671 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15672
15673
15674 # The HP-UX ksh and POSIX shell print the target directory to stdout
15675 # if CDPATH is set.
15676 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15677
15678 sed_quote_subst='$sed_quote_subst'
15679 double_quote_subst='$double_quote_subst'
15680 delay_variable_subst='$delay_variable_subst'
15681 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15682 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15683 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15684 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15685 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15686 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15687 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15688 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15689 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15690 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15691 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15692 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15693 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15694 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15695 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15696 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15697 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15698 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15699 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15700 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15701 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15702 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15703 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15704 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15705 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15706 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15707 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15708 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15709 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15710 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15711 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15712 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15713 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15714 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15715 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15716 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15717 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15718 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15719 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15720 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15721 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15722 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15723 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15724 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15725 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"`'
15726 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"`'
15727 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15728 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15729 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15730 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15731 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15732 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15733 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15734 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15735 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15736 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15737 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15738 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15739 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15740 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15741 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15742 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15743 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15744 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15745 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15746 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15747 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15748 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15749 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15750 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15751 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15752 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15753 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15754 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15755 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15756 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15757 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15758 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15759 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15760 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15761 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15762 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15763 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15764 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15765 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15766 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15767 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15768 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15769 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15770 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15771 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15772 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15773 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15774 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15775 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15776 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15777 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15778 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15779 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15780 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15781 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15782 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15783 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15784 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15785 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15786 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15787 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15788 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15789 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15790 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15791 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15792 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15793 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15794 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15795 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15796 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15797 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15798 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15799
15800 LTCC='$LTCC'
15801 LTCFLAGS='$LTCFLAGS'
15802 compiler='$compiler_DEFAULT'
15803
15804 # Quote evaled strings.
15805 for var in SED \
15806 GREP \
15807 EGREP \
15808 FGREP \
15809 LD \
15810 NM \
15811 LN_S \
15812 lt_SP2NL \
15813 lt_NL2SP \
15814 reload_flag \
15815 OBJDUMP \
15816 deplibs_check_method \
15817 file_magic_cmd \
15818 AR \
15819 AR_FLAGS \
15820 STRIP \
15821 RANLIB \
15822 CC \
15823 CFLAGS \
15824 compiler \
15825 lt_cv_sys_global_symbol_pipe \
15826 lt_cv_sys_global_symbol_to_cdecl \
15827 lt_cv_sys_global_symbol_to_c_name_address \
15828 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15829 SHELL \
15830 ECHO \
15831 lt_prog_compiler_no_builtin_flag \
15832 lt_prog_compiler_wl \
15833 lt_prog_compiler_pic \
15834 lt_prog_compiler_static \
15835 lt_cv_prog_compiler_c_o \
15836 need_locks \
15837 DSYMUTIL \
15838 NMEDIT \
15839 LIPO \
15840 OTOOL \
15841 OTOOL64 \
15842 shrext_cmds \
15843 export_dynamic_flag_spec \
15844 whole_archive_flag_spec \
15845 compiler_needs_object \
15846 with_gnu_ld \
15847 allow_undefined_flag \
15848 no_undefined_flag \
15849 hardcode_libdir_flag_spec \
15850 hardcode_libdir_flag_spec_ld \
15851 hardcode_libdir_separator \
15852 fix_srcfile_path \
15853 exclude_expsyms \
15854 include_expsyms \
15855 file_list_spec \
15856 variables_saved_for_relink \
15857 libname_spec \
15858 library_names_spec \
15859 soname_spec \
15860 finish_eval \
15861 old_striplib \
15862 striplib; do
15863     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15864     *[\\\\\\\`\\"\\\$]*)
15865       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15866       ;;
15867     *)
15868       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15869       ;;
15870     esac
15871 done
15872
15873 # Double-quote double-evaled strings.
15874 for var in reload_cmds \
15875 old_postinstall_cmds \
15876 old_postuninstall_cmds \
15877 old_archive_cmds \
15878 extract_expsyms_cmds \
15879 old_archive_from_new_cmds \
15880 old_archive_from_expsyms_cmds \
15881 archive_cmds \
15882 archive_expsym_cmds \
15883 module_cmds \
15884 module_expsym_cmds \
15885 export_symbols_cmds \
15886 prelink_cmds \
15887 postinstall_cmds \
15888 postuninstall_cmds \
15889 finish_cmds \
15890 sys_lib_search_path_spec \
15891 sys_lib_dlsearch_path_spec; do
15892     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15893     *[\\\\\\\`\\"\\\$]*)
15894       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15895       ;;
15896     *)
15897       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15898       ;;
15899     esac
15900 done
15901
15902 # Fix-up fallback echo if it was mangled by the above quoting rules.
15903 case \$lt_ECHO in
15904 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15905   ;;
15906 esac
15907
15908 ac_aux_dir='$ac_aux_dir'
15909 xsi_shell='$xsi_shell'
15910 lt_shell_append='$lt_shell_append'
15911
15912 # See if we are running on zsh, and set the options which allow our
15913 # commands through without removal of \ escapes INIT.
15914 if test -n "\${ZSH_VERSION+set}" ; then
15915    setopt NO_GLOB_SUBST
15916 fi
15917
15918
15919     PACKAGE='$PACKAGE'
15920     VERSION='$VERSION'
15921     TIMESTAMP='$TIMESTAMP'
15922     RM='$RM'
15923     ofile='$ofile'
15924
15925
15926
15927 TARGETDIR="$TARGETDIR"
15928
15929 _ACEOF
15930
15931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15932
15933 # Handling of arguments.
15934 for ac_config_target in $ac_config_targets
15935 do
15936   case $ac_config_target in
15937     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15938     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15939     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15940     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15941     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15942     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15943     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15944     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15945     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15946     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15947     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15948     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15949
15950   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15951 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15952    { (exit 1); exit 1; }; };;
15953   esac
15954 done
15955
15956
15957 # If the user did not use the arguments to specify the items to instantiate,
15958 # then the envvar interface is used.  Set only those that are not.
15959 # We use the long form for the default assignment because of an extremely
15960 # bizarre bug on SunOS 4.1.3.
15961 if $ac_need_defaults; then
15962   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15963   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15964   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15965   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15966 fi
15967
15968 # Have a temporary directory for convenience.  Make it in the build tree
15969 # simply because there is no reason against having it here, and in addition,
15970 # creating and moving files from /tmp can sometimes cause problems.
15971 # Hook for its removal unless debugging.
15972 # Note that there is a small window in which the directory will not be cleaned:
15973 # after its creation but before its name has been assigned to `$tmp'.
15974 $debug ||
15975 {
15976   tmp=
15977   trap 'exit_status=$?
15978   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15979 ' 0
15980   trap '{ (exit 1); exit 1; }' 1 2 13 15
15981 }
15982 # Create a (secure) tmp directory for tmp files.
15983
15984 {
15985   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15986   test -n "$tmp" && test -d "$tmp"
15987 }  ||
15988 {
15989   tmp=./conf$$-$RANDOM
15990   (umask 077 && mkdir "$tmp")
15991 } ||
15992 {
15993    $as_echo "$as_me: cannot create a temporary directory in ." >&2
15994    { (exit 1); exit 1; }
15995 }
15996
15997 # Set up the scripts for CONFIG_FILES section.
15998 # No need to generate them if there are no CONFIG_FILES.
15999 # This happens for instance with `./config.status config.h'.
16000 if test -n "$CONFIG_FILES"; then
16001
16002
16003 ac_cr='\r'
16004 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16005 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16006   ac_cs_awk_cr='\\r'
16007 else
16008   ac_cs_awk_cr=$ac_cr
16009 fi
16010
16011 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16012 _ACEOF
16013
16014
16015 {
16016   echo "cat >conf$$subs.awk <<_ACEOF" &&
16017   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16018   echo "_ACEOF"
16019 } >conf$$subs.sh ||
16020   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16021 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16022    { (exit 1); exit 1; }; }
16023 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16024 ac_delim='%!_!# '
16025 for ac_last_try in false false false false false :; do
16026   . ./conf$$subs.sh ||
16027     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16028 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16029    { (exit 1); exit 1; }; }
16030
16031   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16032   if test $ac_delim_n = $ac_delim_num; then
16033     break
16034   elif $ac_last_try; then
16035     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16036 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16037    { (exit 1); exit 1; }; }
16038   else
16039     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16040   fi
16041 done
16042 rm -f conf$$subs.sh
16043
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16046 _ACEOF
16047 sed -n '
16048 h
16049 s/^/S["/; s/!.*/"]=/
16050 p
16051 g
16052 s/^[^!]*!//
16053 :repl
16054 t repl
16055 s/'"$ac_delim"'$//
16056 t delim
16057 :nl
16058 h
16059 s/\(.\{148\}\).*/\1/
16060 t more1
16061 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16062 p
16063 n
16064 b repl
16065 :more1
16066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16067 p
16068 g
16069 s/.\{148\}//
16070 t nl
16071 :delim
16072 h
16073 s/\(.\{148\}\).*/\1/
16074 t more2
16075 s/["\\]/\\&/g; s/^/"/; s/$/"/
16076 p
16077 b
16078 :more2
16079 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16080 p
16081 g
16082 s/.\{148\}//
16083 t delim
16084 ' <conf$$subs.awk | sed '
16085 /^[^""]/{
16086   N
16087   s/\n//
16088 }
16089 ' >>$CONFIG_STATUS || ac_write_fail=1
16090 rm -f conf$$subs.awk
16091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16092 _ACAWK
16093 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16094   for (key in S) S_is_set[key] = 1
16095   FS = "\a"
16096
16097 }
16098 {
16099   line = $ 0
16100   nfields = split(line, field, "@")
16101   substed = 0
16102   len = length(field[1])
16103   for (i = 2; i < nfields; i++) {
16104     key = field[i]
16105     keylen = length(key)
16106     if (S_is_set[key]) {
16107       value = S[key]
16108       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16109       len += length(value) + length(field[++i])
16110       substed = 1
16111     } else
16112       len += 1 + keylen
16113   }
16114
16115   print line
16116 }
16117
16118 _ACAWK
16119 _ACEOF
16120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16121 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16122   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16123 else
16124   cat
16125 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16126   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16127 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16128    { (exit 1); exit 1; }; }
16129 _ACEOF
16130
16131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16133 # trailing colons and then remove the whole line if VPATH becomes empty
16134 # (actually we leave an empty line to preserve line numbers).
16135 if test "x$srcdir" = x.; then
16136   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16137 s/:*\$(srcdir):*/:/
16138 s/:*\${srcdir}:*/:/
16139 s/:*@srcdir@:*/:/
16140 s/^\([^=]*=[     ]*\):*/\1/
16141 s/:*$//
16142 s/^[^=]*=[       ]*$//
16143 }'
16144 fi
16145
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 fi # test -n "$CONFIG_FILES"
16148
16149 # Set up the scripts for CONFIG_HEADERS section.
16150 # No need to generate them if there are no CONFIG_HEADERS.
16151 # This happens for instance with `./config.status Makefile'.
16152 if test -n "$CONFIG_HEADERS"; then
16153 cat >"$tmp/defines.awk" <<\_ACAWK ||
16154 BEGIN {
16155 _ACEOF
16156
16157 # Transform confdefs.h into an awk script `defines.awk', embedded as
16158 # here-document in config.status, that substitutes the proper values into
16159 # config.h.in to produce config.h.
16160
16161 # Create a delimiter string that does not exist in confdefs.h, to ease
16162 # handling of long lines.
16163 ac_delim='%!_!# '
16164 for ac_last_try in false false :; do
16165   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16166   if test -z "$ac_t"; then
16167     break
16168   elif $ac_last_try; then
16169     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16170 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16171    { (exit 1); exit 1; }; }
16172   else
16173     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16174   fi
16175 done
16176
16177 # For the awk script, D is an array of macro values keyed by name,
16178 # likewise P contains macro parameters if any.  Preserve backslash
16179 # newline sequences.
16180
16181 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16182 sed -n '
16183 s/.\{148\}/&'"$ac_delim"'/g
16184 t rset
16185 :rset
16186 s/^[     ]*#[    ]*define[       ][      ]*/ /
16187 t def
16188 d
16189 :def
16190 s/\\$//
16191 t bsnl
16192 s/["\\]/\\&/g
16193 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16194 D["\1"]=" \3"/p
16195 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16196 d
16197 :bsnl
16198 s/["\\]/\\&/g
16199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16200 D["\1"]=" \3\\\\\\n"\\/p
16201 t cont
16202 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16203 t cont
16204 d
16205 :cont
16206 n
16207 s/.\{148\}/&'"$ac_delim"'/g
16208 t clear
16209 :clear
16210 s/\\$//
16211 t bsnlc
16212 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16213 d
16214 :bsnlc
16215 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16216 b cont
16217 ' <confdefs.h | sed '
16218 s/'"$ac_delim"'/"\\\
16219 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16220
16221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16222   for (key in D) D_is_set[key] = 1
16223   FS = "\a"
16224 }
16225 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16226   line = \$ 0
16227   split(line, arg, " ")
16228   if (arg[1] == "#") {
16229     defundef = arg[2]
16230     mac1 = arg[3]
16231   } else {
16232     defundef = substr(arg[1], 2)
16233     mac1 = arg[2]
16234   }
16235   split(mac1, mac2, "(") #)
16236   macro = mac2[1]
16237   prefix = substr(line, 1, index(line, defundef) - 1)
16238   if (D_is_set[macro]) {
16239     # Preserve the white space surrounding the "#".
16240     print prefix "define", macro P[macro] D[macro]
16241     next
16242   } else {
16243     # Replace #undef with comments.  This is necessary, for example,
16244     # in the case of _POSIX_SOURCE, which is predefined and required
16245     # on some systems where configure will not decide to define it.
16246     if (defundef == "undef") {
16247       print "/*", prefix defundef, macro, "*/"
16248       next
16249     }
16250   }
16251 }
16252 { print }
16253 _ACAWK
16254 _ACEOF
16255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16256   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16257 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16258    { (exit 1); exit 1; }; }
16259 fi # test -n "$CONFIG_HEADERS"
16260
16261
16262 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16263 shift
16264 for ac_tag
16265 do
16266   case $ac_tag in
16267   :[FHLC]) ac_mode=$ac_tag; continue;;
16268   esac
16269   case $ac_mode$ac_tag in
16270   :[FHL]*:*);;
16271   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16272 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16273    { (exit 1); exit 1; }; };;
16274   :[FH]-) ac_tag=-:-;;
16275   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16276   esac
16277   ac_save_IFS=$IFS
16278   IFS=:
16279   set x $ac_tag
16280   IFS=$ac_save_IFS
16281   shift
16282   ac_file=$1
16283   shift
16284
16285   case $ac_mode in
16286   :L) ac_source=$1;;
16287   :[FH])
16288     ac_file_inputs=
16289     for ac_f
16290     do
16291       case $ac_f in
16292       -) ac_f="$tmp/stdin";;
16293       *) # Look for the file first in the build tree, then in the source tree
16294          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16295          # because $ac_f cannot contain `:'.
16296          test -f "$ac_f" ||
16297            case $ac_f in
16298            [\\/$]*) false;;
16299            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16300            esac ||
16301            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16302 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16303    { (exit 1); exit 1; }; };;
16304       esac
16305       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16306       ac_file_inputs="$ac_file_inputs '$ac_f'"
16307     done
16308
16309     # Let's still pretend it is `configure' which instantiates (i.e., don't
16310     # use $as_me), people would be surprised to read:
16311     #    /* config.h.  Generated by config.status.  */
16312     configure_input='Generated from '`
16313           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16314         `' by configure.'
16315     if test x"$ac_file" != x-; then
16316       configure_input="$ac_file.  $configure_input"
16317       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16318 $as_echo "$as_me: creating $ac_file" >&6;}
16319     fi
16320     # Neutralize special characters interpreted by sed in replacement strings.
16321     case $configure_input in #(
16322     *\&* | *\|* | *\\* )
16323        ac_sed_conf_input=`$as_echo "$configure_input" |
16324        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16325     *) ac_sed_conf_input=$configure_input;;
16326     esac
16327
16328     case $ac_tag in
16329     *:-:* | *:-) cat >"$tmp/stdin" \
16330       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16331 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16332    { (exit 1); exit 1; }; } ;;
16333     esac
16334     ;;
16335   esac
16336
16337   ac_dir=`$as_dirname -- "$ac_file" ||
16338 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16339          X"$ac_file" : 'X\(//\)[^/]' \| \
16340          X"$ac_file" : 'X\(//\)$' \| \
16341          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16342 $as_echo X"$ac_file" |
16343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16344             s//\1/
16345             q
16346           }
16347           /^X\(\/\/\)[^/].*/{
16348             s//\1/
16349             q
16350           }
16351           /^X\(\/\/\)$/{
16352             s//\1/
16353             q
16354           }
16355           /^X\(\/\).*/{
16356             s//\1/
16357             q
16358           }
16359           s/.*/./; q'`
16360   { as_dir="$ac_dir"
16361   case $as_dir in #(
16362   -*) as_dir=./$as_dir;;
16363   esac
16364   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16365     as_dirs=
16366     while :; do
16367       case $as_dir in #(
16368       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16369       *) as_qdir=$as_dir;;
16370       esac
16371       as_dirs="'$as_qdir' $as_dirs"
16372       as_dir=`$as_dirname -- "$as_dir" ||
16373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16374          X"$as_dir" : 'X\(//\)[^/]' \| \
16375          X"$as_dir" : 'X\(//\)$' \| \
16376          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16377 $as_echo X"$as_dir" |
16378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16379             s//\1/
16380             q
16381           }
16382           /^X\(\/\/\)[^/].*/{
16383             s//\1/
16384             q
16385           }
16386           /^X\(\/\/\)$/{
16387             s//\1/
16388             q
16389           }
16390           /^X\(\/\).*/{
16391             s//\1/
16392             q
16393           }
16394           s/.*/./; q'`
16395       test -d "$as_dir" && break
16396     done
16397     test -z "$as_dirs" || eval "mkdir $as_dirs"
16398   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16399 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16400    { (exit 1); exit 1; }; }; }
16401   ac_builddir=.
16402
16403 case "$ac_dir" in
16404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16405 *)
16406   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16407   # A ".." for each directory in $ac_dir_suffix.
16408   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16409   case $ac_top_builddir_sub in
16410   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16411   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16412   esac ;;
16413 esac
16414 ac_abs_top_builddir=$ac_pwd
16415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16416 # for backward compatibility:
16417 ac_top_builddir=$ac_top_build_prefix
16418
16419 case $srcdir in
16420   .)  # We are building in place.
16421     ac_srcdir=.
16422     ac_top_srcdir=$ac_top_builddir_sub
16423     ac_abs_top_srcdir=$ac_pwd ;;
16424   [\\/]* | ?:[\\/]* )  # Absolute name.
16425     ac_srcdir=$srcdir$ac_dir_suffix;
16426     ac_top_srcdir=$srcdir
16427     ac_abs_top_srcdir=$srcdir ;;
16428   *) # Relative name.
16429     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16430     ac_top_srcdir=$ac_top_build_prefix$srcdir
16431     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16432 esac
16433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16434
16435
16436   case $ac_mode in
16437   :F)
16438   #
16439   # CONFIG_FILE
16440   #
16441
16442   case $INSTALL in
16443   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16444   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16445   esac
16446   ac_MKDIR_P=$MKDIR_P
16447   case $MKDIR_P in
16448   [\\/$]* | ?:[\\/]* ) ;;
16449   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16450   esac
16451 _ACEOF
16452
16453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454 # If the template does not know about datarootdir, expand it.
16455 # FIXME: This hack should be removed a few years after 2.60.
16456 ac_datarootdir_hack=; ac_datarootdir_seen=
16457
16458 ac_sed_dataroot='
16459 /datarootdir/ {
16460   p
16461   q
16462 }
16463 /@datadir@/p
16464 /@docdir@/p
16465 /@infodir@/p
16466 /@localedir@/p
16467 /@mandir@/p
16468 '
16469 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16470 *datarootdir*) ac_datarootdir_seen=yes;;
16471 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16472   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16473 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16474 _ACEOF
16475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16476   ac_datarootdir_hack='
16477   s&@datadir@&$datadir&g
16478   s&@docdir@&$docdir&g
16479   s&@infodir@&$infodir&g
16480   s&@localedir@&$localedir&g
16481   s&@mandir@&$mandir&g
16482     s&\\\${datarootdir}&$datarootdir&g' ;;
16483 esac
16484 _ACEOF
16485
16486 # Neutralize VPATH when `$srcdir' = `.'.
16487 # Shell code in configure.ac might set extrasub.
16488 # FIXME: do we really want to maintain this feature?
16489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16490 ac_sed_extra="$ac_vpsub
16491 $extrasub
16492 _ACEOF
16493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16494 :t
16495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16496 s|@configure_input@|$ac_sed_conf_input|;t t
16497 s&@top_builddir@&$ac_top_builddir_sub&;t t
16498 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16499 s&@srcdir@&$ac_srcdir&;t t
16500 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16501 s&@top_srcdir@&$ac_top_srcdir&;t t
16502 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16503 s&@builddir@&$ac_builddir&;t t
16504 s&@abs_builddir@&$ac_abs_builddir&;t t
16505 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16506 s&@INSTALL@&$ac_INSTALL&;t t
16507 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16508 $ac_datarootdir_hack
16509 "
16510 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16511   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16512 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16513    { (exit 1); exit 1; }; }
16514
16515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16516   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16517   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16518   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16519 which seems to be undefined.  Please make sure it is defined." >&5
16520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16521 which seems to be undefined.  Please make sure it is defined." >&2;}
16522
16523   rm -f "$tmp/stdin"
16524   case $ac_file in
16525   -) cat "$tmp/out" && rm -f "$tmp/out";;
16526   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16527   esac \
16528   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16529 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16530    { (exit 1); exit 1; }; }
16531  ;;
16532   :H)
16533   #
16534   # CONFIG_HEADER
16535   #
16536   if test x"$ac_file" != x-; then
16537     {
16538       $as_echo "/* $configure_input  */" \
16539       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16540     } >"$tmp/config.h" \
16541       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16542 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16543    { (exit 1); exit 1; }; }
16544     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16545       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16546 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16547     else
16548       rm -f "$ac_file"
16549       mv "$tmp/config.h" "$ac_file" \
16550         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16551 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16552    { (exit 1); exit 1; }; }
16553     fi
16554   else
16555     $as_echo "/* $configure_input  */" \
16556       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16557       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16558 $as_echo "$as_me: error: could not create -" >&2;}
16559    { (exit 1); exit 1; }; }
16560   fi
16561 # Compute "$ac_file"'s index in $config_headers.
16562 _am_arg="$ac_file"
16563 _am_stamp_count=1
16564 for _am_header in $config_headers :; do
16565   case $_am_header in
16566     $_am_arg | $_am_arg:* )
16567       break ;;
16568     * )
16569       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16570   esac
16571 done
16572 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16573 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16574          X"$_am_arg" : 'X\(//\)[^/]' \| \
16575          X"$_am_arg" : 'X\(//\)$' \| \
16576          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16577 $as_echo X"$_am_arg" |
16578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16579             s//\1/
16580             q
16581           }
16582           /^X\(\/\/\)[^/].*/{
16583             s//\1/
16584             q
16585           }
16586           /^X\(\/\/\)$/{
16587             s//\1/
16588             q
16589           }
16590           /^X\(\/\).*/{
16591             s//\1/
16592             q
16593           }
16594           s/.*/./; q'`/stamp-h$_am_stamp_count
16595  ;;
16596   :L)
16597   #
16598   # CONFIG_LINK
16599   #
16600
16601   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16602     :
16603   else
16604     # Prefer the file from the source tree if names are identical.
16605     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16606       ac_source=$srcdir/$ac_source
16607     fi
16608
16609     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16610 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16611
16612     if test ! -r "$ac_source"; then
16613       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16614 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16615    { (exit 1); exit 1; }; }
16616     fi
16617     rm -f "$ac_file"
16618
16619     # Try a relative symlink, then a hard link, then a copy.
16620     case $srcdir in
16621     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16622         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16623     esac
16624     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16625       ln "$ac_source" "$ac_file" 2>/dev/null ||
16626       cp -p "$ac_source" "$ac_file" ||
16627       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16628 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16629    { (exit 1); exit 1; }; }
16630   fi
16631  ;;
16632   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16633 $as_echo "$as_me: executing $ac_file commands" >&6;}
16634  ;;
16635   esac
16636
16637
16638   case $ac_file$ac_mode in
16639     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16640   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16641   # are listed without --file.  Let's play safe and only enable the eval
16642   # if we detect the quoting.
16643   case $CONFIG_FILES in
16644   *\'*) eval set x "$CONFIG_FILES" ;;
16645   *)   set x $CONFIG_FILES ;;
16646   esac
16647   shift
16648   for mf
16649   do
16650     # Strip MF so we end up with the name of the file.
16651     mf=`echo "$mf" | sed -e 's/:.*$//'`
16652     # Check whether this is an Automake generated Makefile or not.
16653     # We used to match only the files named `Makefile.in', but
16654     # some people rename them; so instead we look at the file content.
16655     # Grep'ing the first line is not enough: some people post-process
16656     # each Makefile.in and add a new line on top of each file to say so.
16657     # Grep'ing the whole file is not good either: AIX grep has a line
16658     # limit of 2048, but all sed's we know have understand at least 4000.
16659     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16660       dirpart=`$as_dirname -- "$mf" ||
16661 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16662          X"$mf" : 'X\(//\)[^/]' \| \
16663          X"$mf" : 'X\(//\)$' \| \
16664          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16665 $as_echo X"$mf" |
16666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16667             s//\1/
16668             q
16669           }
16670           /^X\(\/\/\)[^/].*/{
16671             s//\1/
16672             q
16673           }
16674           /^X\(\/\/\)$/{
16675             s//\1/
16676             q
16677           }
16678           /^X\(\/\).*/{
16679             s//\1/
16680             q
16681           }
16682           s/.*/./; q'`
16683     else
16684       continue
16685     fi
16686     # Extract the definition of DEPDIR, am__include, and am__quote
16687     # from the Makefile without running `make'.
16688     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16689     test -z "$DEPDIR" && continue
16690     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16691     test -z "am__include" && continue
16692     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16693     # When using ansi2knr, U may be empty or an underscore; expand it
16694     U=`sed -n 's/^U = //p' < "$mf"`
16695     # Find all dependency output files, they are included files with
16696     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16697     # simplest approach to changing $(DEPDIR) to its actual value in the
16698     # expansion.
16699     for file in `sed -n "
16700       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16701          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16702       # Make sure the directory exists.
16703       test -f "$dirpart/$file" && continue
16704       fdir=`$as_dirname -- "$file" ||
16705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16706          X"$file" : 'X\(//\)[^/]' \| \
16707          X"$file" : 'X\(//\)$' \| \
16708          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16709 $as_echo X"$file" |
16710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16711             s//\1/
16712             q
16713           }
16714           /^X\(\/\/\)[^/].*/{
16715             s//\1/
16716             q
16717           }
16718           /^X\(\/\/\)$/{
16719             s//\1/
16720             q
16721           }
16722           /^X\(\/\).*/{
16723             s//\1/
16724             q
16725           }
16726           s/.*/./; q'`
16727       { as_dir=$dirpart/$fdir
16728   case $as_dir in #(
16729   -*) as_dir=./$as_dir;;
16730   esac
16731   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16732     as_dirs=
16733     while :; do
16734       case $as_dir in #(
16735       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16736       *) as_qdir=$as_dir;;
16737       esac
16738       as_dirs="'$as_qdir' $as_dirs"
16739       as_dir=`$as_dirname -- "$as_dir" ||
16740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16741          X"$as_dir" : 'X\(//\)[^/]' \| \
16742          X"$as_dir" : 'X\(//\)$' \| \
16743          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16744 $as_echo X"$as_dir" |
16745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16746             s//\1/
16747             q
16748           }
16749           /^X\(\/\/\)[^/].*/{
16750             s//\1/
16751             q
16752           }
16753           /^X\(\/\/\)$/{
16754             s//\1/
16755             q
16756           }
16757           /^X\(\/\).*/{
16758             s//\1/
16759             q
16760           }
16761           s/.*/./; q'`
16762       test -d "$as_dir" && break
16763     done
16764     test -z "$as_dirs" || eval "mkdir $as_dirs"
16765   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16766 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16767    { (exit 1); exit 1; }; }; }
16768       # echo "creating $dirpart/$file"
16769       echo '# dummy' > "$dirpart/$file"
16770     done
16771   done
16772 }
16773  ;;
16774     "libtool":C)
16775
16776     # See if we are running on zsh, and set the options which allow our
16777     # commands through without removal of \ escapes.
16778     if test -n "${ZSH_VERSION+set}" ; then
16779       setopt NO_GLOB_SUBST
16780     fi
16781
16782     cfgfile="${ofile}T"
16783     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16784     $RM "$cfgfile"
16785
16786     cat <<_LT_EOF >> "$cfgfile"
16787 #! $SHELL
16788
16789 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16790 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16791 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16792 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16793 #
16794 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16795 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16796 #   Written by Gordon Matzigkeit, 1996
16797 #
16798 #   This file is part of GNU Libtool.
16799 #
16800 # GNU Libtool is free software; you can redistribute it and/or
16801 # modify it under the terms of the GNU General Public License as
16802 # published by the Free Software Foundation; either version 2 of
16803 # the License, or (at your option) any later version.
16804 #
16805 # As a special exception to the GNU General Public License,
16806 # if you distribute this file as part of a program or library that
16807 # is built using GNU Libtool, you may include this file under the
16808 # same distribution terms that you use for the rest of that program.
16809 #
16810 # GNU Libtool is distributed in the hope that it will be useful,
16811 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16812 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16813 # GNU General Public License for more details.
16814 #
16815 # You should have received a copy of the GNU General Public License
16816 # along with GNU Libtool; see the file COPYING.  If not, a copy
16817 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16818 # obtained by writing to the Free Software Foundation, Inc.,
16819 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16820
16821
16822 # The names of the tagged configurations supported by this script.
16823 available_tags=""
16824
16825 # ### BEGIN LIBTOOL CONFIG
16826
16827 # Which release of libtool.m4 was used?
16828 macro_version=$macro_version
16829 macro_revision=$macro_revision
16830
16831 # Whether or not to build shared libraries.
16832 build_libtool_libs=$enable_shared
16833
16834 # Whether or not to build static libraries.
16835 build_old_libs=$enable_static
16836
16837 # What type of objects to build.
16838 pic_mode=$pic_mode
16839
16840 # Whether or not to optimize for fast installation.
16841 fast_install=$enable_fast_install
16842
16843 # The host system.
16844 host_alias=$host_alias
16845 host=$host
16846 host_os=$host_os
16847
16848 # The build system.
16849 build_alias=$build_alias
16850 build=$build
16851 build_os=$build_os
16852
16853 # A sed program that does not truncate output.
16854 SED=$lt_SED
16855
16856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16857 Xsed="\$SED -e 1s/^X//"
16858
16859 # A grep program that handles long lines.
16860 GREP=$lt_GREP
16861
16862 # An ERE matcher.
16863 EGREP=$lt_EGREP
16864
16865 # A literal string matcher.
16866 FGREP=$lt_FGREP
16867
16868 # A BSD- or MS-compatible name lister.
16869 NM=$lt_NM
16870
16871 # Whether we need soft or hard links.
16872 LN_S=$lt_LN_S
16873
16874 # What is the maximum length of a command?
16875 max_cmd_len=$max_cmd_len
16876
16877 # Object file suffix (normally "o").
16878 objext=$ac_objext
16879
16880 # Executable file suffix (normally "").
16881 exeext=$exeext
16882
16883 # whether the shell understands "unset".
16884 lt_unset=$lt_unset
16885
16886 # turn spaces into newlines.
16887 SP2NL=$lt_lt_SP2NL
16888
16889 # turn newlines into spaces.
16890 NL2SP=$lt_lt_NL2SP
16891
16892 # How to create reloadable object files.
16893 reload_flag=$lt_reload_flag
16894 reload_cmds=$lt_reload_cmds
16895
16896 # An object symbol dumper.
16897 OBJDUMP=$lt_OBJDUMP
16898
16899 # Method to check whether dependent libraries are shared objects.
16900 deplibs_check_method=$lt_deplibs_check_method
16901
16902 # Command to use when deplibs_check_method == "file_magic".
16903 file_magic_cmd=$lt_file_magic_cmd
16904
16905 # The archiver.
16906 AR=$lt_AR
16907 AR_FLAGS=$lt_AR_FLAGS
16908
16909 # A symbol stripping program.
16910 STRIP=$lt_STRIP
16911
16912 # Commands used to install an old-style archive.
16913 RANLIB=$lt_RANLIB
16914 old_postinstall_cmds=$lt_old_postinstall_cmds
16915 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16916
16917 # A C compiler.
16918 LTCC=$lt_CC
16919
16920 # LTCC compiler flags.
16921 LTCFLAGS=$lt_CFLAGS
16922
16923 # Take the output of nm and produce a listing of raw symbols and C names.
16924 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16925
16926 # Transform the output of nm in a proper C declaration.
16927 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16928
16929 # Transform the output of nm in a C name address pair.
16930 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16931
16932 # Transform the output of nm in a C name address pair when lib prefix is needed.
16933 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16934
16935 # The name of the directory that contains temporary libtool files.
16936 objdir=$objdir
16937
16938 # Shell to use when invoking shell scripts.
16939 SHELL=$lt_SHELL
16940
16941 # An echo program that does not interpret backslashes.
16942 ECHO=$lt_ECHO
16943
16944 # Used to examine libraries when file_magic_cmd begins with "file".
16945 MAGIC_CMD=$MAGIC_CMD
16946
16947 # Must we lock files when doing compilation?
16948 need_locks=$lt_need_locks
16949
16950 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16951 DSYMUTIL=$lt_DSYMUTIL
16952
16953 # Tool to change global to local symbols on Mac OS X.
16954 NMEDIT=$lt_NMEDIT
16955
16956 # Tool to manipulate fat objects and archives on Mac OS X.
16957 LIPO=$lt_LIPO
16958
16959 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16960 OTOOL=$lt_OTOOL
16961
16962 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16963 OTOOL64=$lt_OTOOL64
16964
16965 # Old archive suffix (normally "a").
16966 libext=$libext
16967
16968 # Shared library suffix (normally ".so").
16969 shrext_cmds=$lt_shrext_cmds
16970
16971 # The commands to extract the exported symbol list from a shared archive.
16972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16973
16974 # Variables whose values should be saved in libtool wrapper scripts and
16975 # restored at link time.
16976 variables_saved_for_relink=$lt_variables_saved_for_relink
16977
16978 # Do we need the "lib" prefix for modules?
16979 need_lib_prefix=$need_lib_prefix
16980
16981 # Do we need a version for libraries?
16982 need_version=$need_version
16983
16984 # Library versioning type.
16985 version_type=$version_type
16986
16987 # Shared library runtime path variable.
16988 runpath_var=$runpath_var
16989
16990 # Shared library path variable.
16991 shlibpath_var=$shlibpath_var
16992
16993 # Is shlibpath searched before the hard-coded library search path?
16994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16995
16996 # Format of library name prefix.
16997 libname_spec=$lt_libname_spec
16998
16999 # List of archive names.  First name is the real one, the rest are links.
17000 # The last name is the one that the linker finds with -lNAME
17001 library_names_spec=$lt_library_names_spec
17002
17003 # The coded name of the library, if different from the real name.
17004 soname_spec=$lt_soname_spec
17005
17006 # Command to use after installation of a shared archive.
17007 postinstall_cmds=$lt_postinstall_cmds
17008
17009 # Command to use after uninstallation of a shared archive.
17010 postuninstall_cmds=$lt_postuninstall_cmds
17011
17012 # Commands used to finish a libtool library installation in a directory.
17013 finish_cmds=$lt_finish_cmds
17014
17015 # As "finish_cmds", except a single script fragment to be evaled but
17016 # not shown.
17017 finish_eval=$lt_finish_eval
17018
17019 # Whether we should hardcode library paths into libraries.
17020 hardcode_into_libs=$hardcode_into_libs
17021
17022 # Compile-time system search path for libraries.
17023 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17024
17025 # Run-time system search path for libraries.
17026 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17027
17028 # Whether dlopen is supported.
17029 dlopen_support=$enable_dlopen
17030
17031 # Whether dlopen of programs is supported.
17032 dlopen_self=$enable_dlopen_self
17033
17034 # Whether dlopen of statically linked programs is supported.
17035 dlopen_self_static=$enable_dlopen_self_static
17036
17037 # Commands to strip libraries.
17038 old_striplib=$lt_old_striplib
17039 striplib=$lt_striplib
17040
17041
17042 # The linker used to build libraries.
17043 LD=$lt_LD
17044
17045 # Commands used to build an old-style archive.
17046 old_archive_cmds=$lt_old_archive_cmds
17047
17048 # A language specific compiler.
17049 CC=$lt_compiler
17050
17051 # Is the compiler the GNU compiler?
17052 with_gcc=$GCC
17053
17054 # Compiler flag to turn off builtin functions.
17055 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17056
17057 # How to pass a linker flag through the compiler.
17058 wl=$lt_lt_prog_compiler_wl
17059
17060 # Additional compiler flags for building library objects.
17061 pic_flag=$lt_lt_prog_compiler_pic
17062
17063 # Compiler flag to prevent dynamic linking.
17064 link_static_flag=$lt_lt_prog_compiler_static
17065
17066 # Does compiler simultaneously support -c and -o options?
17067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17068
17069 # Whether or not to add -lc for building shared libraries.
17070 build_libtool_need_lc=$archive_cmds_need_lc
17071
17072 # Whether or not to disallow shared libs when runtime libs are static.
17073 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17074
17075 # Compiler flag to allow reflexive dlopens.
17076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17077
17078 # Compiler flag to generate shared objects directly from archives.
17079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17080
17081 # Whether the compiler copes with passing no objects directly.
17082 compiler_needs_object=$lt_compiler_needs_object
17083
17084 # Create an old-style archive from a shared archive.
17085 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17086
17087 # Create a temporary old-style archive to link instead of a shared archive.
17088 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17089
17090 # Commands used to build a shared archive.
17091 archive_cmds=$lt_archive_cmds
17092 archive_expsym_cmds=$lt_archive_expsym_cmds
17093
17094 # Commands used to build a loadable module if different from building
17095 # a shared archive.
17096 module_cmds=$lt_module_cmds
17097 module_expsym_cmds=$lt_module_expsym_cmds
17098
17099 # Whether we are building with GNU ld or not.
17100 with_gnu_ld=$lt_with_gnu_ld
17101
17102 # Flag that allows shared libraries with undefined symbols to be built.
17103 allow_undefined_flag=$lt_allow_undefined_flag
17104
17105 # Flag that enforces no undefined symbols.
17106 no_undefined_flag=$lt_no_undefined_flag
17107
17108 # Flag to hardcode \$libdir into a binary during linking.
17109 # This must work even if \$libdir does not exist
17110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17111
17112 # If ld is used when linking, flag to hardcode \$libdir into a binary
17113 # during linking.  This must work even if \$libdir does not exist.
17114 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17115
17116 # Whether we need a single "-rpath" flag with a separated argument.
17117 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17118
17119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17120 # DIR into the resulting binary.
17121 hardcode_direct=$hardcode_direct
17122
17123 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17124 # DIR into the resulting binary and the resulting library dependency is
17125 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17126 # library is relocated.
17127 hardcode_direct_absolute=$hardcode_direct_absolute
17128
17129 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17130 # into the resulting binary.
17131 hardcode_minus_L=$hardcode_minus_L
17132
17133 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17134 # into the resulting binary.
17135 hardcode_shlibpath_var=$hardcode_shlibpath_var
17136
17137 # Set to "yes" if building a shared library automatically hardcodes DIR
17138 # into the library and all subsequent libraries and executables linked
17139 # against it.
17140 hardcode_automatic=$hardcode_automatic
17141
17142 # Set to yes if linker adds runtime paths of dependent libraries
17143 # to runtime path list.
17144 inherit_rpath=$inherit_rpath
17145
17146 # Whether libtool must link a program against all its dependency libraries.
17147 link_all_deplibs=$link_all_deplibs
17148
17149 # Fix the shell variable \$srcfile for the compiler.
17150 fix_srcfile_path=$lt_fix_srcfile_path
17151
17152 # Set to "yes" if exported symbols are required.
17153 always_export_symbols=$always_export_symbols
17154
17155 # The commands to list exported symbols.
17156 export_symbols_cmds=$lt_export_symbols_cmds
17157
17158 # Symbols that should not be listed in the preloaded symbols.
17159 exclude_expsyms=$lt_exclude_expsyms
17160
17161 # Symbols that must always be exported.
17162 include_expsyms=$lt_include_expsyms
17163
17164 # Commands necessary for linking programs (against libraries) with templates.
17165 prelink_cmds=$lt_prelink_cmds
17166
17167 # Specify filename containing input files.
17168 file_list_spec=$lt_file_list_spec
17169
17170 # How to hardcode a shared library path into an executable.
17171 hardcode_action=$hardcode_action
17172
17173 # ### END LIBTOOL CONFIG
17174
17175 _LT_EOF
17176
17177   case $host_os in
17178   aix3*)
17179     cat <<\_LT_EOF >> "$cfgfile"
17180 # AIX sometimes has problems with the GCC collect2 program.  For some
17181 # reason, if we set the COLLECT_NAMES environment variable, the problems
17182 # vanish in a puff of smoke.
17183 if test "X${COLLECT_NAMES+set}" != Xset; then
17184   COLLECT_NAMES=
17185   export COLLECT_NAMES
17186 fi
17187 _LT_EOF
17188     ;;
17189   esac
17190
17191
17192 ltmain="$ac_aux_dir/ltmain.sh"
17193
17194
17195   # We use sed instead of cat because bash on DJGPP gets confused if
17196   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17197   # text mode, it properly converts lines to CR/LF.  This bash problem
17198   # is reportedly fixed, but why not run on old versions too?
17199   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17200     || (rm -f "$cfgfile"; exit 1)
17201
17202   case $xsi_shell in
17203   yes)
17204     cat << \_LT_EOF >> "$cfgfile"
17205
17206 # func_dirname file append nondir_replacement
17207 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17208 # otherwise set result to NONDIR_REPLACEMENT.
17209 func_dirname ()
17210 {
17211   case ${1} in
17212     */*) func_dirname_result="${1%/*}${2}" ;;
17213     *  ) func_dirname_result="${3}" ;;
17214   esac
17215 }
17216
17217 # func_basename file
17218 func_basename ()
17219 {
17220   func_basename_result="${1##*/}"
17221 }
17222
17223 # func_dirname_and_basename file append nondir_replacement
17224 # perform func_basename and func_dirname in a single function
17225 # call:
17226 #   dirname:  Compute the dirname of FILE.  If nonempty,
17227 #             add APPEND to the result, otherwise set result
17228 #             to NONDIR_REPLACEMENT.
17229 #             value returned in "$func_dirname_result"
17230 #   basename: Compute filename of FILE.
17231 #             value retuned in "$func_basename_result"
17232 # Implementation must be kept synchronized with func_dirname
17233 # and func_basename. For efficiency, we do not delegate to
17234 # those functions but instead duplicate the functionality here.
17235 func_dirname_and_basename ()
17236 {
17237   case ${1} in
17238     */*) func_dirname_result="${1%/*}${2}" ;;
17239     *  ) func_dirname_result="${3}" ;;
17240   esac
17241   func_basename_result="${1##*/}"
17242 }
17243
17244 # func_stripname prefix suffix name
17245 # strip PREFIX and SUFFIX off of NAME.
17246 # PREFIX and SUFFIX must not contain globbing or regex special
17247 # characters, hashes, percent signs, but SUFFIX may contain a leading
17248 # dot (in which case that matches only a dot).
17249 func_stripname ()
17250 {
17251   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17252   # positional parameters, so assign one to ordinary parameter first.
17253   func_stripname_result=${3}
17254   func_stripname_result=${func_stripname_result#"${1}"}
17255   func_stripname_result=${func_stripname_result%"${2}"}
17256 }
17257
17258 # func_opt_split
17259 func_opt_split ()
17260 {
17261   func_opt_split_opt=${1%%=*}
17262   func_opt_split_arg=${1#*=}
17263 }
17264
17265 # func_lo2o object
17266 func_lo2o ()
17267 {
17268   case ${1} in
17269     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17270     *)    func_lo2o_result=${1} ;;
17271   esac
17272 }
17273
17274 # func_xform libobj-or-source
17275 func_xform ()
17276 {
17277   func_xform_result=${1%.*}.lo
17278 }
17279
17280 # func_arith arithmetic-term...
17281 func_arith ()
17282 {
17283   func_arith_result=$(( $* ))
17284 }
17285
17286 # func_len string
17287 # STRING may not start with a hyphen.
17288 func_len ()
17289 {
17290   func_len_result=${#1}
17291 }
17292
17293 _LT_EOF
17294     ;;
17295   *) # Bourne compatible functions.
17296     cat << \_LT_EOF >> "$cfgfile"
17297
17298 # func_dirname file append nondir_replacement
17299 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17300 # otherwise set result to NONDIR_REPLACEMENT.
17301 func_dirname ()
17302 {
17303   # Extract subdirectory from the argument.
17304   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17305   if test "X$func_dirname_result" = "X${1}"; then
17306     func_dirname_result="${3}"
17307   else
17308     func_dirname_result="$func_dirname_result${2}"
17309   fi
17310 }
17311
17312 # func_basename file
17313 func_basename ()
17314 {
17315   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17316 }
17317
17318
17319 # func_stripname prefix suffix name
17320 # strip PREFIX and SUFFIX off of NAME.
17321 # PREFIX and SUFFIX must not contain globbing or regex special
17322 # characters, hashes, percent signs, but SUFFIX may contain a leading
17323 # dot (in which case that matches only a dot).
17324 # func_strip_suffix prefix name
17325 func_stripname ()
17326 {
17327   case ${2} in
17328     .*) func_stripname_result=`$ECHO "X${3}" \
17329            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17330     *)  func_stripname_result=`$ECHO "X${3}" \
17331            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17332   esac
17333 }
17334
17335 # sed scripts:
17336 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17337 my_sed_long_arg='1s/^-[^=]*=//'
17338
17339 # func_opt_split
17340 func_opt_split ()
17341 {
17342   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17343   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17344 }
17345
17346 # func_lo2o object
17347 func_lo2o ()
17348 {
17349   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17350 }
17351
17352 # func_xform libobj-or-source
17353 func_xform ()
17354 {
17355   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17356 }
17357
17358 # func_arith arithmetic-term...
17359 func_arith ()
17360 {
17361   func_arith_result=`expr "$@"`
17362 }
17363
17364 # func_len string
17365 # STRING may not start with a hyphen.
17366 func_len ()
17367 {
17368   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17369 }
17370
17371 _LT_EOF
17372 esac
17373
17374 case $lt_shell_append in
17375   yes)
17376     cat << \_LT_EOF >> "$cfgfile"
17377
17378 # func_append var value
17379 # Append VALUE to the end of shell variable VAR.
17380 func_append ()
17381 {
17382   eval "$1+=\$2"
17383 }
17384 _LT_EOF
17385     ;;
17386   *)
17387     cat << \_LT_EOF >> "$cfgfile"
17388
17389 # func_append var value
17390 # Append VALUE to the end of shell variable VAR.
17391 func_append ()
17392 {
17393   eval "$1=\$$1\$2"
17394 }
17395
17396 _LT_EOF
17397     ;;
17398   esac
17399
17400
17401   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17402     || (rm -f "$cfgfile"; exit 1)
17403
17404   mv -f "$cfgfile" "$ofile" ||
17405     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17406   chmod +x "$ofile"
17407
17408  ;;
17409     "include":C) test -d include || mkdir include ;;
17410     "src":C)
17411 test -d src || mkdir src
17412 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17413  ;;
17414
17415   esac
17416 done # for ac_tag
17417
17418
17419 { (exit 0); exit 0; }
17420 _ACEOF
17421 chmod +x $CONFIG_STATUS
17422 ac_clean_files=$ac_clean_files_save
17423
17424 test $ac_write_fail = 0 ||
17425   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17426 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17427    { (exit 1); exit 1; }; }
17428
17429
17430 # configure is writing to config.log, and then calls config.status.
17431 # config.status does its own redirection, appending to config.log.
17432 # Unfortunately, on DOS this fails, as config.log is still kept open
17433 # by configure, so config.status won't be able to write to it; its
17434 # output is simply discarded.  So we exec the FD to /dev/null,
17435 # effectively closing config.log, so it can be properly (re)opened and
17436 # appended to by config.status.  When coming back to configure, we
17437 # need to make the FD available again.
17438 if test "$no_create" != yes; then
17439   ac_cs_success=:
17440   ac_config_status_args=
17441   test "$silent" = yes &&
17442     ac_config_status_args="$ac_config_status_args --quiet"
17443   exec 5>/dev/null
17444   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17445   exec 5>>config.log
17446   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17447   # would make configure fail if this is the last instruction.
17448   $ac_cs_success || { (exit 1); exit 1; }
17449 fi
17450 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17451   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17452 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17453 fi
17454