rc3
[platform/upstream/libffi.git] / 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.10rc3.
4 #
5 # Report bugs to <http://sourceware.org/libffi.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.10rc3'
749 PACKAGE_STRING='libffi 3.0.10rc3'
750 PACKAGE_BUGREPORT='http://sourceware.org/libffi.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 FFI_DEBUG_FALSE
795 FFI_DEBUG_TRUE
796 TARGETDIR
797 TARGET
798 FFI_EXEC_TRAMPOLINE_TABLE
799 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
800 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
801 sys_symbol_underscore
802 HAVE_LONG_DOUBLE
803 ALLOCA
804 PA64_HPUX_FALSE
805 PA64_HPUX_TRUE
806 PA_HPUX_FALSE
807 PA_HPUX_TRUE
808 PA_LINUX_FALSE
809 PA_LINUX_TRUE
810 SH64_FALSE
811 SH64_TRUE
812 SH_FALSE
813 SH_TRUE
814 X86_64_FALSE
815 X86_64_TRUE
816 S390_FALSE
817 S390_TRUE
818 FRV_FALSE
819 FRV_TRUE
820 LIBFFI_CRIS_FALSE
821 LIBFFI_CRIS_TRUE
822 AVR32_FALSE
823 AVR32_TRUE
824 ARM_FALSE
825 ARM_TRUE
826 POWERPC_FREEBSD_FALSE
827 POWERPC_FREEBSD_TRUE
828 POWERPC_DARWIN_FALSE
829 POWERPC_DARWIN_TRUE
830 POWERPC_AIX_FALSE
831 POWERPC_AIX_TRUE
832 POWERPC_FALSE
833 POWERPC_TRUE
834 MOXIE_FALSE
835 MOXIE_TRUE
836 M68K_FALSE
837 M68K_TRUE
838 M32R_FALSE
839 M32R_TRUE
840 IA64_FALSE
841 IA64_TRUE
842 ALPHA_FALSE
843 ALPHA_TRUE
844 X86_DARWIN_FALSE
845 X86_DARWIN_TRUE
846 X86_WIN64_FALSE
847 X86_WIN64_TRUE
848 X86_WIN32_FALSE
849 X86_WIN32_TRUE
850 X86_FREEBSD_FALSE
851 X86_FREEBSD_TRUE
852 X86_FALSE
853 X86_TRUE
854 SPARC_FALSE
855 SPARC_TRUE
856 MIPS_FALSE
857 MIPS_TRUE
858 AM_LTLDFLAGS
859 AM_RUNTESTFLAGS
860 TESTSUBDIR_FALSE
861 TESTSUBDIR_TRUE
862 MAINT
863 MAINTAINER_MODE_FALSE
864 MAINTAINER_MODE_TRUE
865 CPP
866 OTOOL64
867 OTOOL
868 LIPO
869 NMEDIT
870 DSYMUTIL
871 lt_ECHO
872 RANLIB
873 AR
874 OBJDUMP
875 LN_S
876 NM
877 ac_ct_DUMPBIN
878 DUMPBIN
879 LD
880 FGREP
881 EGREP
882 GREP
883 SED
884 LIBTOOL
885 am__fastdepCCAS_FALSE
886 am__fastdepCCAS_TRUE
887 CCASDEPMODE
888 CCASFLAGS
889 CCAS
890 am__fastdepCC_FALSE
891 am__fastdepCC_TRUE
892 CCDEPMODE
893 AMDEPBACKSLASH
894 AMDEP_FALSE
895 AMDEP_TRUE
896 am__quote
897 am__include
898 DEPDIR
899 OBJEXT
900 EXEEXT
901 ac_ct_CC
902 CPPFLAGS
903 LDFLAGS
904 CFLAGS
905 CC
906 am__untar
907 am__tar
908 AMTAR
909 am__leading_dot
910 SET_MAKE
911 AWK
912 mkdir_p
913 MKDIR_P
914 INSTALL_STRIP_PROGRAM
915 STRIP
916 install_sh
917 MAKEINFO
918 AUTOHEADER
919 AUTOMAKE
920 AUTOCONF
921 ACLOCAL
922 VERSION
923 PACKAGE
924 CYGPATH_W
925 am__isrc
926 INSTALL_DATA
927 INSTALL_SCRIPT
928 INSTALL_PROGRAM
929 target_os
930 target_vendor
931 target_cpu
932 target
933 host_os
934 host_vendor
935 host_cpu
936 host
937 build_os
938 build_vendor
939 build_cpu
940 build
941 target_alias
942 host_alias
943 build_alias
944 LIBS
945 ECHO_T
946 ECHO_N
947 ECHO_C
948 DEFS
949 mandir
950 localedir
951 libdir
952 psdir
953 pdfdir
954 dvidir
955 htmldir
956 infodir
957 docdir
958 oldincludedir
959 includedir
960 localstatedir
961 sharedstatedir
962 sysconfdir
963 datadir
964 datarootdir
965 libexecdir
966 sbindir
967 bindir
968 program_transform_name
969 prefix
970 exec_prefix
971 PACKAGE_BUGREPORT
972 PACKAGE_STRING
973 PACKAGE_VERSION
974 PACKAGE_TARNAME
975 PACKAGE_NAME
976 PATH_SEPARATOR
977 SHELL'
978 ac_subst_files=''
979 ac_user_opts='
980 enable_option_checking
981 enable_dependency_tracking
982 enable_shared
983 enable_static
984 with_pic
985 enable_fast_install
986 with_gnu_ld
987 enable_libtool_lock
988 enable_maintainer_mode
989 enable_debug
990 enable_structs
991 enable_raw_api
992 enable_purify_safety
993 '
994       ac_precious_vars='build_alias
995 host_alias
996 target_alias
997 CCAS
998 CCASFLAGS
999 CPP
1000 CPPFLAGS'
1001
1002
1003 # Initialize some variables set by options.
1004 ac_init_help=
1005 ac_init_version=false
1006 ac_unrecognized_opts=
1007 ac_unrecognized_sep=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file=/dev/null
1011 exec_prefix=NONE
1012 no_create=
1013 no_recursion=
1014 prefix=NONE
1015 program_prefix=NONE
1016 program_suffix=NONE
1017 program_transform_name=s,x,x,
1018 silent=
1019 site=
1020 srcdir=
1021 verbose=
1022 x_includes=NONE
1023 x_libraries=NONE
1024
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir='${exec_prefix}/bin'
1032 sbindir='${exec_prefix}/sbin'
1033 libexecdir='${exec_prefix}/libexec'
1034 datarootdir='${prefix}/share'
1035 datadir='${datarootdir}'
1036 sysconfdir='${prefix}/etc'
1037 sharedstatedir='${prefix}/com'
1038 localstatedir='${prefix}/var'
1039 includedir='${prefix}/include'
1040 oldincludedir='/usr/include'
1041 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042 infodir='${datarootdir}/info'
1043 htmldir='${docdir}'
1044 dvidir='${docdir}'
1045 pdfdir='${docdir}'
1046 psdir='${docdir}'
1047 libdir='${exec_prefix}/lib'
1048 localedir='${datarootdir}/locale'
1049 mandir='${datarootdir}/man'
1050
1051 ac_prev=
1052 ac_dashdash=
1053 for ac_option
1054 do
1055   # If the previous option needs an argument, assign it.
1056   if test -n "$ac_prev"; then
1057     eval $ac_prev=\$ac_option
1058     ac_prev=
1059     continue
1060   fi
1061
1062   case $ac_option in
1063   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064   *)    ac_optarg=yes ;;
1065   esac
1066
1067   # Accept the important Cygnus configure options, so we can diagnose typos.
1068
1069   case $ac_dashdash$ac_option in
1070   --)
1071     ac_dashdash=yes ;;
1072
1073   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074     ac_prev=bindir ;;
1075   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076     bindir=$ac_optarg ;;
1077
1078   -build | --build | --buil | --bui | --bu)
1079     ac_prev=build_alias ;;
1080   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081     build_alias=$ac_optarg ;;
1082
1083   -cache-file | --cache-file | --cache-fil | --cache-fi \
1084   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085     ac_prev=cache_file ;;
1086   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088     cache_file=$ac_optarg ;;
1089
1090   --config-cache | -C)
1091     cache_file=config.cache ;;
1092
1093   -datadir | --datadir | --datadi | --datad)
1094     ac_prev=datadir ;;
1095   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096     datadir=$ac_optarg ;;
1097
1098   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099   | --dataroo | --dataro | --datar)
1100     ac_prev=datarootdir ;;
1101   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103     datarootdir=$ac_optarg ;;
1104
1105   -disable-* | --disable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1110    { (exit 1); exit 1; }; }
1111     ac_useropt_orig=$ac_useropt
1112     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113     case $ac_user_opts in
1114       *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118          ac_unrecognized_sep=', ';;
1119     esac
1120     eval enable_$ac_useropt=no ;;
1121
1122   -docdir | --docdir | --docdi | --doc | --do)
1123     ac_prev=docdir ;;
1124   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125     docdir=$ac_optarg ;;
1126
1127   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128     ac_prev=dvidir ;;
1129   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130     dvidir=$ac_optarg ;;
1131
1132   -enable-* | --enable-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1137    { (exit 1); exit 1; }; }
1138     ac_useropt_orig=$ac_useropt
1139     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140     case $ac_user_opts in
1141       *"
1142 "enable_$ac_useropt"
1143 "*) ;;
1144       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1145          ac_unrecognized_sep=', ';;
1146     esac
1147     eval enable_$ac_useropt=\$ac_optarg ;;
1148
1149   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1150   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1151   | --exec | --exe | --ex)
1152     ac_prev=exec_prefix ;;
1153   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1154   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1155   | --exec=* | --exe=* | --ex=*)
1156     exec_prefix=$ac_optarg ;;
1157
1158   -gas | --gas | --ga | --g)
1159     # Obsolete; use --with-gas.
1160     with_gas=yes ;;
1161
1162   -help | --help | --hel | --he | -h)
1163     ac_init_help=long ;;
1164   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1165     ac_init_help=recursive ;;
1166   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1167     ac_init_help=short ;;
1168
1169   -host | --host | --hos | --ho)
1170     ac_prev=host_alias ;;
1171   -host=* | --host=* | --hos=* | --ho=*)
1172     host_alias=$ac_optarg ;;
1173
1174   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1175     ac_prev=htmldir ;;
1176   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1177   | --ht=*)
1178     htmldir=$ac_optarg ;;
1179
1180   -includedir | --includedir | --includedi | --included | --include \
1181   | --includ | --inclu | --incl | --inc)
1182     ac_prev=includedir ;;
1183   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1184   | --includ=* | --inclu=* | --incl=* | --inc=*)
1185     includedir=$ac_optarg ;;
1186
1187   -infodir | --infodir | --infodi | --infod | --info | --inf)
1188     ac_prev=infodir ;;
1189   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1190     infodir=$ac_optarg ;;
1191
1192   -libdir | --libdir | --libdi | --libd)
1193     ac_prev=libdir ;;
1194   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1195     libdir=$ac_optarg ;;
1196
1197   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1198   | --libexe | --libex | --libe)
1199     ac_prev=libexecdir ;;
1200   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1201   | --libexe=* | --libex=* | --libe=*)
1202     libexecdir=$ac_optarg ;;
1203
1204   -localedir | --localedir | --localedi | --localed | --locale)
1205     ac_prev=localedir ;;
1206   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1207     localedir=$ac_optarg ;;
1208
1209   -localstatedir | --localstatedir | --localstatedi | --localstated \
1210   | --localstate | --localstat | --localsta | --localst | --locals)
1211     ac_prev=localstatedir ;;
1212   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1213   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1214     localstatedir=$ac_optarg ;;
1215
1216   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1217     ac_prev=mandir ;;
1218   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1219     mandir=$ac_optarg ;;
1220
1221   -nfp | --nfp | --nf)
1222     # Obsolete; use --without-fp.
1223     with_fp=no ;;
1224
1225   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1226   | --no-cr | --no-c | -n)
1227     no_create=yes ;;
1228
1229   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231     no_recursion=yes ;;
1232
1233   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1234   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1235   | --oldin | --oldi | --old | --ol | --o)
1236     ac_prev=oldincludedir ;;
1237   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1238   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1239   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1240     oldincludedir=$ac_optarg ;;
1241
1242   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1243     ac_prev=prefix ;;
1244   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1245     prefix=$ac_optarg ;;
1246
1247   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1248   | --program-pre | --program-pr | --program-p)
1249     ac_prev=program_prefix ;;
1250   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1251   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1252     program_prefix=$ac_optarg ;;
1253
1254   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1255   | --program-suf | --program-su | --program-s)
1256     ac_prev=program_suffix ;;
1257   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1258   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1259     program_suffix=$ac_optarg ;;
1260
1261   -program-transform-name | --program-transform-name \
1262   | --program-transform-nam | --program-transform-na \
1263   | --program-transform-n | --program-transform- \
1264   | --program-transform | --program-transfor \
1265   | --program-transfo | --program-transf \
1266   | --program-trans | --program-tran \
1267   | --progr-tra | --program-tr | --program-t)
1268     ac_prev=program_transform_name ;;
1269   -program-transform-name=* | --program-transform-name=* \
1270   | --program-transform-nam=* | --program-transform-na=* \
1271   | --program-transform-n=* | --program-transform-=* \
1272   | --program-transform=* | --program-transfor=* \
1273   | --program-transfo=* | --program-transf=* \
1274   | --program-trans=* | --program-tran=* \
1275   | --progr-tra=* | --program-tr=* | --program-t=*)
1276     program_transform_name=$ac_optarg ;;
1277
1278   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1279     ac_prev=pdfdir ;;
1280   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1281     pdfdir=$ac_optarg ;;
1282
1283   -psdir | --psdir | --psdi | --psd | --ps)
1284     ac_prev=psdir ;;
1285   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286     psdir=$ac_optarg ;;
1287
1288   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289   | -silent | --silent | --silen | --sile | --sil)
1290     silent=yes ;;
1291
1292   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293     ac_prev=sbindir ;;
1294   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295   | --sbi=* | --sb=*)
1296     sbindir=$ac_optarg ;;
1297
1298   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300   | --sharedst | --shareds | --shared | --share | --shar \
1301   | --sha | --sh)
1302     ac_prev=sharedstatedir ;;
1303   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306   | --sha=* | --sh=*)
1307     sharedstatedir=$ac_optarg ;;
1308
1309   -site | --site | --sit)
1310     ac_prev=site ;;
1311   -site=* | --site=* | --sit=*)
1312     site=$ac_optarg ;;
1313
1314   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315     ac_prev=srcdir ;;
1316   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317     srcdir=$ac_optarg ;;
1318
1319   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320   | --syscon | --sysco | --sysc | --sys | --sy)
1321     ac_prev=sysconfdir ;;
1322   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324     sysconfdir=$ac_optarg ;;
1325
1326   -target | --target | --targe | --targ | --tar | --ta | --t)
1327     ac_prev=target_alias ;;
1328   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329     target_alias=$ac_optarg ;;
1330
1331   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332     verbose=yes ;;
1333
1334   -version | --version | --versio | --versi | --vers | -V)
1335     ac_init_version=: ;;
1336
1337   -with-* | --with-*)
1338     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339     # Reject names that are not valid shell variable names.
1340     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1342    { (exit 1); exit 1; }; }
1343     ac_useropt_orig=$ac_useropt
1344     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345     case $ac_user_opts in
1346       *"
1347 "with_$ac_useropt"
1348 "*) ;;
1349       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350          ac_unrecognized_sep=', ';;
1351     esac
1352     eval with_$ac_useropt=\$ac_optarg ;;
1353
1354   -without-* | --without-*)
1355     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356     # Reject names that are not valid shell variable names.
1357     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1359    { (exit 1); exit 1; }; }
1360     ac_useropt_orig=$ac_useropt
1361     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362     case $ac_user_opts in
1363       *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367          ac_unrecognized_sep=', ';;
1368     esac
1369     eval with_$ac_useropt=no ;;
1370
1371   --x)
1372     # Obsolete; use --with-x.
1373     with_x=yes ;;
1374
1375   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1376   | --x-incl | --x-inc | --x-in | --x-i)
1377     ac_prev=x_includes ;;
1378   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1379   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1380     x_includes=$ac_optarg ;;
1381
1382   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1383   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1384     ac_prev=x_libraries ;;
1385   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1386   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1387     x_libraries=$ac_optarg ;;
1388
1389   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1390 Try \`$0 --help' for more information." >&2
1391    { (exit 1); exit 1; }; }
1392     ;;
1393
1394   *=*)
1395     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396     # Reject names that are not valid shell variable names.
1397     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1398       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1399    { (exit 1); exit 1; }; }
1400     eval $ac_envvar=\$ac_optarg
1401     export $ac_envvar ;;
1402
1403   *)
1404     # FIXME: should be removed in autoconf 3.0.
1405     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1409     ;;
1410
1411   esac
1412 done
1413
1414 if test -n "$ac_prev"; then
1415   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1416   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1417    { (exit 1); exit 1; }; }
1418 fi
1419
1420 if test -n "$ac_unrecognized_opts"; then
1421   case $enable_option_checking in
1422     no) ;;
1423     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1424    { (exit 1); exit 1; }; } ;;
1425     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426   esac
1427 fi
1428
1429 # Check all directory arguments for consistency.
1430 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431                 datadir sysconfdir sharedstatedir localstatedir includedir \
1432                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433                 libdir localedir mandir
1434 do
1435   eval ac_val=\$$ac_var
1436   # Remove trailing slashes.
1437   case $ac_val in
1438     */ )
1439       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440       eval $ac_var=\$ac_val;;
1441   esac
1442   # Be sure to have absolute directory names.
1443   case $ac_val in
1444     [\\/$]* | ?:[\\/]* )  continue;;
1445     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446   esac
1447   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1448    { (exit 1); exit 1; }; }
1449 done
1450
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1454 build=$build_alias
1455 host=$host_alias
1456 target=$target_alias
1457
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460   if test "x$build_alias" = x; then
1461     cross_compiling=maybe
1462     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1463     If a cross compiler is detected then cross compile mode will be used." >&2
1464   elif test "x$build_alias" != "x$host_alias"; then
1465     cross_compiling=yes
1466   fi
1467 fi
1468
1469 ac_tool_prefix=
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471
1472 test "$silent" = yes && exec 6>/dev/null
1473
1474
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1479    { (exit 1); exit 1; }; }
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1482    { (exit 1); exit 1; }; }
1483
1484
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487   ac_srcdir_defaulted=yes
1488   # Try the directory containing this script, then the parent directory.
1489   ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491          X"$as_myself" : 'X\(//\)[^/]' \| \
1492          X"$as_myself" : 'X\(//\)$' \| \
1493          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)[^/].*/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)$/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\).*/{
1508             s//\1/
1509             q
1510           }
1511           s/.*/./; q'`
1512   srcdir=$ac_confdir
1513   if test ! -r "$srcdir/$ac_unique_file"; then
1514     srcdir=..
1515   fi
1516 else
1517   ac_srcdir_defaulted=no
1518 fi
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1522    { (exit 1); exit 1; }; }
1523 fi
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 ac_abs_confdir=`(
1526         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1527    { (exit 1); exit 1; }; }
1528         pwd)`
1529 # When building in place, set srcdir=.
1530 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531   srcdir=.
1532 fi
1533 # Remove unnecessary trailing slashes from srcdir.
1534 # Double slashes in file names in object file debugging info
1535 # mess up M-x gdb in Emacs.
1536 case $srcdir in
1537 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1538 esac
1539 for ac_var in $ac_precious_vars; do
1540   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541   eval ac_env_${ac_var}_value=\$${ac_var}
1542   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 done
1545
1546 #
1547 # Report the --help message.
1548 #
1549 if test "$ac_init_help" = "long"; then
1550   # Omit some internal or obsolete options to make the list less imposing.
1551   # This message is too long to be a string in the A/UX 3.1 sh.
1552   cat <<_ACEOF
1553 \`configure' configures libffi 3.0.10rc3 to adapt to many kinds of systems.
1554
1555 Usage: $0 [OPTION]... [VAR=VALUE]...
1556
1557 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558 VAR=VALUE.  See below for descriptions of some of the useful variables.
1559
1560 Defaults for the options are specified in brackets.
1561
1562 Configuration:
1563   -h, --help              display this help and exit
1564       --help=short        display options specific to this package
1565       --help=recursive    display the short help of all the included packages
1566   -V, --version           display version information and exit
1567   -q, --quiet, --silent   do not print \`checking...' messages
1568       --cache-file=FILE   cache test results in FILE [disabled]
1569   -C, --config-cache      alias for \`--cache-file=config.cache'
1570   -n, --no-create         do not create output files
1571       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1572
1573 Installation directories:
1574   --prefix=PREFIX         install architecture-independent files in PREFIX
1575                           [$ac_default_prefix]
1576   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1577                           [PREFIX]
1578
1579 By default, \`make install' will install all the files in
1580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1582 for instance \`--prefix=\$HOME'.
1583
1584 For better control, use the options below.
1585
1586 Fine tuning of the installation directories:
1587   --bindir=DIR            user executables [EPREFIX/bin]
1588   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1589   --libexecdir=DIR        program executables [EPREFIX/libexec]
1590   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1591   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1592   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1593   --libdir=DIR            object code libraries [EPREFIX/lib]
1594   --includedir=DIR        C header files [PREFIX/include]
1595   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1596   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1597   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1598   --infodir=DIR           info documentation [DATAROOTDIR/info]
1599   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1600   --mandir=DIR            man documentation [DATAROOTDIR/man]
1601   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1602   --htmldir=DIR           html documentation [DOCDIR]
1603   --dvidir=DIR            dvi documentation [DOCDIR]
1604   --pdfdir=DIR            pdf documentation [DOCDIR]
1605   --psdir=DIR             ps documentation [DOCDIR]
1606 _ACEOF
1607
1608   cat <<\_ACEOF
1609
1610 Program names:
1611   --program-prefix=PREFIX            prepend PREFIX to installed program names
1612   --program-suffix=SUFFIX            append SUFFIX to installed program names
1613   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1614
1615 System types:
1616   --build=BUILD     configure for building on BUILD [guessed]
1617   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1618   --target=TARGET   configure for building compilers for TARGET [HOST]
1619 _ACEOF
1620 fi
1621
1622 if test -n "$ac_init_help"; then
1623   case $ac_init_help in
1624      short | recursive ) echo "Configuration of libffi 3.0.10rc3:";;
1625    esac
1626   cat <<\_ACEOF
1627
1628 Optional Features:
1629   --disable-option-checking  ignore unrecognized --enable/--with options
1630   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1631   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1632   --disable-dependency-tracking  speeds up one-time build
1633   --enable-dependency-tracking   do not reject slow dependency extractors
1634   --enable-shared[=PKGS]  build shared libraries [default=yes]
1635   --enable-static[=PKGS]  build static libraries [default=yes]
1636   --enable-fast-install[=PKGS]
1637                           optimize for fast installation [default=yes]
1638   --disable-libtool-lock  avoid locking (might break parallel builds)
1639   --enable-maintainer-mode  enable make rules and dependencies not useful
1640                           (and sometimes confusing) to the casual installer
1641   --enable-debug          debugging mode
1642   --disable-structs       omit code for struct support
1643   --disable-raw-api       make the raw api unavailable
1644   --enable-purify-safety  purify-safe mode
1645
1646 Optional Packages:
1647   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1648   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1649   --with-pic              try to use only PIC/non-PIC objects [default=use
1650                           both]
1651   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1652
1653 Some influential environment variables:
1654   CC          C compiler command
1655   CFLAGS      C compiler flags
1656   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1657               nonstandard directory <lib dir>
1658   LIBS        libraries to pass to the linker, e.g. -l<library>
1659   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660               you have headers in a nonstandard directory <include dir>
1661   CCAS        assembler compiler command (defaults to CC)
1662   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1663   CPP         C preprocessor
1664
1665 Use these variables to override the choices made by `configure' or to help
1666 it to find libraries and programs with nonstandard names/locations.
1667
1668 Report bugs to <http://sourceware.org/libffi.html>.
1669 _ACEOF
1670 ac_status=$?
1671 fi
1672
1673 if test "$ac_init_help" = "recursive"; then
1674   # If there are subdirs, report their specific --help.
1675   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1676     test -d "$ac_dir" ||
1677       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1678       continue
1679     ac_builddir=.
1680
1681 case "$ac_dir" in
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 *)
1684   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1685   # A ".." for each directory in $ac_dir_suffix.
1686   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1687   case $ac_top_builddir_sub in
1688   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690   esac ;;
1691 esac
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1696
1697 case $srcdir in
1698   .)  # We are building in place.
1699     ac_srcdir=.
1700     ac_top_srcdir=$ac_top_builddir_sub
1701     ac_abs_top_srcdir=$ac_pwd ;;
1702   [\\/]* | ?:[\\/]* )  # Absolute name.
1703     ac_srcdir=$srcdir$ac_dir_suffix;
1704     ac_top_srcdir=$srcdir
1705     ac_abs_top_srcdir=$srcdir ;;
1706   *) # Relative name.
1707     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708     ac_top_srcdir=$ac_top_build_prefix$srcdir
1709     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1710 esac
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712
1713     cd "$ac_dir" || { ac_status=$?; continue; }
1714     # Check for guested configure.
1715     if test -f "$ac_srcdir/configure.gnu"; then
1716       echo &&
1717       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718     elif test -f "$ac_srcdir/configure"; then
1719       echo &&
1720       $SHELL "$ac_srcdir/configure" --help=recursive
1721     else
1722       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1723     fi || ac_status=$?
1724     cd "$ac_pwd" || { ac_status=$?; break; }
1725   done
1726 fi
1727
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1730   cat <<\_ACEOF
1731 libffi configure 3.0.10rc3
1732 generated by GNU Autoconf 2.63
1733
1734 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1735 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1736 This configure script is free software; the Free Software Foundation
1737 gives unlimited permission to copy, distribute and modify it.
1738 _ACEOF
1739   exit
1740 fi
1741 cat >config.log <<_ACEOF
1742 This file contains any messages produced by compilers while
1743 running configure, to aid debugging if configure makes a mistake.
1744
1745 It was created by libffi $as_me 3.0.10rc3, which was
1746 generated by GNU Autoconf 2.63.  Invocation command line was
1747
1748   $ $0 $@
1749
1750 _ACEOF
1751 exec 5>>config.log
1752 {
1753 cat <<_ASUNAME
1754 ## --------- ##
1755 ## Platform. ##
1756 ## --------- ##
1757
1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763
1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1766
1767 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1768 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1771 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1772 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1773 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1774
1775 _ASUNAME
1776
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780   IFS=$as_save_IFS
1781   test -z "$as_dir" && as_dir=.
1782   $as_echo "PATH: $as_dir"
1783 done
1784 IFS=$as_save_IFS
1785
1786 } >&5
1787
1788 cat >&5 <<_ACEOF
1789
1790
1791 ## ----------- ##
1792 ## Core tests. ##
1793 ## ----------- ##
1794
1795 _ACEOF
1796
1797
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1803 ac_configure_args=
1804 ac_configure_args0=
1805 ac_configure_args1=
1806 ac_must_keep_next=false
1807 for ac_pass in 1 2
1808 do
1809   for ac_arg
1810   do
1811     case $ac_arg in
1812     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814     | -silent | --silent | --silen | --sile | --sil)
1815       continue ;;
1816     *\'*)
1817       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818     esac
1819     case $ac_pass in
1820     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1821     2)
1822       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1823       if test $ac_must_keep_next = true; then
1824         ac_must_keep_next=false # Got value, back to normal.
1825       else
1826         case $ac_arg in
1827           *=* | --config-cache | -C | -disable-* | --disable-* \
1828           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830           | -with-* | --with-* | -without-* | --without-* | --x)
1831             case "$ac_configure_args0 " in
1832               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833             esac
1834             ;;
1835           -* ) ac_must_keep_next=true ;;
1836         esac
1837       fi
1838       ac_configure_args="$ac_configure_args '$ac_arg'"
1839       ;;
1840     esac
1841   done
1842 done
1843 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1844 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1845
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log.  We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852   # Save into config.log some information that might help in debugging.
1853   {
1854     echo
1855
1856     cat <<\_ASBOX
1857 ## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##
1860 _ASBOX
1861     echo
1862     # The following way of writing the cache mishandles newlines in values,
1863 (
1864   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865     eval ac_val=\$$ac_var
1866     case $ac_val in #(
1867     *${as_nl}*)
1868       case $ac_var in #(
1869       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1870 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1871       esac
1872       case $ac_var in #(
1873       _ | IFS | as_nl) ;; #(
1874       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875       *) $as_unset $ac_var ;;
1876       esac ;;
1877     esac
1878   done
1879   (set) 2>&1 |
1880     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881     *${as_nl}ac_space=\ *)
1882       sed -n \
1883         "s/'\''/'\''\\\\'\'''\''/g;
1884           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885       ;; #(
1886     *)
1887       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888       ;;
1889     esac |
1890     sort
1891 )
1892     echo
1893
1894     cat <<\_ASBOX
1895 ## ----------------- ##
1896 ## Output variables. ##
1897 ## ----------------- ##
1898 _ASBOX
1899     echo
1900     for ac_var in $ac_subst_vars
1901     do
1902       eval ac_val=\$$ac_var
1903       case $ac_val in
1904       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905       esac
1906       $as_echo "$ac_var='\''$ac_val'\''"
1907     done | sort
1908     echo
1909
1910     if test -n "$ac_subst_files"; then
1911       cat <<\_ASBOX
1912 ## ------------------- ##
1913 ## File substitutions. ##
1914 ## ------------------- ##
1915 _ASBOX
1916       echo
1917       for ac_var in $ac_subst_files
1918       do
1919         eval ac_val=\$$ac_var
1920         case $ac_val in
1921         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1922         esac
1923         $as_echo "$ac_var='\''$ac_val'\''"
1924       done | sort
1925       echo
1926     fi
1927
1928     if test -s confdefs.h; then
1929       cat <<\_ASBOX
1930 ## ----------- ##
1931 ## confdefs.h. ##
1932 ## ----------- ##
1933 _ASBOX
1934       echo
1935       cat confdefs.h
1936       echo
1937     fi
1938     test "$ac_signal" != 0 &&
1939       $as_echo "$as_me: caught signal $ac_signal"
1940     $as_echo "$as_me: exit $exit_status"
1941   } >&5
1942   rm -f core *.core core.conftest.* &&
1943     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1944     exit $exit_status
1945 ' 0
1946 for ac_signal in 1 2 13 15; do
1947   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1948 done
1949 ac_signal=0
1950
1951 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1952 rm -f -r conftest* confdefs.h
1953
1954 # Predefined preprocessor variables.
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_NAME "$PACKAGE_NAME"
1958 _ACEOF
1959
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1963 _ACEOF
1964
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1968 _ACEOF
1969
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_STRING "$PACKAGE_STRING"
1973 _ACEOF
1974
1975
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1978 _ACEOF
1979
1980
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1983 ac_site_file1=NONE
1984 ac_site_file2=NONE
1985 if test -n "$CONFIG_SITE"; then
1986   ac_site_file1=$CONFIG_SITE
1987 elif test "x$prefix" != xNONE; then
1988   ac_site_file1=$prefix/share/config.site
1989   ac_site_file2=$prefix/etc/config.site
1990 else
1991   ac_site_file1=$ac_default_prefix/share/config.site
1992   ac_site_file2=$ac_default_prefix/etc/config.site
1993 fi
1994 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1995 do
1996   test "x$ac_site_file" = xNONE && continue
1997   if test -r "$ac_site_file"; then
1998     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1999 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2000     sed 's/^/| /' "$ac_site_file" >&5
2001     . "$ac_site_file"
2002   fi
2003 done
2004
2005 if test -r "$cache_file"; then
2006   # Some versions of bash will fail to source /dev/null (special
2007   # files actually), so we avoid doing that.
2008   if test -f "$cache_file"; then
2009     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2010 $as_echo "$as_me: loading cache $cache_file" >&6;}
2011     case $cache_file in
2012       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013       *)                      . "./$cache_file";;
2014     esac
2015   fi
2016 else
2017   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2018 $as_echo "$as_me: creating cache $cache_file" >&6;}
2019   >$cache_file
2020 fi
2021
2022 # Check that the precious variables saved in the cache have kept the same
2023 # value.
2024 ac_cache_corrupted=false
2025 for ac_var in $ac_precious_vars; do
2026   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027   eval ac_new_set=\$ac_env_${ac_var}_set
2028   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029   eval ac_new_val=\$ac_env_${ac_var}_value
2030   case $ac_old_set,$ac_new_set in
2031     set,)
2032       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2034       ac_cache_corrupted=: ;;
2035     ,set)
2036       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2038       ac_cache_corrupted=: ;;
2039     ,);;
2040     *)
2041       if test "x$ac_old_val" != "x$ac_new_val"; then
2042         # differences in whitespace do not lead to failure.
2043         ac_old_val_w=`echo x $ac_old_val`
2044         ac_new_val_w=`echo x $ac_new_val`
2045         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048           ac_cache_corrupted=:
2049         else
2050           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052           eval $ac_var=\$ac_old_val
2053         fi
2054         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2055 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2056         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2057 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2058       fi;;
2059   esac
2060   # Pass precious variables to config.status.
2061   if test "$ac_new_set" = set; then
2062     case $ac_new_val in
2063     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2064     *) ac_arg=$ac_var=$ac_new_val ;;
2065     esac
2066     case " $ac_configure_args " in
2067       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2068       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2069     esac
2070   fi
2071 done
2072 if $ac_cache_corrupted; then
2073   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2078 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2079    { (exit 1); exit 1; }; }
2080 fi
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113 ac_config_headers="$ac_config_headers fficonfig.h"
2114
2115
2116 ac_aux_dir=
2117 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2118   if test -f "$ac_dir/install-sh"; then
2119     ac_aux_dir=$ac_dir
2120     ac_install_sh="$ac_aux_dir/install-sh -c"
2121     break
2122   elif test -f "$ac_dir/install.sh"; then
2123     ac_aux_dir=$ac_dir
2124     ac_install_sh="$ac_aux_dir/install.sh -c"
2125     break
2126   elif test -f "$ac_dir/shtool"; then
2127     ac_aux_dir=$ac_dir
2128     ac_install_sh="$ac_aux_dir/shtool install -c"
2129     break
2130   fi
2131 done
2132 if test -z "$ac_aux_dir"; then
2133   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2134 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2135    { (exit 1); exit 1; }; }
2136 fi
2137
2138 # These three variables are undocumented and unsupported,
2139 # and are intended to be withdrawn in a future Autoconf release.
2140 # They can cause serious problems if a builder's source tree is in a directory
2141 # whose full name contains unusual characters.
2142 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2143 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2144 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2145
2146
2147 # Make sure we can run config.sub.
2148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2149   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2150 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2151    { (exit 1); exit 1; }; }
2152
2153 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2154 $as_echo_n "checking build system type... " >&6; }
2155 if test "${ac_cv_build+set}" = set; then
2156   $as_echo_n "(cached) " >&6
2157 else
2158   ac_build_alias=$build_alias
2159 test "x$ac_build_alias" = x &&
2160   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2161 test "x$ac_build_alias" = x &&
2162   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164    { (exit 1); exit 1; }; }
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2168    { (exit 1); exit 1; }; }
2169
2170 fi
2171 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172 $as_echo "$ac_cv_build" >&6; }
2173 case $ac_cv_build in
2174 *-*-*) ;;
2175 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2176 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2177    { (exit 1); exit 1; }; };;
2178 esac
2179 build=$ac_cv_build
2180 ac_save_IFS=$IFS; IFS='-'
2181 set x $ac_cv_build
2182 shift
2183 build_cpu=$1
2184 build_vendor=$2
2185 shift; shift
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2188 build_os=$*
2189 IFS=$ac_save_IFS
2190 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2191
2192
2193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2194 $as_echo_n "checking host system type... " >&6; }
2195 if test "${ac_cv_host+set}" = set; then
2196   $as_echo_n "(cached) " >&6
2197 else
2198   if test "x$host_alias" = x; then
2199   ac_cv_host=$ac_cv_build
2200 else
2201   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2202     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2204    { (exit 1); exit 1; }; }
2205 fi
2206
2207 fi
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209 $as_echo "$ac_cv_host" >&6; }
2210 case $ac_cv_host in
2211 *-*-*) ;;
2212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2214    { (exit 1); exit 1; }; };;
2215 esac
2216 host=$ac_cv_host
2217 ac_save_IFS=$IFS; IFS='-'
2218 set x $ac_cv_host
2219 shift
2220 host_cpu=$1
2221 host_vendor=$2
2222 shift; shift
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2225 host_os=$*
2226 IFS=$ac_save_IFS
2227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2228
2229
2230 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2231 $as_echo_n "checking target system type... " >&6; }
2232 if test "${ac_cv_target+set}" = set; then
2233   $as_echo_n "(cached) " >&6
2234 else
2235   if test "x$target_alias" = x; then
2236   ac_cv_target=$ac_cv_host
2237 else
2238   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2239     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2240 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2241    { (exit 1); exit 1; }; }
2242 fi
2243
2244 fi
2245 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2248 *-*-*) ;;
2249 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2250 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2251    { (exit 1); exit 1; }; };;
2252 esac
2253 target=$ac_cv_target
2254 ac_save_IFS=$IFS; IFS='-'
2255 set x $ac_cv_target
2256 shift
2257 target_cpu=$1
2258 target_vendor=$2
2259 shift; shift
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2262 target_os=$*
2263 IFS=$ac_save_IFS
2264 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2265
2266
2267 # The aliases save the names the user supplied, while $host etc.
2268 # will get canonicalized.
2269 test -n "$target_alias" &&
2270   test "$program_prefix$program_suffix$program_transform_name" = \
2271     NONENONEs,x,x, &&
2272   program_prefix=${target_alias}-
2273 target_alias=${target_alias-$host_alias}
2274
2275 . ${srcdir}/configure.host
2276
2277 am__api_version='1.11'
2278
2279 # Find a good install program.  We prefer a C program (faster),
2280 # so one script is as good as another.  But avoid the broken or
2281 # incompatible versions:
2282 # SysV /etc/install, /usr/sbin/install
2283 # SunOS /usr/etc/install
2284 # IRIX /sbin/install
2285 # AIX /bin/install
2286 # AmigaOS /C/install, which installs bootblocks on floppy discs
2287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2290 # OS/2's system install, which has a completely different semantic
2291 # ./install, which can be erroneously created by make from ./install.sh.
2292 # Reject install programs that cannot install multiple files.
2293 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2294 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2295 if test -z "$INSTALL"; then
2296 if test "${ac_cv_path_install+set}" = set; then
2297   $as_echo_n "(cached) " >&6
2298 else
2299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2301 do
2302   IFS=$as_save_IFS
2303   test -z "$as_dir" && as_dir=.
2304   # Account for people who put trailing slashes in PATH elements.
2305 case $as_dir/ in
2306   ./ | .// | /cC/* | \
2307   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2308   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2309   /usr/ucb/* ) ;;
2310   *)
2311     # OSF1 and SCO ODT 3.0 have their own names for install.
2312     # Don't use installbsd from OSF since it installs stuff as root
2313     # by default.
2314     for ac_prog in ginstall scoinst install; do
2315       for ac_exec_ext in '' $ac_executable_extensions; do
2316         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2317           if test $ac_prog = install &&
2318             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319             # AIX install.  It has an incompatible calling convention.
2320             :
2321           elif test $ac_prog = install &&
2322             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323             # program-specific install script used by HP pwplus--don't use.
2324             :
2325           else
2326             rm -rf conftest.one conftest.two conftest.dir
2327             echo one > conftest.one
2328             echo two > conftest.two
2329             mkdir conftest.dir
2330             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2331               test -s conftest.one && test -s conftest.two &&
2332               test -s conftest.dir/conftest.one &&
2333               test -s conftest.dir/conftest.two
2334             then
2335               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2336               break 3
2337             fi
2338           fi
2339         fi
2340       done
2341     done
2342     ;;
2343 esac
2344
2345 done
2346 IFS=$as_save_IFS
2347
2348 rm -rf conftest.one conftest.two conftest.dir
2349
2350 fi
2351   if test "${ac_cv_path_install+set}" = set; then
2352     INSTALL=$ac_cv_path_install
2353   else
2354     # As a last resort, use the slow shell script.  Don't cache a
2355     # value for INSTALL within a source directory, because that will
2356     # break other packages using the cache if that directory is
2357     # removed, or if the value is a relative name.
2358     INSTALL=$ac_install_sh
2359   fi
2360 fi
2361 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2362 $as_echo "$INSTALL" >&6; }
2363
2364 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2365 # It thinks the first close brace ends the variable substitution.
2366 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367
2368 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369
2370 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371
2372 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2373 $as_echo_n "checking whether build environment is sane... " >&6; }
2374 # Just in case
2375 sleep 1
2376 echo timestamp > conftest.file
2377 # Reject unsafe characters in $srcdir or the absolute working directory
2378 # name.  Accept space and tab only in the latter.
2379 am_lf='
2380 '
2381 case `pwd` in
2382   *[\\\"\#\$\&\'\`$am_lf]*)
2383     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2384 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2385    { (exit 1); exit 1; }; };;
2386 esac
2387 case $srcdir in
2388   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2389     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2390 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2391    { (exit 1); exit 1; }; };;
2392 esac
2393
2394 # Do `set' in a subshell so we don't clobber the current shell's
2395 # arguments.  Must try -L first in case configure is actually a
2396 # symlink; some systems play weird games with the mod time of symlinks
2397 # (eg FreeBSD returns the mod time of the symlink's containing
2398 # directory).
2399 if (
2400    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2401    if test "$*" = "X"; then
2402       # -L didn't work.
2403       set X `ls -t "$srcdir/configure" conftest.file`
2404    fi
2405    rm -f conftest.file
2406    if test "$*" != "X $srcdir/configure conftest.file" \
2407       && test "$*" != "X conftest.file $srcdir/configure"; then
2408
2409       # If neither matched, then we have a broken ls.  This can happen
2410       # if, for instance, CONFIG_SHELL is bash and it inherits a
2411       # broken ls alias from the environment.  This has actually
2412       # happened.  Such a system could not be considered "sane".
2413       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2414 alias in your environment" >&5
2415 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2416 alias in your environment" >&2;}
2417    { (exit 1); exit 1; }; }
2418    fi
2419
2420    test "$2" = conftest.file
2421    )
2422 then
2423    # Ok.
2424    :
2425 else
2426    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2427 Check your system clock" >&5
2428 $as_echo "$as_me: error: newly created file is older than distributed files!
2429 Check your system clock" >&2;}
2430    { (exit 1); exit 1; }; }
2431 fi
2432 { $as_echo "$as_me:$LINENO: result: yes" >&5
2433 $as_echo "yes" >&6; }
2434 test "$program_prefix" != NONE &&
2435   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2436 # Use a double $ so make ignores it.
2437 test "$program_suffix" != NONE &&
2438   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2439 # Double any \ or $.
2440 # By default was `s,x,x', remove it if useless.
2441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2443
2444 # expand $ac_aux_dir to an absolute path
2445 am_aux_dir=`cd $ac_aux_dir && pwd`
2446
2447 if test x"${MISSING+set}" != xset; then
2448   case $am_aux_dir in
2449   *\ * | *\     *)
2450     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2451   *)
2452     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2453   esac
2454 fi
2455 # Use eval to expand $SHELL
2456 if eval "$MISSING --run true"; then
2457   am_missing_run="$MISSING --run "
2458 else
2459   am_missing_run=
2460   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 fi
2463
2464 if test x"${install_sh}" != xset; then
2465   case $am_aux_dir in
2466   *\ * | *\     *)
2467     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2468   *)
2469     install_sh="\${SHELL} $am_aux_dir/install-sh"
2470   esac
2471 fi
2472
2473 # Installed binaries are usually stripped using `strip' when the user
2474 # run `make install-strip'.  However `strip' might not be the right
2475 # tool to use in cross-compilation environments, therefore Automake
2476 # will honor the `STRIP' environment variable to overrule this program.
2477 if test "$cross_compiling" != no; then
2478   if test -n "$ac_tool_prefix"; then
2479   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}strip; ac_word=$2
2481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if test "${ac_cv_prog_STRIP+set}" = set; then
2484   $as_echo_n "(cached) " >&6
2485 else
2486   if test -n "$STRIP"; then
2487   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 STRIP=$ac_cv_prog_STRIP
2507 if test -n "$STRIP"; then
2508   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2509 $as_echo "$STRIP" >&6; }
2510 else
2511   { $as_echo "$as_me:$LINENO: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515
2516 fi
2517 if test -z "$ac_cv_prog_STRIP"; then
2518   ac_ct_STRIP=$STRIP
2519   # Extract the first word of "strip", so it can be a program name with args.
2520 set dummy strip; ac_word=$2
2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2524   $as_echo_n "(cached) " >&6
2525 else
2526   if test -n "$ac_ct_STRIP"; then
2527   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532   IFS=$as_save_IFS
2533   test -z "$as_dir" && as_dir=.
2534   for ac_exec_ext in '' $ac_executable_extensions; do
2535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536     ac_cv_prog_ac_ct_STRIP="strip"
2537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538     break 2
2539   fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2547 if test -n "$ac_ct_STRIP"; then
2548   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2549 $as_echo "$ac_ct_STRIP" >&6; }
2550 else
2551   { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555   if test "x$ac_ct_STRIP" = x; then
2556     STRIP=":"
2557   else
2558     case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564     STRIP=$ac_ct_STRIP
2565   fi
2566 else
2567   STRIP="$ac_cv_prog_STRIP"
2568 fi
2569
2570 fi
2571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2572
2573 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2575 if test -z "$MKDIR_P"; then
2576   if test "${ac_cv_path_mkdir+set}" = set; then
2577   $as_echo_n "(cached) " >&6
2578 else
2579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_prog in mkdir gmkdir; do
2585          for ac_exec_ext in '' $ac_executable_extensions; do
2586            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2587            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2588              'mkdir (GNU coreutils) '* | \
2589              'mkdir (coreutils) '* | \
2590              'mkdir (fileutils) '4.1*)
2591                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2592                break 3;;
2593            esac
2594          done
2595        done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600
2601   if test "${ac_cv_path_mkdir+set}" = set; then
2602     MKDIR_P="$ac_cv_path_mkdir -p"
2603   else
2604     # As a last resort, use the slow shell script.  Don't cache a
2605     # value for MKDIR_P within a source directory, because that will
2606     # break other packages using the cache if that directory is
2607     # removed, or if the value is a relative name.
2608     test -d ./--version && rmdir ./--version
2609     MKDIR_P="$ac_install_sh -d"
2610   fi
2611 fi
2612 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2613 $as_echo "$MKDIR_P" >&6; }
2614
2615 mkdir_p="$MKDIR_P"
2616 case $mkdir_p in
2617   [\\/$]* | ?:[\\/]*) ;;
2618   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2619 esac
2620
2621 for ac_prog in gawk mawk nawk awk
2622 do
2623   # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_AWK+set}" = set; then
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test -n "$AWK"; then
2631   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_AWK="$ac_prog"
2641     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 AWK=$ac_cv_prog_AWK
2651 if test -n "$AWK"; then
2652   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2653 $as_echo "$AWK" >&6; }
2654 else
2655   { $as_echo "$as_me:$LINENO: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660   test -n "$AWK" && break
2661 done
2662
2663 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2665 set x ${MAKE-make}
2666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2668   $as_echo_n "(cached) " >&6
2669 else
2670   cat >conftest.make <<\_ACEOF
2671 SHELL = /bin/sh
2672 all:
2673         @echo '@@@%%%=$(MAKE)=@@@%%%'
2674 _ACEOF
2675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2677   *@@@%%%=?*=@@@%%%*)
2678     eval ac_cv_prog_make_${ac_make}_set=yes;;
2679   *)
2680     eval ac_cv_prog_make_${ac_make}_set=no;;
2681 esac
2682 rm -f conftest.make
2683 fi
2684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2685   { $as_echo "$as_me:$LINENO: result: yes" >&5
2686 $as_echo "yes" >&6; }
2687   SET_MAKE=
2688 else
2689   { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691   SET_MAKE="MAKE=${MAKE-make}"
2692 fi
2693
2694 rm -rf .tst 2>/dev/null
2695 mkdir .tst 2>/dev/null
2696 if test -d .tst; then
2697   am__leading_dot=.
2698 else
2699   am__leading_dot=_
2700 fi
2701 rmdir .tst 2>/dev/null
2702
2703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2704   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2705   # is not polluted with repeated "-I."
2706   am__isrc=' -I$(srcdir)'
2707   # test to see if srcdir already configured
2708   if test -f $srcdir/config.status; then
2709     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2710 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2711    { (exit 1); exit 1; }; }
2712   fi
2713 fi
2714
2715 # test whether we have cygpath
2716 if test -z "$CYGPATH_W"; then
2717   if (cygpath --version) >/dev/null 2>/dev/null; then
2718     CYGPATH_W='cygpath -w'
2719   else
2720     CYGPATH_W=echo
2721   fi
2722 fi
2723
2724
2725 # Define the identity of the package.
2726  PACKAGE='libffi'
2727  VERSION='3.0.10rc3'
2728
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE "$PACKAGE"
2732 _ACEOF
2733
2734
2735 cat >>confdefs.h <<_ACEOF
2736 #define VERSION "$VERSION"
2737 _ACEOF
2738
2739 # Some tools Automake needs.
2740
2741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2742
2743
2744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2745
2746
2747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2748
2749
2750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2751
2752
2753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2754
2755 # We need awk for the "check" target.  The system "awk" is bad on
2756 # some platforms.
2757 # Always define AMTAR for backward compatibility.
2758
2759 AMTAR=${AMTAR-"${am_missing_run}tar"}
2760
2761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2762
2763
2764
2765
2766
2767
2768 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2769 # We must force CC to /not/ be precious variables; otherwise
2770 # the wrong, non-multilib-adjusted value will be used in multilibs.
2771 # As a side effect, we have to subst CFLAGS ourselves.
2772 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
2773 # defaults of its own if none are provided.
2774
2775
2776
2777 save_CFLAGS=$CFLAGS
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_CC+set}" = set; then
2789   $as_echo_n "(cached) " >&6
2790 else
2791   if test -n "$CC"; then
2792   ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799   for ac_exec_ext in '' $ac_executable_extensions; do
2800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816   { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_CC"; then
2823   ac_ct_CC=$CC
2824   # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test -n "$ac_ct_CC"; then
2832   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_ac_ct_CC="gcc"
2842     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856   { $as_echo "$as_me:$LINENO: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860   if test "x$ac_ct_CC" = x; then
2861     CC=""
2862   else
2863     case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869     CC=$ac_ct_CC
2870   fi
2871 else
2872   CC="$ac_cv_prog_CC"
2873 fi
2874
2875 if test -z "$CC"; then
2876           if test -n "$ac_tool_prefix"; then
2877     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882   $as_echo_n "(cached) " >&6
2883 else
2884   if test -n "$CC"; then
2885   ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892   for ac_exec_ext in '' $ac_executable_extensions; do
2893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894     ac_cv_prog_CC="${ac_tool_prefix}cc"
2895     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909   { $as_echo "$as_me:$LINENO: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914   fi
2915 fi
2916 if test -z "$CC"; then
2917   # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922   $as_echo_n "(cached) " >&6
2923 else
2924   if test -n "$CC"; then
2925   ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927   ac_prog_rejected=no
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933   for ac_exec_ext in '' $ac_executable_extensions; do
2934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936        ac_prog_rejected=yes
2937        continue
2938      fi
2939     ac_cv_prog_CC="cc"
2940     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 if test $ac_prog_rejected = yes; then
2948   # We found a bogon in the path, so make sure we never use it.
2949   set dummy $ac_cv_prog_CC
2950   shift
2951   if test $# != 0; then
2952     # We chose a different compiler from the bogus one.
2953     # However, it has the same basename, so the bogon will be chosen
2954     # first if we set CC to just the basename; use the full file name.
2955     shift
2956     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957   fi
2958 fi
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966   { $as_echo "$as_me:$LINENO: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$CC"; then
2973   if test -n "$ac_tool_prefix"; then
2974   for ac_prog in cl.exe
2975   do
2976     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_CC+set}" = set; then
2981   $as_echo_n "(cached) " >&6
2982 else
2983   if test -n "$CC"; then
2984   ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008   { $as_echo "$as_me:$LINENO: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013     test -n "$CC" && break
3014   done
3015 fi
3016 if test -z "$CC"; then
3017   ac_ct_CC=$CC
3018   for ac_prog in cl.exe
3019 do
3020   # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3025   $as_echo_n "(cached) " >&6
3026 else
3027   if test -n "$ac_ct_CC"; then
3028   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033   IFS=$as_save_IFS
3034   test -z "$as_dir" && as_dir=.
3035   for ac_exec_ext in '' $ac_executable_extensions; do
3036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037     ac_cv_prog_ac_ct_CC="$ac_prog"
3038     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039     break 2
3040   fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3051 else
3052   { $as_echo "$as_me:$LINENO: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057   test -n "$ac_ct_CC" && break
3058 done
3059
3060   if test "x$ac_ct_CC" = x; then
3061     CC=""
3062   else
3063     case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069     CC=$ac_ct_CC
3070   fi
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." >&5
3080 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3081 See \`config.log' for more details." >&2;}
3082    { (exit 1); exit 1; }; }; }
3083
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 { (ac_try="$ac_compiler --version >&5"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095   (eval "$ac_compiler --version >&5") 2>&5
3096   ac_status=$?
3097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }
3099 { (ac_try="$ac_compiler -v >&5"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3105 $as_echo "$ac_try_echo") >&5
3106   (eval "$ac_compiler -v >&5") 2>&5
3107   ac_status=$?
3108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }
3110 { (ac_try="$ac_compiler -V >&5"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3116 $as_echo "$ac_try_echo") >&5
3117   (eval "$ac_compiler -V >&5") 2>&5
3118   ac_status=$?
3119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }
3121
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3141 # of exeext.
3142 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3143 $as_echo_n "checking for C compiler default output file name... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3145
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3148
3149 ac_rmfiles=
3150 for ac_file in $ac_files
3151 do
3152   case $ac_file in
3153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155   esac
3156 done
3157 rm -f $ac_rmfiles
3158
3159 if { (ac_try="$ac_link_default"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166   (eval "$ac_link_default") 2>&5
3167   ac_status=$?
3168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; then
3170   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3174 # Autoconf.
3175 for ac_file in $ac_files ''
3176 do
3177   test -f "$ac_file" || continue
3178   case $ac_file in
3179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3180         ;;
3181     [ab].out )
3182         # We found the default executable, but exeext='' is most
3183         # certainly right.
3184         break;;
3185     *.* )
3186         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3187         then :; else
3188            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189         fi
3190         # We set ac_cv_exeext here because the later test for it is not
3191         # safe: cross compilers may not add the suffix if given an `-o'
3192         # argument, so we may need to know it at that point already.
3193         # Even if this section looks crufty: it has the advantage of
3194         # actually working.
3195         break;;
3196     * )
3197         break;;
3198   esac
3199 done
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3201
3202 else
3203   ac_file=''
3204 fi
3205
3206 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 if test -z "$ac_file"; then
3209   $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&5
3216 $as_echo "$as_me: error: C compiler cannot create executables
3217 See \`config.log' for more details." >&2;}
3218    { (exit 77); exit 77; }; }; }
3219 fi
3220
3221 ac_exeext=$ac_cv_exeext
3222
3223 # Check that the compiler produces executables we can run.  If not, either
3224 # the compiler is broken, or we cross compile.
3225 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3228 # If not cross compiling, check that we can run a simple program.
3229 if test "$cross_compiling" != yes; then
3230   if { ac_try='./$ac_file'
3231   { (case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237   (eval "$ac_try") 2>&5
3238   ac_status=$?
3239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241     cross_compiling=no
3242   else
3243     if test "$cross_compiling" = maybe; then
3244         cross_compiling=yes
3245     else
3246         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: cannot run C compiled programs.
3252 If you meant to cross compile, use \`--host'.
3253 See \`config.log' for more details." >&2;}
3254    { (exit 1); exit 1; }; }; }
3255     fi
3256   fi
3257 fi
3258 { $as_echo "$as_me:$LINENO: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260
3261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3262 ac_clean_files=$ac_clean_files_save
3263 # Check that the compiler produces executables we can run.  If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3268 $as_echo "$cross_compiling" >&6; }
3269
3270 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3271 $as_echo_n "checking for suffix of executables... " >&6; }
3272 if { (ac_try="$ac_link"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279   (eval "$ac_link") 2>&5
3280   ac_status=$?
3281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }; then
3283   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3284 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3285 # work properly (i.e., refer to `conftest.exe'), while it won't with
3286 # `rm'.
3287 for ac_file in conftest.exe conftest conftest.*; do
3288   test -f "$ac_file" || continue
3289   case $ac_file in
3290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292           break;;
3293     * ) break;;
3294   esac
3295 done
3296 else
3297   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details." >&5
3301 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details." >&2;}
3303    { (exit 1); exit 1; }; }; }
3304 fi
3305
3306 rm -f conftest$ac_cv_exeext
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3308 $as_echo "$ac_cv_exeext" >&6; }
3309
3310 rm -f conftest.$ac_ext
3311 EXEEXT=$ac_cv_exeext
3312 ac_exeext=$EXEEXT
3313 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if test "${ac_cv_objext+set}" = set; then
3316   $as_echo_n "(cached) " >&6
3317 else
3318   cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.o conftest.obj
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341   (eval "$ac_compile") 2>&5
3342   ac_status=$?
3343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; then
3345   for ac_file in conftest.o conftest.obj conftest.*; do
3346   test -f "$ac_file" || continue;
3347   case $ac_file in
3348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3349     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350        break;;
3351   esac
3352 done
3353 else
3354   $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details." >&5
3361 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362 See \`config.log' for more details." >&2;}
3363    { (exit 1); exit 1; }; }; }
3364 fi
3365
3366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367 fi
3368 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369 $as_echo "$ac_cv_objext" >&6; }
3370 OBJEXT=$ac_cv_objext
3371 ac_objext=$OBJEXT
3372 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375   $as_echo_n "(cached) " >&6
3376 else
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383
3384 int
3385 main ()
3386 {
3387 #ifndef __GNUC__
3388        choke me
3389 #endif
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403   (eval "$ac_compile") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } && {
3410          test -z "$ac_c_werror_flag" ||
3411          test ! -s conftest.err
3412        } && test -s conftest.$ac_objext; then
3413   ac_compiler_gnu=yes
3414 else
3415   $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418         ac_compiler_gnu=no
3419 fi
3420
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3423
3424 fi
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3426 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3427 if test $ac_compiler_gnu = yes; then
3428   GCC=yes
3429 else
3430   GCC=
3431 fi
3432 ac_test_CFLAGS=${CFLAGS+set}
3433 ac_save_CFLAGS=$CFLAGS
3434 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3436 if test "${ac_cv_prog_cc_g+set}" = set; then
3437   $as_echo_n "(cached) " >&6
3438 else
3439   ac_save_c_werror_flag=$ac_c_werror_flag
3440    ac_c_werror_flag=yes
3441    ac_cv_prog_cc_g=no
3442    CFLAGS="-g"
3443    cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h.  */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3460 case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465 $as_echo "$ac_try_echo") >&5
3466   (eval "$ac_compile") 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } && {
3473          test -z "$ac_c_werror_flag" ||
3474          test ! -s conftest.err
3475        } && test -s conftest.$ac_objext; then
3476   ac_cv_prog_cc_g=yes
3477 else
3478   $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481         CFLAGS=""
3482       cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505   (eval "$ac_compile") 2>conftest.er1
3506   ac_status=$?
3507   grep -v '^ *+' conftest.er1 >conftest.err
3508   rm -f conftest.er1
3509   cat conftest.err >&5
3510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } && {
3512          test -z "$ac_c_werror_flag" ||
3513          test ! -s conftest.err
3514        } && test -s conftest.$ac_objext; then
3515   :
3516 else
3517   $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520         ac_c_werror_flag=$ac_save_c_werror_flag
3521          CFLAGS="-g"
3522          cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3544 $as_echo "$ac_try_echo") >&5
3545   (eval "$ac_compile") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } && {
3552          test -z "$ac_c_werror_flag" ||
3553          test ! -s conftest.err
3554        } && test -s conftest.$ac_objext; then
3555   ac_cv_prog_cc_g=yes
3556 else
3557   $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560
3561 fi
3562
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 fi
3565
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570    ac_c_werror_flag=$ac_save_c_werror_flag
3571 fi
3572 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575   CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577   if test "$GCC" = yes; then
3578     CFLAGS="-g -O2"
3579   else
3580     CFLAGS="-g"
3581   fi
3582 else
3583   if test "$GCC" = yes; then
3584     CFLAGS="-O2"
3585   else
3586     CFLAGS=
3587   fi
3588 fi
3589 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if test "${ac_cv_prog_cc_c89+set}" = set; then
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_cv_prog_cc_c89=no
3595 ac_save_CC=$CC
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 #include <stdarg.h>
3603 #include <stdio.h>
3604 #include <sys/types.h>
3605 #include <sys/stat.h>
3606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3607 struct buf { int x; };
3608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3609 static char *e (p, i)
3610      char **p;
3611      int i;
3612 {
3613   return p[i];
3614 }
3615 static char *f (char * (*g) (char **, int), char **p, ...)
3616 {
3617   char *s;
3618   va_list v;
3619   va_start (v,p);
3620   s = g (p, va_arg (v,int));
3621   va_end (v);
3622   return s;
3623 }
3624
3625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3626    function prototypes and stuff, but not '\xHH' hex character constants.
3627    These don't provoke an error unfortunately, instead are silently treated
3628    as 'x'.  The following induces an error, until -std is added to get
3629    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3630    array size at least.  It's necessary to write '\x00'==0 to get something
3631    that's true only with -std.  */
3632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633
3634 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3635    inside strings and character constants.  */
3636 #define FOO(x) 'x'
3637 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3638
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3643 int argc;
3644 char **argv;
3645 int
3646 main ()
3647 {
3648 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3654         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3655 do
3656   CC="$ac_save_CC $ac_arg"
3657   rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665   (eval "$ac_compile") 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } && {
3672          test -z "$ac_c_werror_flag" ||
3673          test ! -s conftest.err
3674        } && test -s conftest.$ac_objext; then
3675   ac_cv_prog_cc_c89=$ac_arg
3676 else
3677   $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680
3681 fi
3682
3683 rm -f core conftest.err conftest.$ac_objext
3684   test "x$ac_cv_prog_cc_c89" != "xno" && break
3685 done
3686 rm -f conftest.$ac_ext
3687 CC=$ac_save_CC
3688
3689 fi
3690 # AC_CACHE_VAL
3691 case "x$ac_cv_prog_cc_c89" in
3692   x)
3693     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3694 $as_echo "none needed" >&6; } ;;
3695   xno)
3696     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3697 $as_echo "unsupported" >&6; } ;;
3698   *)
3699     CC="$CC $ac_cv_prog_cc_c89"
3700     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3701 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702 esac
3703
3704
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3711
3712 ac_config_commands="$ac_config_commands depfiles"
3713
3714
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3717 am__doit:
3718         @echo this is the am__doit target
3719 .PHONY: am__doit
3720 END
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3724 am__include="#"
3725 am__quote=
3726 _am_result=none
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from `make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3732   am__include=include
3733   am__quote=
3734   _am_result=GNU
3735   ;;
3736 esac
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739    echo '.include "confinc"' > confmf
3740    case `$am_make -s -f confmf 2> /dev/null` in #(
3741    *the\ am__doit\ target*)
3742      am__include=.include
3743      am__quote="\""
3744      _am_result=BSD
3745      ;;
3746    esac
3747 fi
3748
3749
3750 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3753
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then
3756   enableval=$enable_dependency_tracking;
3757 fi
3758
3759 if test "x$enable_dependency_tracking" != xno; then
3760   am_depcomp="$ac_aux_dir/depcomp"
3761   AMDEPBACKSLASH='\'
3762 fi
3763  if test "x$enable_dependency_tracking" != xno; then
3764   AMDEP_TRUE=
3765   AMDEP_FALSE='#'
3766 else
3767   AMDEP_TRUE='#'
3768   AMDEP_FALSE=
3769 fi
3770
3771
3772
3773 depcc="$CC"   am_compiler_list=
3774
3775 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3778   $as_echo_n "(cached) " >&6
3779 else
3780   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781   # We make a subdir and do the tests there.  Otherwise we can end up
3782   # making bogus files that we don't know about and never remove.  For
3783   # instance it was reported that on HP-UX the gcc test will end up
3784   # making a dummy file named `D' -- because `-MD' means `put the output
3785   # in D'.
3786   mkdir conftest.dir
3787   # Copy depcomp to subdir because otherwise we won't find it if we're
3788   # using a relative directory.
3789   cp "$am_depcomp" conftest.dir
3790   cd conftest.dir
3791   # We will build objects and dependencies in a subdirectory because
3792   # it helps to detect inapplicable dependency modes.  For instance
3793   # both Tru64's cc and ICC support -MD to output dependencies as a
3794   # side effect of compilation, but ICC will put the dependencies in
3795   # the current directory while Tru64 will put them in the object
3796   # directory.
3797   mkdir sub
3798
3799   am_cv_CC_dependencies_compiler_type=none
3800   if test "$am_compiler_list" = ""; then
3801      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3802   fi
3803   am__universal=false
3804   case " $depcc " in #(
3805      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3806      esac
3807
3808   for depmode in $am_compiler_list; do
3809     # Setup a source with many dependencies, because some compilers
3810     # like to wrap large dependency lists on column 80 (with \), and
3811     # we should not choose a depcomp mode which is confused by this.
3812     #
3813     # We need to recreate these files for each test, as the compiler may
3814     # overwrite some of them when testing with obscure command lines.
3815     # This happens at least with the AIX C compiler.
3816     : > sub/conftest.c
3817     for i in 1 2 3 4 5 6; do
3818       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820       # Solaris 8's {/usr,}/bin/sh.
3821       touch sub/conftst$i.h
3822     done
3823     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824
3825     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3826     # mode.  It turns out that the SunPro C++ compiler does not properly
3827     # handle `-M -o', and we need to detect this.  Also, some Intel
3828     # versions had trouble with output in subdirs
3829     am__obj=sub/conftest.${OBJEXT-o}
3830     am__minus_obj="-o $am__obj"
3831     case $depmode in
3832     gcc)
3833       # This depmode causes a compiler race in universal mode.
3834       test "$am__universal" = false || continue
3835       ;;
3836     nosideeffect)
3837       # after this tag, mechanisms are not by side-effect, so they'll
3838       # only be used when explicitly requested
3839       if test "x$enable_dependency_tracking" = xyes; then
3840         continue
3841       else
3842         break
3843       fi
3844       ;;
3845     msvisualcpp | msvcmsys)
3846       # This compiler won't grok `-c -o', but also, the minuso test has
3847       # not run yet.  These depmodes are late enough in the game, and
3848       # so weak that their functioning should not be impacted.
3849       am__obj=conftest.${OBJEXT-o}
3850       am__minus_obj=
3851       ;;
3852     none) break ;;
3853     esac
3854     if depmode=$depmode \
3855        source=sub/conftest.c object=$am__obj \
3856        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3858          >/dev/null 2>conftest.err &&
3859        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3860        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3861        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3862        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3863       # icc doesn't choke on unknown options, it will just issue warnings
3864       # or remarks (even with -Werror).  So we grep stderr for any message
3865       # that says an option was ignored or not supported.
3866       # When given -MP, icc 7.0 and 7.1 complain thusly:
3867       #   icc: Command line warning: ignoring option '-M'; no argument required
3868       # The diagnosis changed in icc 8.0:
3869       #   icc: Command line remark: option '-MP' not supported
3870       if (grep 'ignoring option' conftest.err ||
3871           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3872         am_cv_CC_dependencies_compiler_type=$depmode
3873         break
3874       fi
3875     fi
3876   done
3877
3878   cd ..
3879   rm -rf conftest.dir
3880 else
3881   am_cv_CC_dependencies_compiler_type=none
3882 fi
3883
3884 fi
3885 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3886 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3887 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3888
3889  if
3890   test "x$enable_dependency_tracking" != xno \
3891   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3892   am__fastdepCC_TRUE=
3893   am__fastdepCC_FALSE='#'
3894 else
3895   am__fastdepCC_TRUE='#'
3896   am__fastdepCC_FALSE=
3897 fi
3898
3899
3900 CFLAGS=$save_CFLAGS
3901
3902
3903
3904
3905
3906 # By default we simply use the C compiler to build assembly code.
3907
3908 test "${CCAS+set}" = set || CCAS=$CC
3909 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3910
3911
3912
3913 depcc="$CCAS"   am_compiler_list=
3914
3915 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3918   $as_echo_n "(cached) " >&6
3919 else
3920   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921   # We make a subdir and do the tests there.  Otherwise we can end up
3922   # making bogus files that we don't know about and never remove.  For
3923   # instance it was reported that on HP-UX the gcc test will end up
3924   # making a dummy file named `D' -- because `-MD' means `put the output
3925   # in D'.
3926   mkdir conftest.dir
3927   # Copy depcomp to subdir because otherwise we won't find it if we're
3928   # using a relative directory.
3929   cp "$am_depcomp" conftest.dir
3930   cd conftest.dir
3931   # We will build objects and dependencies in a subdirectory because
3932   # it helps to detect inapplicable dependency modes.  For instance
3933   # both Tru64's cc and ICC support -MD to output dependencies as a
3934   # side effect of compilation, but ICC will put the dependencies in
3935   # the current directory while Tru64 will put them in the object
3936   # directory.
3937   mkdir sub
3938
3939   am_cv_CCAS_dependencies_compiler_type=none
3940   if test "$am_compiler_list" = ""; then
3941      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942   fi
3943   am__universal=false
3944
3945
3946   for depmode in $am_compiler_list; do
3947     # Setup a source with many dependencies, because some compilers
3948     # like to wrap large dependency lists on column 80 (with \), and
3949     # we should not choose a depcomp mode which is confused by this.
3950     #
3951     # We need to recreate these files for each test, as the compiler may
3952     # overwrite some of them when testing with obscure command lines.
3953     # This happens at least with the AIX C compiler.
3954     : > sub/conftest.c
3955     for i in 1 2 3 4 5 6; do
3956       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3957       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3958       # Solaris 8's {/usr,}/bin/sh.
3959       touch sub/conftst$i.h
3960     done
3961     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3962
3963     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3964     # mode.  It turns out that the SunPro C++ compiler does not properly
3965     # handle `-M -o', and we need to detect this.  Also, some Intel
3966     # versions had trouble with output in subdirs
3967     am__obj=sub/conftest.${OBJEXT-o}
3968     am__minus_obj="-o $am__obj"
3969     case $depmode in
3970     gcc)
3971       # This depmode causes a compiler race in universal mode.
3972       test "$am__universal" = false || continue
3973       ;;
3974     nosideeffect)
3975       # after this tag, mechanisms are not by side-effect, so they'll
3976       # only be used when explicitly requested
3977       if test "x$enable_dependency_tracking" = xyes; then
3978         continue
3979       else
3980         break
3981       fi
3982       ;;
3983     msvisualcpp | msvcmsys)
3984       # This compiler won't grok `-c -o', but also, the minuso test has
3985       # not run yet.  These depmodes are late enough in the game, and
3986       # so weak that their functioning should not be impacted.
3987       am__obj=conftest.${OBJEXT-o}
3988       am__minus_obj=
3989       ;;
3990     none) break ;;
3991     esac
3992     if depmode=$depmode \
3993        source=sub/conftest.c object=$am__obj \
3994        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3996          >/dev/null 2>conftest.err &&
3997        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3998        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3999        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4000        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4001       # icc doesn't choke on unknown options, it will just issue warnings
4002       # or remarks (even with -Werror).  So we grep stderr for any message
4003       # that says an option was ignored or not supported.
4004       # When given -MP, icc 7.0 and 7.1 complain thusly:
4005       #   icc: Command line warning: ignoring option '-M'; no argument required
4006       # The diagnosis changed in icc 8.0:
4007       #   icc: Command line remark: option '-MP' not supported
4008       if (grep 'ignoring option' conftest.err ||
4009           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4010         am_cv_CCAS_dependencies_compiler_type=$depmode
4011         break
4012       fi
4013     fi
4014   done
4015
4016   cd ..
4017   rm -rf conftest.dir
4018 else
4019   am_cv_CCAS_dependencies_compiler_type=none
4020 fi
4021
4022 fi
4023 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4024 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4025 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4026
4027  if
4028   test "x$enable_dependency_tracking" != xno \
4029   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4030   am__fastdepCCAS_TRUE=
4031   am__fastdepCCAS_FALSE='#'
4032 else
4033   am__fastdepCCAS_TRUE='#'
4034   am__fastdepCCAS_FALSE=
4035 fi
4036
4037
4038 if test "x$CC" != xcc; then
4039   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4040 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4041 else
4042   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4043 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4044 fi
4045 set dummy $CC; ac_cc=`$as_echo "$2" |
4046                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4047 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4048   $as_echo_n "(cached) " >&6
4049 else
4050   cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 # Make sure it works both with $CC and with simple cc.
4066 # We do the test twice because some compilers refuse to overwrite an
4067 # existing .o file with -o, though they will create one.
4068 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4069 rm -f conftest2.*
4070 if { (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    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086   (eval "$ac_try") 2>&5
4087   ac_status=$?
4088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); };
4090 then
4091   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4092   if test "x$CC" != xcc; then
4093     # Test first that cc exists at all.
4094     if { ac_try='cc -c conftest.$ac_ext >&5'
4095   { (case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101   (eval "$ac_try") 2>&5
4102   ac_status=$?
4103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4106       rm -f conftest2.*
4107       if { (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          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123   (eval "$ac_try") 2>&5
4124   ac_status=$?
4125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); };
4127       then
4128         # cc works too.
4129         :
4130       else
4131         # cc exists but doesn't like -o.
4132         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4133       fi
4134     fi
4135   fi
4136 else
4137   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4138 fi
4139 rm -f core conftest*
4140
4141 fi
4142 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4143   { $as_echo "$as_me:$LINENO: result: yes" >&5
4144 $as_echo "yes" >&6; }
4145 else
4146   { $as_echo "$as_me:$LINENO: result: no" >&5
4147 $as_echo "no" >&6; }
4148
4149 cat >>confdefs.h <<\_ACEOF
4150 #define NO_MINUS_C_MINUS_O 1
4151 _ACEOF
4152
4153 fi
4154
4155 # FIXME: we rely on the cache variable name because
4156 # there is no other way.
4157 set dummy $CC
4158 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4159 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4160 if test "$am_t" != yes; then
4161    # Losing compiler, so override with the script.
4162    # FIXME: It is wrong to rewrite CC.
4163    # But if we don't then we get into trouble of one sort or another.
4164    # A longer-term fix would be to have automake use am__CC in this case,
4165    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4166    CC="$am_aux_dir/compile $CC"
4167 fi
4168
4169
4170 case `pwd` in
4171   *\ * | *\     *)
4172     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4173 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4174 esac
4175
4176
4177
4178 macro_version='2.2.6b'
4179 macro_revision='1.3017'
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193 ltmain="$ac_aux_dir/ltmain.sh"
4194
4195 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4196 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4197 if test "${ac_cv_path_SED+set}" = set; then
4198   $as_echo_n "(cached) " >&6
4199 else
4200             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4201      for ac_i in 1 2 3 4 5 6 7; do
4202        ac_script="$ac_script$as_nl$ac_script"
4203      done
4204      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4205      $as_unset ac_script || ac_script=
4206      if test -z "$SED"; then
4207   ac_path_SED_found=false
4208   # Loop through the user's path and test for each of PROGNAME-LIST
4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_prog in sed gsed; do
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4217       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4218 # Check for GNU ac_path_SED and select it if it is found.
4219   # Check for GNU $ac_path_SED
4220 case `"$ac_path_SED" --version 2>&1` in
4221 *GNU*)
4222   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4223 *)
4224   ac_count=0
4225   $as_echo_n 0123456789 >"conftest.in"
4226   while :
4227   do
4228     cat "conftest.in" "conftest.in" >"conftest.tmp"
4229     mv "conftest.tmp" "conftest.in"
4230     cp "conftest.in" "conftest.nl"
4231     $as_echo '' >> "conftest.nl"
4232     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234     ac_count=`expr $ac_count + 1`
4235     if test $ac_count -gt ${ac_path_SED_max-0}; then
4236       # Best one so far, save it but keep looking for a better one
4237       ac_cv_path_SED="$ac_path_SED"
4238       ac_path_SED_max=$ac_count
4239     fi
4240     # 10*(2^10) chars as input seems more than enough
4241     test $ac_count -gt 10 && break
4242   done
4243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 esac
4245
4246       $ac_path_SED_found && break 3
4247     done
4248   done
4249 done
4250 IFS=$as_save_IFS
4251   if test -z "$ac_cv_path_SED"; then
4252     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4253 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4254    { (exit 1); exit 1; }; }
4255   fi
4256 else
4257   ac_cv_path_SED=$SED
4258 fi
4259
4260 fi
4261 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4262 $as_echo "$ac_cv_path_SED" >&6; }
4263  SED="$ac_cv_path_SED"
4264   rm -f conftest.sed
4265
4266 test -z "$SED" && SED=sed
4267 Xsed="$SED -e 1s/^X//"
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4280 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4281 if test "${ac_cv_path_GREP+set}" = set; then
4282   $as_echo_n "(cached) " >&6
4283 else
4284   if test -z "$GREP"; then
4285   ac_path_GREP_found=false
4286   # Loop through the user's path and test for each of PROGNAME-LIST
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_prog in grep ggrep; do
4293     for ac_exec_ext in '' $ac_executable_extensions; do
4294       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4296 # Check for GNU ac_path_GREP and select it if it is found.
4297   # Check for GNU $ac_path_GREP
4298 case `"$ac_path_GREP" --version 2>&1` in
4299 *GNU*)
4300   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301 *)
4302   ac_count=0
4303   $as_echo_n 0123456789 >"conftest.in"
4304   while :
4305   do
4306     cat "conftest.in" "conftest.in" >"conftest.tmp"
4307     mv "conftest.tmp" "conftest.in"
4308     cp "conftest.in" "conftest.nl"
4309     $as_echo 'GREP' >> "conftest.nl"
4310     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312     ac_count=`expr $ac_count + 1`
4313     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314       # Best one so far, save it but keep looking for a better one
4315       ac_cv_path_GREP="$ac_path_GREP"
4316       ac_path_GREP_max=$ac_count
4317     fi
4318     # 10*(2^10) chars as input seems more than enough
4319     test $ac_count -gt 10 && break
4320   done
4321   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4323
4324       $ac_path_GREP_found && break 3
4325     done
4326   done
4327 done
4328 IFS=$as_save_IFS
4329   if test -z "$ac_cv_path_GREP"; then
4330     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4331 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4332    { (exit 1); exit 1; }; }
4333   fi
4334 else
4335   ac_cv_path_GREP=$GREP
4336 fi
4337
4338 fi
4339 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4340 $as_echo "$ac_cv_path_GREP" >&6; }
4341  GREP="$ac_cv_path_GREP"
4342
4343
4344 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4345 $as_echo_n "checking for egrep... " >&6; }
4346 if test "${ac_cv_path_EGREP+set}" = set; then
4347   $as_echo_n "(cached) " >&6
4348 else
4349   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4350    then ac_cv_path_EGREP="$GREP -E"
4351    else
4352      if test -z "$EGREP"; then
4353   ac_path_EGREP_found=false
4354   # Loop through the user's path and test for each of PROGNAME-LIST
4355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360   for ac_prog in egrep; do
4361     for ac_exec_ext in '' $ac_executable_extensions; do
4362       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4363       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4364 # Check for GNU ac_path_EGREP and select it if it is found.
4365   # Check for GNU $ac_path_EGREP
4366 case `"$ac_path_EGREP" --version 2>&1` in
4367 *GNU*)
4368   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4369 *)
4370   ac_count=0
4371   $as_echo_n 0123456789 >"conftest.in"
4372   while :
4373   do
4374     cat "conftest.in" "conftest.in" >"conftest.tmp"
4375     mv "conftest.tmp" "conftest.in"
4376     cp "conftest.in" "conftest.nl"
4377     $as_echo 'EGREP' >> "conftest.nl"
4378     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380     ac_count=`expr $ac_count + 1`
4381     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4382       # Best one so far, save it but keep looking for a better one
4383       ac_cv_path_EGREP="$ac_path_EGREP"
4384       ac_path_EGREP_max=$ac_count
4385     fi
4386     # 10*(2^10) chars as input seems more than enough
4387     test $ac_count -gt 10 && break
4388   done
4389   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4390 esac
4391
4392       $ac_path_EGREP_found && break 3
4393     done
4394   done
4395 done
4396 IFS=$as_save_IFS
4397   if test -z "$ac_cv_path_EGREP"; then
4398     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4399 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4400    { (exit 1); exit 1; }; }
4401   fi
4402 else
4403   ac_cv_path_EGREP=$EGREP
4404 fi
4405
4406    fi
4407 fi
4408 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4409 $as_echo "$ac_cv_path_EGREP" >&6; }
4410  EGREP="$ac_cv_path_EGREP"
4411
4412
4413 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4414 $as_echo_n "checking for fgrep... " >&6; }
4415 if test "${ac_cv_path_FGREP+set}" = set; then
4416   $as_echo_n "(cached) " >&6
4417 else
4418   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4419    then ac_cv_path_FGREP="$GREP -F"
4420    else
4421      if test -z "$FGREP"; then
4422   ac_path_FGREP_found=false
4423   # Loop through the user's path and test for each of PROGNAME-LIST
4424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_prog in fgrep; do
4430     for ac_exec_ext in '' $ac_executable_extensions; do
4431       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4432       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4433 # Check for GNU ac_path_FGREP and select it if it is found.
4434   # Check for GNU $ac_path_FGREP
4435 case `"$ac_path_FGREP" --version 2>&1` in
4436 *GNU*)
4437   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4438 *)
4439   ac_count=0
4440   $as_echo_n 0123456789 >"conftest.in"
4441   while :
4442   do
4443     cat "conftest.in" "conftest.in" >"conftest.tmp"
4444     mv "conftest.tmp" "conftest.in"
4445     cp "conftest.in" "conftest.nl"
4446     $as_echo 'FGREP' >> "conftest.nl"
4447     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449     ac_count=`expr $ac_count + 1`
4450     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4451       # Best one so far, save it but keep looking for a better one
4452       ac_cv_path_FGREP="$ac_path_FGREP"
4453       ac_path_FGREP_max=$ac_count
4454     fi
4455     # 10*(2^10) chars as input seems more than enough
4456     test $ac_count -gt 10 && break
4457   done
4458   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459 esac
4460
4461       $ac_path_FGREP_found && break 3
4462     done
4463   done
4464 done
4465 IFS=$as_save_IFS
4466   if test -z "$ac_cv_path_FGREP"; then
4467     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4468 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4469    { (exit 1); exit 1; }; }
4470   fi
4471 else
4472   ac_cv_path_FGREP=$FGREP
4473 fi
4474
4475    fi
4476 fi
4477 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4478 $as_echo "$ac_cv_path_FGREP" >&6; }
4479  FGREP="$ac_cv_path_FGREP"
4480
4481
4482 test -z "$GREP" && GREP=grep
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502 # Check whether --with-gnu-ld was given.
4503 if test "${with_gnu_ld+set}" = set; then
4504   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4505 else
4506   with_gnu_ld=no
4507 fi
4508
4509 ac_prog=ld
4510 if test "$GCC" = yes; then
4511   # Check if gcc -print-prog-name=ld gives a path.
4512   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4513 $as_echo_n "checking for ld used by $CC... " >&6; }
4514   case $host in
4515   *-*-mingw*)
4516     # gcc leaves a trailing carriage return which upsets mingw
4517     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4518   *)
4519     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4520   esac
4521   case $ac_prog in
4522     # Accept absolute paths.
4523     [\\/]* | ?:[\\/]*)
4524       re_direlt='/[^/][^/]*/\.\./'
4525       # Canonicalize the pathname of ld
4526       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4527       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4528         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4529       done
4530       test -z "$LD" && LD="$ac_prog"
4531       ;;
4532   "")
4533     # If it fails, then pretend we aren't using GCC.
4534     ac_prog=ld
4535     ;;
4536   *)
4537     # If it is relative, then search for the first ld in PATH.
4538     with_gnu_ld=unknown
4539     ;;
4540   esac
4541 elif test "$with_gnu_ld" = yes; then
4542   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4543 $as_echo_n "checking for GNU ld... " >&6; }
4544 else
4545   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4546 $as_echo_n "checking for non-GNU ld... " >&6; }
4547 fi
4548 if test "${lt_cv_path_LD+set}" = set; then
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -z "$LD"; then
4552   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553   for ac_dir in $PATH; do
4554     IFS="$lt_save_ifs"
4555     test -z "$ac_dir" && ac_dir=.
4556     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4557       lt_cv_path_LD="$ac_dir/$ac_prog"
4558       # Check to see if the program is GNU ld.  I'd rather use --version,
4559       # but apparently some variants of GNU ld only accept -v.
4560       # Break only if it was the GNU/non-GNU ld that we prefer.
4561       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4562       *GNU* | *'with BFD'*)
4563         test "$with_gnu_ld" != no && break
4564         ;;
4565       *)
4566         test "$with_gnu_ld" != yes && break
4567         ;;
4568       esac
4569     fi
4570   done
4571   IFS="$lt_save_ifs"
4572 else
4573   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4574 fi
4575 fi
4576
4577 LD="$lt_cv_path_LD"
4578 if test -n "$LD"; then
4579   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4580 $as_echo "$LD" >&6; }
4581 else
4582   { $as_echo "$as_me:$LINENO: result: no" >&5
4583 $as_echo "no" >&6; }
4584 fi
4585 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4586 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4587    { (exit 1); exit 1; }; }
4588 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4590 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4591   $as_echo_n "(cached) " >&6
4592 else
4593   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4594 case `$LD -v 2>&1 </dev/null` in
4595 *GNU* | *'with BFD'*)
4596   lt_cv_prog_gnu_ld=yes
4597   ;;
4598 *)
4599   lt_cv_prog_gnu_ld=no
4600   ;;
4601 esac
4602 fi
4603 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4605 with_gnu_ld=$lt_cv_prog_gnu_ld
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4616 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4617 if test "${lt_cv_path_NM+set}" = set; then
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -n "$NM"; then
4621   # Let the user override the test.
4622   lt_cv_path_NM="$NM"
4623 else
4624   lt_nm_to_check="${ac_tool_prefix}nm"
4625   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4626     lt_nm_to_check="$lt_nm_to_check nm"
4627   fi
4628   for lt_tmp_nm in $lt_nm_to_check; do
4629     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4630     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4631       IFS="$lt_save_ifs"
4632       test -z "$ac_dir" && ac_dir=.
4633       tmp_nm="$ac_dir/$lt_tmp_nm"
4634       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4635         # Check to see if the nm accepts a BSD-compat flag.
4636         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4637         #   nm: unknown option "B" ignored
4638         # Tru64's nm complains that /dev/null is an invalid object file
4639         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4640         */dev/null* | *'Invalid file or object type'*)
4641           lt_cv_path_NM="$tmp_nm -B"
4642           break
4643           ;;
4644         *)
4645           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4646           */dev/null*)
4647             lt_cv_path_NM="$tmp_nm -p"
4648             break
4649             ;;
4650           *)
4651             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4652             continue # so that we can try to find one that supports BSD flags
4653             ;;
4654           esac
4655           ;;
4656         esac
4657       fi
4658     done
4659     IFS="$lt_save_ifs"
4660   done
4661   : ${lt_cv_path_NM=no}
4662 fi
4663 fi
4664 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4665 $as_echo "$lt_cv_path_NM" >&6; }
4666 if test "$lt_cv_path_NM" != "no"; then
4667   NM="$lt_cv_path_NM"
4668 else
4669   # Didn't find any BSD compatible name lister, look for dumpbin.
4670   if test -n "$ac_tool_prefix"; then
4671   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4672   do
4673     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4678   $as_echo_n "(cached) " >&6
4679 else
4680   if test -n "$DUMPBIN"; then
4681   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4691     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 DUMPBIN=$ac_cv_prog_DUMPBIN
4701 if test -n "$DUMPBIN"; then
4702   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4703 $as_echo "$DUMPBIN" >&6; }
4704 else
4705   { $as_echo "$as_me:$LINENO: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709
4710     test -n "$DUMPBIN" && break
4711   done
4712 fi
4713 if test -z "$DUMPBIN"; then
4714   ac_ct_DUMPBIN=$DUMPBIN
4715   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4716 do
4717   # Extract the first word of "$ac_prog", so it can be a program name with args.
4718 set dummy $ac_prog; ac_word=$2
4719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4722   $as_echo_n "(cached) " >&6
4723 else
4724   if test -n "$ac_ct_DUMPBIN"; then
4725   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742 fi
4743 fi
4744 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4745 if test -n "$ac_ct_DUMPBIN"; then
4746   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4747 $as_echo "$ac_ct_DUMPBIN" >&6; }
4748 else
4749   { $as_echo "$as_me:$LINENO: result: no" >&5
4750 $as_echo "no" >&6; }
4751 fi
4752
4753
4754   test -n "$ac_ct_DUMPBIN" && break
4755 done
4756
4757   if test "x$ac_ct_DUMPBIN" = x; then
4758     DUMPBIN=":"
4759   else
4760     case $cross_compiling:$ac_tool_warned in
4761 yes:)
4762 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4765 esac
4766     DUMPBIN=$ac_ct_DUMPBIN
4767   fi
4768 fi
4769
4770
4771   if test "$DUMPBIN" != ":"; then
4772     NM="$DUMPBIN"
4773   fi
4774 fi
4775 test -z "$NM" && NM=nm
4776
4777
4778
4779
4780
4781
4782 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4783 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4784 if test "${lt_cv_nm_interface+set}" = set; then
4785   $as_echo_n "(cached) " >&6
4786 else
4787   lt_cv_nm_interface="BSD nm"
4788   echo "int some_variable = 0;" > conftest.$ac_ext
4789   (eval echo "\"\$as_me:4789: $ac_compile\"" >&5)
4790   (eval "$ac_compile" 2>conftest.err)
4791   cat conftest.err >&5
4792   (eval echo "\"\$as_me:4792: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4793   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4794   cat conftest.err >&5
4795   (eval echo "\"\$as_me:4795: output\"" >&5)
4796   cat conftest.out >&5
4797   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4798     lt_cv_nm_interface="MS dumpbin"
4799   fi
4800   rm -f conftest*
4801 fi
4802 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4803 $as_echo "$lt_cv_nm_interface" >&6; }
4804
4805 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4806 $as_echo_n "checking whether ln -s works... " >&6; }
4807 LN_S=$as_ln_s
4808 if test "$LN_S" = "ln -s"; then
4809   { $as_echo "$as_me:$LINENO: result: yes" >&5
4810 $as_echo "yes" >&6; }
4811 else
4812   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4813 $as_echo "no, using $LN_S" >&6; }
4814 fi
4815
4816 # find the maximum length of command line arguments
4817 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4820   $as_echo_n "(cached) " >&6
4821 else
4822     i=0
4823   teststring="ABCD"
4824
4825   case $build_os in
4826   msdosdjgpp*)
4827     # On DJGPP, this test can blow up pretty badly due to problems in libc
4828     # (any single argument exceeding 2000 bytes causes a buffer overrun
4829     # during glob expansion).  Even if it were fixed, the result of this
4830     # check would be larger than it should be.
4831     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4832     ;;
4833
4834   gnu*)
4835     # Under GNU Hurd, this test is not required because there is
4836     # no limit to the length of command line arguments.
4837     # Libtool will interpret -1 as no limit whatsoever
4838     lt_cv_sys_max_cmd_len=-1;
4839     ;;
4840
4841   cygwin* | mingw* | cegcc*)
4842     # On Win9x/ME, this test blows up -- it succeeds, but takes
4843     # about 5 minutes as the teststring grows exponentially.
4844     # Worse, since 9x/ME are not pre-emptively multitasking,
4845     # you end up with a "frozen" computer, even though with patience
4846     # the test eventually succeeds (with a max line length of 256k).
4847     # Instead, let's just punt: use the minimum linelength reported by
4848     # all of the supported platforms: 8192 (on NT/2K/XP).
4849     lt_cv_sys_max_cmd_len=8192;
4850     ;;
4851
4852   amigaos*)
4853     # On AmigaOS with pdksh, this test takes hours, literally.
4854     # So we just punt and use a minimum line length of 8192.
4855     lt_cv_sys_max_cmd_len=8192;
4856     ;;
4857
4858   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4859     # This has been around since 386BSD, at least.  Likely further.
4860     if test -x /sbin/sysctl; then
4861       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4862     elif test -x /usr/sbin/sysctl; then
4863       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4864     else
4865       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4866     fi
4867     # And add a safety zone
4868     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870     ;;
4871
4872   interix*)
4873     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4874     lt_cv_sys_max_cmd_len=196608
4875     ;;
4876
4877   osf*)
4878     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4879     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4880     # nice to cause kernel panics so lets avoid the loop below.
4881     # First set a reasonable default.
4882     lt_cv_sys_max_cmd_len=16384
4883     #
4884     if test -x /sbin/sysconfig; then
4885       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4886         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4887       esac
4888     fi
4889     ;;
4890   sco3.2v5*)
4891     lt_cv_sys_max_cmd_len=102400
4892     ;;
4893   sysv5* | sco5v6* | sysv4.2uw2*)
4894     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4895     if test -n "$kargmax"; then
4896       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4897     else
4898       lt_cv_sys_max_cmd_len=32768
4899     fi
4900     ;;
4901   *)
4902     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4903     if test -n "$lt_cv_sys_max_cmd_len"; then
4904       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4906     else
4907       # Make teststring a little bigger before we do anything with it.
4908       # a 1K string should be a reasonable start.
4909       for i in 1 2 3 4 5 6 7 8 ; do
4910         teststring=$teststring$teststring
4911       done
4912       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4913       # If test is not a shell built-in, we'll probably end up computing a
4914       # maximum length that is only half of the actual maximum length, but
4915       # we can't tell.
4916       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4917                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4918               test $i != 17 # 1/2 MB should be enough
4919       do
4920         i=`expr $i + 1`
4921         teststring=$teststring$teststring
4922       done
4923       # Only check the string length outside the loop.
4924       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4925       teststring=
4926       # Add a significant safety factor because C++ compilers can tack on
4927       # massive amounts of additional arguments before passing them to the
4928       # linker.  It appears as though 1/2 is a usable value.
4929       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4930     fi
4931     ;;
4932   esac
4933
4934 fi
4935
4936 if test -n $lt_cv_sys_max_cmd_len ; then
4937   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4938 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4939 else
4940   { $as_echo "$as_me:$LINENO: result: none" >&5
4941 $as_echo "none" >&6; }
4942 fi
4943 max_cmd_len=$lt_cv_sys_max_cmd_len
4944
4945
4946
4947
4948
4949
4950 : ${CP="cp -f"}
4951 : ${MV="mv -f"}
4952 : ${RM="rm -f"}
4953
4954 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4955 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4956 # Try some XSI features
4957 xsi_shell=no
4958 ( _lt_dummy="a/b/c"
4959   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4960       = c,a/b,, \
4961     && eval 'test $(( 1 + 1 )) -eq 2 \
4962     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4963   && xsi_shell=yes
4964 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4965 $as_echo "$xsi_shell" >&6; }
4966
4967
4968 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4969 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4970 lt_shell_append=no
4971 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4972     >/dev/null 2>&1 \
4973   && lt_shell_append=yes
4974 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4975 $as_echo "$lt_shell_append" >&6; }
4976
4977
4978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4979   lt_unset=unset
4980 else
4981   lt_unset=false
4982 fi
4983
4984
4985
4986
4987
4988 # test EBCDIC or ASCII
4989 case `echo X|tr X '\101'` in
4990  A) # ASCII based system
4991     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4992   lt_SP2NL='tr \040 \012'
4993   lt_NL2SP='tr \015\012 \040\040'
4994   ;;
4995  *) # EBCDIC based system
4996   lt_SP2NL='tr \100 \n'
4997   lt_NL2SP='tr \r\n \100\100'
4998   ;;
4999 esac
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5010 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5011 if test "${lt_cv_ld_reload_flag+set}" = set; then
5012   $as_echo_n "(cached) " >&6
5013 else
5014   lt_cv_ld_reload_flag='-r'
5015 fi
5016 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5017 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5018 reload_flag=$lt_cv_ld_reload_flag
5019 case $reload_flag in
5020 "" | " "*) ;;
5021 *) reload_flag=" $reload_flag" ;;
5022 esac
5023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5024 case $host_os in
5025   darwin*)
5026     if test "$GCC" = yes; then
5027       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5028     else
5029       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5030     fi
5031     ;;
5032 esac
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 if test -n "$ac_tool_prefix"; then
5043   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5048   $as_echo_n "(cached) " >&6
5049 else
5050   if test -n "$OBJDUMP"; then
5051   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058   for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 OBJDUMP=$ac_cv_prog_OBJDUMP
5071 if test -n "$OBJDUMP"; then
5072   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5073 $as_echo "$OBJDUMP" >&6; }
5074 else
5075   { $as_echo "$as_me:$LINENO: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5078
5079
5080 fi
5081 if test -z "$ac_cv_prog_OBJDUMP"; then
5082   ac_ct_OBJDUMP=$OBJDUMP
5083   # Extract the first word of "objdump", so it can be a program name with args.
5084 set dummy objdump; ac_word=$2
5085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5088   $as_echo_n "(cached) " >&6
5089 else
5090   if test -n "$ac_ct_OBJDUMP"; then
5091   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098   for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5111 if test -n "$ac_ct_OBJDUMP"; then
5112   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5113 $as_echo "$ac_ct_OBJDUMP" >&6; }
5114 else
5115   { $as_echo "$as_me:$LINENO: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119   if test "x$ac_ct_OBJDUMP" = x; then
5120     OBJDUMP="false"
5121   else
5122     case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128     OBJDUMP=$ac_ct_OBJDUMP
5129   fi
5130 else
5131   OBJDUMP="$ac_cv_prog_OBJDUMP"
5132 fi
5133
5134 test -z "$OBJDUMP" && OBJDUMP=objdump
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5146 if test "${lt_cv_deplibs_check_method+set}" = set; then
5147   $as_echo_n "(cached) " >&6
5148 else
5149   lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [[regex]]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given extended regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5162
5163 case $host_os in
5164 aix[4-9]*)
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 beos*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 bsdi[45]*)
5173   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174   lt_cv_file_magic_cmd='/usr/bin/file -L'
5175   lt_cv_file_magic_test_file=/shlib/libc.so
5176   ;;
5177
5178 cygwin*)
5179   # func_win32_libid is a shell function defined in ltmain.sh
5180   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181   lt_cv_file_magic_cmd='func_win32_libid'
5182   ;;
5183
5184 mingw* | pw32*)
5185   # Base MSYS/MinGW do not provide the 'file' command needed by
5186   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187   # unless we find 'file', for example because we are cross-compiling.
5188   if ( file / ) >/dev/null 2>&1; then
5189     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190     lt_cv_file_magic_cmd='func_win32_libid'
5191   else
5192     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5193     lt_cv_file_magic_cmd='$OBJDUMP -f'
5194   fi
5195   ;;
5196
5197 cegcc)
5198   # use the weaker test based on 'objdump'. See mingw*.
5199   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5200   lt_cv_file_magic_cmd='$OBJDUMP -f'
5201   ;;
5202
5203 darwin* | rhapsody*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206
5207 freebsd* | dragonfly*)
5208   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5209     case $host_cpu in
5210     i*86 )
5211       # Not sure whether the presence of OpenBSD here was a mistake.
5212       # Let's accept both of them until this is cleared up.
5213       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5214       lt_cv_file_magic_cmd=/usr/bin/file
5215       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5216       ;;
5217     esac
5218   else
5219     lt_cv_deplibs_check_method=pass_all
5220   fi
5221   ;;
5222
5223 gnu*)
5224   lt_cv_deplibs_check_method=pass_all
5225   ;;
5226
5227 hpux10.20* | hpux11*)
5228   lt_cv_file_magic_cmd=/usr/bin/file
5229   case $host_cpu in
5230   ia64*)
5231     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5233     ;;
5234   hppa*64*)
5235     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]'
5236     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5237     ;;
5238   *)
5239     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5240     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5241     ;;
5242   esac
5243   ;;
5244
5245 interix[3-9]*)
5246   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5248   ;;
5249
5250 irix5* | irix6* | nonstopux*)
5251   case $LD in
5252   *-32|*"-32 ") libmagic=32-bit;;
5253   *-n32|*"-n32 ") libmagic=N32;;
5254   *-64|*"-64 ") libmagic=64-bit;;
5255   *) libmagic=never-match;;
5256   esac
5257   lt_cv_deplibs_check_method=pass_all
5258   ;;
5259
5260 # This must be Linux ELF.
5261 linux* | k*bsd*-gnu)
5262   lt_cv_deplibs_check_method=pass_all
5263   ;;
5264
5265 netbsd*)
5266   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268   else
5269     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5270   fi
5271   ;;
5272
5273 newos6*)
5274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275   lt_cv_file_magic_cmd=/usr/bin/file
5276   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5277   ;;
5278
5279 *nto* | *qnx*)
5280   lt_cv_deplibs_check_method=pass_all
5281   ;;
5282
5283 openbsd*)
5284   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5286   else
5287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288   fi
5289   ;;
5290
5291 osf3* | osf4* | osf5*)
5292   lt_cv_deplibs_check_method=pass_all
5293   ;;
5294
5295 rdos*)
5296   lt_cv_deplibs_check_method=pass_all
5297   ;;
5298
5299 solaris*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302
5303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5304   lt_cv_deplibs_check_method=pass_all
5305   ;;
5306
5307 sysv4 | sysv4.3*)
5308   case $host_vendor in
5309   motorola)
5310     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]'
5311     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5312     ;;
5313   ncr)
5314     lt_cv_deplibs_check_method=pass_all
5315     ;;
5316   sequent)
5317     lt_cv_file_magic_cmd='/bin/file'
5318     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5319     ;;
5320   sni)
5321     lt_cv_file_magic_cmd='/bin/file'
5322     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5323     lt_cv_file_magic_test_file=/lib/libc.so
5324     ;;
5325   siemens)
5326     lt_cv_deplibs_check_method=pass_all
5327     ;;
5328   pc)
5329     lt_cv_deplibs_check_method=pass_all
5330     ;;
5331   esac
5332   ;;
5333
5334 tpf*)
5335   lt_cv_deplibs_check_method=pass_all
5336   ;;
5337 esac
5338
5339 fi
5340 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5342 file_magic_cmd=$lt_cv_file_magic_cmd
5343 deplibs_check_method=$lt_cv_deplibs_check_method
5344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 if test -n "$ac_tool_prefix"; then
5358   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5359 set dummy ${ac_tool_prefix}ar; ac_word=$2
5360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if test "${ac_cv_prog_AR+set}" = set; then
5363   $as_echo_n "(cached) " >&6
5364 else
5365   if test -n "$AR"; then
5366   ac_cv_prog_AR="$AR" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373   for ac_exec_ext in '' $ac_executable_extensions; do
5374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375     ac_cv_prog_AR="${ac_tool_prefix}ar"
5376     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380 done
5381 IFS=$as_save_IFS
5382
5383 fi
5384 fi
5385 AR=$ac_cv_prog_AR
5386 if test -n "$AR"; then
5387   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5388 $as_echo "$AR" >&6; }
5389 else
5390   { $as_echo "$as_me:$LINENO: result: no" >&5
5391 $as_echo "no" >&6; }
5392 fi
5393
5394
5395 fi
5396 if test -z "$ac_cv_prog_AR"; then
5397   ac_ct_AR=$AR
5398   # Extract the first word of "ar", so it can be a program name with args.
5399 set dummy ar; ac_word=$2
5400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5403   $as_echo_n "(cached) " >&6
5404 else
5405   if test -n "$ac_ct_AR"; then
5406   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411   IFS=$as_save_IFS
5412   test -z "$as_dir" && as_dir=.
5413   for ac_exec_ext in '' $ac_executable_extensions; do
5414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415     ac_cv_prog_ac_ct_AR="ar"
5416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417     break 2
5418   fi
5419 done
5420 done
5421 IFS=$as_save_IFS
5422
5423 fi
5424 fi
5425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5426 if test -n "$ac_ct_AR"; then
5427   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5428 $as_echo "$ac_ct_AR" >&6; }
5429 else
5430   { $as_echo "$as_me:$LINENO: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433
5434   if test "x$ac_ct_AR" = x; then
5435     AR="false"
5436   else
5437     case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443     AR=$ac_ct_AR
5444   fi
5445 else
5446   AR="$ac_cv_prog_AR"
5447 fi
5448
5449 test -z "$AR" && AR=ar
5450 test -z "$AR_FLAGS" && AR_FLAGS=cru
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 if test -n "$ac_tool_prefix"; then
5463   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}strip; ac_word=$2
5465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if test "${ac_cv_prog_STRIP+set}" = set; then
5468   $as_echo_n "(cached) " >&6
5469 else
5470   if test -n "$STRIP"; then
5471   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478   for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5481     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 STRIP=$ac_cv_prog_STRIP
5491 if test -n "$STRIP"; then
5492   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5493 $as_echo "$STRIP" >&6; }
5494 else
5495   { $as_echo "$as_me:$LINENO: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499
5500 fi
5501 if test -z "$ac_cv_prog_STRIP"; then
5502   ac_ct_STRIP=$STRIP
5503   # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if test -n "$ac_ct_STRIP"; then
5511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_prog_ac_ct_STRIP="strip"
5521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5533 $as_echo "$ac_ct_STRIP" >&6; }
5534 else
5535   { $as_echo "$as_me:$LINENO: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539   if test "x$ac_ct_STRIP" = x; then
5540     STRIP=":"
5541   else
5542     case $cross_compiling:$ac_tool_warned in
5543 yes:)
5544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5547 esac
5548     STRIP=$ac_ct_STRIP
5549   fi
5550 else
5551   STRIP="$ac_cv_prog_STRIP"
5552 fi
5553
5554 test -z "$STRIP" && STRIP=:
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_prog_RANLIB+set}" = set; then
5567   $as_echo_n "(cached) " >&6
5568 else
5569   if test -n "$RANLIB"; then
5570   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577   for ac_exec_ext in '' $ac_executable_extensions; do
5578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5580     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584 done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 RANLIB=$ac_cv_prog_RANLIB
5590 if test -n "$RANLIB"; then
5591   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5592 $as_echo "$RANLIB" >&6; }
5593 else
5594   { $as_echo "$as_me:$LINENO: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 fi
5600 if test -z "$ac_cv_prog_RANLIB"; then
5601   ac_ct_RANLIB=$RANLIB
5602   # Extract the first word of "ranlib", so it can be a program name with args.
5603 set dummy ranlib; ac_word=$2
5604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5607   $as_echo_n "(cached) " >&6
5608 else
5609   if test -n "$ac_ct_RANLIB"; then
5610   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_prog_ac_ct_RANLIB="ranlib"
5620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5630 if test -n "$ac_ct_RANLIB"; then
5631   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5632 $as_echo "$ac_ct_RANLIB" >&6; }
5633 else
5634   { $as_echo "$as_me:$LINENO: result: no" >&5
5635 $as_echo "no" >&6; }
5636 fi
5637
5638   if test "x$ac_ct_RANLIB" = x; then
5639     RANLIB=":"
5640   else
5641     case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647     RANLIB=$ac_ct_RANLIB
5648   fi
5649 else
5650   RANLIB="$ac_cv_prog_RANLIB"
5651 fi
5652
5653 test -z "$RANLIB" && RANLIB=:
5654
5655
5656
5657
5658
5659
5660 # Determine commands to create old-style static archives.
5661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5662 old_postinstall_cmds='chmod 644 $oldlib'
5663 old_postuninstall_cmds=
5664
5665 if test -n "$RANLIB"; then
5666   case $host_os in
5667   openbsd*)
5668     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5669     ;;
5670   *)
5671     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5672     ;;
5673   esac
5674   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5675 fi
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
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 # If no C compiler was specified, use CC.
5711 LTCC=${LTCC-"$CC"}
5712
5713 # If no C compiler flags were specified, use CFLAGS.
5714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5715
5716 # Allow CC to be a program name with arguments.
5717 compiler=$CC
5718
5719
5720 # Check for command to grab the raw symbol name followed by C symbol from nm.
5721 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5722 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5724   $as_echo_n "(cached) " >&6
5725 else
5726
5727 # These are sane defaults that work on at least a few old systems.
5728 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5729
5730 # Character class describing NM global symbol codes.
5731 symcode='[BCDEGRST]'
5732
5733 # Regexp to match symbols that can be accessed directly from C.
5734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5735
5736 # Define system-specific variables.
5737 case $host_os in
5738 aix*)
5739   symcode='[BCDT]'
5740   ;;
5741 cygwin* | mingw* | pw32* | cegcc*)
5742   symcode='[ABCDGISTW]'
5743   ;;
5744 hpux*)
5745   if test "$host_cpu" = ia64; then
5746     symcode='[ABCDEGRST]'
5747   fi
5748   ;;
5749 irix* | nonstopux*)
5750   symcode='[BCDEGRST]'
5751   ;;
5752 osf*)
5753   symcode='[BCDEGQRST]'
5754   ;;
5755 solaris*)
5756   symcode='[BDRT]'
5757   ;;
5758 sco3.2v5*)
5759   symcode='[DT]'
5760   ;;
5761 sysv4.2uw2*)
5762   symcode='[DT]'
5763   ;;
5764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5765   symcode='[ABDT]'
5766   ;;
5767 sysv4)
5768   symcode='[DFNSTU]'
5769   ;;
5770 esac
5771
5772 # If we're using GNU nm, then use its standard symbol codes.
5773 case `$NM -V 2>&1` in
5774 *GNU* | *'with BFD'*)
5775   symcode='[ABCDGIRSTW]' ;;
5776 esac
5777
5778 # Transform an extracted symbol line into a proper C declaration.
5779 # Some systems (esp. on ia64) link data and code symbols differently,
5780 # so use this general approach.
5781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5782
5783 # Transform an extracted symbol line into symbol name and symbol address
5784 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5785 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'"
5786
5787 # Handle CRLF in mingw tool chain
5788 opt_cr=
5789 case $build_os in
5790 mingw*)
5791   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5792   ;;
5793 esac
5794
5795 # Try without a prefix underscore, then with it.
5796 for ac_symprfx in "" "_"; do
5797
5798   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5799   symxfrm="\\1 $ac_symprfx\\2 \\2"
5800
5801   # Write the raw and C identifiers.
5802   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5803     # Fake it for dumpbin and say T for any non-static function
5804     # and D for any global variable.
5805     # Also find C++ and __fastcall symbols from MSVC++,
5806     # which start with @ or ?.
5807     lt_cv_sys_global_symbol_pipe="$AWK '"\
5808 "     {last_section=section; section=\$ 3};"\
5809 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5810 "     \$ 0!~/External *\|/{next};"\
5811 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5812 "     {if(hide[section]) next};"\
5813 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5814 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5815 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5816 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5817 "     ' prfx=^$ac_symprfx"
5818   else
5819     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5820   fi
5821
5822   # Check to see that the pipe works correctly.
5823   pipe_works=no
5824
5825   rm -f conftest*
5826   cat > conftest.$ac_ext <<_LT_EOF
5827 #ifdef __cplusplus
5828 extern "C" {
5829 #endif
5830 char nm_test_var;
5831 void nm_test_func(void);
5832 void nm_test_func(void){}
5833 #ifdef __cplusplus
5834 }
5835 #endif
5836 int main(){nm_test_var='a';nm_test_func();return(0);}
5837 _LT_EOF
5838
5839   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840   (eval $ac_compile) 2>&5
5841   ac_status=$?
5842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; then
5844     # Now try to grab the symbols.
5845     nlist=conftest.nm
5846     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5847   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5848   ac_status=$?
5849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } && test -s "$nlist"; then
5851       # Try sorting and uniquifying the output.
5852       if sort "$nlist" | uniq > "$nlist"T; then
5853         mv -f "$nlist"T "$nlist"
5854       else
5855         rm -f "$nlist"T
5856       fi
5857
5858       # Make sure that we snagged all the symbols we need.
5859       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5860         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5861           cat <<_LT_EOF > conftest.$ac_ext
5862 #ifdef __cplusplus
5863 extern "C" {
5864 #endif
5865
5866 _LT_EOF
5867           # Now generate the symbol file.
5868           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5869
5870           cat <<_LT_EOF >> conftest.$ac_ext
5871
5872 /* The mapping between symbol names and symbols.  */
5873 const struct {
5874   const char *name;
5875   void       *address;
5876 }
5877 lt__PROGRAM__LTX_preloaded_symbols[] =
5878 {
5879   { "@PROGRAM@", (void *) 0 },
5880 _LT_EOF
5881           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5882           cat <<\_LT_EOF >> conftest.$ac_ext
5883   {0, (void *) 0}
5884 };
5885
5886 /* This works around a problem in FreeBSD linker */
5887 #ifdef FREEBSD_WORKAROUND
5888 static const void *lt_preloaded_setup() {
5889   return lt__PROGRAM__LTX_preloaded_symbols;
5890 }
5891 #endif
5892
5893 #ifdef __cplusplus
5894 }
5895 #endif
5896 _LT_EOF
5897           # Now try linking the two files.
5898           mv conftest.$ac_objext conftstm.$ac_objext
5899           lt_save_LIBS="$LIBS"
5900           lt_save_CFLAGS="$CFLAGS"
5901           LIBS="conftstm.$ac_objext"
5902           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5903           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904   (eval $ac_link) 2>&5
5905   ac_status=$?
5906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5908             pipe_works=yes
5909           fi
5910           LIBS="$lt_save_LIBS"
5911           CFLAGS="$lt_save_CFLAGS"
5912         else
5913           echo "cannot find nm_test_func in $nlist" >&5
5914         fi
5915       else
5916         echo "cannot find nm_test_var in $nlist" >&5
5917       fi
5918     else
5919       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5920     fi
5921   else
5922     echo "$progname: failed program was:" >&5
5923     cat conftest.$ac_ext >&5
5924   fi
5925   rm -rf conftest* conftst*
5926
5927   # Do not use the global_symbol_pipe unless it works.
5928   if test "$pipe_works" = yes; then
5929     break
5930   else
5931     lt_cv_sys_global_symbol_pipe=
5932   fi
5933 done
5934
5935 fi
5936
5937 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5938   lt_cv_sys_global_symbol_to_cdecl=
5939 fi
5940 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5941   { $as_echo "$as_me:$LINENO: result: failed" >&5
5942 $as_echo "failed" >&6; }
5943 else
5944   { $as_echo "$as_me:$LINENO: result: ok" >&5
5945 $as_echo "ok" >&6; }
5946 fi
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 # Check whether --enable-libtool-lock was given.
5971 if test "${enable_libtool_lock+set}" = set; then
5972   enableval=$enable_libtool_lock;
5973 fi
5974
5975 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5976
5977 # Some flags need to be propagated to the compiler or linker for good
5978 # libtool support.
5979 case $host in
5980 ia64-*-hpux*)
5981   # Find out which ABI we are using.
5982   echo 'int i;' > conftest.$ac_ext
5983   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984   (eval $ac_compile) 2>&5
5985   ac_status=$?
5986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; then
5988     case `/usr/bin/file conftest.$ac_objext` in
5989       *ELF-32*)
5990         HPUX_IA64_MODE="32"
5991         ;;
5992       *ELF-64*)
5993         HPUX_IA64_MODE="64"
5994         ;;
5995     esac
5996   fi
5997   rm -rf conftest*
5998   ;;
5999 *-*-irix6*)
6000   # Find out which ABI we are using.
6001   echo '#line 6001 "configure"' > conftest.$ac_ext
6002   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003   (eval $ac_compile) 2>&5
6004   ac_status=$?
6005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; then
6007     if test "$lt_cv_prog_gnu_ld" = yes; then
6008       case `/usr/bin/file conftest.$ac_objext` in
6009         *32-bit*)
6010           LD="${LD-ld} -melf32bsmip"
6011           ;;
6012         *N32*)
6013           LD="${LD-ld} -melf32bmipn32"
6014           ;;
6015         *64-bit*)
6016           LD="${LD-ld} -melf64bmip"
6017         ;;
6018       esac
6019     else
6020       case `/usr/bin/file conftest.$ac_objext` in
6021         *32-bit*)
6022           LD="${LD-ld} -32"
6023           ;;
6024         *N32*)
6025           LD="${LD-ld} -n32"
6026           ;;
6027         *64-bit*)
6028           LD="${LD-ld} -64"
6029           ;;
6030       esac
6031     fi
6032   fi
6033   rm -rf conftest*
6034   ;;
6035
6036 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6037 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6038   # Find out which ABI we are using.
6039   echo 'int i;' > conftest.$ac_ext
6040   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041   (eval $ac_compile) 2>&5
6042   ac_status=$?
6043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; then
6045     case `/usr/bin/file conftest.o` in
6046       *32-bit*)
6047         case $host in
6048           x86_64-*kfreebsd*-gnu)
6049             LD="${LD-ld} -m elf_i386_fbsd"
6050             ;;
6051           x86_64-*linux*)
6052             LD="${LD-ld} -m elf_i386"
6053             ;;
6054           ppc64-*linux*|powerpc64-*linux*)
6055             LD="${LD-ld} -m elf32ppclinux"
6056             ;;
6057           s390x-*linux*)
6058             LD="${LD-ld} -m elf_s390"
6059             ;;
6060           sparc64-*linux*)
6061             LD="${LD-ld} -m elf32_sparc"
6062             ;;
6063         esac
6064         ;;
6065       *64-bit*)
6066         case $host in
6067           x86_64-*kfreebsd*-gnu)
6068             LD="${LD-ld} -m elf_x86_64_fbsd"
6069             ;;
6070           x86_64-*linux*)
6071             LD="${LD-ld} -m elf_x86_64"
6072             ;;
6073           ppc*-*linux*|powerpc*-*linux*)
6074             LD="${LD-ld} -m elf64ppc"
6075             ;;
6076           s390*-*linux*|s390*-*tpf*)
6077             LD="${LD-ld} -m elf64_s390"
6078             ;;
6079           sparc*-*linux*)
6080             LD="${LD-ld} -m elf64_sparc"
6081             ;;
6082         esac
6083         ;;
6084     esac
6085   fi
6086   rm -rf conftest*
6087   ;;
6088
6089 *-*-sco3.2v5*)
6090   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6091   SAVE_CFLAGS="$CFLAGS"
6092   CFLAGS="$CFLAGS -belf"
6093   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6094 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6095 if test "${lt_cv_cc_needs_belf+set}" = set; then
6096   $as_echo_n "(cached) " >&6
6097 else
6098   ac_ext=c
6099 ac_cpp='$CPP $CPPFLAGS'
6100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6103
6104      cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h.  */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h.  */
6110
6111 int
6112 main ()
6113 {
6114
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (ac_try="$ac_link"
6121 case "(($ac_try" in
6122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123   *) ac_try_echo=$ac_try;;
6124 esac
6125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6126 $as_echo "$ac_try_echo") >&5
6127   (eval "$ac_link") 2>conftest.er1
6128   ac_status=$?
6129   grep -v '^ *+' conftest.er1 >conftest.err
6130   rm -f conftest.er1
6131   cat conftest.err >&5
6132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); } && {
6134          test -z "$ac_c_werror_flag" ||
6135          test ! -s conftest.err
6136        } && test -s conftest$ac_exeext && {
6137          test "$cross_compiling" = yes ||
6138          $as_test_x conftest$ac_exeext
6139        }; then
6140   lt_cv_cc_needs_belf=yes
6141 else
6142   $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145         lt_cv_cc_needs_belf=no
6146 fi
6147
6148 rm -rf conftest.dSYM
6149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6150       conftest$ac_exeext conftest.$ac_ext
6151      ac_ext=c
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156
6157 fi
6158 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6159 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6160   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6161     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6162     CFLAGS="$SAVE_CFLAGS"
6163   fi
6164   ;;
6165 sparc*-*solaris*)
6166   # Find out which ABI we are using.
6167   echo 'int i;' > conftest.$ac_ext
6168   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169   (eval $ac_compile) 2>&5
6170   ac_status=$?
6171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; then
6173     case `/usr/bin/file conftest.o` in
6174     *64-bit*)
6175       case $lt_cv_prog_gnu_ld in
6176       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6177       *)
6178         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6179           LD="${LD-ld} -64"
6180         fi
6181         ;;
6182       esac
6183       ;;
6184     esac
6185   fi
6186   rm -rf conftest*
6187   ;;
6188 esac
6189
6190 need_locks="$enable_libtool_lock"
6191
6192
6193   case $host_os in
6194     rhapsody* | darwin*)
6195     if test -n "$ac_tool_prefix"; then
6196   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6201   $as_echo_n "(cached) " >&6
6202 else
6203   if test -n "$DSYMUTIL"; then
6204   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211   for ac_exec_ext in '' $ac_executable_extensions; do
6212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6224 if test -n "$DSYMUTIL"; then
6225   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6226 $as_echo "$DSYMUTIL" >&6; }
6227 else
6228   { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_prog_DSYMUTIL"; then
6235   ac_ct_DSYMUTIL=$DSYMUTIL
6236   # Extract the first word of "dsymutil", so it can be a program name with args.
6237 set dummy dsymutil; ac_word=$2
6238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6241   $as_echo_n "(cached) " >&6
6242 else
6243   if test -n "$ac_ct_DSYMUTIL"; then
6244   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6264 if test -n "$ac_ct_DSYMUTIL"; then
6265   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6266 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6267 else
6268   { $as_echo "$as_me:$LINENO: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272   if test "x$ac_ct_DSYMUTIL" = x; then
6273     DSYMUTIL=":"
6274   else
6275     case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     DSYMUTIL=$ac_ct_DSYMUTIL
6282   fi
6283 else
6284   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6285 fi
6286
6287     if test -n "$ac_tool_prefix"; then
6288   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$NMEDIT"; then
6296   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 NMEDIT=$ac_cv_prog_NMEDIT
6316 if test -n "$NMEDIT"; then
6317   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6318 $as_echo "$NMEDIT" >&6; }
6319 else
6320   { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325 fi
6326 if test -z "$ac_cv_prog_NMEDIT"; then
6327   ac_ct_NMEDIT=$NMEDIT
6328   # Extract the first word of "nmedit", so it can be a program name with args.
6329 set dummy nmedit; ac_word=$2
6330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$ac_ct_NMEDIT"; then
6336   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343   for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6346     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6356 if test -n "$ac_ct_NMEDIT"; then
6357   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6358 $as_echo "$ac_ct_NMEDIT" >&6; }
6359 else
6360   { $as_echo "$as_me:$LINENO: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364   if test "x$ac_ct_NMEDIT" = x; then
6365     NMEDIT=":"
6366   else
6367     case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373     NMEDIT=$ac_ct_NMEDIT
6374   fi
6375 else
6376   NMEDIT="$ac_cv_prog_NMEDIT"
6377 fi
6378
6379     if test -n "$ac_tool_prefix"; then
6380   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_LIPO+set}" = set; then
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test -n "$LIPO"; then
6388   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395   for ac_exec_ext in '' $ac_executable_extensions; do
6396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6398     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 LIPO=$ac_cv_prog_LIPO
6408 if test -n "$LIPO"; then
6409   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6410 $as_echo "$LIPO" >&6; }
6411 else
6412   { $as_echo "$as_me:$LINENO: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416
6417 fi
6418 if test -z "$ac_cv_prog_LIPO"; then
6419   ac_ct_LIPO=$LIPO
6420   # Extract the first word of "lipo", so it can be a program name with args.
6421 set dummy lipo; ac_word=$2
6422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test -n "$ac_ct_LIPO"; then
6428   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435   for ac_exec_ext in '' $ac_executable_extensions; do
6436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437     ac_cv_prog_ac_ct_LIPO="lipo"
6438     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442 done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6448 if test -n "$ac_ct_LIPO"; then
6449   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6450 $as_echo "$ac_ct_LIPO" >&6; }
6451 else
6452   { $as_echo "$as_me:$LINENO: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456   if test "x$ac_ct_LIPO" = x; then
6457     LIPO=":"
6458   else
6459     case $cross_compiling:$ac_tool_warned in
6460 yes:)
6461 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6464 esac
6465     LIPO=$ac_ct_LIPO
6466   fi
6467 else
6468   LIPO="$ac_cv_prog_LIPO"
6469 fi
6470
6471     if test -n "$ac_tool_prefix"; then
6472   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}otool; ac_word=$2
6474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_OTOOL+set}" = set; then
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$OTOOL"; then
6480   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487   for ac_exec_ext in '' $ac_executable_extensions; do
6488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 OTOOL=$ac_cv_prog_OTOOL
6500 if test -n "$OTOOL"; then
6501   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6502 $as_echo "$OTOOL" >&6; }
6503 else
6504   { $as_echo "$as_me:$LINENO: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508
6509 fi
6510 if test -z "$ac_cv_prog_OTOOL"; then
6511   ac_ct_OTOOL=$OTOOL
6512   # Extract the first word of "otool", so it can be a program name with args.
6513 set dummy otool; ac_word=$2
6514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6517   $as_echo_n "(cached) " >&6
6518 else
6519   if test -n "$ac_ct_OTOOL"; then
6520   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527   for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_prog_ac_ct_OTOOL="otool"
6530     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6540 if test -n "$ac_ct_OTOOL"; then
6541   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6542 $as_echo "$ac_ct_OTOOL" >&6; }
6543 else
6544   { $as_echo "$as_me:$LINENO: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548   if test "x$ac_ct_OTOOL" = x; then
6549     OTOOL=":"
6550   else
6551     case $cross_compiling:$ac_tool_warned in
6552 yes:)
6553 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557     OTOOL=$ac_ct_OTOOL
6558   fi
6559 else
6560   OTOOL="$ac_cv_prog_OTOOL"
6561 fi
6562
6563     if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$OTOOL64"; then
6572   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 OTOOL64=$ac_cv_prog_OTOOL64
6592 if test -n "$OTOOL64"; then
6593   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6594 $as_echo "$OTOOL64" >&6; }
6595 else
6596   { $as_echo "$as_me:$LINENO: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_OTOOL64"; then
6603   ac_ct_OTOOL64=$OTOOL64
6604   # Extract the first word of "otool64", so it can be a program name with args.
6605 set dummy otool64; ac_word=$2
6606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$ac_ct_OTOOL64"; then
6612   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_ac_ct_OTOOL64="otool64"
6622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6632 if test -n "$ac_ct_OTOOL64"; then
6633   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6634 $as_echo "$ac_ct_OTOOL64" >&6; }
6635 else
6636   { $as_echo "$as_me:$LINENO: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_OTOOL64" = x; then
6641     OTOOL64=":"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6648 esac
6649     OTOOL64=$ac_ct_OTOOL64
6650   fi
6651 else
6652   OTOOL64="$ac_cv_prog_OTOOL64"
6653 fi
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6682 $as_echo_n "checking for -single_module linker flag... " >&6; }
6683 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6684   $as_echo_n "(cached) " >&6
6685 else
6686   lt_cv_apple_cc_single_mod=no
6687       if test -z "${LT_MULTI_MODULE}"; then
6688         # By default we will add the -single_module flag. You can override
6689         # by either setting the environment variable LT_MULTI_MODULE
6690         # non-empty at configure time, or by adding -multi_module to the
6691         # link flags.
6692         rm -rf libconftest.dylib*
6693         echo "int foo(void){return 1;}" > conftest.c
6694         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6695 -dynamiclib -Wl,-single_module conftest.c" >&5
6696         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6697           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6698         _lt_result=$?
6699         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6700           lt_cv_apple_cc_single_mod=yes
6701         else
6702           cat conftest.err >&5
6703         fi
6704         rm -rf libconftest.dylib*
6705         rm -f conftest.*
6706       fi
6707 fi
6708 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6709 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6710     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6711 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6712 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6713   $as_echo_n "(cached) " >&6
6714 else
6715   lt_cv_ld_exported_symbols_list=no
6716       save_LDFLAGS=$LDFLAGS
6717       echo "_main" > conftest.sym
6718       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6719       cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725
6726 int
6727 main ()
6728 {
6729
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (ac_try="$ac_link"
6736 case "(($ac_try" in
6737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738   *) ac_try_echo=$ac_try;;
6739 esac
6740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741 $as_echo "$ac_try_echo") >&5
6742   (eval "$ac_link") 2>conftest.er1
6743   ac_status=$?
6744   grep -v '^ *+' conftest.er1 >conftest.err
6745   rm -f conftest.er1
6746   cat conftest.err >&5
6747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); } && {
6749          test -z "$ac_c_werror_flag" ||
6750          test ! -s conftest.err
6751        } && test -s conftest$ac_exeext && {
6752          test "$cross_compiling" = yes ||
6753          $as_test_x conftest$ac_exeext
6754        }; then
6755   lt_cv_ld_exported_symbols_list=yes
6756 else
6757   $as_echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6759
6760         lt_cv_ld_exported_symbols_list=no
6761 fi
6762
6763 rm -rf conftest.dSYM
6764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6765       conftest$ac_exeext conftest.$ac_ext
6766         LDFLAGS="$save_LDFLAGS"
6767
6768 fi
6769 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6770 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6771     case $host_os in
6772     rhapsody* | darwin1.[012])
6773       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6774     darwin1.*)
6775       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6776     darwin*) # darwin 5.x on
6777       # if running on 10.5 or later, the deployment target defaults
6778       # to the OS version, if on x86, and 10.4, the deployment
6779       # target defaults to 10.4. Don't you love it?
6780       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6781         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6782           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6783         10.[012]*)
6784           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6785         10.*)
6786           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6787       esac
6788     ;;
6789   esac
6790     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6791       _lt_dar_single_mod='$single_module'
6792     fi
6793     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6794       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6795     else
6796       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6797     fi
6798     if test "$DSYMUTIL" != ":"; then
6799       _lt_dsymutil='~$DSYMUTIL $lib || :'
6800     else
6801       _lt_dsymutil=
6802     fi
6803     ;;
6804   esac
6805
6806 ac_ext=c
6807 ac_cpp='$CPP $CPPFLAGS'
6808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6813 # On Suns, sometimes $CPP names a directory.
6814 if test -n "$CPP" && test -d "$CPP"; then
6815   CPP=
6816 fi
6817 if test -z "$CPP"; then
6818   if test "${ac_cv_prog_CPP+set}" = set; then
6819   $as_echo_n "(cached) " >&6
6820 else
6821       # Double quotes because CPP needs to be expanded
6822     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6823     do
6824       ac_preproc_ok=false
6825 for ac_c_preproc_warn_flag in '' yes
6826 do
6827   # Use a header file that comes with gcc, so configuring glibc
6828   # with a fresh cross-compiler works.
6829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830   # <limits.h> exists even on freestanding compilers.
6831   # On the NeXT, cc -E runs the code through the compiler's parser,
6832   # not just through cpp. "Syntax error" is here to catch this case.
6833   cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 #ifdef __STDC__
6840 # include <limits.h>
6841 #else
6842 # include <assert.h>
6843 #endif
6844                      Syntax error
6845 _ACEOF
6846 if { (ac_try="$ac_cpp conftest.$ac_ext"
6847 case "(($ac_try" in
6848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849   *) ac_try_echo=$ac_try;;
6850 esac
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6854   ac_status=$?
6855   grep -v '^ *+' conftest.er1 >conftest.err
6856   rm -f conftest.er1
6857   cat conftest.err >&5
6858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); } >/dev/null && {
6860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6861          test ! -s conftest.err
6862        }; then
6863   :
6864 else
6865   $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868   # Broken: fails on valid input.
6869 continue
6870 fi
6871
6872 rm -f conftest.err conftest.$ac_ext
6873
6874   # OK, works on sane cases.  Now check whether nonexistent headers
6875   # can be detected and how.
6876   cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882 #include <ac_nonexistent.h>
6883 _ACEOF
6884 if { (ac_try="$ac_cpp conftest.$ac_ext"
6885 case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } >/dev/null && {
6898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6899          test ! -s conftest.err
6900        }; then
6901   # Broken: success on invalid input.
6902 continue
6903 else
6904   $as_echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907   # Passes both tests.
6908 ac_preproc_ok=:
6909 break
6910 fi
6911
6912 rm -f conftest.err conftest.$ac_ext
6913
6914 done
6915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916 rm -f conftest.err conftest.$ac_ext
6917 if $ac_preproc_ok; then
6918   break
6919 fi
6920
6921     done
6922     ac_cv_prog_CPP=$CPP
6923
6924 fi
6925   CPP=$ac_cv_prog_CPP
6926 else
6927   ac_cv_prog_CPP=$CPP
6928 fi
6929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6930 $as_echo "$CPP" >&6; }
6931 ac_preproc_ok=false
6932 for ac_c_preproc_warn_flag in '' yes
6933 do
6934   # Use a header file that comes with gcc, so configuring glibc
6935   # with a fresh cross-compiler works.
6936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6937   # <limits.h> exists even on freestanding compilers.
6938   # On the NeXT, cc -E runs the code through the compiler's parser,
6939   # not just through cpp. "Syntax error" is here to catch this case.
6940   cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 #ifdef __STDC__
6947 # include <limits.h>
6948 #else
6949 # include <assert.h>
6950 #endif
6951                      Syntax error
6952 _ACEOF
6953 if { (ac_try="$ac_cpp conftest.$ac_ext"
6954 case "(($ac_try" in
6955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956   *) ac_try_echo=$ac_try;;
6957 esac
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } >/dev/null && {
6967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968          test ! -s conftest.err
6969        }; then
6970   :
6971 else
6972   $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975   # Broken: fails on valid input.
6976 continue
6977 fi
6978
6979 rm -f conftest.err conftest.$ac_ext
6980
6981   # OK, works on sane cases.  Now check whether nonexistent headers
6982   # can be detected and how.
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #include <ac_nonexistent.h>
6990 _ACEOF
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } >/dev/null && {
7005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7006          test ! -s conftest.err
7007        }; then
7008   # Broken: success on invalid input.
7009 continue
7010 else
7011   $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014   # Passes both tests.
7015 ac_preproc_ok=:
7016 break
7017 fi
7018
7019 rm -f conftest.err conftest.$ac_ext
7020
7021 done
7022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7023 rm -f conftest.err conftest.$ac_ext
7024 if $ac_preproc_ok; then
7025   :
7026 else
7027   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7030 See \`config.log' for more details." >&5
7031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7032 See \`config.log' for more details." >&2;}
7033    { (exit 1); exit 1; }; }; }
7034 fi
7035
7036 ac_ext=c
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041
7042
7043 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7044 $as_echo_n "checking for ANSI C header files... " >&6; }
7045 if test "${ac_cv_header_stdc+set}" = set; then
7046   $as_echo_n "(cached) " >&6
7047 else
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054 #include <stdlib.h>
7055 #include <stdarg.h>
7056 #include <string.h>
7057 #include <float.h>
7058
7059 int
7060 main ()
7061 {
7062
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7069 case "(($ac_try" in
7070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071   *) ac_try_echo=$ac_try;;
7072 esac
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075   (eval "$ac_compile") 2>conftest.er1
7076   ac_status=$?
7077   grep -v '^ *+' conftest.er1 >conftest.err
7078   rm -f conftest.er1
7079   cat conftest.err >&5
7080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } && {
7082          test -z "$ac_c_werror_flag" ||
7083          test ! -s conftest.err
7084        } && test -s conftest.$ac_objext; then
7085   ac_cv_header_stdc=yes
7086 else
7087   $as_echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090         ac_cv_header_stdc=no
7091 fi
7092
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094
7095 if test $ac_cv_header_stdc = yes; then
7096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7097   cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103 #include <string.h>
7104
7105 _ACEOF
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107   $EGREP "memchr" >/dev/null 2>&1; then
7108   :
7109 else
7110   ac_cv_header_stdc=no
7111 fi
7112 rm -f conftest*
7113
7114 fi
7115
7116 if test $ac_cv_header_stdc = yes; then
7117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <stdlib.h>
7125
7126 _ACEOF
7127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128   $EGREP "free" >/dev/null 2>&1; then
7129   :
7130 else
7131   ac_cv_header_stdc=no
7132 fi
7133 rm -f conftest*
7134
7135 fi
7136
7137 if test $ac_cv_header_stdc = yes; then
7138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7139   if test "$cross_compiling" = yes; then
7140   :
7141 else
7142   cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 #include <ctype.h>
7149 #include <stdlib.h>
7150 #if ((' ' & 0x0FF) == 0x020)
7151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7153 #else
7154 # define ISLOWER(c) \
7155                    (('a' <= (c) && (c) <= 'i') \
7156                      || ('j' <= (c) && (c) <= 'r') \
7157                      || ('s' <= (c) && (c) <= 'z'))
7158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7159 #endif
7160
7161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7162 int
7163 main ()
7164 {
7165   int i;
7166   for (i = 0; i < 256; i++)
7167     if (XOR (islower (i), ISLOWER (i))
7168         || toupper (i) != TOUPPER (i))
7169       return 2;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest$ac_exeext
7174 if { (ac_try="$ac_link"
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_link") 2>&5
7182   ac_status=$?
7183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7185   { (case "(($ac_try" in
7186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187   *) ac_try_echo=$ac_try;;
7188 esac
7189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7190 $as_echo "$ac_try_echo") >&5
7191   (eval "$ac_try") 2>&5
7192   ac_status=$?
7193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; }; then
7195   :
7196 else
7197   $as_echo "$as_me: program exited with status $ac_status" >&5
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 ( exit $ac_status )
7202 ac_cv_header_stdc=no
7203 fi
7204 rm -rf conftest.dSYM
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7206 fi
7207
7208
7209 fi
7210 fi
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7212 $as_echo "$ac_cv_header_stdc" >&6; }
7213 if test $ac_cv_header_stdc = yes; then
7214
7215 cat >>confdefs.h <<\_ACEOF
7216 #define STDC_HEADERS 1
7217 _ACEOF
7218
7219 fi
7220
7221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7232                   inttypes.h stdint.h unistd.h
7233 do
7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7236 $as_echo_n "checking for $ac_header... " >&6; }
7237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7238   $as_echo_n "(cached) " >&6
7239 else
7240   cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h.  */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h.  */
7246 $ac_includes_default
7247
7248 #include <$ac_header>
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7252 case "(($ac_try" in
7253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254   *) ac_try_echo=$ac_try;;
7255 esac
7256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7257 $as_echo "$ac_try_echo") >&5
7258   (eval "$ac_compile") 2>conftest.er1
7259   ac_status=$?
7260   grep -v '^ *+' conftest.er1 >conftest.err
7261   rm -f conftest.er1
7262   cat conftest.err >&5
7263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); } && {
7265          test -z "$ac_c_werror_flag" ||
7266          test ! -s conftest.err
7267        } && test -s conftest.$ac_objext; then
7268   eval "$as_ac_Header=yes"
7269 else
7270   $as_echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7272
7273         eval "$as_ac_Header=no"
7274 fi
7275
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 fi
7278 ac_res=`eval 'as_val=${'$as_ac_Header'}
7279                  $as_echo "$as_val"'`
7280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7281 $as_echo "$ac_res" >&6; }
7282 as_val=`eval 'as_val=${'$as_ac_Header'}
7283                  $as_echo "$as_val"'`
7284    if test "x$as_val" = x""yes; then
7285   cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7287 _ACEOF
7288
7289 fi
7290
7291 done
7292
7293
7294
7295 for ac_header in dlfcn.h
7296 do
7297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 $as_echo_n "checking for $ac_header... " >&6; }
7300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7301   $as_echo_n "(cached) " >&6
7302 else
7303   cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 $ac_includes_default
7310
7311 #include <$ac_header>
7312 _ACEOF
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7315 case "(($ac_try" in
7316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317   *) ac_try_echo=$ac_try;;
7318 esac
7319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7320 $as_echo "$ac_try_echo") >&5
7321   (eval "$ac_compile") 2>conftest.er1
7322   ac_status=$?
7323   grep -v '^ *+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } && {
7328          test -z "$ac_c_werror_flag" ||
7329          test ! -s conftest.err
7330        } && test -s conftest.$ac_objext; then
7331   eval "$as_ac_Header=yes"
7332 else
7333   $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7335
7336         eval "$as_ac_Header=no"
7337 fi
7338
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 fi
7341 ac_res=`eval 'as_val=${'$as_ac_Header'}
7342                  $as_echo "$as_val"'`
7343                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7344 $as_echo "$ac_res" >&6; }
7345 as_val=`eval 'as_val=${'$as_ac_Header'}
7346                  $as_echo "$as_val"'`
7347    if test "x$as_val" = x""yes; then
7348   cat >>confdefs.h <<_ACEOF
7349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7350 _ACEOF
7351
7352 fi
7353
7354 done
7355
7356
7357
7358 # Set options
7359
7360
7361
7362         enable_dlopen=no
7363
7364
7365   enable_win32_dll=no
7366
7367
7368             # Check whether --enable-shared was given.
7369 if test "${enable_shared+set}" = set; then
7370   enableval=$enable_shared; p=${PACKAGE-default}
7371     case $enableval in
7372     yes) enable_shared=yes ;;
7373     no) enable_shared=no ;;
7374     *)
7375       enable_shared=no
7376       # Look at the argument we got.  We use all the common list separators.
7377       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378       for pkg in $enableval; do
7379         IFS="$lt_save_ifs"
7380         if test "X$pkg" = "X$p"; then
7381           enable_shared=yes
7382         fi
7383       done
7384       IFS="$lt_save_ifs"
7385       ;;
7386     esac
7387 else
7388   enable_shared=yes
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399   # Check whether --enable-static was given.
7400 if test "${enable_static+set}" = set; then
7401   enableval=$enable_static; p=${PACKAGE-default}
7402     case $enableval in
7403     yes) enable_static=yes ;;
7404     no) enable_static=no ;;
7405     *)
7406      enable_static=no
7407       # Look at the argument we got.  We use all the common list separators.
7408       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409       for pkg in $enableval; do
7410         IFS="$lt_save_ifs"
7411         if test "X$pkg" = "X$p"; then
7412           enable_static=yes
7413         fi
7414       done
7415       IFS="$lt_save_ifs"
7416       ;;
7417     esac
7418 else
7419   enable_static=yes
7420 fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 # Check whether --with-pic was given.
7432 if test "${with_pic+set}" = set; then
7433   withval=$with_pic; pic_mode="$withval"
7434 else
7435   pic_mode=default
7436 fi
7437
7438
7439 test -z "$pic_mode" && pic_mode=default
7440
7441
7442
7443
7444
7445
7446
7447   # Check whether --enable-fast-install was given.
7448 if test "${enable_fast_install+set}" = set; then
7449   enableval=$enable_fast_install; p=${PACKAGE-default}
7450     case $enableval in
7451     yes) enable_fast_install=yes ;;
7452     no) enable_fast_install=no ;;
7453     *)
7454       enable_fast_install=no
7455       # Look at the argument we got.  We use all the common list separators.
7456       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457       for pkg in $enableval; do
7458         IFS="$lt_save_ifs"
7459         if test "X$pkg" = "X$p"; then
7460           enable_fast_install=yes
7461         fi
7462       done
7463       IFS="$lt_save_ifs"
7464       ;;
7465     esac
7466 else
7467   enable_fast_install=yes
7468 fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 # This can be used to rebuild libtool when needed
7481 LIBTOOL_DEPS="$ltmain"
7482
7483 # Always use our own libtool.
7484 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510 test -z "$LN_S" && LN_S="ln -s"
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525 if test -n "${ZSH_VERSION+set}" ; then
7526    setopt NO_GLOB_SUBST
7527 fi
7528
7529 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7530 $as_echo_n "checking for objdir... " >&6; }
7531 if test "${lt_cv_objdir+set}" = set; then
7532   $as_echo_n "(cached) " >&6
7533 else
7534   rm -f .libs 2>/dev/null
7535 mkdir .libs 2>/dev/null
7536 if test -d .libs; then
7537   lt_cv_objdir=.libs
7538 else
7539   # MS-DOS does not allow filenames that begin with a dot.
7540   lt_cv_objdir=_libs
7541 fi
7542 rmdir .libs 2>/dev/null
7543 fi
7544 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7545 $as_echo "$lt_cv_objdir" >&6; }
7546 objdir=$lt_cv_objdir
7547
7548
7549
7550
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define LT_OBJDIR "$lt_cv_objdir/"
7554 _ACEOF
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 case $host_os in
7573 aix3*)
7574   # AIX sometimes has problems with the GCC collect2 program.  For some
7575   # reason, if we set the COLLECT_NAMES environment variable, the problems
7576   # vanish in a puff of smoke.
7577   if test "X${COLLECT_NAMES+set}" != Xset; then
7578     COLLECT_NAMES=
7579     export COLLECT_NAMES
7580   fi
7581   ;;
7582 esac
7583
7584 # Sed substitution that helps us do robust quoting.  It backslashifies
7585 # metacharacters that are still active within double-quoted strings.
7586 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7587
7588 # Same as above, but do not quote variable references.
7589 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7590
7591 # Sed substitution to delay expansion of an escaped shell variable in a
7592 # double_quote_subst'ed string.
7593 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7594
7595 # Sed substitution to delay expansion of an escaped single quote.
7596 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7597
7598 # Sed substitution to avoid accidental globbing in evaled expressions
7599 no_glob_subst='s/\*/\\\*/g'
7600
7601 # Global variables:
7602 ofile=libtool
7603 can_build_shared=yes
7604
7605 # All known linkers require a `.a' archive for static linking (except MSVC,
7606 # which needs '.lib').
7607 libext=a
7608
7609 with_gnu_ld="$lt_cv_prog_gnu_ld"
7610
7611 old_CC="$CC"
7612 old_CFLAGS="$CFLAGS"
7613
7614 # Set sane defaults for various variables
7615 test -z "$CC" && CC=cc
7616 test -z "$LTCC" && LTCC=$CC
7617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7618 test -z "$LD" && LD=ld
7619 test -z "$ac_objext" && ac_objext=o
7620
7621 for cc_temp in $compiler""; do
7622   case $cc_temp in
7623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7625     \-*) ;;
7626     *) break;;
7627   esac
7628 done
7629 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7630
7631
7632 # Only perform the check for file, if the check method requires it
7633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7634 case $deplibs_check_method in
7635 file_magic*)
7636   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7637     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7638 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7639 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7640   $as_echo_n "(cached) " >&6
7641 else
7642   case $MAGIC_CMD in
7643 [\\/*] |  ?:[\\/]*)
7644   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7645   ;;
7646 *)
7647   lt_save_MAGIC_CMD="$MAGIC_CMD"
7648   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7649   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7650   for ac_dir in $ac_dummy; do
7651     IFS="$lt_save_ifs"
7652     test -z "$ac_dir" && ac_dir=.
7653     if test -f $ac_dir/${ac_tool_prefix}file; then
7654       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7655       if test -n "$file_magic_test_file"; then
7656         case $deplibs_check_method in
7657         "file_magic "*)
7658           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7659           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7661             $EGREP "$file_magic_regex" > /dev/null; then
7662             :
7663           else
7664             cat <<_LT_EOF 1>&2
7665
7666 *** Warning: the command libtool uses to detect shared libraries,
7667 *** $file_magic_cmd, produces output that libtool cannot recognize.
7668 *** The result is that libtool may fail to recognize shared libraries
7669 *** as such.  This will affect the creation of libtool libraries that
7670 *** depend on shared libraries, but programs linked with such libtool
7671 *** libraries will work regardless of this problem.  Nevertheless, you
7672 *** may want to report the problem to your system manager and/or to
7673 *** bug-libtool@gnu.org
7674
7675 _LT_EOF
7676           fi ;;
7677         esac
7678       fi
7679       break
7680     fi
7681   done
7682   IFS="$lt_save_ifs"
7683   MAGIC_CMD="$lt_save_MAGIC_CMD"
7684   ;;
7685 esac
7686 fi
7687
7688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689 if test -n "$MAGIC_CMD"; then
7690   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7691 $as_echo "$MAGIC_CMD" >&6; }
7692 else
7693   { $as_echo "$as_me:$LINENO: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698
7699
7700
7701 if test -z "$lt_cv_path_MAGIC_CMD"; then
7702   if test -n "$ac_tool_prefix"; then
7703     { $as_echo "$as_me:$LINENO: checking for file" >&5
7704 $as_echo_n "checking for file... " >&6; }
7705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7706   $as_echo_n "(cached) " >&6
7707 else
7708   case $MAGIC_CMD in
7709 [\\/*] |  ?:[\\/]*)
7710   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7711   ;;
7712 *)
7713   lt_save_MAGIC_CMD="$MAGIC_CMD"
7714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7715   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7716   for ac_dir in $ac_dummy; do
7717     IFS="$lt_save_ifs"
7718     test -z "$ac_dir" && ac_dir=.
7719     if test -f $ac_dir/file; then
7720       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7721       if test -n "$file_magic_test_file"; then
7722         case $deplibs_check_method in
7723         "file_magic "*)
7724           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7725           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7727             $EGREP "$file_magic_regex" > /dev/null; then
7728             :
7729           else
7730             cat <<_LT_EOF 1>&2
7731
7732 *** Warning: the command libtool uses to detect shared libraries,
7733 *** $file_magic_cmd, produces output that libtool cannot recognize.
7734 *** The result is that libtool may fail to recognize shared libraries
7735 *** as such.  This will affect the creation of libtool libraries that
7736 *** depend on shared libraries, but programs linked with such libtool
7737 *** libraries will work regardless of this problem.  Nevertheless, you
7738 *** may want to report the problem to your system manager and/or to
7739 *** bug-libtool@gnu.org
7740
7741 _LT_EOF
7742           fi ;;
7743         esac
7744       fi
7745       break
7746     fi
7747   done
7748   IFS="$lt_save_ifs"
7749   MAGIC_CMD="$lt_save_MAGIC_CMD"
7750   ;;
7751 esac
7752 fi
7753
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if test -n "$MAGIC_CMD"; then
7756   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7757 $as_echo "$MAGIC_CMD" >&6; }
7758 else
7759   { $as_echo "$as_me:$LINENO: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762
7763
7764   else
7765     MAGIC_CMD=:
7766   fi
7767 fi
7768
7769   fi
7770   ;;
7771 esac
7772
7773 # Use C for the default configuration in the libtool script
7774
7775 lt_save_CC="$CC"
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 # Source file extension for C test sources.
7784 ac_ext=c
7785
7786 # Object file extension for compiled C test sources.
7787 objext=o
7788 objext=$objext
7789
7790 # Code to be used in simple compile tests
7791 lt_simple_compile_test_code="int some_variable = 0;"
7792
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code='int main(){return(0);}'
7795
7796
7797
7798
7799
7800
7801
7802 # If no C compiler was specified, use CC.
7803 LTCC=${LTCC-"$CC"}
7804
7805 # If no C compiler flags were specified, use CFLAGS.
7806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7807
7808 # Allow CC to be a program name with arguments.
7809 compiler=$CC
7810
7811 # Save the default compiler, since it gets overwritten when the other
7812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7813 compiler_DEFAULT=$CC
7814
7815 # save warnings/boilerplate of simple test code
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819 _lt_compiler_boilerplate=`cat conftest.err`
7820 $RM conftest*
7821
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_linker_boilerplate=`cat conftest.err`
7826 $RM -r conftest*
7827
7828
7829 if test -n "$compiler"; then
7830
7831 lt_prog_compiler_no_builtin_flag=
7832
7833 if test "$GCC" = yes; then
7834   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7835
7836   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7837 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7838 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7839   $as_echo_n "(cached) " >&6
7840 else
7841   lt_cv_prog_compiler_rtti_exceptions=no
7842    ac_outfile=conftest.$ac_objext
7843    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844    lt_compiler_flag="-fno-rtti -fno-exceptions"
7845    # Insert the option either (1) after the last *FLAGS variable, or
7846    # (2) before a word containing "conftest.", or (3) at the end.
7847    # Note that $ac_compile itself does not contain backslashes and begins
7848    # with a dollar sign (not a hyphen), so the echo should work correctly.
7849    # The option is referenced via a variable to avoid confusing sed.
7850    lt_compile=`echo "$ac_compile" | $SED \
7851    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7853    -e 's:$: $lt_compiler_flag:'`
7854    (eval echo "\"\$as_me:7854: $lt_compile\"" >&5)
7855    (eval "$lt_compile" 2>conftest.err)
7856    ac_status=$?
7857    cat conftest.err >&5
7858    echo "$as_me:7858: \$? = $ac_status" >&5
7859    if (exit $ac_status) && test -s "$ac_outfile"; then
7860      # The compiler can only warn and ignore the option if not recognized
7861      # So say no if there are warnings other than the usual output.
7862      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7863      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7864      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7865        lt_cv_prog_compiler_rtti_exceptions=yes
7866      fi
7867    fi
7868    $RM conftest*
7869
7870 fi
7871 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7872 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7873
7874 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7875     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7876 else
7877     :
7878 fi
7879
7880 fi
7881
7882
7883
7884
7885
7886
7887   lt_prog_compiler_wl=
7888 lt_prog_compiler_pic=
7889 lt_prog_compiler_static=
7890
7891 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7892 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7893
7894   if test "$GCC" = yes; then
7895     lt_prog_compiler_wl='-Wl,'
7896     lt_prog_compiler_static='-static'
7897
7898     case $host_os in
7899       aix*)
7900       # All AIX code is PIC.
7901       if test "$host_cpu" = ia64; then
7902         # AIX 5 now supports IA64 processor
7903         lt_prog_compiler_static='-Bstatic'
7904       fi
7905       ;;
7906
7907     amigaos*)
7908       case $host_cpu in
7909       powerpc)
7910             # see comment about AmigaOS4 .so support
7911             lt_prog_compiler_pic='-fPIC'
7912         ;;
7913       m68k)
7914             # FIXME: we need at least 68020 code to build shared libraries, but
7915             # adding the `-m68020' flag to GCC prevents building anything better,
7916             # like `-m68040'.
7917             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7918         ;;
7919       esac
7920       ;;
7921
7922     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7923       # PIC is the default for these OSes.
7924       ;;
7925
7926     mingw* | cygwin* | pw32* | os2* | cegcc*)
7927       # This hack is so that the source file can tell whether it is being
7928       # built for inclusion in a dll (and should export symbols for example).
7929       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7930       # (--disable-auto-import) libraries
7931       lt_prog_compiler_pic='-DDLL_EXPORT'
7932       ;;
7933
7934     darwin* | rhapsody*)
7935       # PIC is the default on this platform
7936       # Common symbols not allowed in MH_DYLIB files
7937       lt_prog_compiler_pic='-fno-common'
7938       ;;
7939
7940     hpux*)
7941       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7942       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7943       # sets the default TLS model and affects inlining.
7944       case $host_cpu in
7945       hppa*64*)
7946         # +Z the default
7947         ;;
7948       *)
7949         lt_prog_compiler_pic='-fPIC'
7950         ;;
7951       esac
7952       ;;
7953
7954     interix[3-9]*)
7955       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7956       # Instead, we relocate shared libraries at runtime.
7957       ;;
7958
7959     msdosdjgpp*)
7960       # Just because we use GCC doesn't mean we suddenly get shared libraries
7961       # on systems that don't support them.
7962       lt_prog_compiler_can_build_shared=no
7963       enable_shared=no
7964       ;;
7965
7966     *nto* | *qnx*)
7967       # QNX uses GNU C++, but need to define -shared option too, otherwise
7968       # it will coredump.
7969       lt_prog_compiler_pic='-fPIC -shared'
7970       ;;
7971
7972     sysv4*MP*)
7973       if test -d /usr/nec; then
7974         lt_prog_compiler_pic=-Kconform_pic
7975       fi
7976       ;;
7977
7978     *)
7979       lt_prog_compiler_pic='-fPIC'
7980       ;;
7981     esac
7982   else
7983     # PORTME Check for flag to pass linker flags through the system compiler.
7984     case $host_os in
7985     aix*)
7986       lt_prog_compiler_wl='-Wl,'
7987       if test "$host_cpu" = ia64; then
7988         # AIX 5 now supports IA64 processor
7989         lt_prog_compiler_static='-Bstatic'
7990       else
7991         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7992       fi
7993       ;;
7994
7995     mingw* | cygwin* | pw32* | os2* | cegcc*)
7996       # This hack is so that the source file can tell whether it is being
7997       # built for inclusion in a dll (and should export symbols for example).
7998       lt_prog_compiler_pic='-DDLL_EXPORT'
7999       ;;
8000
8001     hpux9* | hpux10* | hpux11*)
8002       lt_prog_compiler_wl='-Wl,'
8003       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8004       # not for PA HP-UX.
8005       case $host_cpu in
8006       hppa*64*|ia64*)
8007         # +Z the default
8008         ;;
8009       *)
8010         lt_prog_compiler_pic='+Z'
8011         ;;
8012       esac
8013       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8014       lt_prog_compiler_static='${wl}-a ${wl}archive'
8015       ;;
8016
8017     irix5* | irix6* | nonstopux*)
8018       lt_prog_compiler_wl='-Wl,'
8019       # PIC (with -KPIC) is the default.
8020       lt_prog_compiler_static='-non_shared'
8021       ;;
8022
8023     linux* | k*bsd*-gnu)
8024       case $cc_basename in
8025       # old Intel for x86_64 which still supported -KPIC.
8026       ecc*)
8027         lt_prog_compiler_wl='-Wl,'
8028         lt_prog_compiler_pic='-KPIC'
8029         lt_prog_compiler_static='-static'
8030         ;;
8031       # icc used to be incompatible with GCC.
8032       # ICC 10 doesn't accept -KPIC any more.
8033       icc* | ifort*)
8034         lt_prog_compiler_wl='-Wl,'
8035         lt_prog_compiler_pic='-fPIC'
8036         lt_prog_compiler_static='-static'
8037         ;;
8038       # Lahey Fortran 8.1.
8039       lf95*)
8040         lt_prog_compiler_wl='-Wl,'
8041         lt_prog_compiler_pic='--shared'
8042         lt_prog_compiler_static='--static'
8043         ;;
8044       pgcc* | pgf77* | pgf90* | pgf95*)
8045         # Portland Group compilers (*not* the Pentium gcc compiler,
8046         # which looks to be a dead project)
8047         lt_prog_compiler_wl='-Wl,'
8048         lt_prog_compiler_pic='-fpic'
8049         lt_prog_compiler_static='-Bstatic'
8050         ;;
8051       ccc*)
8052         lt_prog_compiler_wl='-Wl,'
8053         # All Alpha code is PIC.
8054         lt_prog_compiler_static='-non_shared'
8055         ;;
8056       xl*)
8057         # IBM XL C 8.0/Fortran 10.1 on PPC
8058         lt_prog_compiler_wl='-Wl,'
8059         lt_prog_compiler_pic='-qpic'
8060         lt_prog_compiler_static='-qstaticlink'
8061         ;;
8062       *)
8063         case `$CC -V 2>&1 | sed 5q` in
8064         *Sun\ C*)
8065           # Sun C 5.9
8066           lt_prog_compiler_pic='-KPIC'
8067           lt_prog_compiler_static='-Bstatic'
8068           lt_prog_compiler_wl='-Wl,'
8069           ;;
8070         *Sun\ F*)
8071           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8072           lt_prog_compiler_pic='-KPIC'
8073           lt_prog_compiler_static='-Bstatic'
8074           lt_prog_compiler_wl=''
8075           ;;
8076         esac
8077         ;;
8078       esac
8079       ;;
8080
8081     newsos6)
8082       lt_prog_compiler_pic='-KPIC'
8083       lt_prog_compiler_static='-Bstatic'
8084       ;;
8085
8086     *nto* | *qnx*)
8087       # QNX uses GNU C++, but need to define -shared option too, otherwise
8088       # it will coredump.
8089       lt_prog_compiler_pic='-fPIC -shared'
8090       ;;
8091
8092     osf3* | osf4* | osf5*)
8093       lt_prog_compiler_wl='-Wl,'
8094       # All OSF/1 code is PIC.
8095       lt_prog_compiler_static='-non_shared'
8096       ;;
8097
8098     rdos*)
8099       lt_prog_compiler_static='-non_shared'
8100       ;;
8101
8102     solaris*)
8103       lt_prog_compiler_pic='-KPIC'
8104       lt_prog_compiler_static='-Bstatic'
8105       case $cc_basename in
8106       f77* | f90* | f95*)
8107         lt_prog_compiler_wl='-Qoption ld ';;
8108       *)
8109         lt_prog_compiler_wl='-Wl,';;
8110       esac
8111       ;;
8112
8113     sunos4*)
8114       lt_prog_compiler_wl='-Qoption ld '
8115       lt_prog_compiler_pic='-PIC'
8116       lt_prog_compiler_static='-Bstatic'
8117       ;;
8118
8119     sysv4 | sysv4.2uw2* | sysv4.3*)
8120       lt_prog_compiler_wl='-Wl,'
8121       lt_prog_compiler_pic='-KPIC'
8122       lt_prog_compiler_static='-Bstatic'
8123       ;;
8124
8125     sysv4*MP*)
8126       if test -d /usr/nec ;then
8127         lt_prog_compiler_pic='-Kconform_pic'
8128         lt_prog_compiler_static='-Bstatic'
8129       fi
8130       ;;
8131
8132     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8133       lt_prog_compiler_wl='-Wl,'
8134       lt_prog_compiler_pic='-KPIC'
8135       lt_prog_compiler_static='-Bstatic'
8136       ;;
8137
8138     unicos*)
8139       lt_prog_compiler_wl='-Wl,'
8140       lt_prog_compiler_can_build_shared=no
8141       ;;
8142
8143     uts4*)
8144       lt_prog_compiler_pic='-pic'
8145       lt_prog_compiler_static='-Bstatic'
8146       ;;
8147
8148     *)
8149       lt_prog_compiler_can_build_shared=no
8150       ;;
8151     esac
8152   fi
8153
8154 case $host_os in
8155   # For platforms which do not support PIC, -DPIC is meaningless:
8156   *djgpp*)
8157     lt_prog_compiler_pic=
8158     ;;
8159   *)
8160     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8161     ;;
8162 esac
8163 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8164 $as_echo "$lt_prog_compiler_pic" >&6; }
8165
8166
8167
8168
8169
8170
8171 #
8172 # Check to make sure the PIC flag actually works.
8173 #
8174 if test -n "$lt_prog_compiler_pic"; then
8175   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8176 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8177 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8178   $as_echo_n "(cached) " >&6
8179 else
8180   lt_cv_prog_compiler_pic_works=no
8181    ac_outfile=conftest.$ac_objext
8182    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8184    # Insert the option either (1) after the last *FLAGS variable, or
8185    # (2) before a word containing "conftest.", or (3) at the end.
8186    # Note that $ac_compile itself does not contain backslashes and begins
8187    # with a dollar sign (not a hyphen), so the echo should work correctly.
8188    # The option is referenced via a variable to avoid confusing sed.
8189    lt_compile=`echo "$ac_compile" | $SED \
8190    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192    -e 's:$: $lt_compiler_flag:'`
8193    (eval echo "\"\$as_me:8193: $lt_compile\"" >&5)
8194    (eval "$lt_compile" 2>conftest.err)
8195    ac_status=$?
8196    cat conftest.err >&5
8197    echo "$as_me:8197: \$? = $ac_status" >&5
8198    if (exit $ac_status) && test -s "$ac_outfile"; then
8199      # The compiler can only warn and ignore the option if not recognized
8200      # So say no if there are warnings other than the usual output.
8201      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8202      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204        lt_cv_prog_compiler_pic_works=yes
8205      fi
8206    fi
8207    $RM conftest*
8208
8209 fi
8210 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8211 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8212
8213 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8214     case $lt_prog_compiler_pic in
8215      "" | " "*) ;;
8216      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8217      esac
8218 else
8219     lt_prog_compiler_pic=
8220      lt_prog_compiler_can_build_shared=no
8221 fi
8222
8223 fi
8224
8225
8226
8227
8228
8229
8230 #
8231 # Check to make sure the static flag actually works.
8232 #
8233 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8234 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8235 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8236 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8237   $as_echo_n "(cached) " >&6
8238 else
8239   lt_cv_prog_compiler_static_works=no
8240    save_LDFLAGS="$LDFLAGS"
8241    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8242    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8243    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8244      # The linker can only warn and ignore the option if not recognized
8245      # So say no if there are warnings
8246      if test -s conftest.err; then
8247        # Append any errors to the config.log.
8248        cat conftest.err 1>&5
8249        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8250        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8251        if diff conftest.exp conftest.er2 >/dev/null; then
8252          lt_cv_prog_compiler_static_works=yes
8253        fi
8254      else
8255        lt_cv_prog_compiler_static_works=yes
8256      fi
8257    fi
8258    $RM -r conftest*
8259    LDFLAGS="$save_LDFLAGS"
8260
8261 fi
8262 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8263 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8264
8265 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8266     :
8267 else
8268     lt_prog_compiler_static=
8269 fi
8270
8271
8272
8273
8274
8275
8276
8277   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8279 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8280   $as_echo_n "(cached) " >&6
8281 else
8282   lt_cv_prog_compiler_c_o=no
8283    $RM -r conftest 2>/dev/null
8284    mkdir conftest
8285    cd conftest
8286    mkdir out
8287    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8288
8289    lt_compiler_flag="-o out/conftest2.$ac_objext"
8290    # Insert the option either (1) after the last *FLAGS variable, or
8291    # (2) before a word containing "conftest.", or (3) at the end.
8292    # Note that $ac_compile itself does not contain backslashes and begins
8293    # with a dollar sign (not a hyphen), so the echo should work correctly.
8294    lt_compile=`echo "$ac_compile" | $SED \
8295    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297    -e 's:$: $lt_compiler_flag:'`
8298    (eval echo "\"\$as_me:8298: $lt_compile\"" >&5)
8299    (eval "$lt_compile" 2>out/conftest.err)
8300    ac_status=$?
8301    cat out/conftest.err >&5
8302    echo "$as_me:8302: \$? = $ac_status" >&5
8303    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8304    then
8305      # The compiler can only warn and ignore the option if not recognized
8306      # So say no if there are warnings
8307      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8308      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8309      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8310        lt_cv_prog_compiler_c_o=yes
8311      fi
8312    fi
8313    chmod u+w . 2>&5
8314    $RM conftest*
8315    # SGI C++ compiler will create directory out/ii_files/ for
8316    # template instantiation
8317    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8318    $RM out/* && rmdir out
8319    cd ..
8320    $RM -r conftest
8321    $RM conftest*
8322
8323 fi
8324 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8325 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8326
8327
8328
8329
8330
8331
8332   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8334 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8335   $as_echo_n "(cached) " >&6
8336 else
8337   lt_cv_prog_compiler_c_o=no
8338    $RM -r conftest 2>/dev/null
8339    mkdir conftest
8340    cd conftest
8341    mkdir out
8342    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8343
8344    lt_compiler_flag="-o out/conftest2.$ac_objext"
8345    # Insert the option either (1) after the last *FLAGS variable, or
8346    # (2) before a word containing "conftest.", or (3) at the end.
8347    # Note that $ac_compile itself does not contain backslashes and begins
8348    # with a dollar sign (not a hyphen), so the echo should work correctly.
8349    lt_compile=`echo "$ac_compile" | $SED \
8350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8352    -e 's:$: $lt_compiler_flag:'`
8353    (eval echo "\"\$as_me:8353: $lt_compile\"" >&5)
8354    (eval "$lt_compile" 2>out/conftest.err)
8355    ac_status=$?
8356    cat out/conftest.err >&5
8357    echo "$as_me:8357: \$? = $ac_status" >&5
8358    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8359    then
8360      # The compiler can only warn and ignore the option if not recognized
8361      # So say no if there are warnings
8362      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8363      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8364      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8365        lt_cv_prog_compiler_c_o=yes
8366      fi
8367    fi
8368    chmod u+w . 2>&5
8369    $RM conftest*
8370    # SGI C++ compiler will create directory out/ii_files/ for
8371    # template instantiation
8372    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8373    $RM out/* && rmdir out
8374    cd ..
8375    $RM -r conftest
8376    $RM conftest*
8377
8378 fi
8379 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8380 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8381
8382
8383
8384
8385 hard_links="nottested"
8386 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8387   # do not overwrite the value of need_locks provided by the user
8388   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8389 $as_echo_n "checking if we can lock with hard links... " >&6; }
8390   hard_links=yes
8391   $RM conftest*
8392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8393   touch conftest.a
8394   ln conftest.a conftest.b 2>&5 || hard_links=no
8395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8396   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8397 $as_echo "$hard_links" >&6; }
8398   if test "$hard_links" = no; then
8399     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8401     need_locks=warn
8402   fi
8403 else
8404   need_locks=no
8405 fi
8406
8407
8408
8409
8410
8411
8412   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8413 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8414
8415   runpath_var=
8416   allow_undefined_flag=
8417   always_export_symbols=no
8418   archive_cmds=
8419   archive_expsym_cmds=
8420   compiler_needs_object=no
8421   enable_shared_with_static_runtimes=no
8422   export_dynamic_flag_spec=
8423   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8424   hardcode_automatic=no
8425   hardcode_direct=no
8426   hardcode_direct_absolute=no
8427   hardcode_libdir_flag_spec=
8428   hardcode_libdir_flag_spec_ld=
8429   hardcode_libdir_separator=
8430   hardcode_minus_L=no
8431   hardcode_shlibpath_var=unsupported
8432   inherit_rpath=no
8433   link_all_deplibs=unknown
8434   module_cmds=
8435   module_expsym_cmds=
8436   old_archive_from_new_cmds=
8437   old_archive_from_expsyms_cmds=
8438   thread_safe_flag_spec=
8439   whole_archive_flag_spec=
8440   # include_expsyms should be a list of space-separated symbols to be *always*
8441   # included in the symbol list
8442   include_expsyms=
8443   # exclude_expsyms can be an extended regexp of symbols to exclude
8444   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8445   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8446   # as well as any symbol that contains `d'.
8447   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8448   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8449   # platforms (ab)use it in PIC code, but their linkers get confused if
8450   # the symbol is explicitly referenced.  Since portable code cannot
8451   # rely on this symbol name, it's probably fine to never include it in
8452   # preloaded symbol tables.
8453   # Exclude shared library initialization/finalization symbols.
8454   extract_expsyms_cmds=
8455
8456   case $host_os in
8457   cygwin* | mingw* | pw32* | cegcc*)
8458     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8459     # When not using gcc, we currently assume that we are using
8460     # Microsoft Visual C++.
8461     if test "$GCC" != yes; then
8462       with_gnu_ld=no
8463     fi
8464     ;;
8465   interix*)
8466     # we just hope/assume this is gcc and not c89 (= MSVC++)
8467     with_gnu_ld=yes
8468     ;;
8469   openbsd*)
8470     with_gnu_ld=no
8471     ;;
8472   esac
8473
8474   ld_shlibs=yes
8475   if test "$with_gnu_ld" = yes; then
8476     # If archive_cmds runs LD, not CC, wlarc should be empty
8477     wlarc='${wl}'
8478
8479     # Set some defaults for GNU ld with shared library support. These
8480     # are reset later if shared libraries are not supported. Putting them
8481     # here allows them to be overridden if necessary.
8482     runpath_var=LD_RUN_PATH
8483     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8484     export_dynamic_flag_spec='${wl}--export-dynamic'
8485     # ancient GNU ld didn't support --whole-archive et. al.
8486     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8487       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8488     else
8489       whole_archive_flag_spec=
8490     fi
8491     supports_anon_versioning=no
8492     case `$LD -v 2>&1` in
8493       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8494       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8495       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8496       *\ 2.11.*) ;; # other 2.11 versions
8497       *) supports_anon_versioning=yes ;;
8498     esac
8499
8500     # See if GNU ld supports shared libraries.
8501     case $host_os in
8502     aix[3-9]*)
8503       # On AIX/PPC, the GNU linker is very broken
8504       if test "$host_cpu" != ia64; then
8505         ld_shlibs=no
8506         cat <<_LT_EOF 1>&2
8507
8508 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8509 *** to be unable to reliably create shared libraries on AIX.
8510 *** Therefore, libtool is disabling shared libraries support.  If you
8511 *** really care for shared libraries, you may want to modify your PATH
8512 *** so that a non-GNU linker is found, and then restart.
8513
8514 _LT_EOF
8515       fi
8516       ;;
8517
8518     amigaos*)
8519       case $host_cpu in
8520       powerpc)
8521             # see comment about AmigaOS4 .so support
8522             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523             archive_expsym_cmds=''
8524         ;;
8525       m68k)
8526             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)'
8527             hardcode_libdir_flag_spec='-L$libdir'
8528             hardcode_minus_L=yes
8529         ;;
8530       esac
8531       ;;
8532
8533     beos*)
8534       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8535         allow_undefined_flag=unsupported
8536         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8537         # support --undefined.  This deserves some investigation.  FIXME
8538         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539       else
8540         ld_shlibs=no
8541       fi
8542       ;;
8543
8544     cygwin* | mingw* | pw32* | cegcc*)
8545       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8546       # as there is no search path for DLLs.
8547       hardcode_libdir_flag_spec='-L$libdir'
8548       allow_undefined_flag=unsupported
8549       always_export_symbols=no
8550       enable_shared_with_static_runtimes=yes
8551       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8552
8553       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8554         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8555         # If the export-symbols file already is a .def file (1st line
8556         # is EXPORTS), use it as is; otherwise, prepend...
8557         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8558           cp $export_symbols $output_objdir/$soname.def;
8559         else
8560           echo EXPORTS > $output_objdir/$soname.def;
8561           cat $export_symbols >> $output_objdir/$soname.def;
8562         fi~
8563         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8564       else
8565         ld_shlibs=no
8566       fi
8567       ;;
8568
8569     interix[3-9]*)
8570       hardcode_direct=no
8571       hardcode_shlibpath_var=no
8572       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573       export_dynamic_flag_spec='${wl}-E'
8574       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8575       # Instead, shared libraries are loaded at an image base (0x10000000 by
8576       # default) and relocated if they conflict, which is a slow very memory
8577       # consuming and fragmenting process.  To avoid this, we pick a random,
8578       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8579       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8580       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8581       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'
8582       ;;
8583
8584     gnu* | linux* | tpf* | k*bsd*-gnu)
8585       tmp_diet=no
8586       if test "$host_os" = linux-dietlibc; then
8587         case $cc_basename in
8588           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8589         esac
8590       fi
8591       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8592          && test "$tmp_diet" = no
8593       then
8594         tmp_addflag=
8595         tmp_sharedflag='-shared'
8596         case $cc_basename,$host_cpu in
8597         pgcc*)                          # Portland Group C compiler
8598           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'
8599           tmp_addflag=' $pic_flag'
8600           ;;
8601         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8602           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'
8603           tmp_addflag=' $pic_flag -Mnomain' ;;
8604         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8605           tmp_addflag=' -i_dynamic' ;;
8606         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8607           tmp_addflag=' -i_dynamic -nofor_main' ;;
8608         ifc* | ifort*)                  # Intel Fortran compiler
8609           tmp_addflag=' -nofor_main' ;;
8610         lf95*)                          # Lahey Fortran 8.1
8611           whole_archive_flag_spec=
8612           tmp_sharedflag='--shared' ;;
8613         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8614           tmp_sharedflag='-qmkshrobj'
8615           tmp_addflag= ;;
8616         esac
8617         case `$CC -V 2>&1 | sed 5q` in
8618         *Sun\ C*)                       # Sun C 5.9
8619           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'
8620           compiler_needs_object=yes
8621           tmp_sharedflag='-G' ;;
8622         *Sun\ F*)                       # Sun Fortran 8.3
8623           tmp_sharedflag='-G' ;;
8624         esac
8625         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626
8627         if test "x$supports_anon_versioning" = xyes; then
8628           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8629             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8630             echo "local: *; };" >> $output_objdir/$libname.ver~
8631             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8632         fi
8633
8634         case $cc_basename in
8635         xlf*)
8636           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8637           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8638           hardcode_libdir_flag_spec=
8639           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8640           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8641           if test "x$supports_anon_versioning" = xyes; then
8642             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8643               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8644               echo "local: *; };" >> $output_objdir/$libname.ver~
8645               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8646           fi
8647           ;;
8648         esac
8649       else
8650         ld_shlibs=no
8651       fi
8652       ;;
8653
8654     netbsd*)
8655       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8656         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8657         wlarc=
8658       else
8659         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8661       fi
8662       ;;
8663
8664     solaris*)
8665       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8666         ld_shlibs=no
8667         cat <<_LT_EOF 1>&2
8668
8669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8670 *** create shared libraries on Solaris systems.  Therefore, libtool
8671 *** is disabling shared libraries support.  We urge you to upgrade GNU
8672 *** binutils to release 2.9.1 or newer.  Another option is to modify
8673 *** your PATH or compiler configuration so that the native linker is
8674 *** used, and then restart.
8675
8676 _LT_EOF
8677       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8678         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8680       else
8681         ld_shlibs=no
8682       fi
8683       ;;
8684
8685     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8686       case `$LD -v 2>&1` in
8687         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8688         ld_shlibs=no
8689         cat <<_LT_EOF 1>&2
8690
8691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8692 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8693 *** is disabling shared libraries support.  We urge you to upgrade GNU
8694 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8695 *** your PATH or compiler configuration so that the native linker is
8696 *** used, and then restart.
8697
8698 _LT_EOF
8699         ;;
8700         *)
8701           # For security reasons, it is highly recommended that you always
8702           # use absolute paths for naming shared libraries, and exclude the
8703           # DT_RUNPATH tag from executables and libraries.  But doing so
8704           # requires that you compile everything twice, which is a pain.
8705           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8709           else
8710             ld_shlibs=no
8711           fi
8712         ;;
8713       esac
8714       ;;
8715
8716     sunos4*)
8717       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8718       wlarc=
8719       hardcode_direct=yes
8720       hardcode_shlibpath_var=no
8721       ;;
8722
8723     *)
8724       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8727       else
8728         ld_shlibs=no
8729       fi
8730       ;;
8731     esac
8732
8733     if test "$ld_shlibs" = no; then
8734       runpath_var=
8735       hardcode_libdir_flag_spec=
8736       export_dynamic_flag_spec=
8737       whole_archive_flag_spec=
8738     fi
8739   else
8740     # PORTME fill in a description of your system's linker (not GNU ld)
8741     case $host_os in
8742     aix3*)
8743       allow_undefined_flag=unsupported
8744       always_export_symbols=yes
8745       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'
8746       # Note: this linker hardcodes the directories in LIBPATH if there
8747       # are no directories specified by -L.
8748       hardcode_minus_L=yes
8749       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8750         # Neither direct hardcoding nor static linking is supported with a
8751         # broken collect2.
8752         hardcode_direct=unsupported
8753       fi
8754       ;;
8755
8756     aix[4-9]*)
8757       if test "$host_cpu" = ia64; then
8758         # On IA64, the linker does run time linking by default, so we don't
8759         # have to do anything special.
8760         aix_use_runtimelinking=no
8761         exp_sym_flag='-Bexport'
8762         no_entry_flag=""
8763       else
8764         # If we're using GNU nm, then we don't want the "-C" option.
8765         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8766         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8767           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'
8768         else
8769           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'
8770         fi
8771         aix_use_runtimelinking=no
8772
8773         # Test if we are trying to use run time linking or normal
8774         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8775         # need to do runtime linking.
8776         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8777           for ld_flag in $LDFLAGS; do
8778           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8779             aix_use_runtimelinking=yes
8780             break
8781           fi
8782           done
8783           ;;
8784         esac
8785
8786         exp_sym_flag='-bexport'
8787         no_entry_flag='-bnoentry'
8788       fi
8789
8790       # When large executables or shared objects are built, AIX ld can
8791       # have problems creating the table of contents.  If linking a library
8792       # or program results in "error TOC overflow" add -mminimal-toc to
8793       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8794       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8795
8796       archive_cmds=''
8797       hardcode_direct=yes
8798       hardcode_direct_absolute=yes
8799       hardcode_libdir_separator=':'
8800       link_all_deplibs=yes
8801       file_list_spec='${wl}-f,'
8802
8803       if test "$GCC" = yes; then
8804         case $host_os in aix4.[012]|aix4.[012].*)
8805         # We only want to do this on AIX 4.2 and lower, the check
8806         # below for broken collect2 doesn't work under 4.3+
8807           collect2name=`${CC} -print-prog-name=collect2`
8808           if test -f "$collect2name" &&
8809            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8810           then
8811           # We have reworked collect2
8812           :
8813           else
8814           # We have old collect2
8815           hardcode_direct=unsupported
8816           # It fails to find uninstalled libraries when the uninstalled
8817           # path is not listed in the libpath.  Setting hardcode_minus_L
8818           # to unsupported forces relinking
8819           hardcode_minus_L=yes
8820           hardcode_libdir_flag_spec='-L$libdir'
8821           hardcode_libdir_separator=
8822           fi
8823           ;;
8824         esac
8825         shared_flag='-shared'
8826         if test "$aix_use_runtimelinking" = yes; then
8827           shared_flag="$shared_flag "'${wl}-G'
8828         fi
8829       else
8830         # not using gcc
8831         if test "$host_cpu" = ia64; then
8832         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8833         # chokes on -Wl,-G. The following line is correct:
8834           shared_flag='-G'
8835         else
8836           if test "$aix_use_runtimelinking" = yes; then
8837             shared_flag='${wl}-G'
8838           else
8839             shared_flag='${wl}-bM:SRE'
8840           fi
8841         fi
8842       fi
8843
8844       export_dynamic_flag_spec='${wl}-bexpall'
8845       # It seems that -bexpall does not export symbols beginning with
8846       # underscore (_), so it is better to generate a list of symbols to export.
8847       always_export_symbols=yes
8848       if test "$aix_use_runtimelinking" = yes; then
8849         # Warning - without using the other runtime loading flags (-brtl),
8850         # -berok will link without error, but may produce a broken library.
8851         allow_undefined_flag='-berok'
8852         # Determine the default libpath from the value encoded in an
8853         # empty executable.
8854         cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h.  */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h.  */
8860
8861 int
8862 main ()
8863 {
8864
8865   ;
8866   return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (ac_try="$ac_link"
8871 case "(($ac_try" in
8872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873   *) ac_try_echo=$ac_try;;
8874 esac
8875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8876 $as_echo "$ac_try_echo") >&5
8877   (eval "$ac_link") 2>conftest.er1
8878   ac_status=$?
8879   grep -v '^ *+' conftest.er1 >conftest.err
8880   rm -f conftest.er1
8881   cat conftest.err >&5
8882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } && {
8884          test -z "$ac_c_werror_flag" ||
8885          test ! -s conftest.err
8886        } && test -s conftest$ac_exeext && {
8887          test "$cross_compiling" = yes ||
8888          $as_test_x conftest$ac_exeext
8889        }; then
8890
8891 lt_aix_libpath_sed='
8892     /Import File Strings/,/^$/ {
8893         /^0/ {
8894             s/^0  *\(.*\)$/\1/
8895             p
8896         }
8897     }'
8898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 # Check for a 64-bit object if we didn't find anything.
8900 if test -z "$aix_libpath"; then
8901   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8902 fi
8903 else
8904   $as_echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907
8908 fi
8909
8910 rm -rf conftest.dSYM
8911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8912       conftest$ac_exeext conftest.$ac_ext
8913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8914
8915         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8916         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"
8917       else
8918         if test "$host_cpu" = ia64; then
8919           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8920           allow_undefined_flag="-z nodefs"
8921           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"
8922         else
8923          # Determine the default libpath from the value encoded in an
8924          # empty executable.
8925          cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h.  */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h.  */
8931
8932 int
8933 main ()
8934 {
8935
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8942 case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948   (eval "$ac_link") 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } && {
8955          test -z "$ac_c_werror_flag" ||
8956          test ! -s conftest.err
8957        } && test -s conftest$ac_exeext && {
8958          test "$cross_compiling" = yes ||
8959          $as_test_x conftest$ac_exeext
8960        }; then
8961
8962 lt_aix_libpath_sed='
8963     /Import File Strings/,/^$/ {
8964         /^0/ {
8965             s/^0  *\(.*\)$/\1/
8966             p
8967         }
8968     }'
8969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970 # Check for a 64-bit object if we didn't find anything.
8971 if test -z "$aix_libpath"; then
8972   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8973 fi
8974 else
8975   $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978
8979 fi
8980
8981 rm -rf conftest.dSYM
8982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983       conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8985
8986          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8987           # Warning - without using the other run time loading flags,
8988           # -berok will link without error, but may produce a broken library.
8989           no_undefined_flag=' ${wl}-bernotok'
8990           allow_undefined_flag=' ${wl}-berok'
8991           # Exported symbols can be pulled into shared objects from archives
8992           whole_archive_flag_spec='$convenience'
8993           archive_cmds_need_lc=yes
8994           # This is similar to how AIX traditionally builds its shared libraries.
8995           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'
8996         fi
8997       fi
8998       ;;
8999
9000     amigaos*)
9001       case $host_cpu in
9002       powerpc)
9003             # see comment about AmigaOS4 .so support
9004             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005             archive_expsym_cmds=''
9006         ;;
9007       m68k)
9008             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)'
9009             hardcode_libdir_flag_spec='-L$libdir'
9010             hardcode_minus_L=yes
9011         ;;
9012       esac
9013       ;;
9014
9015     bsdi[45]*)
9016       export_dynamic_flag_spec=-rdynamic
9017       ;;
9018
9019     cygwin* | mingw* | pw32* | cegcc*)
9020       # When not using gcc, we currently assume that we are using
9021       # Microsoft Visual C++.
9022       # hardcode_libdir_flag_spec is actually meaningless, as there is
9023       # no search path for DLLs.
9024       hardcode_libdir_flag_spec=' '
9025       allow_undefined_flag=unsupported
9026       # Tell ltmain to make .lib files, not .a files.
9027       libext=lib
9028       # Tell ltmain to make .dll files, not .so files.
9029       shrext_cmds=".dll"
9030       # FIXME: Setting linknames here is a bad hack.
9031       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9032       # The linker will automatically build a .lib file if we build a DLL.
9033       old_archive_from_new_cmds='true'
9034       # FIXME: Should let the user specify the lib program.
9035       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9036       fix_srcfile_path='`cygpath -w "$srcfile"`'
9037       enable_shared_with_static_runtimes=yes
9038       ;;
9039
9040     darwin* | rhapsody*)
9041
9042
9043   archive_cmds_need_lc=no
9044   hardcode_direct=no
9045   hardcode_automatic=yes
9046   hardcode_shlibpath_var=unsupported
9047   whole_archive_flag_spec=''
9048   link_all_deplibs=yes
9049   allow_undefined_flag="$_lt_dar_allow_undefined"
9050   case $cc_basename in
9051      ifort*) _lt_dar_can_shared=yes ;;
9052      *) _lt_dar_can_shared=$GCC ;;
9053   esac
9054   if test "$_lt_dar_can_shared" = "yes"; then
9055     output_verbose_link_cmd=echo
9056     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9057     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9058     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}"
9059     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}"
9060
9061   else
9062   ld_shlibs=no
9063   fi
9064
9065       ;;
9066
9067     dgux*)
9068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069       hardcode_libdir_flag_spec='-L$libdir'
9070       hardcode_shlibpath_var=no
9071       ;;
9072
9073     freebsd1*)
9074       ld_shlibs=no
9075       ;;
9076
9077     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9078     # support.  Future versions do this automatically, but an explicit c++rt0.o
9079     # does not break anything, and helps significantly (at the cost of a little
9080     # extra space).
9081     freebsd2.2*)
9082       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9083       hardcode_libdir_flag_spec='-R$libdir'
9084       hardcode_direct=yes
9085       hardcode_shlibpath_var=no
9086       ;;
9087
9088     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9089     freebsd2*)
9090       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9091       hardcode_direct=yes
9092       hardcode_minus_L=yes
9093       hardcode_shlibpath_var=no
9094       ;;
9095
9096     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9097     freebsd* | dragonfly*)
9098       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9099       hardcode_libdir_flag_spec='-R$libdir'
9100       hardcode_direct=yes
9101       hardcode_shlibpath_var=no
9102       ;;
9103
9104     hpux9*)
9105       if test "$GCC" = yes; then
9106         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'
9107       else
9108         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'
9109       fi
9110       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111       hardcode_libdir_separator=:
9112       hardcode_direct=yes
9113
9114       # hardcode_minus_L: Not really in the search PATH,
9115       # but as the default location of the library.
9116       hardcode_minus_L=yes
9117       export_dynamic_flag_spec='${wl}-E'
9118       ;;
9119
9120     hpux10*)
9121       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9122         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9123       else
9124         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9125       fi
9126       if test "$with_gnu_ld" = no; then
9127         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9128         hardcode_libdir_flag_spec_ld='+b $libdir'
9129         hardcode_libdir_separator=:
9130         hardcode_direct=yes
9131         hardcode_direct_absolute=yes
9132         export_dynamic_flag_spec='${wl}-E'
9133         # hardcode_minus_L: Not really in the search PATH,
9134         # but as the default location of the library.
9135         hardcode_minus_L=yes
9136       fi
9137       ;;
9138
9139     hpux11*)
9140       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9141         case $host_cpu in
9142         hppa*64*)
9143           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9144           ;;
9145         ia64*)
9146           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9147           ;;
9148         *)
9149           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9150           ;;
9151         esac
9152       else
9153         case $host_cpu in
9154         hppa*64*)
9155           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9156           ;;
9157         ia64*)
9158           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9159           ;;
9160         *)
9161           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162           ;;
9163         esac
9164       fi
9165       if test "$with_gnu_ld" = no; then
9166         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167         hardcode_libdir_separator=:
9168
9169         case $host_cpu in
9170         hppa*64*|ia64*)
9171           hardcode_direct=no
9172           hardcode_shlibpath_var=no
9173           ;;
9174         *)
9175           hardcode_direct=yes
9176           hardcode_direct_absolute=yes
9177           export_dynamic_flag_spec='${wl}-E'
9178
9179           # hardcode_minus_L: Not really in the search PATH,
9180           # but as the default location of the library.
9181           hardcode_minus_L=yes
9182           ;;
9183         esac
9184       fi
9185       ;;
9186
9187     irix5* | irix6* | nonstopux*)
9188       if test "$GCC" = yes; then
9189         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'
9190         # Try to use the -exported_symbol ld option, if it does not
9191         # work, assume that -exports_file does not work either and
9192         # implicitly export all symbols.
9193         save_LDFLAGS="$LDFLAGS"
9194         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9195         cat >conftest.$ac_ext <<_ACEOF
9196 int foo(void) {}
9197 _ACEOF
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (ac_try="$ac_link"
9200 case "(($ac_try" in
9201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202   *) ac_try_echo=$ac_try;;
9203 esac
9204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9205 $as_echo "$ac_try_echo") >&5
9206   (eval "$ac_link") 2>conftest.er1
9207   ac_status=$?
9208   grep -v '^ *+' conftest.er1 >conftest.err
9209   rm -f conftest.er1
9210   cat conftest.err >&5
9211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } && {
9213          test -z "$ac_c_werror_flag" ||
9214          test ! -s conftest.err
9215        } && test -s conftest$ac_exeext && {
9216          test "$cross_compiling" = yes ||
9217          $as_test_x conftest$ac_exeext
9218        }; then
9219   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'
9220
9221 else
9222   $as_echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225
9226 fi
9227
9228 rm -rf conftest.dSYM
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230       conftest$ac_exeext conftest.$ac_ext
9231         LDFLAGS="$save_LDFLAGS"
9232       else
9233         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'
9234         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'
9235       fi
9236       archive_cmds_need_lc='no'
9237       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238       hardcode_libdir_separator=:
9239       inherit_rpath=yes
9240       link_all_deplibs=yes
9241       ;;
9242
9243     netbsd*)
9244       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9245         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9246       else
9247         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9248       fi
9249       hardcode_libdir_flag_spec='-R$libdir'
9250       hardcode_direct=yes
9251       hardcode_shlibpath_var=no
9252       ;;
9253
9254     newsos6)
9255       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9256       hardcode_direct=yes
9257       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258       hardcode_libdir_separator=:
9259       hardcode_shlibpath_var=no
9260       ;;
9261
9262     *nto* | *qnx*)
9263       ;;
9264
9265     openbsd*)
9266       if test -f /usr/libexec/ld.so; then
9267         hardcode_direct=yes
9268         hardcode_shlibpath_var=no
9269         hardcode_direct_absolute=yes
9270         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9271           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9272           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9273           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9274           export_dynamic_flag_spec='${wl}-E'
9275         else
9276           case $host_os in
9277            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9278              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9279              hardcode_libdir_flag_spec='-R$libdir'
9280              ;;
9281            *)
9282              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9283              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9284              ;;
9285           esac
9286         fi
9287       else
9288         ld_shlibs=no
9289       fi
9290       ;;
9291
9292     os2*)
9293       hardcode_libdir_flag_spec='-L$libdir'
9294       hardcode_minus_L=yes
9295       allow_undefined_flag=unsupported
9296       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'
9297       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9298       ;;
9299
9300     osf3*)
9301       if test "$GCC" = yes; then
9302         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9303         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'
9304       else
9305         allow_undefined_flag=' -expect_unresolved \*'
9306         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'
9307       fi
9308       archive_cmds_need_lc='no'
9309       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310       hardcode_libdir_separator=:
9311       ;;
9312
9313     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9314       if test "$GCC" = yes; then
9315         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9316         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'
9317         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318       else
9319         allow_undefined_flag=' -expect_unresolved \*'
9320         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'
9321         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~
9322         $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'
9323
9324         # Both c and cxx compiler support -rpath directly
9325         hardcode_libdir_flag_spec='-rpath $libdir'
9326       fi
9327       archive_cmds_need_lc='no'
9328       hardcode_libdir_separator=:
9329       ;;
9330
9331     solaris*)
9332       no_undefined_flag=' -z defs'
9333       if test "$GCC" = yes; then
9334         wlarc='${wl}'
9335         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9336         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9337           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9338       else
9339         case `$CC -V 2>&1` in
9340         *"Compilers 5.0"*)
9341           wlarc=''
9342           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9344           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9345           ;;
9346         *)
9347           wlarc='${wl}'
9348           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9349           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9350           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9351           ;;
9352         esac
9353       fi
9354       hardcode_libdir_flag_spec='-R$libdir'
9355       hardcode_shlibpath_var=no
9356       case $host_os in
9357       solaris2.[0-5] | solaris2.[0-5].*) ;;
9358       *)
9359         # The compiler driver will combine and reorder linker options,
9360         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9361         # but is careful enough not to reorder.
9362         # Supported since Solaris 2.6 (maybe 2.5.1?)
9363         if test "$GCC" = yes; then
9364           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9365         else
9366           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9367         fi
9368         ;;
9369       esac
9370       link_all_deplibs=yes
9371       ;;
9372
9373     sunos4*)
9374       if test "x$host_vendor" = xsequent; then
9375         # Use $CC to link under sequent, because it throws in some extra .o
9376         # files that make .init and .fini sections work.
9377         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9378       else
9379         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9380       fi
9381       hardcode_libdir_flag_spec='-L$libdir'
9382       hardcode_direct=yes
9383       hardcode_minus_L=yes
9384       hardcode_shlibpath_var=no
9385       ;;
9386
9387     sysv4)
9388       case $host_vendor in
9389         sni)
9390           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391           hardcode_direct=yes # is this really true???
9392         ;;
9393         siemens)
9394           ## LD is ld it makes a PLAMLIB
9395           ## CC just makes a GrossModule.
9396           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9397           reload_cmds='$CC -r -o $output$reload_objs'
9398           hardcode_direct=no
9399         ;;
9400         motorola)
9401           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9403         ;;
9404       esac
9405       runpath_var='LD_RUN_PATH'
9406       hardcode_shlibpath_var=no
9407       ;;
9408
9409     sysv4.3*)
9410       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411       hardcode_shlibpath_var=no
9412       export_dynamic_flag_spec='-Bexport'
9413       ;;
9414
9415     sysv4*MP*)
9416       if test -d /usr/nec; then
9417         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418         hardcode_shlibpath_var=no
9419         runpath_var=LD_RUN_PATH
9420         hardcode_runpath_var=yes
9421         ld_shlibs=yes
9422       fi
9423       ;;
9424
9425     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9426       no_undefined_flag='${wl}-z,text'
9427       archive_cmds_need_lc=no
9428       hardcode_shlibpath_var=no
9429       runpath_var='LD_RUN_PATH'
9430
9431       if test "$GCC" = yes; then
9432         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434       else
9435         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437       fi
9438       ;;
9439
9440     sysv5* | sco3.2v5* | sco5v6*)
9441       # Note: We can NOT use -z defs as we might desire, because we do not
9442       # link with -lc, and that would cause any symbols used from libc to
9443       # always be unresolved, which means just about no library would
9444       # ever link correctly.  If we're not using GNU ld we use -z text
9445       # though, which does catch some bad symbols but isn't as heavy-handed
9446       # as -z defs.
9447       no_undefined_flag='${wl}-z,text'
9448       allow_undefined_flag='${wl}-z,nodefs'
9449       archive_cmds_need_lc=no
9450       hardcode_shlibpath_var=no
9451       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9452       hardcode_libdir_separator=':'
9453       link_all_deplibs=yes
9454       export_dynamic_flag_spec='${wl}-Bexport'
9455       runpath_var='LD_RUN_PATH'
9456
9457       if test "$GCC" = yes; then
9458         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460       else
9461         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463       fi
9464       ;;
9465
9466     uts4*)
9467       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468       hardcode_libdir_flag_spec='-L$libdir'
9469       hardcode_shlibpath_var=no
9470       ;;
9471
9472     *)
9473       ld_shlibs=no
9474       ;;
9475     esac
9476
9477     if test x$host_vendor = xsni; then
9478       case $host in
9479       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9480         export_dynamic_flag_spec='${wl}-Blargedynsym'
9481         ;;
9482       esac
9483     fi
9484   fi
9485
9486 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9487 $as_echo "$ld_shlibs" >&6; }
9488 test "$ld_shlibs" = no && can_build_shared=no
9489
9490 with_gnu_ld=$with_gnu_ld
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506 #
9507 # Do we need to explicitly link libc?
9508 #
9509 case "x$archive_cmds_need_lc" in
9510 x|xyes)
9511   # Assume -lc should be added
9512   archive_cmds_need_lc=yes
9513
9514   if test "$enable_shared" = yes && test "$GCC" = yes; then
9515     case $archive_cmds in
9516     *'~'*)
9517       # FIXME: we may have to deal with multi-command sequences.
9518       ;;
9519     '$CC '*)
9520       # Test whether the compiler implicitly links with -lc since on some
9521       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9522       # to ld, don't add -lc before -lgcc.
9523       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9524 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9525       $RM conftest*
9526       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527
9528       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529   (eval $ac_compile) 2>&5
9530   ac_status=$?
9531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } 2>conftest.err; then
9533         soname=conftest
9534         lib=conftest
9535         libobjs=conftest.$ac_objext
9536         deplibs=
9537         wl=$lt_prog_compiler_wl
9538         pic_flag=$lt_prog_compiler_pic
9539         compiler_flags=-v
9540         linker_flags=-v
9541         verstring=
9542         output_objdir=.
9543         libname=conftest
9544         lt_save_allow_undefined_flag=$allow_undefined_flag
9545         allow_undefined_flag=
9546         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9547   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9548   ac_status=$?
9549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }
9551         then
9552           archive_cmds_need_lc=no
9553         else
9554           archive_cmds_need_lc=yes
9555         fi
9556         allow_undefined_flag=$lt_save_allow_undefined_flag
9557       else
9558         cat conftest.err 1>&5
9559       fi
9560       $RM conftest*
9561       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9562 $as_echo "$archive_cmds_need_lc" >&6; }
9563       ;;
9564     esac
9565   fi
9566   ;;
9567 esac
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
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9727
9728 if test "$GCC" = yes; then
9729   case $host_os in
9730     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9731     *) lt_awk_arg="/^libraries:/" ;;
9732   esac
9733   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9734   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9735     # if the path contains ";" then we assume it to be the separator
9736     # otherwise default to the standard path separator (i.e. ":") - it is
9737     # assumed that no part of a normal pathname contains ";" but that should
9738     # okay in the real world where ";" in dirpaths is itself problematic.
9739     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9740   else
9741     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9742   fi
9743   # Ok, now we have the path, separated by spaces, we can step through it
9744   # and add multilib dir if necessary.
9745   lt_tmp_lt_search_path_spec=
9746   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9747   for lt_sys_path in $lt_search_path_spec; do
9748     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9749       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9750     else
9751       test -d "$lt_sys_path" && \
9752         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9753     fi
9754   done
9755   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9756 BEGIN {RS=" "; FS="/|\n";} {
9757   lt_foo="";
9758   lt_count=0;
9759   for (lt_i = NF; lt_i > 0; lt_i--) {
9760     if ($lt_i != "" && $lt_i != ".") {
9761       if ($lt_i == "..") {
9762         lt_count++;
9763       } else {
9764         if (lt_count == 0) {
9765           lt_foo="/" $lt_i lt_foo;
9766         } else {
9767           lt_count--;
9768         }
9769       }
9770     }
9771   }
9772   if (lt_foo != "") { lt_freq[lt_foo]++; }
9773   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9774 }'`
9775   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9776 else
9777   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9778 fi
9779 library_names_spec=
9780 libname_spec='lib$name'
9781 soname_spec=
9782 shrext_cmds=".so"
9783 postinstall_cmds=
9784 postuninstall_cmds=
9785 finish_cmds=
9786 finish_eval=
9787 shlibpath_var=
9788 shlibpath_overrides_runpath=unknown
9789 version_type=none
9790 dynamic_linker="$host_os ld.so"
9791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9792 need_lib_prefix=unknown
9793 hardcode_into_libs=no
9794
9795 # when you set need_version to no, make sure it does not cause -set_version
9796 # flags to be left without arguments
9797 need_version=unknown
9798
9799 case $host_os in
9800 aix3*)
9801   version_type=linux
9802   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9803   shlibpath_var=LIBPATH
9804
9805   # AIX 3 has no versioning support, so we append a major version to the name.
9806   soname_spec='${libname}${release}${shared_ext}$major'
9807   ;;
9808
9809 aix[4-9]*)
9810   version_type=linux
9811   need_lib_prefix=no
9812   need_version=no
9813   hardcode_into_libs=yes
9814   if test "$host_cpu" = ia64; then
9815     # AIX 5 supports IA64
9816     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9817     shlibpath_var=LD_LIBRARY_PATH
9818   else
9819     # With GCC up to 2.95.x, collect2 would create an import file
9820     # for dependence libraries.  The import file would start with
9821     # the line `#! .'.  This would cause the generated library to
9822     # depend on `.', always an invalid library.  This was fixed in
9823     # development snapshots of GCC prior to 3.0.
9824     case $host_os in
9825       aix4 | aix4.[01] | aix4.[01].*)
9826       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9827            echo ' yes '
9828            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9829         :
9830       else
9831         can_build_shared=no
9832       fi
9833       ;;
9834     esac
9835     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9836     # soname into executable. Probably we can add versioning support to
9837     # collect2, so additional links can be useful in future.
9838     if test "$aix_use_runtimelinking" = yes; then
9839       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9840       # instead of lib<name>.a to let people know that these are not
9841       # typical AIX shared libraries.
9842       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843     else
9844       # We preserve .a as extension for shared libraries through AIX4.2
9845       # and later when we are not doing run time linking.
9846       library_names_spec='${libname}${release}.a $libname.a'
9847       soname_spec='${libname}${release}${shared_ext}$major'
9848     fi
9849     shlibpath_var=LIBPATH
9850   fi
9851   ;;
9852
9853 amigaos*)
9854   case $host_cpu in
9855   powerpc)
9856     # Since July 2007 AmigaOS4 officially supports .so libraries.
9857     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859     ;;
9860   m68k)
9861     library_names_spec='$libname.ixlibrary $libname.a'
9862     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9863     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'
9864     ;;
9865   esac
9866   ;;
9867
9868 beos*)
9869   library_names_spec='${libname}${shared_ext}'
9870   dynamic_linker="$host_os ld.so"
9871   shlibpath_var=LIBRARY_PATH
9872   ;;
9873
9874 bsdi[45]*)
9875   version_type=linux
9876   need_version=no
9877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878   soname_spec='${libname}${release}${shared_ext}$major'
9879   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9880   shlibpath_var=LD_LIBRARY_PATH
9881   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9882   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9883   # the default ld.so.conf also contains /usr/contrib/lib and
9884   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9885   # libtool to hard-code these into programs
9886   ;;
9887
9888 cygwin* | mingw* | pw32* | cegcc*)
9889   version_type=windows
9890   shrext_cmds=".dll"
9891   need_version=no
9892   need_lib_prefix=no
9893
9894   case $GCC,$host_os in
9895   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9896     library_names_spec='$libname.dll.a'
9897     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9898     postinstall_cmds='base_file=`basename \${file}`~
9899       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9900       dldir=$destdir/`dirname \$dlpath`~
9901       test -d \$dldir || mkdir -p \$dldir~
9902       $install_prog $dir/$dlname \$dldir/$dlname~
9903       chmod a+x \$dldir/$dlname~
9904       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9905         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9906       fi'
9907     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9908       dlpath=$dir/\$dldll~
9909        $RM \$dlpath'
9910     shlibpath_overrides_runpath=yes
9911
9912     case $host_os in
9913     cygwin*)
9914       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9915       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9916       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9917       ;;
9918     mingw* | cegcc*)
9919       # MinGW DLLs use traditional 'lib' prefix
9920       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9921       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9922       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9923         # It is most probably a Windows format PATH printed by
9924         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9925         # path with ; separators, and with drive letters. We can handle the
9926         # drive letters (cygwin fileutils understands them), so leave them,
9927         # especially as we might pass files found there to a mingw objdump,
9928         # which wouldn't understand a cygwinified path. Ahh.
9929         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9930       else
9931         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9932       fi
9933       ;;
9934     pw32*)
9935       # pw32 DLLs use 'pw' prefix rather than 'lib'
9936       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9937       ;;
9938     esac
9939     ;;
9940
9941   *)
9942     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9943     ;;
9944   esac
9945   dynamic_linker='Win32 ld.exe'
9946   # FIXME: first we should search . and the directory the executable is in
9947   shlibpath_var=PATH
9948   ;;
9949
9950 darwin* | rhapsody*)
9951   dynamic_linker="$host_os dyld"
9952   version_type=darwin
9953   need_lib_prefix=no
9954   need_version=no
9955   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9956   soname_spec='${libname}${release}${major}$shared_ext'
9957   shlibpath_overrides_runpath=yes
9958   shlibpath_var=DYLD_LIBRARY_PATH
9959   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9960
9961   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9963   ;;
9964
9965 dgux*)
9966   version_type=linux
9967   need_lib_prefix=no
9968   need_version=no
9969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9970   soname_spec='${libname}${release}${shared_ext}$major'
9971   shlibpath_var=LD_LIBRARY_PATH
9972   ;;
9973
9974 freebsd1*)
9975   dynamic_linker=no
9976   ;;
9977
9978 freebsd* | dragonfly*)
9979   # DragonFly does not have aout.  When/if they implement a new
9980   # versioning mechanism, adjust this.
9981   if test -x /usr/bin/objformat; then
9982     objformat=`/usr/bin/objformat`
9983   else
9984     case $host_os in
9985     freebsd[123]*) objformat=aout ;;
9986     *) objformat=elf ;;
9987     esac
9988   fi
9989   version_type=freebsd-$objformat
9990   case $version_type in
9991     freebsd-elf*)
9992       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9993       need_version=no
9994       need_lib_prefix=no
9995       ;;
9996     freebsd-*)
9997       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9998       need_version=yes
9999       ;;
10000   esac
10001   shlibpath_var=LD_LIBRARY_PATH
10002   case $host_os in
10003   freebsd2*)
10004     shlibpath_overrides_runpath=yes
10005     ;;
10006   freebsd3.[01]* | freebsdelf3.[01]*)
10007     shlibpath_overrides_runpath=yes
10008     hardcode_into_libs=yes
10009     ;;
10010   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10011   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10012     shlibpath_overrides_runpath=no
10013     hardcode_into_libs=yes
10014     ;;
10015   *) # from 4.6 on, and DragonFly
10016     shlibpath_overrides_runpath=yes
10017     hardcode_into_libs=yes
10018     ;;
10019   esac
10020   ;;
10021
10022 gnu*)
10023   version_type=linux
10024   need_lib_prefix=no
10025   need_version=no
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10027   soname_spec='${libname}${release}${shared_ext}$major'
10028   shlibpath_var=LD_LIBRARY_PATH
10029   hardcode_into_libs=yes
10030   ;;
10031
10032 hpux9* | hpux10* | hpux11*)
10033   # Give a soname corresponding to the major version so that dld.sl refuses to
10034   # link against other versions.
10035   version_type=sunos
10036   need_lib_prefix=no
10037   need_version=no
10038   case $host_cpu in
10039   ia64*)
10040     shrext_cmds='.so'
10041     hardcode_into_libs=yes
10042     dynamic_linker="$host_os dld.so"
10043     shlibpath_var=LD_LIBRARY_PATH
10044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046     soname_spec='${libname}${release}${shared_ext}$major'
10047     if test "X$HPUX_IA64_MODE" = X32; then
10048       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10049     else
10050       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10051     fi
10052     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10053     ;;
10054   hppa*64*)
10055     shrext_cmds='.sl'
10056     hardcode_into_libs=yes
10057     dynamic_linker="$host_os dld.sl"
10058     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10059     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10063     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10064     ;;
10065   *)
10066     shrext_cmds='.sl'
10067     dynamic_linker="$host_os dld.sl"
10068     shlibpath_var=SHLIB_PATH
10069     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071     soname_spec='${libname}${release}${shared_ext}$major'
10072     ;;
10073   esac
10074   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10075   postinstall_cmds='chmod 555 $lib'
10076   ;;
10077
10078 interix[3-9]*)
10079   version_type=linux
10080   need_lib_prefix=no
10081   need_version=no
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10085   shlibpath_var=LD_LIBRARY_PATH
10086   shlibpath_overrides_runpath=no
10087   hardcode_into_libs=yes
10088   ;;
10089
10090 irix5* | irix6* | nonstopux*)
10091   case $host_os in
10092     nonstopux*) version_type=nonstopux ;;
10093     *)
10094         if test "$lt_cv_prog_gnu_ld" = yes; then
10095                 version_type=linux
10096         else
10097                 version_type=irix
10098         fi ;;
10099   esac
10100   need_lib_prefix=no
10101   need_version=no
10102   soname_spec='${libname}${release}${shared_ext}$major'
10103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10104   case $host_os in
10105   irix5* | nonstopux*)
10106     libsuff= shlibsuff=
10107     ;;
10108   *)
10109     case $LD in # libtool.m4 will add one of these switches to LD
10110     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10111       libsuff= shlibsuff= libmagic=32-bit;;
10112     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10113       libsuff=32 shlibsuff=N32 libmagic=N32;;
10114     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10115       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10116     *) libsuff= shlibsuff= libmagic=never-match;;
10117     esac
10118     ;;
10119   esac
10120   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10121   shlibpath_overrides_runpath=no
10122   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10123   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10124   hardcode_into_libs=yes
10125   ;;
10126
10127 # No shared lib support for Linux oldld, aout, or coff.
10128 linux*oldld* | linux*aout* | linux*coff*)
10129   dynamic_linker=no
10130   ;;
10131
10132 # This must be Linux ELF.
10133 linux* | k*bsd*-gnu)
10134   version_type=linux
10135   need_lib_prefix=no
10136   need_version=no
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138   soname_spec='${libname}${release}${shared_ext}$major'
10139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10140   shlibpath_var=LD_LIBRARY_PATH
10141   shlibpath_overrides_runpath=no
10142   # Some binutils ld are patched to set DT_RUNPATH
10143   save_LDFLAGS=$LDFLAGS
10144   save_libdir=$libdir
10145   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10146        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10147   cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h.  */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h.  */
10153
10154 int
10155 main ()
10156 {
10157
10158   ;
10159   return 0;
10160 }
10161 _ACEOF
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (ac_try="$ac_link"
10164 case "(($ac_try" in
10165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166   *) ac_try_echo=$ac_try;;
10167 esac
10168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169 $as_echo "$ac_try_echo") >&5
10170   (eval "$ac_link") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } && {
10177          test -z "$ac_c_werror_flag" ||
10178          test ! -s conftest.err
10179        } && test -s conftest$ac_exeext && {
10180          test "$cross_compiling" = yes ||
10181          $as_test_x conftest$ac_exeext
10182        }; then
10183   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10184   shlibpath_overrides_runpath=yes
10185 fi
10186
10187 else
10188   $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191
10192 fi
10193
10194 rm -rf conftest.dSYM
10195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10196       conftest$ac_exeext conftest.$ac_ext
10197   LDFLAGS=$save_LDFLAGS
10198   libdir=$save_libdir
10199
10200   # This implies no fast_install, which is unacceptable.
10201   # Some rework will be needed to allow for fast_install
10202   # before this can be enabled.
10203   hardcode_into_libs=yes
10204
10205   # Add ABI-specific directories to the system library path.
10206   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10207
10208   # Append ld.so.conf contents to the search path
10209   if test -f /etc/ld.so.conf; then
10210     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' ' '`
10211     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10212   fi
10213
10214   # We used to test for /lib/ld.so.1 and disable shared libraries on
10215   # powerpc, because MkLinux only supported shared libraries with the
10216   # GNU dynamic linker.  Since this was broken with cross compilers,
10217   # most powerpc-linux boxes support dynamic linking these days and
10218   # people can always --disable-shared, the test was removed, and we
10219   # assume the GNU/Linux dynamic linker is in use.
10220   dynamic_linker='GNU/Linux ld.so'
10221   ;;
10222
10223 netbsd*)
10224   version_type=sunos
10225   need_lib_prefix=no
10226   need_version=no
10227   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10229     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10230     dynamic_linker='NetBSD (a.out) ld.so'
10231   else
10232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233     soname_spec='${libname}${release}${shared_ext}$major'
10234     dynamic_linker='NetBSD ld.elf_so'
10235   fi
10236   shlibpath_var=LD_LIBRARY_PATH
10237   shlibpath_overrides_runpath=yes
10238   hardcode_into_libs=yes
10239   ;;
10240
10241 newsos6)
10242   version_type=linux
10243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   shlibpath_overrides_runpath=yes
10246   ;;
10247
10248 *nto* | *qnx*)
10249   version_type=qnx
10250   need_lib_prefix=no
10251   need_version=no
10252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253   soname_spec='${libname}${release}${shared_ext}$major'
10254   shlibpath_var=LD_LIBRARY_PATH
10255   shlibpath_overrides_runpath=no
10256   hardcode_into_libs=yes
10257   dynamic_linker='ldqnx.so'
10258   ;;
10259
10260 openbsd*)
10261   version_type=sunos
10262   sys_lib_dlsearch_path_spec="/usr/lib"
10263   need_lib_prefix=no
10264   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10265   case $host_os in
10266     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10267     *)                          need_version=no  ;;
10268   esac
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10271   shlibpath_var=LD_LIBRARY_PATH
10272   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10273     case $host_os in
10274       openbsd2.[89] | openbsd2.[89].*)
10275         shlibpath_overrides_runpath=no
10276         ;;
10277       *)
10278         shlibpath_overrides_runpath=yes
10279         ;;
10280       esac
10281   else
10282     shlibpath_overrides_runpath=yes
10283   fi
10284   ;;
10285
10286 os2*)
10287   libname_spec='$name'
10288   shrext_cmds=".dll"
10289   need_lib_prefix=no
10290   library_names_spec='$libname${shared_ext} $libname.a'
10291   dynamic_linker='OS/2 ld.exe'
10292   shlibpath_var=LIBPATH
10293   ;;
10294
10295 osf3* | osf4* | osf5*)
10296   version_type=osf
10297   need_lib_prefix=no
10298   need_version=no
10299   soname_spec='${libname}${release}${shared_ext}$major'
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301   shlibpath_var=LD_LIBRARY_PATH
10302   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10303   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10304   ;;
10305
10306 rdos*)
10307   dynamic_linker=no
10308   ;;
10309
10310 solaris*)
10311   version_type=linux
10312   need_lib_prefix=no
10313   need_version=no
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315   soname_spec='${libname}${release}${shared_ext}$major'
10316   shlibpath_var=LD_LIBRARY_PATH
10317   shlibpath_overrides_runpath=yes
10318   hardcode_into_libs=yes
10319   # ldd complains unless libraries are executable
10320   postinstall_cmds='chmod +x $lib'
10321   ;;
10322
10323 sunos4*)
10324   version_type=sunos
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10326   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   shlibpath_overrides_runpath=yes
10329   if test "$with_gnu_ld" = yes; then
10330     need_lib_prefix=no
10331   fi
10332   need_version=yes
10333   ;;
10334
10335 sysv4 | sysv4.3*)
10336   version_type=linux
10337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338   soname_spec='${libname}${release}${shared_ext}$major'
10339   shlibpath_var=LD_LIBRARY_PATH
10340   case $host_vendor in
10341     sni)
10342       shlibpath_overrides_runpath=no
10343       need_lib_prefix=no
10344       runpath_var=LD_RUN_PATH
10345       ;;
10346     siemens)
10347       need_lib_prefix=no
10348       ;;
10349     motorola)
10350       need_lib_prefix=no
10351       need_version=no
10352       shlibpath_overrides_runpath=no
10353       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10354       ;;
10355   esac
10356   ;;
10357
10358 sysv4*MP*)
10359   if test -d /usr/nec ;then
10360     version_type=linux
10361     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10362     soname_spec='$libname${shared_ext}.$major'
10363     shlibpath_var=LD_LIBRARY_PATH
10364   fi
10365   ;;
10366
10367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10368   version_type=freebsd-elf
10369   need_lib_prefix=no
10370   need_version=no
10371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10372   soname_spec='${libname}${release}${shared_ext}$major'
10373   shlibpath_var=LD_LIBRARY_PATH
10374   shlibpath_overrides_runpath=yes
10375   hardcode_into_libs=yes
10376   if test "$with_gnu_ld" = yes; then
10377     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10378   else
10379     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10380     case $host_os in
10381       sco3.2v5*)
10382         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10383         ;;
10384     esac
10385   fi
10386   sys_lib_dlsearch_path_spec='/usr/lib'
10387   ;;
10388
10389 tpf*)
10390   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10391   version_type=linux
10392   need_lib_prefix=no
10393   need_version=no
10394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395   shlibpath_var=LD_LIBRARY_PATH
10396   shlibpath_overrides_runpath=no
10397   hardcode_into_libs=yes
10398   ;;
10399
10400 uts4*)
10401   version_type=linux
10402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403   soname_spec='${libname}${release}${shared_ext}$major'
10404   shlibpath_var=LD_LIBRARY_PATH
10405   ;;
10406
10407 *)
10408   dynamic_linker=no
10409   ;;
10410 esac
10411 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10412 $as_echo "$dynamic_linker" >&6; }
10413 test "$dynamic_linker" = no && can_build_shared=no
10414
10415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10416 if test "$GCC" = yes; then
10417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10418 fi
10419
10420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10421   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10422 fi
10423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10424   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10425 fi
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10514 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10515 hardcode_action=
10516 if test -n "$hardcode_libdir_flag_spec" ||
10517    test -n "$runpath_var" ||
10518    test "X$hardcode_automatic" = "Xyes" ; then
10519
10520   # We can hardcode non-existent directories.
10521   if test "$hardcode_direct" != no &&
10522      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10523      # have to relink, otherwise we might link with an installed library
10524      # when we should be linking with a yet-to-be-installed one
10525      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10526      test "$hardcode_minus_L" != no; then
10527     # Linking always hardcodes the temporary library directory.
10528     hardcode_action=relink
10529   else
10530     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10531     hardcode_action=immediate
10532   fi
10533 else
10534   # We cannot hardcode anything, or else we can only hardcode existing
10535   # directories.
10536   hardcode_action=unsupported
10537 fi
10538 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10539 $as_echo "$hardcode_action" >&6; }
10540
10541 if test "$hardcode_action" = relink ||
10542    test "$inherit_rpath" = yes; then
10543   # Fast installation is not supported
10544   enable_fast_install=no
10545 elif test "$shlibpath_overrides_runpath" = yes ||
10546      test "$enable_shared" = no; then
10547   # Fast installation is not necessary
10548   enable_fast_install=needless
10549 fi
10550
10551
10552
10553
10554
10555
10556   if test "x$enable_dlopen" != xyes; then
10557   enable_dlopen=unknown
10558   enable_dlopen_self=unknown
10559   enable_dlopen_self_static=unknown
10560 else
10561   lt_cv_dlopen=no
10562   lt_cv_dlopen_libs=
10563
10564   case $host_os in
10565   beos*)
10566     lt_cv_dlopen="load_add_on"
10567     lt_cv_dlopen_libs=
10568     lt_cv_dlopen_self=yes
10569     ;;
10570
10571   mingw* | pw32* | cegcc*)
10572     lt_cv_dlopen="LoadLibrary"
10573     lt_cv_dlopen_libs=
10574     ;;
10575
10576   cygwin*)
10577     lt_cv_dlopen="dlopen"
10578     lt_cv_dlopen_libs=
10579     ;;
10580
10581   darwin*)
10582   # if libdl is installed we need to link against it
10583     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10586   $as_echo_n "(cached) " >&6
10587 else
10588   ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-ldl  $LIBS"
10590 cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h.  */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h.  */
10596
10597 /* Override any GCC internal prototype to avoid an error.
10598    Use char because int might match the return type of a GCC
10599    builtin and then its argument prototype would still apply.  */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char dlopen ();
10604 int
10605 main ()
10606 {
10607 return dlopen ();
10608   ;
10609   return 0;
10610 }
10611 _ACEOF
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (ac_try="$ac_link"
10614 case "(($ac_try" in
10615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616   *) ac_try_echo=$ac_try;;
10617 esac
10618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10619 $as_echo "$ac_try_echo") >&5
10620   (eval "$ac_link") 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } && {
10627          test -z "$ac_c_werror_flag" ||
10628          test ! -s conftest.err
10629        } && test -s conftest$ac_exeext && {
10630          test "$cross_compiling" = yes ||
10631          $as_test_x conftest$ac_exeext
10632        }; then
10633   ac_cv_lib_dl_dlopen=yes
10634 else
10635   $as_echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10637
10638         ac_cv_lib_dl_dlopen=no
10639 fi
10640
10641 rm -rf conftest.dSYM
10642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10643       conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10645 fi
10646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10649   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10650 else
10651
10652     lt_cv_dlopen="dyld"
10653     lt_cv_dlopen_libs=
10654     lt_cv_dlopen_self=yes
10655
10656 fi
10657
10658     ;;
10659
10660   *)
10661     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10662 $as_echo_n "checking for shl_load... " >&6; }
10663 if test "${ac_cv_func_shl_load+set}" = set; then
10664   $as_echo_n "(cached) " >&6
10665 else
10666   cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h.  */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h.  */
10672 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10674 #define shl_load innocuous_shl_load
10675
10676 /* System header to define __stub macros and hopefully few prototypes,
10677     which can conflict with char shl_load (); below.
10678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10679     <limits.h> exists even on freestanding compilers.  */
10680
10681 #ifdef __STDC__
10682 # include <limits.h>
10683 #else
10684 # include <assert.h>
10685 #endif
10686
10687 #undef shl_load
10688
10689 /* Override any GCC internal prototype to avoid an error.
10690    Use char because int might match the return type of a GCC
10691    builtin and then its argument prototype would still apply.  */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 char shl_load ();
10696 /* The GNU C library defines this for functions which it implements
10697     to always fail with ENOSYS.  Some functions are actually named
10698     something starting with __ and the normal name is an alias.  */
10699 #if defined __stub_shl_load || defined __stub___shl_load
10700 choke me
10701 #endif
10702
10703 int
10704 main ()
10705 {
10706 return shl_load ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10718 $as_echo "$ac_try_echo") >&5
10719   (eval "$ac_link") 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } && {
10726          test -z "$ac_c_werror_flag" ||
10727          test ! -s conftest.err
10728        } && test -s conftest$ac_exeext && {
10729          test "$cross_compiling" = yes ||
10730          $as_test_x conftest$ac_exeext
10731        }; then
10732   ac_cv_func_shl_load=yes
10733 else
10734   $as_echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737         ac_cv_func_shl_load=no
10738 fi
10739
10740 rm -rf conftest.dSYM
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742       conftest$ac_exeext conftest.$ac_ext
10743 fi
10744 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10745 $as_echo "$ac_cv_func_shl_load" >&6; }
10746 if test "x$ac_cv_func_shl_load" = x""yes; then
10747   lt_cv_dlopen="shl_load"
10748 else
10749   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10750 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10752   $as_echo_n "(cached) " >&6
10753 else
10754   ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-ldld  $LIBS"
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764    Use char because int might match the return type of a GCC
10765    builtin and then its argument prototype would still apply.  */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char shl_load ();
10770 int
10771 main ()
10772 {
10773 return shl_load ();
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10785 $as_echo "$ac_try_echo") >&5
10786   (eval "$ac_link") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } && {
10793          test -z "$ac_c_werror_flag" ||
10794          test ! -s conftest.err
10795        } && test -s conftest$ac_exeext && {
10796          test "$cross_compiling" = yes ||
10797          $as_test_x conftest$ac_exeext
10798        }; then
10799   ac_cv_lib_dld_shl_load=yes
10800 else
10801   $as_echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804         ac_cv_lib_dld_shl_load=no
10805 fi
10806
10807 rm -rf conftest.dSYM
10808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10809       conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10813 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10814 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10815   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10816 else
10817   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10818 $as_echo_n "checking for dlopen... " >&6; }
10819 if test "${ac_cv_func_dlopen+set}" = set; then
10820   $as_echo_n "(cached) " >&6
10821 else
10822   cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h.  */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h.  */
10828 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10830 #define dlopen innocuous_dlopen
10831
10832 /* System header to define __stub macros and hopefully few prototypes,
10833     which can conflict with char dlopen (); below.
10834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835     <limits.h> exists even on freestanding compilers.  */
10836
10837 #ifdef __STDC__
10838 # include <limits.h>
10839 #else
10840 # include <assert.h>
10841 #endif
10842
10843 #undef dlopen
10844
10845 /* Override any GCC internal prototype to avoid an error.
10846    Use char because int might match the return type of a GCC
10847    builtin and then its argument prototype would still apply.  */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 char dlopen ();
10852 /* The GNU C library defines this for functions which it implements
10853     to always fail with ENOSYS.  Some functions are actually named
10854     something starting with __ and the normal name is an alias.  */
10855 #if defined __stub_dlopen || defined __stub___dlopen
10856 choke me
10857 #endif
10858
10859 int
10860 main ()
10861 {
10862 return dlopen ();
10863   ;
10864   return 0;
10865 }
10866 _ACEOF
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874 $as_echo "$ac_try_echo") >&5
10875   (eval "$ac_link") 2>conftest.er1
10876   ac_status=$?
10877   grep -v '^ *+' conftest.er1 >conftest.err
10878   rm -f conftest.er1
10879   cat conftest.err >&5
10880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); } && {
10882          test -z "$ac_c_werror_flag" ||
10883          test ! -s conftest.err
10884        } && test -s conftest$ac_exeext && {
10885          test "$cross_compiling" = yes ||
10886          $as_test_x conftest$ac_exeext
10887        }; then
10888   ac_cv_func_dlopen=yes
10889 else
10890   $as_echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893         ac_cv_func_dlopen=no
10894 fi
10895
10896 rm -rf conftest.dSYM
10897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10898       conftest$ac_exeext conftest.$ac_ext
10899 fi
10900 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10901 $as_echo "$ac_cv_func_dlopen" >&6; }
10902 if test "x$ac_cv_func_dlopen" = x""yes; then
10903   lt_cv_dlopen="dlopen"
10904 else
10905   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10908   $as_echo_n "(cached) " >&6
10909 else
10910   ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-ldl  $LIBS"
10912 cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918
10919 /* Override any GCC internal prototype to avoid an error.
10920    Use char because int might match the return type of a GCC
10921    builtin and then its argument prototype would still apply.  */
10922 #ifdef __cplusplus
10923 extern "C"
10924 #endif
10925 char dlopen ();
10926 int
10927 main ()
10928 {
10929 return dlopen ();
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942   (eval "$ac_link") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } && {
10949          test -z "$ac_c_werror_flag" ||
10950          test ! -s conftest.err
10951        } && test -s conftest$ac_exeext && {
10952          test "$cross_compiling" = yes ||
10953          $as_test_x conftest$ac_exeext
10954        }; then
10955   ac_cv_lib_dl_dlopen=yes
10956 else
10957   $as_echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960         ac_cv_lib_dl_dlopen=no
10961 fi
10962
10963 rm -rf conftest.dSYM
10964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10965       conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10967 fi
10968 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10970 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10972 else
10973   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10974 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10975 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10976   $as_echo_n "(cached) " >&6
10977 else
10978   ac_check_lib_save_LIBS=$LIBS
10979 LIBS="-lsvld  $LIBS"
10980 cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986
10987 /* Override any GCC internal prototype to avoid an error.
10988    Use char because int might match the return type of a GCC
10989    builtin and then its argument prototype would still apply.  */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char dlopen ();
10994 int
10995 main ()
10996 {
10997 return dlopen ();
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext conftest$ac_exeext
11003 if { (ac_try="$ac_link"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11009 $as_echo "$ac_try_echo") >&5
11010   (eval "$ac_link") 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } && {
11017          test -z "$ac_c_werror_flag" ||
11018          test ! -s conftest.err
11019        } && test -s conftest$ac_exeext && {
11020          test "$cross_compiling" = yes ||
11021          $as_test_x conftest$ac_exeext
11022        }; then
11023   ac_cv_lib_svld_dlopen=yes
11024 else
11025   $as_echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11027
11028         ac_cv_lib_svld_dlopen=no
11029 fi
11030
11031 rm -rf conftest.dSYM
11032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11033       conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11035 fi
11036 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11039   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11040 else
11041   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11042 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11043 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11044   $as_echo_n "(cached) " >&6
11045 else
11046   ac_check_lib_save_LIBS=$LIBS
11047 LIBS="-ldld  $LIBS"
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054
11055 /* Override any GCC internal prototype to avoid an error.
11056    Use char because int might match the return type of a GCC
11057    builtin and then its argument prototype would still apply.  */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char dld_link ();
11062 int
11063 main ()
11064 {
11065 return dld_link ();
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11077 $as_echo "$ac_try_echo") >&5
11078   (eval "$ac_link") 2>conftest.er1
11079   ac_status=$?
11080   grep -v '^ *+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } && {
11085          test -z "$ac_c_werror_flag" ||
11086          test ! -s conftest.err
11087        } && test -s conftest$ac_exeext && {
11088          test "$cross_compiling" = yes ||
11089          $as_test_x conftest$ac_exeext
11090        }; then
11091   ac_cv_lib_dld_dld_link=yes
11092 else
11093   $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096         ac_cv_lib_dld_dld_link=no
11097 fi
11098
11099 rm -rf conftest.dSYM
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101       conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11105 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11106 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11107   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11108 fi
11109
11110
11111 fi
11112
11113
11114 fi
11115
11116
11117 fi
11118
11119
11120 fi
11121
11122
11123 fi
11124
11125     ;;
11126   esac
11127
11128   if test "x$lt_cv_dlopen" != xno; then
11129     enable_dlopen=yes
11130   else
11131     enable_dlopen=no
11132   fi
11133
11134   case $lt_cv_dlopen in
11135   dlopen)
11136     save_CPPFLAGS="$CPPFLAGS"
11137     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11138
11139     save_LDFLAGS="$LDFLAGS"
11140     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11141
11142     save_LIBS="$LIBS"
11143     LIBS="$lt_cv_dlopen_libs $LIBS"
11144
11145     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11146 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11147 if test "${lt_cv_dlopen_self+set}" = set; then
11148   $as_echo_n "(cached) " >&6
11149 else
11150           if test "$cross_compiling" = yes; then :
11151   lt_cv_dlopen_self=cross
11152 else
11153   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11154   lt_status=$lt_dlunknown
11155   cat > conftest.$ac_ext <<_LT_EOF
11156 #line 11156 "configure"
11157 #include "confdefs.h"
11158
11159 #if HAVE_DLFCN_H
11160 #include <dlfcn.h>
11161 #endif
11162
11163 #include <stdio.h>
11164
11165 #ifdef RTLD_GLOBAL
11166 #  define LT_DLGLOBAL           RTLD_GLOBAL
11167 #else
11168 #  ifdef DL_GLOBAL
11169 #    define LT_DLGLOBAL         DL_GLOBAL
11170 #  else
11171 #    define LT_DLGLOBAL         0
11172 #  endif
11173 #endif
11174
11175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11176    find out it does not work in some platform. */
11177 #ifndef LT_DLLAZY_OR_NOW
11178 #  ifdef RTLD_LAZY
11179 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11180 #  else
11181 #    ifdef DL_LAZY
11182 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11183 #    else
11184 #      ifdef RTLD_NOW
11185 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11186 #      else
11187 #        ifdef DL_NOW
11188 #          define LT_DLLAZY_OR_NOW      DL_NOW
11189 #        else
11190 #          define LT_DLLAZY_OR_NOW      0
11191 #        endif
11192 #      endif
11193 #    endif
11194 #  endif
11195 #endif
11196
11197 void fnord() { int i=42;}
11198 int main ()
11199 {
11200   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11201   int status = $lt_dlunknown;
11202
11203   if (self)
11204     {
11205       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11206       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11207       /* dlclose (self); */
11208     }
11209   else
11210     puts (dlerror ());
11211
11212   return status;
11213 }
11214 _LT_EOF
11215   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216   (eval $ac_link) 2>&5
11217   ac_status=$?
11218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11220     (./conftest; exit; ) >&5 2>/dev/null
11221     lt_status=$?
11222     case x$lt_status in
11223       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11224       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11225       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11226     esac
11227   else :
11228     # compilation failed
11229     lt_cv_dlopen_self=no
11230   fi
11231 fi
11232 rm -fr conftest*
11233
11234
11235 fi
11236 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11237 $as_echo "$lt_cv_dlopen_self" >&6; }
11238
11239     if test "x$lt_cv_dlopen_self" = xyes; then
11240       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11241       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11242 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11243 if test "${lt_cv_dlopen_self_static+set}" = set; then
11244   $as_echo_n "(cached) " >&6
11245 else
11246           if test "$cross_compiling" = yes; then :
11247   lt_cv_dlopen_self_static=cross
11248 else
11249   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11250   lt_status=$lt_dlunknown
11251   cat > conftest.$ac_ext <<_LT_EOF
11252 #line 11252 "configure"
11253 #include "confdefs.h"
11254
11255 #if HAVE_DLFCN_H
11256 #include <dlfcn.h>
11257 #endif
11258
11259 #include <stdio.h>
11260
11261 #ifdef RTLD_GLOBAL
11262 #  define LT_DLGLOBAL           RTLD_GLOBAL
11263 #else
11264 #  ifdef DL_GLOBAL
11265 #    define LT_DLGLOBAL         DL_GLOBAL
11266 #  else
11267 #    define LT_DLGLOBAL         0
11268 #  endif
11269 #endif
11270
11271 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11272    find out it does not work in some platform. */
11273 #ifndef LT_DLLAZY_OR_NOW
11274 #  ifdef RTLD_LAZY
11275 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11276 #  else
11277 #    ifdef DL_LAZY
11278 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11279 #    else
11280 #      ifdef RTLD_NOW
11281 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11282 #      else
11283 #        ifdef DL_NOW
11284 #          define LT_DLLAZY_OR_NOW      DL_NOW
11285 #        else
11286 #          define LT_DLLAZY_OR_NOW      0
11287 #        endif
11288 #      endif
11289 #    endif
11290 #  endif
11291 #endif
11292
11293 void fnord() { int i=42;}
11294 int main ()
11295 {
11296   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11297   int status = $lt_dlunknown;
11298
11299   if (self)
11300     {
11301       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11302       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11303       /* dlclose (self); */
11304     }
11305   else
11306     puts (dlerror ());
11307
11308   return status;
11309 }
11310 _LT_EOF
11311   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11312   (eval $ac_link) 2>&5
11313   ac_status=$?
11314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11316     (./conftest; exit; ) >&5 2>/dev/null
11317     lt_status=$?
11318     case x$lt_status in
11319       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11320       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11321       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11322     esac
11323   else :
11324     # compilation failed
11325     lt_cv_dlopen_self_static=no
11326   fi
11327 fi
11328 rm -fr conftest*
11329
11330
11331 fi
11332 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11333 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11334     fi
11335
11336     CPPFLAGS="$save_CPPFLAGS"
11337     LDFLAGS="$save_LDFLAGS"
11338     LIBS="$save_LIBS"
11339     ;;
11340   esac
11341
11342   case $lt_cv_dlopen_self in
11343   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11344   *) enable_dlopen_self=unknown ;;
11345   esac
11346
11347   case $lt_cv_dlopen_self_static in
11348   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11349   *) enable_dlopen_self_static=unknown ;;
11350   esac
11351 fi
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369 striplib=
11370 old_striplib=
11371 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11372 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11374   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11375   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11376   { $as_echo "$as_me:$LINENO: result: yes" >&5
11377 $as_echo "yes" >&6; }
11378 else
11379 # FIXME - insert some real tests, host_os isn't really good enough
11380   case $host_os in
11381   darwin*)
11382     if test -n "$STRIP" ; then
11383       striplib="$STRIP -x"
11384       old_striplib="$STRIP -S"
11385       { $as_echo "$as_me:$LINENO: result: yes" >&5
11386 $as_echo "yes" >&6; }
11387     else
11388       { $as_echo "$as_me:$LINENO: result: no" >&5
11389 $as_echo "no" >&6; }
11390     fi
11391     ;;
11392   *)
11393     { $as_echo "$as_me:$LINENO: result: no" >&5
11394 $as_echo "no" >&6; }
11395     ;;
11396   esac
11397 fi
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410   # Report which library types will actually be built
11411   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11412 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11413   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11414 $as_echo "$can_build_shared" >&6; }
11415
11416   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11417 $as_echo_n "checking whether to build shared libraries... " >&6; }
11418   test "$can_build_shared" = "no" && enable_shared=no
11419
11420   # On AIX, shared libraries and static libraries use the same namespace, and
11421   # are all built from PIC.
11422   case $host_os in
11423   aix3*)
11424     test "$enable_shared" = yes && enable_static=no
11425     if test -n "$RANLIB"; then
11426       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11427       postinstall_cmds='$RANLIB $lib'
11428     fi
11429     ;;
11430
11431   aix[4-9]*)
11432     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11433       test "$enable_shared" = yes && enable_static=no
11434     fi
11435     ;;
11436   esac
11437   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11438 $as_echo "$enable_shared" >&6; }
11439
11440   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11441 $as_echo_n "checking whether to build static libraries... " >&6; }
11442   # Make sure either enable_shared or enable_static is yes.
11443   test "$enable_shared" = yes || enable_static=yes
11444   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11445 $as_echo "$enable_static" >&6; }
11446
11447
11448
11449
11450 fi
11451 ac_ext=c
11452 ac_cpp='$CPP $CPPFLAGS'
11453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11456
11457 CC="$lt_save_CC"
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471         ac_config_commands="$ac_config_commands libtool"
11472
11473
11474
11475
11476 # Only expand once:
11477
11478
11479
11480
11481
11482 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11483 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11484     # Check whether --enable-maintainer-mode was given.
11485 if test "${enable_maintainer_mode+set}" = set; then
11486   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11487 else
11488   USE_MAINTAINER_MODE=no
11489 fi
11490
11491   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11492 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11493    if test $USE_MAINTAINER_MODE = yes; then
11494   MAINTAINER_MODE_TRUE=
11495   MAINTAINER_MODE_FALSE='#'
11496 else
11497   MAINTAINER_MODE_TRUE='#'
11498   MAINTAINER_MODE_FALSE=
11499 fi
11500
11501   MAINT=$MAINTAINER_MODE_TRUE
11502
11503
11504
11505
11506 for ac_header in sys/mman.h
11507 do
11508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11511 $as_echo_n "checking for $ac_header... " >&6; }
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513   $as_echo_n "(cached) " >&6
11514 fi
11515 ac_res=`eval 'as_val=${'$as_ac_Header'}
11516                  $as_echo "$as_val"'`
11517                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11518 $as_echo "$ac_res" >&6; }
11519 else
11520   # Is the header compilable?
11521 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 $as_echo_n "checking $ac_header usability... " >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 $ac_includes_default
11530 #include <$ac_header>
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536   *) ac_try_echo=$ac_try;;
11537 esac
11538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11539 $as_echo "$ac_try_echo") >&5
11540   (eval "$ac_compile") 2>conftest.er1
11541   ac_status=$?
11542   grep -v '^ *+' conftest.er1 >conftest.err
11543   rm -f conftest.er1
11544   cat conftest.err >&5
11545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } && {
11547          test -z "$ac_c_werror_flag" ||
11548          test ! -s conftest.err
11549        } && test -s conftest.$ac_objext; then
11550   ac_header_compiler=yes
11551 else
11552   $as_echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555         ac_header_compiler=no
11556 fi
11557
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11560 $as_echo "$ac_header_compiler" >&6; }
11561
11562 # Is the header present?
11563 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11564 $as_echo_n "checking $ac_header presence... " >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571 #include <$ac_header>
11572 _ACEOF
11573 if { (ac_try="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576   *) ac_try_echo=$ac_try;;
11577 esac
11578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579 $as_echo "$ac_try_echo") >&5
11580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11581   ac_status=$?
11582   grep -v '^ *+' conftest.er1 >conftest.err
11583   rm -f conftest.er1
11584   cat conftest.err >&5
11585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } >/dev/null && {
11587          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11588          test ! -s conftest.err
11589        }; then
11590   ac_header_preproc=yes
11591 else
11592   $as_echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595   ac_header_preproc=no
11596 fi
11597
11598 rm -f conftest.err conftest.$ac_ext
11599 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11600 $as_echo "$ac_header_preproc" >&6; }
11601
11602 # So?  What about this header?
11603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11604   yes:no: )
11605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11609     ac_header_preproc=yes
11610     ;;
11611   no:yes:* )
11612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11615 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11619 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11624     ( cat <<\_ASBOX
11625 ## ------------------------------------------------ ##
11626 ## Report this to http://sourceware.org/libffi.html ##
11627 ## ------------------------------------------------ ##
11628 _ASBOX
11629      ) | sed "s/^/$as_me: WARNING:     /" >&2
11630     ;;
11631 esac
11632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 $as_echo_n "checking for $ac_header... " >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635   $as_echo_n "(cached) " >&6
11636 else
11637   eval "$as_ac_Header=\$ac_header_preproc"
11638 fi
11639 ac_res=`eval 'as_val=${'$as_ac_Header'}
11640                  $as_echo "$as_val"'`
11641                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11642 $as_echo "$ac_res" >&6; }
11643
11644 fi
11645 as_val=`eval 'as_val=${'$as_ac_Header'}
11646                  $as_echo "$as_val"'`
11647    if test "x$as_val" = x""yes; then
11648   cat >>confdefs.h <<_ACEOF
11649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11650 _ACEOF
11651
11652 fi
11653
11654 done
11655
11656
11657 for ac_func in mmap
11658 do
11659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 $as_echo_n "checking for $ac_func... " >&6; }
11662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11663   $as_echo_n "(cached) " >&6
11664 else
11665   cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h.  */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h.  */
11671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11673 #define $ac_func innocuous_$ac_func
11674
11675 /* System header to define __stub macros and hopefully few prototypes,
11676     which can conflict with char $ac_func (); below.
11677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678     <limits.h> exists even on freestanding compilers.  */
11679
11680 #ifdef __STDC__
11681 # include <limits.h>
11682 #else
11683 # include <assert.h>
11684 #endif
11685
11686 #undef $ac_func
11687
11688 /* Override any GCC internal prototype to avoid an error.
11689    Use char because int might match the return type of a GCC
11690    builtin and then its argument prototype would still apply.  */
11691 #ifdef __cplusplus
11692 extern "C"
11693 #endif
11694 char $ac_func ();
11695 /* The GNU C library defines this for functions which it implements
11696     to always fail with ENOSYS.  Some functions are actually named
11697     something starting with __ and the normal name is an alias.  */
11698 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 choke me
11700 #endif
11701
11702 int
11703 main ()
11704 {
11705 return $ac_func ();
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11717 $as_echo "$ac_try_echo") >&5
11718   (eval "$ac_link") 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } && {
11725          test -z "$ac_c_werror_flag" ||
11726          test ! -s conftest.err
11727        } && test -s conftest$ac_exeext && {
11728          test "$cross_compiling" = yes ||
11729          $as_test_x conftest$ac_exeext
11730        }; then
11731   eval "$as_ac_var=yes"
11732 else
11733   $as_echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736         eval "$as_ac_var=no"
11737 fi
11738
11739 rm -rf conftest.dSYM
11740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11741       conftest$ac_exeext conftest.$ac_ext
11742 fi
11743 ac_res=`eval 'as_val=${'$as_ac_var'}
11744                  $as_echo "$as_val"'`
11745                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11746 $as_echo "$ac_res" >&6; }
11747 as_val=`eval 'as_val=${'$as_ac_var'}
11748                  $as_echo "$as_val"'`
11749    if test "x$as_val" = x""yes; then
11750   cat >>confdefs.h <<_ACEOF
11751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11752 _ACEOF
11753
11754 fi
11755 done
11756
11757
11758 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11759   { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11760 $as_echo_n "checking for sys/mman.h... " >&6; }
11761 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11762   $as_echo_n "(cached) " >&6
11763 fi
11764 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11765 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11766 else
11767   # Is the header compilable?
11768 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11769 $as_echo_n "checking sys/mman.h usability... " >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h.  */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h.  */
11776 $ac_includes_default
11777 #include <sys/mman.h>
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787   (eval "$ac_compile") 2>conftest.er1
11788   ac_status=$?
11789   grep -v '^ *+' conftest.er1 >conftest.err
11790   rm -f conftest.er1
11791   cat conftest.err >&5
11792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); } && {
11794          test -z "$ac_c_werror_flag" ||
11795          test ! -s conftest.err
11796        } && test -s conftest.$ac_objext; then
11797   ac_header_compiler=yes
11798 else
11799   $as_echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802         ac_header_compiler=no
11803 fi
11804
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11807 $as_echo "$ac_header_compiler" >&6; }
11808
11809 # Is the header present?
11810 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11811 $as_echo_n "checking sys/mman.h presence... " >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 #include <sys/mman.h>
11819 _ACEOF
11820 if { (ac_try="$ac_cpp conftest.$ac_ext"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11826 $as_echo "$ac_try_echo") >&5
11827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11828   ac_status=$?
11829   grep -v '^ *+' conftest.er1 >conftest.err
11830   rm -f conftest.er1
11831   cat conftest.err >&5
11832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); } >/dev/null && {
11834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11835          test ! -s conftest.err
11836        }; then
11837   ac_header_preproc=yes
11838 else
11839   $as_echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842   ac_header_preproc=no
11843 fi
11844
11845 rm -f conftest.err conftest.$ac_ext
11846 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11847 $as_echo "$ac_header_preproc" >&6; }
11848
11849 # So?  What about this header?
11850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11851   yes:no: )
11852     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11853 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11854     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11855 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11856     ac_header_preproc=yes
11857     ;;
11858   no:yes:* )
11859     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11860 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11861     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
11862 $as_echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
11863     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11864 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11865     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
11866 $as_echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11867     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11868 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11869     { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11870 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11871     ( cat <<\_ASBOX
11872 ## ------------------------------------------------ ##
11873 ## Report this to http://sourceware.org/libffi.html ##
11874 ## ------------------------------------------------ ##
11875 _ASBOX
11876      ) | sed "s/^/$as_me: WARNING:     /" >&2
11877     ;;
11878 esac
11879 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11880 $as_echo_n "checking for sys/mman.h... " >&6; }
11881 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11882   $as_echo_n "(cached) " >&6
11883 else
11884   ac_cv_header_sys_mman_h=$ac_header_preproc
11885 fi
11886 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11887 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11888
11889 fi
11890 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11891   libffi_header_sys_mman_h=yes
11892 else
11893   libffi_header_sys_mman_h=no
11894 fi
11895
11896
11897 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11898 $as_echo_n "checking for mmap... " >&6; }
11899 if test "${ac_cv_func_mmap+set}" = set; then
11900   $as_echo_n "(cached) " >&6
11901 else
11902   cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11910 #define mmap innocuous_mmap
11911
11912 /* System header to define __stub macros and hopefully few prototypes,
11913     which can conflict with char mmap (); below.
11914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915     <limits.h> exists even on freestanding compilers.  */
11916
11917 #ifdef __STDC__
11918 # include <limits.h>
11919 #else
11920 # include <assert.h>
11921 #endif
11922
11923 #undef mmap
11924
11925 /* Override any GCC internal prototype to avoid an error.
11926    Use char because int might match the return type of a GCC
11927    builtin and then its argument prototype would still apply.  */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 char mmap ();
11932 /* The GNU C library defines this for functions which it implements
11933     to always fail with ENOSYS.  Some functions are actually named
11934     something starting with __ and the normal name is an alias.  */
11935 #if defined __stub_mmap || defined __stub___mmap
11936 choke me
11937 #endif
11938
11939 int
11940 main ()
11941 {
11942 return mmap ();
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (ac_try="$ac_link"
11949 case "(($ac_try" in
11950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951   *) ac_try_echo=$ac_try;;
11952 esac
11953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11954 $as_echo "$ac_try_echo") >&5
11955   (eval "$ac_link") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } && {
11962          test -z "$ac_c_werror_flag" ||
11963          test ! -s conftest.err
11964        } && test -s conftest$ac_exeext && {
11965          test "$cross_compiling" = yes ||
11966          $as_test_x conftest$ac_exeext
11967        }; then
11968   ac_cv_func_mmap=yes
11969 else
11970   $as_echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973         ac_cv_func_mmap=no
11974 fi
11975
11976 rm -rf conftest.dSYM
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978       conftest$ac_exeext conftest.$ac_ext
11979 fi
11980 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11981 $as_echo "$ac_cv_func_mmap" >&6; }
11982 if test "x$ac_cv_func_mmap" = x""yes; then
11983   libffi_func_mmap=yes
11984 else
11985   libffi_func_mmap=no
11986 fi
11987
11988 if test "$libffi_header_sys_mman_h" != yes \
11989  || test "$libffi_func_mmap" != yes; then
11990    ac_cv_func_mmap_file=no
11991    ac_cv_func_mmap_dev_zero=no
11992    ac_cv_func_mmap_anon=no
11993 else
11994    { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11995 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11996 if test "${ac_cv_func_mmap_file+set}" = set; then
11997   $as_echo_n "(cached) " >&6
11998 else
11999   # Add a system to this blacklist if
12000    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
12001    # memory area containing the same data that you'd get if you applied
12002    # read() to the same fd.  The only system known to have a problem here
12003    # is VMS, where text files have record structure.
12004    case "$host_os" in
12005      vms* | ultrix*)
12006         ac_cv_func_mmap_file=no ;;
12007      *)
12008         ac_cv_func_mmap_file=yes;;
12009    esac
12010 fi
12011 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12012 $as_echo "$ac_cv_func_mmap_file" >&6; }
12013    { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12014 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12015 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12016   $as_echo_n "(cached) " >&6
12017 else
12018   # Add a system to this blacklist if it has mmap() but /dev/zero
12019    # does not exist, or if mmapping /dev/zero does not give anonymous
12020    # zeroed pages with both the following properties:
12021    # 1. If you map N consecutive pages in with one call, and then
12022    #    unmap any subset of those pages, the pages that were not
12023    #    explicitly unmapped remain accessible.
12024    # 2. If you map two adjacent blocks of memory and then unmap them
12025    #    both at once, they must both go away.
12026    # Systems known to be in this category are Windows (all variants),
12027    # VMS, and Darwin.
12028    case "$host_os" in
12029      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12030         ac_cv_func_mmap_dev_zero=no ;;
12031      *)
12032         ac_cv_func_mmap_dev_zero=yes;;
12033    esac
12034 fi
12035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12036 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12037
12038    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12039    { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12040 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12041 if test "${ac_cv_decl_map_anon+set}" = set; then
12042   $as_echo_n "(cached) " >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050 #include <sys/types.h>
12051 #include <sys/mman.h>
12052 #include <unistd.h>
12053
12054 #ifndef MAP_ANONYMOUS
12055 #define MAP_ANONYMOUS MAP_ANON
12056 #endif
12057
12058 int
12059 main ()
12060 {
12061 int n = MAP_ANONYMOUS;
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074   (eval "$ac_compile") 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } && {
12081          test -z "$ac_c_werror_flag" ||
12082          test ! -s conftest.err
12083        } && test -s conftest.$ac_objext; then
12084   ac_cv_decl_map_anon=yes
12085 else
12086   $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089         ac_cv_decl_map_anon=no
12090 fi
12091
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 fi
12094 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12095 $as_echo "$ac_cv_decl_map_anon" >&6; }
12096
12097    if test $ac_cv_decl_map_anon = no; then
12098      ac_cv_func_mmap_anon=no
12099    else
12100      { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12101 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12102 if test "${ac_cv_func_mmap_anon+set}" = set; then
12103   $as_echo_n "(cached) " >&6
12104 else
12105   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12106    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12107    # doesn't give anonymous zeroed pages with the same properties listed
12108    # above for use of /dev/zero.
12109    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12110    case "$host_os" in
12111      vms* | cygwin* | pe | mingw* | sco* | udk* )
12112         ac_cv_func_mmap_anon=no ;;
12113      *)
12114         ac_cv_func_mmap_anon=yes;;
12115    esac
12116 fi
12117 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12118 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12119    fi
12120 fi
12121
12122 if test $ac_cv_func_mmap_file = yes; then
12123
12124 cat >>confdefs.h <<\_ACEOF
12125 #define HAVE_MMAP_FILE 1
12126 _ACEOF
12127
12128 fi
12129 if test $ac_cv_func_mmap_dev_zero = yes; then
12130
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_MMAP_DEV_ZERO 1
12133 _ACEOF
12134
12135 fi
12136 if test $ac_cv_func_mmap_anon = yes; then
12137
12138 cat >>confdefs.h <<\_ACEOF
12139 #define HAVE_MMAP_ANON 1
12140 _ACEOF
12141
12142 fi
12143
12144
12145  if test -d $srcdir/testsuite; then
12146   TESTSUBDIR_TRUE=
12147   TESTSUBDIR_FALSE='#'
12148 else
12149   TESTSUBDIR_TRUE='#'
12150   TESTSUBDIR_FALSE=
12151 fi
12152
12153
12154 TARGETDIR="unknown"
12155 case "$host" in
12156   alpha*-*-*)
12157         TARGET=ALPHA; TARGETDIR=alpha;
12158         # Support 128-bit long double, changeable via command-line switch.
12159         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12160         ;;
12161
12162   arm*-*-*)
12163         TARGET=ARM; TARGETDIR=arm
12164         ;;
12165
12166   amd64-*-freebsd* | amd64-*-openbsd*)
12167         TARGET=X86_64; TARGETDIR=x86
12168         ;;
12169
12170   amd64-*-freebsd*)
12171         TARGET=X86_64; TARGETDIR=x86
12172         ;;
12173
12174   avr32*-*-*)
12175         TARGET=AVR32; TARGETDIR=avr32
12176         ;;
12177
12178   cris-*-*)
12179         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12180         ;;
12181
12182   frv-*-*)
12183         TARGET=FRV; TARGETDIR=frv
12184         ;;
12185
12186   hppa*-*-linux* | parisc*-*-linux*)
12187         TARGET=PA_LINUX; TARGETDIR=pa
12188         ;;
12189   hppa*64-*-hpux*)
12190         TARGET=PA64_HPUX; TARGETDIR=pa
12191         ;;
12192   hppa*-*-hpux*)
12193         TARGET=PA_HPUX; TARGETDIR=pa
12194         ;;
12195
12196   i?86-*-freebsd* | i?86-*-openbsd*)
12197         TARGET=X86_FREEBSD; TARGETDIR=x86
12198         ;;
12199   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
12200         TARGET=X86_WIN32; TARGETDIR=x86
12201         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12202         # We must also check with_cross_host to decide if this is a native
12203         # or cross-build and select where to install dlls appropriately.
12204         if test -n "$with_cross_host" &&
12205            test x"$with_cross_host" != x"no"; then
12206           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12207         else
12208           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12209         fi
12210         ;;
12211   i?86-*-darwin*)
12212         TARGET=X86_DARWIN; TARGETDIR=x86
12213         ;;
12214   i?86-*-solaris2.1[0-9]*)
12215         TARGET=X86_64; TARGETDIR=x86
12216         ;;
12217   i?86-*-*)
12218         TARGET=X86; TARGETDIR=x86
12219         ;;
12220
12221   ia64*-*-*)
12222         TARGET=IA64; TARGETDIR=ia64
12223         ;;
12224
12225   m32r*-*-*)
12226         TARGET=M32R; TARGETDIR=m32r
12227         ;;
12228
12229   m68k-*-*)
12230         TARGET=M68K; TARGETDIR=m68k
12231         ;;
12232
12233   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12234         TARGET=MIPS; TARGETDIR=mips
12235         ;;
12236   mips*-*-linux*)
12237         # Support 128-bit long double for NewABI.
12238         HAVE_LONG_DOUBLE='defined(__mips64)'
12239         TARGET=MIPS; TARGETDIR=mips
12240         ;;
12241
12242   powerpc*-*-linux* | powerpc-*-sysv*)
12243         TARGET=POWERPC; TARGETDIR=powerpc
12244         ;;
12245   powerpc-*-beos*)
12246         TARGET=POWERPC; TARGETDIR=powerpc
12247         ;;
12248   powerpc-*-darwin* | powerpc64-*-darwin*)
12249         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12250         ;;
12251   powerpc-*-aix* | rs6000-*-aix*)
12252         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12253         ;;
12254   powerpc-*-freebsd*)
12255         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12256         ;;
12257   powerpc64-*-freebsd*)
12258         TARGET=POWERPC; TARGETDIR=powerpc
12259         ;;
12260   powerpc*-*-rtems*)
12261         TARGET=POWERPC; TARGETDIR=powerpc
12262         ;;
12263
12264   s390-*-* | s390x-*-*)
12265         TARGET=S390; TARGETDIR=s390
12266         ;;
12267
12268   sh-*-* | sh[34]*-*-*)
12269         TARGET=SH; TARGETDIR=sh
12270         ;;
12271   sh64-*-* | sh5*-*-*)
12272         TARGET=SH64; TARGETDIR=sh64
12273         ;;
12274
12275   sparc*-*-*)
12276         TARGET=SPARC; TARGETDIR=sparc
12277         ;;
12278
12279   x86_64-*-darwin*)
12280         TARGET=X86_DARWIN; TARGETDIR=x86
12281         ;;
12282
12283   x86_64-*-cygwin* | x86_64-*-mingw*)
12284         TARGET=X86_WIN64; TARGETDIR=x86
12285         ;;
12286
12287   x86_64-*-*)
12288         TARGET=X86_64; TARGETDIR=x86
12289         ;;
12290 esac
12291
12292
12293
12294
12295 if test $TARGETDIR = unknown; then
12296   { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12297 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12298    { (exit 1); exit 1; }; }
12299 fi
12300
12301  if test x$TARGET = xMIPS; then
12302   MIPS_TRUE=
12303   MIPS_FALSE='#'
12304 else
12305   MIPS_TRUE='#'
12306   MIPS_FALSE=
12307 fi
12308
12309  if test x$TARGET = xSPARC; then
12310   SPARC_TRUE=
12311   SPARC_FALSE='#'
12312 else
12313   SPARC_TRUE='#'
12314   SPARC_FALSE=
12315 fi
12316
12317  if test x$TARGET = xX86; then
12318   X86_TRUE=
12319   X86_FALSE='#'
12320 else
12321   X86_TRUE='#'
12322   X86_FALSE=
12323 fi
12324
12325  if test x$TARGET = xX86_FREEBSD; then
12326   X86_FREEBSD_TRUE=
12327   X86_FREEBSD_FALSE='#'
12328 else
12329   X86_FREEBSD_TRUE='#'
12330   X86_FREEBSD_FALSE=
12331 fi
12332
12333  if test x$TARGET = xX86_WIN32; then
12334   X86_WIN32_TRUE=
12335   X86_WIN32_FALSE='#'
12336 else
12337   X86_WIN32_TRUE='#'
12338   X86_WIN32_FALSE=
12339 fi
12340
12341  if test x$TARGET = xX86_WIN64; then
12342   X86_WIN64_TRUE=
12343   X86_WIN64_FALSE='#'
12344 else
12345   X86_WIN64_TRUE='#'
12346   X86_WIN64_FALSE=
12347 fi
12348
12349  if test x$TARGET = xX86_DARWIN; then
12350   X86_DARWIN_TRUE=
12351   X86_DARWIN_FALSE='#'
12352 else
12353   X86_DARWIN_TRUE='#'
12354   X86_DARWIN_FALSE=
12355 fi
12356
12357  if test x$TARGET = xALPHA; then
12358   ALPHA_TRUE=
12359   ALPHA_FALSE='#'
12360 else
12361   ALPHA_TRUE='#'
12362   ALPHA_FALSE=
12363 fi
12364
12365  if test x$TARGET = xIA64; then
12366   IA64_TRUE=
12367   IA64_FALSE='#'
12368 else
12369   IA64_TRUE='#'
12370   IA64_FALSE=
12371 fi
12372
12373  if test x$TARGET = xM32R; then
12374   M32R_TRUE=
12375   M32R_FALSE='#'
12376 else
12377   M32R_TRUE='#'
12378   M32R_FALSE=
12379 fi
12380
12381  if test x$TARGET = xM68K; then
12382   M68K_TRUE=
12383   M68K_FALSE='#'
12384 else
12385   M68K_TRUE='#'
12386   M68K_FALSE=
12387 fi
12388
12389  if test x$TARGET = xMOXIE; then
12390   MOXIE_TRUE=
12391   MOXIE_FALSE='#'
12392 else
12393   MOXIE_TRUE='#'
12394   MOXIE_FALSE=
12395 fi
12396
12397  if test x$TARGET = xPOWERPC; then
12398   POWERPC_TRUE=
12399   POWERPC_FALSE='#'
12400 else
12401   POWERPC_TRUE='#'
12402   POWERPC_FALSE=
12403 fi
12404
12405  if test x$TARGET = xPOWERPC_AIX; then
12406   POWERPC_AIX_TRUE=
12407   POWERPC_AIX_FALSE='#'
12408 else
12409   POWERPC_AIX_TRUE='#'
12410   POWERPC_AIX_FALSE=
12411 fi
12412
12413  if test x$TARGET = xPOWERPC_DARWIN; then
12414   POWERPC_DARWIN_TRUE=
12415   POWERPC_DARWIN_FALSE='#'
12416 else
12417   POWERPC_DARWIN_TRUE='#'
12418   POWERPC_DARWIN_FALSE=
12419 fi
12420
12421  if test x$TARGET = xPOWERPC_FREEBSD; then
12422   POWERPC_FREEBSD_TRUE=
12423   POWERPC_FREEBSD_FALSE='#'
12424 else
12425   POWERPC_FREEBSD_TRUE='#'
12426   POWERPC_FREEBSD_FALSE=
12427 fi
12428
12429  if test x$TARGET = xARM; then
12430   ARM_TRUE=
12431   ARM_FALSE='#'
12432 else
12433   ARM_TRUE='#'
12434   ARM_FALSE=
12435 fi
12436
12437  if test x$TARGET = xAVR32; then
12438   AVR32_TRUE=
12439   AVR32_FALSE='#'
12440 else
12441   AVR32_TRUE='#'
12442   AVR32_FALSE=
12443 fi
12444
12445  if test x$TARGET = xLIBFFI_CRIS; then
12446   LIBFFI_CRIS_TRUE=
12447   LIBFFI_CRIS_FALSE='#'
12448 else
12449   LIBFFI_CRIS_TRUE='#'
12450   LIBFFI_CRIS_FALSE=
12451 fi
12452
12453  if test x$TARGET = xFRV; then
12454   FRV_TRUE=
12455   FRV_FALSE='#'
12456 else
12457   FRV_TRUE='#'
12458   FRV_FALSE=
12459 fi
12460
12461  if test x$TARGET = xS390; then
12462   S390_TRUE=
12463   S390_FALSE='#'
12464 else
12465   S390_TRUE='#'
12466   S390_FALSE=
12467 fi
12468
12469  if test x$TARGET = xX86_64; then
12470   X86_64_TRUE=
12471   X86_64_FALSE='#'
12472 else
12473   X86_64_TRUE='#'
12474   X86_64_FALSE=
12475 fi
12476
12477  if test x$TARGET = xSH; then
12478   SH_TRUE=
12479   SH_FALSE='#'
12480 else
12481   SH_TRUE='#'
12482   SH_FALSE=
12483 fi
12484
12485  if test x$TARGET = xSH64; then
12486   SH64_TRUE=
12487   SH64_FALSE='#'
12488 else
12489   SH64_TRUE='#'
12490   SH64_FALSE=
12491 fi
12492
12493  if test x$TARGET = xPA_LINUX; then
12494   PA_LINUX_TRUE=
12495   PA_LINUX_FALSE='#'
12496 else
12497   PA_LINUX_TRUE='#'
12498   PA_LINUX_FALSE=
12499 fi
12500
12501  if test x$TARGET = xPA_HPUX; then
12502   PA_HPUX_TRUE=
12503   PA_HPUX_FALSE='#'
12504 else
12505   PA_HPUX_TRUE='#'
12506   PA_HPUX_FALSE=
12507 fi
12508
12509  if test x$TARGET = xPA64_HPUX; then
12510   PA64_HPUX_TRUE=
12511   PA64_HPUX_FALSE='#'
12512 else
12513   PA64_HPUX_TRUE='#'
12514   PA64_HPUX_FALSE=
12515 fi
12516
12517
12518 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12519 $as_echo_n "checking for ANSI C header files... " >&6; }
12520 if test "${ac_cv_header_stdc+set}" = set; then
12521   $as_echo_n "(cached) " >&6
12522 else
12523   cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h.  */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h.  */
12529 #include <stdlib.h>
12530 #include <stdarg.h>
12531 #include <string.h>
12532 #include <float.h>
12533
12534 int
12535 main ()
12536 {
12537
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext
12543 if { (ac_try="$ac_compile"
12544 case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12549 $as_echo "$ac_try_echo") >&5
12550   (eval "$ac_compile") 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } && {
12557          test -z "$ac_c_werror_flag" ||
12558          test ! -s conftest.err
12559        } && test -s conftest.$ac_objext; then
12560   ac_cv_header_stdc=yes
12561 else
12562   $as_echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565         ac_cv_header_stdc=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569
12570 if test $ac_cv_header_stdc = yes; then
12571   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12572   cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h.  */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h.  */
12578 #include <string.h>
12579
12580 _ACEOF
12581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12582   $EGREP "memchr" >/dev/null 2>&1; then
12583   :
12584 else
12585   ac_cv_header_stdc=no
12586 fi
12587 rm -f conftest*
12588
12589 fi
12590
12591 if test $ac_cv_header_stdc = yes; then
12592   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12593   cat >conftest.$ac_ext <<_ACEOF
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 #include <stdlib.h>
12600
12601 _ACEOF
12602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603   $EGREP "free" >/dev/null 2>&1; then
12604   :
12605 else
12606   ac_cv_header_stdc=no
12607 fi
12608 rm -f conftest*
12609
12610 fi
12611
12612 if test $ac_cv_header_stdc = yes; then
12613   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12614   if test "$cross_compiling" = yes; then
12615   :
12616 else
12617   cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623 #include <ctype.h>
12624 #include <stdlib.h>
12625 #if ((' ' & 0x0FF) == 0x020)
12626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12628 #else
12629 # define ISLOWER(c) \
12630                    (('a' <= (c) && (c) <= 'i') \
12631                      || ('j' <= (c) && (c) <= 'r') \
12632                      || ('s' <= (c) && (c) <= 'z'))
12633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12634 #endif
12635
12636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12637 int
12638 main ()
12639 {
12640   int i;
12641   for (i = 0; i < 256; i++)
12642     if (XOR (islower (i), ISLOWER (i))
12643         || toupper (i) != TOUPPER (i))
12644       return 2;
12645   return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12655 $as_echo "$ac_try_echo") >&5
12656   (eval "$ac_link") 2>&5
12657   ac_status=$?
12658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12660   { (case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666   (eval "$ac_try") 2>&5
12667   ac_status=$?
12668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; }; then
12670   :
12671 else
12672   $as_echo "$as_me: program exited with status $ac_status" >&5
12673 $as_echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 ( exit $ac_status )
12677 ac_cv_header_stdc=no
12678 fi
12679 rm -rf conftest.dSYM
12680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12681 fi
12682
12683
12684 fi
12685 fi
12686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12687 $as_echo "$ac_cv_header_stdc" >&6; }
12688 if test $ac_cv_header_stdc = yes; then
12689
12690 cat >>confdefs.h <<\_ACEOF
12691 #define STDC_HEADERS 1
12692 _ACEOF
12693
12694 fi
12695
12696
12697 for ac_func in memcpy
12698 do
12699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12700 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12701 $as_echo_n "checking for $ac_func... " >&6; }
12702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12703   $as_echo_n "(cached) " >&6
12704 else
12705   cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12713 #define $ac_func innocuous_$ac_func
12714
12715 /* System header to define __stub macros and hopefully few prototypes,
12716     which can conflict with char $ac_func (); below.
12717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718     <limits.h> exists even on freestanding compilers.  */
12719
12720 #ifdef __STDC__
12721 # include <limits.h>
12722 #else
12723 # include <assert.h>
12724 #endif
12725
12726 #undef $ac_func
12727
12728 /* Override any GCC internal prototype to avoid an error.
12729    Use char because int might match the return type of a GCC
12730    builtin and then its argument prototype would still apply.  */
12731 #ifdef __cplusplus
12732 extern "C"
12733 #endif
12734 char $ac_func ();
12735 /* The GNU C library defines this for functions which it implements
12736     to always fail with ENOSYS.  Some functions are actually named
12737     something starting with __ and the normal name is an alias.  */
12738 #if defined __stub_$ac_func || defined __stub___$ac_func
12739 choke me
12740 #endif
12741
12742 int
12743 main ()
12744 {
12745 return $ac_func ();
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (ac_try="$ac_link"
12752 case "(($ac_try" in
12753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754   *) ac_try_echo=$ac_try;;
12755 esac
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758   (eval "$ac_link") 2>conftest.er1
12759   ac_status=$?
12760   grep -v '^ *+' conftest.er1 >conftest.err
12761   rm -f conftest.er1
12762   cat conftest.err >&5
12763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } && {
12765          test -z "$ac_c_werror_flag" ||
12766          test ! -s conftest.err
12767        } && test -s conftest$ac_exeext && {
12768          test "$cross_compiling" = yes ||
12769          $as_test_x conftest$ac_exeext
12770        }; then
12771   eval "$as_ac_var=yes"
12772 else
12773   $as_echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776         eval "$as_ac_var=no"
12777 fi
12778
12779 rm -rf conftest.dSYM
12780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12781       conftest$ac_exeext conftest.$ac_ext
12782 fi
12783 ac_res=`eval 'as_val=${'$as_ac_var'}
12784                  $as_echo "$as_val"'`
12785                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12786 $as_echo "$ac_res" >&6; }
12787 as_val=`eval 'as_val=${'$as_ac_var'}
12788                  $as_echo "$as_val"'`
12789    if test "x$as_val" = x""yes; then
12790   cat >>confdefs.h <<_ACEOF
12791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12792 _ACEOF
12793
12794 fi
12795 done
12796
12797 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12798 # for constant arguments.  Useless!
12799 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12800 $as_echo_n "checking for working alloca.h... " >&6; }
12801 if test "${ac_cv_working_alloca_h+set}" = set; then
12802   $as_echo_n "(cached) " >&6
12803 else
12804   cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h.  */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h.  */
12810 #include <alloca.h>
12811 int
12812 main ()
12813 {
12814 char *p = (char *) alloca (2 * sizeof (int));
12815                           if (p) return 0;
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824   *) ac_try_echo=$ac_try;;
12825 esac
12826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828   (eval "$ac_link") 2>conftest.er1
12829   ac_status=$?
12830   grep -v '^ *+' conftest.er1 >conftest.err
12831   rm -f conftest.er1
12832   cat conftest.err >&5
12833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } && {
12835          test -z "$ac_c_werror_flag" ||
12836          test ! -s conftest.err
12837        } && test -s conftest$ac_exeext && {
12838          test "$cross_compiling" = yes ||
12839          $as_test_x conftest$ac_exeext
12840        }; then
12841   ac_cv_working_alloca_h=yes
12842 else
12843   $as_echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846         ac_cv_working_alloca_h=no
12847 fi
12848
12849 rm -rf conftest.dSYM
12850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12851       conftest$ac_exeext conftest.$ac_ext
12852 fi
12853 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12854 $as_echo "$ac_cv_working_alloca_h" >&6; }
12855 if test $ac_cv_working_alloca_h = yes; then
12856
12857 cat >>confdefs.h <<\_ACEOF
12858 #define HAVE_ALLOCA_H 1
12859 _ACEOF
12860
12861 fi
12862
12863 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12864 $as_echo_n "checking for alloca... " >&6; }
12865 if test "${ac_cv_func_alloca_works+set}" = set; then
12866   $as_echo_n "(cached) " >&6
12867 else
12868   cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874 #ifdef __GNUC__
12875 # define alloca __builtin_alloca
12876 #else
12877 # ifdef _MSC_VER
12878 #  include <malloc.h>
12879 #  define alloca _alloca
12880 # else
12881 #  ifdef HAVE_ALLOCA_H
12882 #   include <alloca.h>
12883 #  else
12884 #   ifdef _AIX
12885  #pragma alloca
12886 #   else
12887 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12888 char *alloca ();
12889 #    endif
12890 #   endif
12891 #  endif
12892 # endif
12893 #endif
12894
12895 int
12896 main ()
12897 {
12898 char *p = (char *) alloca (1);
12899                                     if (p) return 0;
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12911 $as_echo "$ac_try_echo") >&5
12912   (eval "$ac_link") 2>conftest.er1
12913   ac_status=$?
12914   grep -v '^ *+' conftest.er1 >conftest.err
12915   rm -f conftest.er1
12916   cat conftest.err >&5
12917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } && {
12919          test -z "$ac_c_werror_flag" ||
12920          test ! -s conftest.err
12921        } && test -s conftest$ac_exeext && {
12922          test "$cross_compiling" = yes ||
12923          $as_test_x conftest$ac_exeext
12924        }; then
12925   ac_cv_func_alloca_works=yes
12926 else
12927   $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930         ac_cv_func_alloca_works=no
12931 fi
12932
12933 rm -rf conftest.dSYM
12934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12935       conftest$ac_exeext conftest.$ac_ext
12936 fi
12937 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12938 $as_echo "$ac_cv_func_alloca_works" >&6; }
12939
12940 if test $ac_cv_func_alloca_works = yes; then
12941
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_ALLOCA 1
12944 _ACEOF
12945
12946 else
12947   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12948 # that cause trouble.  Some versions do not even contain alloca or
12949 # contain a buggy version.  If you still want to use their alloca,
12950 # use ar to extract alloca.o from them instead of compiling alloca.c.
12951
12952 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12953
12954 cat >>confdefs.h <<\_ACEOF
12955 #define C_ALLOCA 1
12956 _ACEOF
12957
12958
12959 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12960 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12961 if test "${ac_cv_os_cray+set}" = set; then
12962   $as_echo_n "(cached) " >&6
12963 else
12964   cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h.  */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h.  */
12970 #if defined CRAY && ! defined CRAY2
12971 webecray
12972 #else
12973 wenotbecray
12974 #endif
12975
12976 _ACEOF
12977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12978   $EGREP "webecray" >/dev/null 2>&1; then
12979   ac_cv_os_cray=yes
12980 else
12981   ac_cv_os_cray=no
12982 fi
12983 rm -f conftest*
12984
12985 fi
12986 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12987 $as_echo "$ac_cv_os_cray" >&6; }
12988 if test $ac_cv_os_cray = yes; then
12989   for ac_func in _getb67 GETB67 getb67; do
12990     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12991 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12992 $as_echo_n "checking for $ac_func... " >&6; }
12993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12994   $as_echo_n "(cached) " >&6
12995 else
12996   cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13004 #define $ac_func innocuous_$ac_func
13005
13006 /* System header to define __stub macros and hopefully few prototypes,
13007     which can conflict with char $ac_func (); below.
13008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13009     <limits.h> exists even on freestanding compilers.  */
13010
13011 #ifdef __STDC__
13012 # include <limits.h>
13013 #else
13014 # include <assert.h>
13015 #endif
13016
13017 #undef $ac_func
13018
13019 /* Override any GCC internal prototype to avoid an error.
13020    Use char because int might match the return type of a GCC
13021    builtin and then its argument prototype would still apply.  */
13022 #ifdef __cplusplus
13023 extern "C"
13024 #endif
13025 char $ac_func ();
13026 /* The GNU C library defines this for functions which it implements
13027     to always fail with ENOSYS.  Some functions are actually named
13028     something starting with __ and the normal name is an alias.  */
13029 #if defined __stub_$ac_func || defined __stub___$ac_func
13030 choke me
13031 #endif
13032
13033 int
13034 main ()
13035 {
13036 return $ac_func ();
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049   (eval "$ac_link") 2>conftest.er1
13050   ac_status=$?
13051   grep -v '^ *+' conftest.er1 >conftest.err
13052   rm -f conftest.er1
13053   cat conftest.err >&5
13054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); } && {
13056          test -z "$ac_c_werror_flag" ||
13057          test ! -s conftest.err
13058        } && test -s conftest$ac_exeext && {
13059          test "$cross_compiling" = yes ||
13060          $as_test_x conftest$ac_exeext
13061        }; then
13062   eval "$as_ac_var=yes"
13063 else
13064   $as_echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067         eval "$as_ac_var=no"
13068 fi
13069
13070 rm -rf conftest.dSYM
13071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13072       conftest$ac_exeext conftest.$ac_ext
13073 fi
13074 ac_res=`eval 'as_val=${'$as_ac_var'}
13075                  $as_echo "$as_val"'`
13076                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13077 $as_echo "$ac_res" >&6; }
13078 as_val=`eval 'as_val=${'$as_ac_var'}
13079                  $as_echo "$as_val"'`
13080    if test "x$as_val" = x""yes; then
13081
13082 cat >>confdefs.h <<_ACEOF
13083 #define CRAY_STACKSEG_END $ac_func
13084 _ACEOF
13085
13086     break
13087 fi
13088
13089   done
13090 fi
13091
13092 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13093 $as_echo_n "checking stack direction for C alloca... " >&6; }
13094 if test "${ac_cv_c_stack_direction+set}" = set; then
13095   $as_echo_n "(cached) " >&6
13096 else
13097   if test "$cross_compiling" = yes; then
13098   ac_cv_c_stack_direction=0
13099 else
13100   cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h.  */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h.  */
13106 $ac_includes_default
13107 int
13108 find_stack_direction ()
13109 {
13110   static char *addr = 0;
13111   auto char dummy;
13112   if (addr == 0)
13113     {
13114       addr = &dummy;
13115       return find_stack_direction ();
13116     }
13117   else
13118     return (&dummy > addr) ? 1 : -1;
13119 }
13120
13121 int
13122 main ()
13123 {
13124   return find_stack_direction () < 0;
13125 }
13126 _ACEOF
13127 rm -f conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13134 $as_echo "$ac_try_echo") >&5
13135   (eval "$ac_link") 2>&5
13136   ac_status=$?
13137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13139   { (case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145   (eval "$ac_try") 2>&5
13146   ac_status=$?
13147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; }; then
13149   ac_cv_c_stack_direction=1
13150 else
13151   $as_echo "$as_me: program exited with status $ac_status" >&5
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ( exit $ac_status )
13156 ac_cv_c_stack_direction=-1
13157 fi
13158 rm -rf conftest.dSYM
13159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13160 fi
13161
13162
13163 fi
13164 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13165 $as_echo "$ac_cv_c_stack_direction" >&6; }
13166
13167 cat >>confdefs.h <<_ACEOF
13168 #define STACK_DIRECTION $ac_cv_c_stack_direction
13169 _ACEOF
13170
13171
13172 fi
13173
13174
13175 # The cast to long int works around a bug in the HP C Compiler
13176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13178 # This bug is HP SR number 8606223364.
13179 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13180 $as_echo_n "checking size of double... " >&6; }
13181 if test "${ac_cv_sizeof_double+set}" = set; then
13182   $as_echo_n "(cached) " >&6
13183 else
13184   if test "$cross_compiling" = yes; then
13185   # Depending upon the size, compute the lo and hi bounds.
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h.  */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h.  */
13192 $ac_includes_default
13193 int
13194 main ()
13195 {
13196 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13197 test_array [0] = 0
13198
13199   ;
13200   return 0;
13201 }
13202 _ACEOF
13203 rm -f conftest.$ac_objext
13204 if { (ac_try="$ac_compile"
13205 case "(($ac_try" in
13206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207   *) ac_try_echo=$ac_try;;
13208 esac
13209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13210 $as_echo "$ac_try_echo") >&5
13211   (eval "$ac_compile") 2>conftest.er1
13212   ac_status=$?
13213   grep -v '^ *+' conftest.er1 >conftest.err
13214   rm -f conftest.er1
13215   cat conftest.err >&5
13216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); } && {
13218          test -z "$ac_c_werror_flag" ||
13219          test ! -s conftest.err
13220        } && test -s conftest.$ac_objext; then
13221   ac_lo=0 ac_mid=0
13222   while :; do
13223     cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229 $ac_includes_default
13230 int
13231 main ()
13232 {
13233 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13234 test_array [0] = 0
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13247 $as_echo "$ac_try_echo") >&5
13248   (eval "$ac_compile") 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } && {
13255          test -z "$ac_c_werror_flag" ||
13256          test ! -s conftest.err
13257        } && test -s conftest.$ac_objext; then
13258   ac_hi=$ac_mid; break
13259 else
13260   $as_echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13262
13263         ac_lo=`expr $ac_mid + 1`
13264                         if test $ac_lo -le $ac_mid; then
13265                           ac_lo= ac_hi=
13266                           break
13267                         fi
13268                         ac_mid=`expr 2 '*' $ac_mid + 1`
13269 fi
13270
13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13272   done
13273 else
13274   $as_echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277         cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h.  */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h.  */
13283 $ac_includes_default
13284 int
13285 main ()
13286 {
13287 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13288 test_array [0] = 0
13289
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 rm -f conftest.$ac_objext
13295 if { (ac_try="$ac_compile"
13296 case "(($ac_try" in
13297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298   *) ac_try_echo=$ac_try;;
13299 esac
13300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13301 $as_echo "$ac_try_echo") >&5
13302   (eval "$ac_compile") 2>conftest.er1
13303   ac_status=$?
13304   grep -v '^ *+' conftest.er1 >conftest.err
13305   rm -f conftest.er1
13306   cat conftest.err >&5
13307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); } && {
13309          test -z "$ac_c_werror_flag" ||
13310          test ! -s conftest.err
13311        } && test -s conftest.$ac_objext; then
13312   ac_hi=-1 ac_mid=-1
13313   while :; do
13314     cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h.  */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h.  */
13320 $ac_includes_default
13321 int
13322 main ()
13323 {
13324 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13325 test_array [0] = 0
13326
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13338 $as_echo "$ac_try_echo") >&5
13339   (eval "$ac_compile") 2>conftest.er1
13340   ac_status=$?
13341   grep -v '^ *+' conftest.er1 >conftest.err
13342   rm -f conftest.er1
13343   cat conftest.err >&5
13344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); } && {
13346          test -z "$ac_c_werror_flag" ||
13347          test ! -s conftest.err
13348        } && test -s conftest.$ac_objext; then
13349   ac_lo=$ac_mid; break
13350 else
13351   $as_echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354         ac_hi=`expr '(' $ac_mid ')' - 1`
13355                         if test $ac_mid -le $ac_hi; then
13356                           ac_lo= ac_hi=
13357                           break
13358                         fi
13359                         ac_mid=`expr 2 '*' $ac_mid`
13360 fi
13361
13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363   done
13364 else
13365   $as_echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368         ac_lo= ac_hi=
13369 fi
13370
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13372 fi
13373
13374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 # Binary search between lo and hi bounds.
13376 while test "x$ac_lo" != "x$ac_hi"; do
13377   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13378   cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h.  */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h.  */
13384 $ac_includes_default
13385 int
13386 main ()
13387 {
13388 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13389 test_array [0] = 0
13390
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13402 $as_echo "$ac_try_echo") >&5
13403   (eval "$ac_compile") 2>conftest.er1
13404   ac_status=$?
13405   grep -v '^ *+' conftest.er1 >conftest.err
13406   rm -f conftest.er1
13407   cat conftest.err >&5
13408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); } && {
13410          test -z "$ac_c_werror_flag" ||
13411          test ! -s conftest.err
13412        } && test -s conftest.$ac_objext; then
13413   ac_hi=$ac_mid
13414 else
13415   $as_echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418         ac_lo=`expr '(' $ac_mid ')' + 1`
13419 fi
13420
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422 done
13423 case $ac_lo in
13424 ?*) ac_cv_sizeof_double=$ac_lo;;
13425 '') if test "$ac_cv_type_double" = yes; then
13426      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13428 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13429 See \`config.log' for more details." >&5
13430 $as_echo "$as_me: error: cannot compute sizeof (double)
13431 See \`config.log' for more details." >&2;}
13432    { (exit 77); exit 77; }; }; }
13433    else
13434      ac_cv_sizeof_double=0
13435    fi ;;
13436 esac
13437 else
13438   cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 $ac_includes_default
13445 static long int longval () { return (long int) (sizeof (double)); }
13446 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13447 #include <stdio.h>
13448 #include <stdlib.h>
13449 int
13450 main ()
13451 {
13452
13453   FILE *f = fopen ("conftest.val", "w");
13454   if (! f)
13455     return 1;
13456   if (((long int) (sizeof (double))) < 0)
13457     {
13458       long int i = longval ();
13459       if (i != ((long int) (sizeof (double))))
13460         return 1;
13461       fprintf (f, "%ld", i);
13462     }
13463   else
13464     {
13465       unsigned long int i = ulongval ();
13466       if (i != ((long int) (sizeof (double))))
13467         return 1;
13468       fprintf (f, "%lu", i);
13469     }
13470   /* Do not output a trailing newline, as this causes \r\n confusion
13471      on some platforms.  */
13472   return ferror (f) || fclose (f) != 0;
13473
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482   *) ac_try_echo=$ac_try;;
13483 esac
13484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13485 $as_echo "$ac_try_echo") >&5
13486   (eval "$ac_link") 2>&5
13487   ac_status=$?
13488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13490   { (case "(($ac_try" in
13491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492   *) ac_try_echo=$ac_try;;
13493 esac
13494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13495 $as_echo "$ac_try_echo") >&5
13496   (eval "$ac_try") 2>&5
13497   ac_status=$?
13498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; }; then
13500   ac_cv_sizeof_double=`cat conftest.val`
13501 else
13502   $as_echo "$as_me: program exited with status $ac_status" >&5
13503 $as_echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13505
13506 ( exit $ac_status )
13507 if test "$ac_cv_type_double" = yes; then
13508      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13510 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13511 See \`config.log' for more details." >&5
13512 $as_echo "$as_me: error: cannot compute sizeof (double)
13513 See \`config.log' for more details." >&2;}
13514    { (exit 77); exit 77; }; }; }
13515    else
13516      ac_cv_sizeof_double=0
13517    fi
13518 fi
13519 rm -rf conftest.dSYM
13520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 rm -f conftest.val
13523 fi
13524 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13525 $as_echo "$ac_cv_sizeof_double" >&6; }
13526
13527
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13531 _ACEOF
13532
13533
13534 # The cast to long int works around a bug in the HP C Compiler
13535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13537 # This bug is HP SR number 8606223364.
13538 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13539 $as_echo_n "checking size of long double... " >&6; }
13540 if test "${ac_cv_sizeof_long_double+set}" = set; then
13541   $as_echo_n "(cached) " >&6
13542 else
13543   if test "$cross_compiling" = yes; then
13544   # Depending upon the size, compute the lo and hi bounds.
13545 cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h.  */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h.  */
13551 $ac_includes_default
13552 int
13553 main ()
13554 {
13555 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13556 test_array [0] = 0
13557
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext
13563 if { (ac_try="$ac_compile"
13564 case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570   (eval "$ac_compile") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } && {
13577          test -z "$ac_c_werror_flag" ||
13578          test ! -s conftest.err
13579        } && test -s conftest.$ac_objext; then
13580   ac_lo=0 ac_mid=0
13581   while :; do
13582     cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588 $ac_includes_default
13589 int
13590 main ()
13591 {
13592 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13593 test_array [0] = 0
13594
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603   *) ac_try_echo=$ac_try;;
13604 esac
13605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13606 $as_echo "$ac_try_echo") >&5
13607   (eval "$ac_compile") 2>conftest.er1
13608   ac_status=$?
13609   grep -v '^ *+' conftest.er1 >conftest.err
13610   rm -f conftest.er1
13611   cat conftest.err >&5
13612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } && {
13614          test -z "$ac_c_werror_flag" ||
13615          test ! -s conftest.err
13616        } && test -s conftest.$ac_objext; then
13617   ac_hi=$ac_mid; break
13618 else
13619   $as_echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622         ac_lo=`expr $ac_mid + 1`
13623                         if test $ac_lo -le $ac_mid; then
13624                           ac_lo= ac_hi=
13625                           break
13626                         fi
13627                         ac_mid=`expr 2 '*' $ac_mid + 1`
13628 fi
13629
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631   done
13632 else
13633   $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636         cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h.  */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h.  */
13642 $ac_includes_default
13643 int
13644 main ()
13645 {
13646 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13647 test_array [0] = 0
13648
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (ac_try="$ac_compile"
13655 case "(($ac_try" in
13656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657   *) ac_try_echo=$ac_try;;
13658 esac
13659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13660 $as_echo "$ac_try_echo") >&5
13661   (eval "$ac_compile") 2>conftest.er1
13662   ac_status=$?
13663   grep -v '^ *+' conftest.er1 >conftest.err
13664   rm -f conftest.er1
13665   cat conftest.err >&5
13666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } && {
13668          test -z "$ac_c_werror_flag" ||
13669          test ! -s conftest.err
13670        } && test -s conftest.$ac_objext; then
13671   ac_hi=-1 ac_mid=-1
13672   while :; do
13673     cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679 $ac_includes_default
13680 int
13681 main ()
13682 {
13683 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13684 test_array [0] = 0
13685
13686   ;
13687   return 0;
13688 }
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694   *) ac_try_echo=$ac_try;;
13695 esac
13696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13697 $as_echo "$ac_try_echo") >&5
13698   (eval "$ac_compile") 2>conftest.er1
13699   ac_status=$?
13700   grep -v '^ *+' conftest.er1 >conftest.err
13701   rm -f conftest.er1
13702   cat conftest.err >&5
13703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } && {
13705          test -z "$ac_c_werror_flag" ||
13706          test ! -s conftest.err
13707        } && test -s conftest.$ac_objext; then
13708   ac_lo=$ac_mid; break
13709 else
13710   $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713         ac_hi=`expr '(' $ac_mid ')' - 1`
13714                         if test $ac_mid -le $ac_hi; then
13715                           ac_lo= ac_hi=
13716                           break
13717                         fi
13718                         ac_mid=`expr 2 '*' $ac_mid`
13719 fi
13720
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722   done
13723 else
13724   $as_echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13726
13727         ac_lo= ac_hi=
13728 fi
13729
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 fi
13732
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 # Binary search between lo and hi bounds.
13735 while test "x$ac_lo" != "x$ac_hi"; do
13736   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13737   cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h.  */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h.  */
13743 $ac_includes_default
13744 int
13745 main ()
13746 {
13747 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13748 test_array [0] = 0
13749
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13761 $as_echo "$ac_try_echo") >&5
13762   (eval "$ac_compile") 2>conftest.er1
13763   ac_status=$?
13764   grep -v '^ *+' conftest.er1 >conftest.err
13765   rm -f conftest.er1
13766   cat conftest.err >&5
13767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); } && {
13769          test -z "$ac_c_werror_flag" ||
13770          test ! -s conftest.err
13771        } && test -s conftest.$ac_objext; then
13772   ac_hi=$ac_mid
13773 else
13774   $as_echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777         ac_lo=`expr '(' $ac_mid ')' + 1`
13778 fi
13779
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 done
13782 case $ac_lo in
13783 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13784 '') if test "$ac_cv_type_long_double" = yes; then
13785      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13787 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13788 See \`config.log' for more details." >&5
13789 $as_echo "$as_me: error: cannot compute sizeof (long double)
13790 See \`config.log' for more details." >&2;}
13791    { (exit 77); exit 77; }; }; }
13792    else
13793      ac_cv_sizeof_long_double=0
13794    fi ;;
13795 esac
13796 else
13797   cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 $ac_includes_default
13804 static long int longval () { return (long int) (sizeof (long double)); }
13805 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13806 #include <stdio.h>
13807 #include <stdlib.h>
13808 int
13809 main ()
13810 {
13811
13812   FILE *f = fopen ("conftest.val", "w");
13813   if (! f)
13814     return 1;
13815   if (((long int) (sizeof (long double))) < 0)
13816     {
13817       long int i = longval ();
13818       if (i != ((long int) (sizeof (long double))))
13819         return 1;
13820       fprintf (f, "%ld", i);
13821     }
13822   else
13823     {
13824       unsigned long int i = ulongval ();
13825       if (i != ((long int) (sizeof (long double))))
13826         return 1;
13827       fprintf (f, "%lu", i);
13828     }
13829   /* Do not output a trailing newline, as this causes \r\n confusion
13830      on some platforms.  */
13831   return ferror (f) || fclose (f) != 0;
13832
13833   ;
13834   return 0;
13835 }
13836 _ACEOF
13837 rm -f conftest$ac_exeext
13838 if { (ac_try="$ac_link"
13839 case "(($ac_try" in
13840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841   *) ac_try_echo=$ac_try;;
13842 esac
13843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13844 $as_echo "$ac_try_echo") >&5
13845   (eval "$ac_link") 2>&5
13846   ac_status=$?
13847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13849   { (case "(($ac_try" in
13850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851   *) ac_try_echo=$ac_try;;
13852 esac
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855   (eval "$ac_try") 2>&5
13856   ac_status=$?
13857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859   ac_cv_sizeof_long_double=`cat conftest.val`
13860 else
13861   $as_echo "$as_me: program exited with status $ac_status" >&5
13862 $as_echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13864
13865 ( exit $ac_status )
13866 if test "$ac_cv_type_long_double" = yes; then
13867      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13869 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13870 See \`config.log' for more details." >&5
13871 $as_echo "$as_me: error: cannot compute sizeof (long double)
13872 See \`config.log' for more details." >&2;}
13873    { (exit 77); exit 77; }; }; }
13874    else
13875      ac_cv_sizeof_long_double=0
13876    fi
13877 fi
13878 rm -rf conftest.dSYM
13879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 rm -f conftest.val
13882 fi
13883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13884 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13885
13886
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13890 _ACEOF
13891
13892
13893
13894 # Also AC_SUBST this variable for ffi.h.
13895 if test -z "$HAVE_LONG_DOUBLE"; then
13896   HAVE_LONG_DOUBLE=0
13897   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13898     if test $ac_cv_sizeof_long_double != 0; then
13899       HAVE_LONG_DOUBLE=1
13900
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_LONG_DOUBLE 1
13903 _ACEOF
13904
13905     fi
13906   fi
13907 fi
13908
13909
13910
13911  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13912 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13913 if test "${ac_cv_c_bigendian+set}" = set; then
13914   $as_echo_n "(cached) " >&6
13915 else
13916   ac_cv_c_bigendian=unknown
13917     # See if we're dealing with a universal compiler.
13918     cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924 #ifndef __APPLE_CC__
13925                not a universal capable compiler
13926              #endif
13927              typedef int dummy;
13928
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938   (eval "$ac_compile") 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } && {
13945          test -z "$ac_c_werror_flag" ||
13946          test ! -s conftest.err
13947        } && test -s conftest.$ac_objext; then
13948
13949         # Check for potential -arch flags.  It is not universal unless
13950         # there are some -arch flags.  Note that *ppc* also matches
13951         # ppc64.  This check is also rather less than ideal.
13952         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13953           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13954         esac
13955 else
13956   $as_echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959
13960 fi
13961
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963     if test $ac_cv_c_bigendian = unknown; then
13964       # See if sys/param.h defines the BYTE_ORDER macro.
13965       cat >conftest.$ac_ext <<_ACEOF
13966 /* confdefs.h.  */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h.  */
13971 #include <sys/types.h>
13972              #include <sys/param.h>
13973
13974 int
13975 main ()
13976 {
13977 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13978                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13979                      && LITTLE_ENDIAN)
13980               bogus endian macros
13981              #endif
13982
13983   ;
13984   return 0;
13985 }
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991   *) ac_try_echo=$ac_try;;
13992 esac
13993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13994 $as_echo "$ac_try_echo") >&5
13995   (eval "$ac_compile") 2>conftest.er1
13996   ac_status=$?
13997   grep -v '^ *+' conftest.er1 >conftest.err
13998   rm -f conftest.er1
13999   cat conftest.err >&5
14000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } && {
14002          test -z "$ac_c_werror_flag" ||
14003          test ! -s conftest.err
14004        } && test -s conftest.$ac_objext; then
14005   # It does; now see whether it defined to BIG_ENDIAN or not.
14006          cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012 #include <sys/types.h>
14013                 #include <sys/param.h>
14014
14015 int
14016 main ()
14017 {
14018 #if BYTE_ORDER != BIG_ENDIAN
14019                  not big endian
14020                 #endif
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034   (eval "$ac_compile") 2>conftest.er1
14035   ac_status=$?
14036   grep -v '^ *+' conftest.er1 >conftest.err
14037   rm -f conftest.er1
14038   cat conftest.err >&5
14039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } && {
14041          test -z "$ac_c_werror_flag" ||
14042          test ! -s conftest.err
14043        } && test -s conftest.$ac_objext; then
14044   ac_cv_c_bigendian=yes
14045 else
14046   $as_echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049         ac_cv_c_bigendian=no
14050 fi
14051
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 else
14054   $as_echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057
14058 fi
14059
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061     fi
14062     if test $ac_cv_c_bigendian = unknown; then
14063       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14064       cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070 #include <limits.h>
14071
14072 int
14073 main ()
14074 {
14075 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14076               bogus endian macros
14077              #endif
14078
14079   ;
14080   return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (ac_try="$ac_compile"
14085 case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14090 $as_echo "$ac_try_echo") >&5
14091   (eval "$ac_compile") 2>conftest.er1
14092   ac_status=$?
14093   grep -v '^ *+' conftest.er1 >conftest.err
14094   rm -f conftest.er1
14095   cat conftest.err >&5
14096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } && {
14098          test -z "$ac_c_werror_flag" ||
14099          test ! -s conftest.err
14100        } && test -s conftest.$ac_objext; then
14101   # It does; now see whether it defined to _BIG_ENDIAN or not.
14102          cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108 #include <limits.h>
14109
14110 int
14111 main ()
14112 {
14113 #ifndef _BIG_ENDIAN
14114                  not big endian
14115                 #endif
14116
14117   ;
14118   return 0;
14119 }
14120 _ACEOF
14121 rm -f conftest.$ac_objext
14122 if { (ac_try="$ac_compile"
14123 case "(($ac_try" in
14124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125   *) ac_try_echo=$ac_try;;
14126 esac
14127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14128 $as_echo "$ac_try_echo") >&5
14129   (eval "$ac_compile") 2>conftest.er1
14130   ac_status=$?
14131   grep -v '^ *+' conftest.er1 >conftest.err
14132   rm -f conftest.er1
14133   cat conftest.err >&5
14134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } && {
14136          test -z "$ac_c_werror_flag" ||
14137          test ! -s conftest.err
14138        } && test -s conftest.$ac_objext; then
14139   ac_cv_c_bigendian=yes
14140 else
14141   $as_echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14143
14144         ac_cv_c_bigendian=no
14145 fi
14146
14147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14148 else
14149   $as_echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14151
14152
14153 fi
14154
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156     fi
14157     if test $ac_cv_c_bigendian = unknown; then
14158       # Compile a test program.
14159       if test "$cross_compiling" = yes; then
14160   # Try to guess by grepping values from an object file.
14161          cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h.  */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h.  */
14167 short int ascii_mm[] =
14168                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14169                 short int ascii_ii[] =
14170                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14171                 int use_ascii (int i) {
14172                   return ascii_mm[i] + ascii_ii[i];
14173                 }
14174                 short int ebcdic_ii[] =
14175                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14176                 short int ebcdic_mm[] =
14177                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14178                 int use_ebcdic (int i) {
14179                   return ebcdic_mm[i] + ebcdic_ii[i];
14180                 }
14181                 extern int foo;
14182
14183 int
14184 main ()
14185 {
14186 return use_ascii (foo) == use_ebcdic (foo);
14187   ;
14188   return 0;
14189 }
14190 _ACEOF
14191 rm -f conftest.$ac_objext
14192 if { (ac_try="$ac_compile"
14193 case "(($ac_try" in
14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195   *) ac_try_echo=$ac_try;;
14196 esac
14197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14198 $as_echo "$ac_try_echo") >&5
14199   (eval "$ac_compile") 2>conftest.er1
14200   ac_status=$?
14201   grep -v '^ *+' conftest.er1 >conftest.err
14202   rm -f conftest.er1
14203   cat conftest.err >&5
14204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } && {
14206          test -z "$ac_c_werror_flag" ||
14207          test ! -s conftest.err
14208        } && test -s conftest.$ac_objext; then
14209   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14210               ac_cv_c_bigendian=yes
14211             fi
14212             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14213               if test "$ac_cv_c_bigendian" = unknown; then
14214                 ac_cv_c_bigendian=no
14215               else
14216                 # finding both strings is unlikely to happen, but who knows?
14217                 ac_cv_c_bigendian=unknown
14218               fi
14219             fi
14220 else
14221   $as_echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224
14225 fi
14226
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 else
14229   cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 $ac_includes_default
14236 int
14237 main ()
14238 {
14239
14240              /* Are we little or big endian?  From Harbison&Steele.  */
14241              union
14242              {
14243                long int l;
14244                char c[sizeof (long int)];
14245              } u;
14246              u.l = 1;
14247              return u.c[sizeof (long int) - 1] == 1;
14248
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest$ac_exeext
14254 if { (ac_try="$ac_link"
14255 case "(($ac_try" in
14256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257   *) ac_try_echo=$ac_try;;
14258 esac
14259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14260 $as_echo "$ac_try_echo") >&5
14261   (eval "$ac_link") 2>&5
14262   ac_status=$?
14263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14265   { (case "(($ac_try" in
14266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267   *) ac_try_echo=$ac_try;;
14268 esac
14269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270 $as_echo "$ac_try_echo") >&5
14271   (eval "$ac_try") 2>&5
14272   ac_status=$?
14273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275   ac_cv_c_bigendian=no
14276 else
14277   $as_echo "$as_me: program exited with status $ac_status" >&5
14278 $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14280
14281 ( exit $ac_status )
14282 ac_cv_c_bigendian=yes
14283 fi
14284 rm -rf conftest.dSYM
14285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14286 fi
14287
14288
14289     fi
14290 fi
14291 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14292 $as_echo "$ac_cv_c_bigendian" >&6; }
14293  case $ac_cv_c_bigendian in #(
14294    yes)
14295      cat >>confdefs.h <<\_ACEOF
14296 #define WORDS_BIGENDIAN 1
14297 _ACEOF
14298 ;; #(
14299    no)
14300       ;; #(
14301    universal)
14302
14303 cat >>confdefs.h <<\_ACEOF
14304 #define AC_APPLE_UNIVERSAL_BUILD 1
14305 _ACEOF
14306
14307      ;; #(
14308    *)
14309      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14310  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14311 $as_echo "$as_me: error: unknown endianness
14312  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14313    { (exit 1); exit 1; }; } ;;
14314  esac
14315
14316
14317 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14318 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14319 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14320   $as_echo_n "(cached) " >&6
14321 else
14322
14323     libffi_cv_as_cfi_pseudo_op=unknown
14324     cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h.  */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h.  */
14330 asm (".cfi_startproc\n\t.cfi_endproc");
14331 int
14332 main ()
14333 {
14334
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (ac_try="$ac_compile"
14341 case "(($ac_try" in
14342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343   *) ac_try_echo=$ac_try;;
14344 esac
14345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14346 $as_echo "$ac_try_echo") >&5
14347   (eval "$ac_compile") 2>conftest.er1
14348   ac_status=$?
14349   grep -v '^ *+' conftest.er1 >conftest.err
14350   rm -f conftest.er1
14351   cat conftest.err >&5
14352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); } && {
14354          test -z "$ac_c_werror_flag" ||
14355          test ! -s conftest.err
14356        } && test -s conftest.$ac_objext; then
14357   libffi_cv_as_cfi_pseudo_op=yes
14358 else
14359   $as_echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362         libffi_cv_as_cfi_pseudo_op=no
14363 fi
14364
14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14366
14367 fi
14368 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14369 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14370 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14371
14372 cat >>confdefs.h <<\_ACEOF
14373 #define HAVE_AS_CFI_PSEUDO_OP 1
14374 _ACEOF
14375
14376 fi
14377
14378 if test x$TARGET = xSPARC; then
14379     { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14380 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14381 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14382   $as_echo_n "(cached) " >&6
14383 else
14384
14385         save_CFLAGS="$CFLAGS"
14386         save_LDFLAGS="$LDFLAGS"
14387         CFLAGS="$CFLAGS -fpic"
14388         LDFLAGS="$LDFLAGS -shared"
14389         cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14396 int
14397 main ()
14398 {
14399
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14411 $as_echo "$ac_try_echo") >&5
14412   (eval "$ac_link") 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } && {
14419          test -z "$ac_c_werror_flag" ||
14420          test ! -s conftest.err
14421        } && test -s conftest$ac_exeext && {
14422          test "$cross_compiling" = yes ||
14423          $as_test_x conftest$ac_exeext
14424        }; then
14425   libffi_cv_as_sparc_ua_pcrel=yes
14426 else
14427   $as_echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430         libffi_cv_as_sparc_ua_pcrel=no
14431 fi
14432
14433 rm -rf conftest.dSYM
14434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14435       conftest$ac_exeext conftest.$ac_ext
14436         CFLAGS="$save_CFLAGS"
14437         LDFLAGS="$save_LDFLAGS"
14438 fi
14439 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14440 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14441     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14442
14443 cat >>confdefs.h <<\_ACEOF
14444 #define HAVE_AS_SPARC_UA_PCREL 1
14445 _ACEOF
14446
14447     fi
14448
14449     { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14450 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14451 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14452   $as_echo_n "(cached) " >&6
14453 else
14454
14455        libffi_cv_as_register_pseudo_op=unknown
14456        # Check if we have .register
14457        cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 asm (".register %g2, #scratch");
14464 int
14465 main ()
14466 {
14467
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext
14473 if { (ac_try="$ac_compile"
14474 case "(($ac_try" in
14475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476   *) ac_try_echo=$ac_try;;
14477 esac
14478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14479 $as_echo "$ac_try_echo") >&5
14480   (eval "$ac_compile") 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } && {
14487          test -z "$ac_c_werror_flag" ||
14488          test ! -s conftest.err
14489        } && test -s conftest.$ac_objext; then
14490   libffi_cv_as_register_pseudo_op=yes
14491 else
14492   $as_echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495         libffi_cv_as_register_pseudo_op=no
14496 fi
14497
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499
14500 fi
14501 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14502 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14503     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14504
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14507 _ACEOF
14508
14509     fi
14510 fi
14511
14512 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14513     { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14514 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14515 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14516   $as_echo_n "(cached) " >&6
14517 else
14518
14519         libffi_cv_as_x86_pcrel=no
14520         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14521         if $CC $CFLAGS -c conftest.s > /dev/null; then
14522            libffi_cv_as_x86_pcrel=yes
14523         fi
14524
14525 fi
14526 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14527 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14528     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14529
14530 cat >>confdefs.h <<\_ACEOF
14531 #define HAVE_AS_X86_PCREL 1
14532 _ACEOF
14533
14534     fi
14535
14536     { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
14537 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14538 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
14539   $as_echo_n "(cached) " >&6
14540 else
14541
14542        libffi_cv_as_ascii_pseudo_op=unknown
14543        # Check if we have .ascii
14544        cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h.  */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h.  */
14550 asm (".ascii \\"string\\"");
14551 int
14552 main ()
14553 {
14554
14555   ;
14556   return 0;
14557 }
14558 _ACEOF
14559 rm -f conftest.$ac_objext
14560 if { (ac_try="$ac_compile"
14561 case "(($ac_try" in
14562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563   *) ac_try_echo=$ac_try;;
14564 esac
14565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14566 $as_echo "$ac_try_echo") >&5
14567   (eval "$ac_compile") 2>conftest.er1
14568   ac_status=$?
14569   grep -v '^ *+' conftest.er1 >conftest.err
14570   rm -f conftest.er1
14571   cat conftest.err >&5
14572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); } && {
14574          test -z "$ac_c_werror_flag" ||
14575          test ! -s conftest.err
14576        } && test -s conftest.$ac_objext; then
14577   libffi_cv_as_ascii_pseudo_op=yes
14578 else
14579   $as_echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14581
14582         libffi_cv_as_ascii_pseudo_op=no
14583 fi
14584
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586
14587 fi
14588 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
14589 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14590     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14591
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_AS_ASCII_PSEUDO_OP 1
14594 _ACEOF
14595
14596     fi
14597
14598     { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
14599 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14600 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
14601   $as_echo_n "(cached) " >&6
14602 else
14603
14604        libffi_cv_as_string_pseudo_op=unknown
14605        # Check if we have .string
14606        cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612 asm (".string \\"string\\"");
14613 int
14614 main ()
14615 {
14616
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625   *) ac_try_echo=$ac_try;;
14626 esac
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629   (eval "$ac_compile") 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } && {
14636          test -z "$ac_c_werror_flag" ||
14637          test ! -s conftest.err
14638        } && test -s conftest.$ac_objext; then
14639   libffi_cv_as_string_pseudo_op=yes
14640 else
14641   $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14643
14644         libffi_cv_as_string_pseudo_op=no
14645 fi
14646
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648
14649 fi
14650 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
14651 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14652     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14653
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_AS_STRING_PSEUDO_OP 1
14656 _ACEOF
14657
14658     fi
14659 fi
14660
14661 if test x$TARGET = xX86_WIN64; then
14662     { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
14663 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14664 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
14665   $as_echo_n "(cached) " >&6
14666 else
14667   lt_cv_sys_symbol_underscore=no
14668   cat > conftest.$ac_ext <<_LT_EOF
14669 void nm_test_func(){}
14670 int main(){nm_test_func;return 0;}
14671 _LT_EOF
14672   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673   (eval $ac_compile) 2>&5
14674   ac_status=$?
14675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; then
14677     # Now try to grab the symbols.
14678     ac_nlist=conftest.nm
14679     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
14680   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14681   ac_status=$?
14682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); } && test -s "$ac_nlist"; then
14684       # See whether the symbols have a leading underscore.
14685       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14686         lt_cv_sys_symbol_underscore=yes
14687       else
14688         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14689           :
14690         else
14691           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14692         fi
14693       fi
14694     else
14695       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14696     fi
14697   else
14698     echo "configure: failed program was:" >&5
14699     cat conftest.c >&5
14700   fi
14701   rm -rf conftest*
14702
14703 fi
14704 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
14705 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14706   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14707
14708
14709     if test "x$sys_symbol_underscore" = xyes; then
14710
14711 cat >>confdefs.h <<\_ACEOF
14712 #define SYMBOL_UNDERSCORE 1
14713 _ACEOF
14714
14715     fi
14716 fi
14717
14718
14719 FFI_EXEC_TRAMPOLINE_TABLE=0
14720 case "$target" in
14721      *arm*-apple-darwin*)
14722        FFI_EXEC_TRAMPOLINE_TABLE=1
14723
14724 cat >>confdefs.h <<\_ACEOF
14725 #define FFI_EXEC_TRAMPOLINE_TABLE 1
14726 _ACEOF
14727
14728      ;;
14729      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14730
14731 cat >>confdefs.h <<\_ACEOF
14732 #define FFI_MMAP_EXEC_WRIT 1
14733 _ACEOF
14734
14735      ;;
14736 esac
14737  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14738   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14739   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14740 else
14741   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14742   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14743 fi
14744
14745
14746
14747 if test x$TARGET = xX86_64; then
14748     { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
14749 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14750 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
14751   $as_echo_n "(cached) " >&6
14752 else
14753
14754         libffi_cv_as_x86_64_unwind_section_type=yes
14755         echo '.section .eh_frame,"a",@unwind' > conftest.s
14756         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14757             libffi_cv_as_x86_64_unwind_section_type=no
14758         fi
14759
14760 fi
14761 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14762 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14763     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14764
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
14767 _ACEOF
14768
14769     fi
14770 fi
14771
14772 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14773 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14774 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14775   $as_echo_n "(cached) " >&6
14776 else
14777
14778         libffi_cv_ro_eh_frame=no
14779         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14780         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14781             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14782                 libffi_cv_ro_eh_frame=yes
14783             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14784                  | grep -v '#write' > /dev/null; then
14785                 libffi_cv_ro_eh_frame=yes
14786             fi
14787         fi
14788         rm -f conftest.*
14789
14790 fi
14791 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14792 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14793 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14794
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_RO_EH_FRAME 1
14797 _ACEOF
14798
14799
14800 cat >>confdefs.h <<\_ACEOF
14801 #define EH_FRAME_FLAGS "a"
14802 _ACEOF
14803
14804 else
14805
14806 cat >>confdefs.h <<\_ACEOF
14807 #define EH_FRAME_FLAGS "aw"
14808 _ACEOF
14809
14810 fi
14811
14812 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14813 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14814 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14815   $as_echo_n "(cached) " >&6
14816 else
14817
14818         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14819         libffi_cv_hidden_visibility_attribute=no
14820         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; }; then
14826             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14827                 libffi_cv_hidden_visibility_attribute=yes
14828             fi
14829         fi
14830         rm -f conftest.*
14831
14832 fi
14833 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14834 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14835 if test $libffi_cv_hidden_visibility_attribute = yes; then
14836
14837 cat >>confdefs.h <<\_ACEOF
14838 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14839 _ACEOF
14840
14841 fi
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851 # Check whether --enable-debug was given.
14852 if test "${enable_debug+set}" = set; then
14853   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14854
14855 cat >>confdefs.h <<\_ACEOF
14856 #define FFI_DEBUG 1
14857 _ACEOF
14858
14859   fi
14860 fi
14861
14862  if test "$enable_debug" = "yes"; then
14863   FFI_DEBUG_TRUE=
14864   FFI_DEBUG_FALSE='#'
14865 else
14866   FFI_DEBUG_TRUE='#'
14867   FFI_DEBUG_FALSE=
14868 fi
14869
14870
14871 # Check whether --enable-structs was given.
14872 if test "${enable_structs+set}" = set; then
14873   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14874
14875 cat >>confdefs.h <<\_ACEOF
14876 #define FFI_NO_STRUCTS 1
14877 _ACEOF
14878
14879   fi
14880 fi
14881
14882
14883 # Check whether --enable-raw-api was given.
14884 if test "${enable_raw_api+set}" = set; then
14885   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14886
14887 cat >>confdefs.h <<\_ACEOF
14888 #define FFI_NO_RAW_API 1
14889 _ACEOF
14890
14891   fi
14892 fi
14893
14894
14895 # Check whether --enable-purify-safety was given.
14896 if test "${enable_purify_safety+set}" = set; then
14897   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14898
14899 cat >>confdefs.h <<\_ACEOF
14900 #define USING_PURIFY 1
14901 _ACEOF
14902
14903   fi
14904 fi
14905
14906
14907 if test -n "$with_cross_host" &&
14908    test x"$with_cross_host" != x"no"; then
14909   toolexecdir='$(exec_prefix)/$(target_alias)'
14910   toolexeclibdir='$(toolexecdir)/lib'
14911 else
14912   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14913   toolexeclibdir='$(libdir)'
14914 fi
14915 multi_os_directory=`$CC -print-multi-os-directory`
14916 case $multi_os_directory in
14917   .) ;; # Avoid trailing /.
14918   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14919 esac
14920
14921
14922
14923 if test "${multilib}" = "yes"; then
14924   multilib_arg="--enable-multilib"
14925 else
14926   multilib_arg=
14927 fi
14928
14929 ac_config_commands="$ac_config_commands include"
14930
14931 ac_config_commands="$ac_config_commands src"
14932
14933
14934 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14935
14936
14937 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14938
14939
14940 cat >confcache <<\_ACEOF
14941 # This file is a shell script that caches the results of configure
14942 # tests run on this system so they can be shared between configure
14943 # scripts and configure runs, see configure's option --config-cache.
14944 # It is not useful on other systems.  If it contains results you don't
14945 # want to keep, you may remove or edit it.
14946 #
14947 # config.status only pays attention to the cache file if you give it
14948 # the --recheck option to rerun configure.
14949 #
14950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14952 # following values.
14953
14954 _ACEOF
14955
14956 # The following way of writing the cache mishandles newlines in values,
14957 # but we know of no workaround that is simple, portable, and efficient.
14958 # So, we kill variables containing newlines.
14959 # Ultrix sh set writes to stderr and can't be redirected directly,
14960 # and sets the high bit in the cache file unless we assign to the vars.
14961 (
14962   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14963     eval ac_val=\$$ac_var
14964     case $ac_val in #(
14965     *${as_nl}*)
14966       case $ac_var in #(
14967       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14969       esac
14970       case $ac_var in #(
14971       _ | IFS | as_nl) ;; #(
14972       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14973       *) $as_unset $ac_var ;;
14974       esac ;;
14975     esac
14976   done
14977
14978   (set) 2>&1 |
14979     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14980     *${as_nl}ac_space=\ *)
14981       # `set' does not quote correctly, so add quotes (double-quote
14982       # substitution turns \\\\ into \\, and sed turns \\ into \).
14983       sed -n \
14984         "s/'/'\\\\''/g;
14985           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14986       ;; #(
14987     *)
14988       # `set' quotes correctly as required by POSIX, so do not add quotes.
14989       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14990       ;;
14991     esac |
14992     sort
14993 ) |
14994   sed '
14995      /^ac_cv_env_/b end
14996      t clear
14997      :clear
14998      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14999      t end
15000      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15001      :end' >>confcache
15002 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15003   if test -w "$cache_file"; then
15004     test "x$cache_file" != "x/dev/null" &&
15005       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15006 $as_echo "$as_me: updating cache $cache_file" >&6;}
15007     cat confcache >$cache_file
15008   else
15009     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15010 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15011   fi
15012 fi
15013 rm -f confcache
15014
15015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15016 # Let make expand exec_prefix.
15017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15018
15019 DEFS=-DHAVE_CONFIG_H
15020
15021 ac_libobjs=
15022 ac_ltlibobjs=
15023 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15024   # 1. Remove the extension, and $U if already installed.
15025   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15026   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15027   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15028   #    will be set to the directory where LIBOBJS objects are built.
15029   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15030   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15031 done
15032 LIBOBJS=$ac_libobjs
15033
15034 LTLIBOBJS=$ac_ltlibobjs
15035
15036
15037  if test -n "$EXEEXT"; then
15038   am__EXEEXT_TRUE=
15039   am__EXEEXT_FALSE='#'
15040 else
15041   am__EXEEXT_TRUE='#'
15042   am__EXEEXT_FALSE=
15043 fi
15044
15045 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15046   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15047 Usually this means the macro was only invoked conditionally." >&5
15048 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15049 Usually this means the macro was only invoked conditionally." >&2;}
15050    { (exit 1); exit 1; }; }
15051 fi
15052 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15053   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15054 Usually this means the macro was only invoked conditionally." >&5
15055 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15056 Usually this means the macro was only invoked conditionally." >&2;}
15057    { (exit 1); exit 1; }; }
15058 fi
15059 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15060   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
15061 Usually this means the macro was only invoked conditionally." >&5
15062 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
15063 Usually this means the macro was only invoked conditionally." >&2;}
15064    { (exit 1); exit 1; }; }
15065 fi
15066 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15067   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15068 Usually this means the macro was only invoked conditionally." >&5
15069 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15070 Usually this means the macro was only invoked conditionally." >&2;}
15071    { (exit 1); exit 1; }; }
15072 fi
15073 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15074   { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15075 Usually this means the macro was only invoked conditionally." >&5
15076 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15077 Usually this means the macro was only invoked conditionally." >&2;}
15078    { (exit 1); exit 1; }; }
15079 fi
15080 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15081   { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
15082 Usually this means the macro was only invoked conditionally." >&5
15083 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
15084 Usually this means the macro was only invoked conditionally." >&2;}
15085    { (exit 1); exit 1; }; }
15086 fi
15087 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15088   { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
15089 Usually this means the macro was only invoked conditionally." >&5
15090 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
15091 Usually this means the macro was only invoked conditionally." >&2;}
15092    { (exit 1); exit 1; }; }
15093 fi
15094 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15095   { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
15096 Usually this means the macro was only invoked conditionally." >&5
15097 $as_echo "$as_me: error: conditional \"X86\" was never defined.
15098 Usually this means the macro was only invoked conditionally." >&2;}
15099    { (exit 1); exit 1; }; }
15100 fi
15101 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15102   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15103 Usually this means the macro was only invoked conditionally." >&5
15104 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
15105 Usually this means the macro was only invoked conditionally." >&2;}
15106    { (exit 1); exit 1; }; }
15107 fi
15108 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15109   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15110 Usually this means the macro was only invoked conditionally." >&5
15111 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
15112 Usually this means the macro was only invoked conditionally." >&2;}
15113    { (exit 1); exit 1; }; }
15114 fi
15115 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15116   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15117 Usually this means the macro was only invoked conditionally." >&5
15118 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
15119 Usually this means the macro was only invoked conditionally." >&2;}
15120    { (exit 1); exit 1; }; }
15121 fi
15122 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15123   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15124 Usually this means the macro was only invoked conditionally." >&5
15125 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
15126 Usually this means the macro was only invoked conditionally." >&2;}
15127    { (exit 1); exit 1; }; }
15128 fi
15129 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15130   { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15131 Usually this means the macro was only invoked conditionally." >&5
15132 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
15133 Usually this means the macro was only invoked conditionally." >&2;}
15134    { (exit 1); exit 1; }; }
15135 fi
15136 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15137   { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15138 Usually this means the macro was only invoked conditionally." >&5
15139 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
15140 Usually this means the macro was only invoked conditionally." >&2;}
15141    { (exit 1); exit 1; }; }
15142 fi
15143 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15144   { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15145 Usually this means the macro was only invoked conditionally." >&5
15146 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
15147 Usually this means the macro was only invoked conditionally." >&2;}
15148    { (exit 1); exit 1; }; }
15149 fi
15150 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15151   { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15152 Usually this means the macro was only invoked conditionally." >&5
15153 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
15154 Usually this means the macro was only invoked conditionally." >&2;}
15155    { (exit 1); exit 1; }; }
15156 fi
15157 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15158   { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15159 Usually this means the macro was only invoked conditionally." >&5
15160 $as_echo "$as_me: error: conditional \"MOXIE\" was never defined.
15161 Usually this means the macro was only invoked conditionally." >&2;}
15162    { (exit 1); exit 1; }; }
15163 fi
15164 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15165   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15166 Usually this means the macro was only invoked conditionally." >&5
15167 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
15168 Usually this means the macro was only invoked conditionally." >&2;}
15169    { (exit 1); exit 1; }; }
15170 fi
15171 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15172   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15173 Usually this means the macro was only invoked conditionally." >&5
15174 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15175 Usually this means the macro was only invoked conditionally." >&2;}
15176    { (exit 1); exit 1; }; }
15177 fi
15178 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15179   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15180 Usually this means the macro was only invoked conditionally." >&5
15181 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15182 Usually this means the macro was only invoked conditionally." >&2;}
15183    { (exit 1); exit 1; }; }
15184 fi
15185 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15186   { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15187 Usually this means the macro was only invoked conditionally." >&5
15188 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15189 Usually this means the macro was only invoked conditionally." >&2;}
15190    { (exit 1); exit 1; }; }
15191 fi
15192 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15193   { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15194 Usually this means the macro was only invoked conditionally." >&5
15195 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
15196 Usually this means the macro was only invoked conditionally." >&2;}
15197    { (exit 1); exit 1; }; }
15198 fi
15199 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15200   { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15201 Usually this means the macro was only invoked conditionally." >&5
15202 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15203 Usually this means the macro was only invoked conditionally." >&2;}
15204    { (exit 1); exit 1; }; }
15205 fi
15206 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15207   { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15208 Usually this means the macro was only invoked conditionally." >&5
15209 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15210 Usually this means the macro was only invoked conditionally." >&2;}
15211    { (exit 1); exit 1; }; }
15212 fi
15213 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15214   { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15215 Usually this means the macro was only invoked conditionally." >&5
15216 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
15217 Usually this means the macro was only invoked conditionally." >&2;}
15218    { (exit 1); exit 1; }; }
15219 fi
15220 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15221   { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15222 Usually this means the macro was only invoked conditionally." >&5
15223 $as_echo "$as_me: error: conditional \"S390\" was never defined.
15224 Usually this means the macro was only invoked conditionally." >&2;}
15225    { (exit 1); exit 1; }; }
15226 fi
15227 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15228   { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15229 Usually this means the macro was only invoked conditionally." >&5
15230 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15231 Usually this means the macro was only invoked conditionally." >&2;}
15232    { (exit 1); exit 1; }; }
15233 fi
15234 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15235   { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15236 Usually this means the macro was only invoked conditionally." >&5
15237 $as_echo "$as_me: error: conditional \"SH\" was never defined.
15238 Usually this means the macro was only invoked conditionally." >&2;}
15239    { (exit 1); exit 1; }; }
15240 fi
15241 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15242   { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15243 Usually this means the macro was only invoked conditionally." >&5
15244 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
15245 Usually this means the macro was only invoked conditionally." >&2;}
15246    { (exit 1); exit 1; }; }
15247 fi
15248 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15249   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15250 Usually this means the macro was only invoked conditionally." >&5
15251 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15252 Usually this means the macro was only invoked conditionally." >&2;}
15253    { (exit 1); exit 1; }; }
15254 fi
15255 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15256   { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15257 Usually this means the macro was only invoked conditionally." >&5
15258 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15259 Usually this means the macro was only invoked conditionally." >&2;}
15260    { (exit 1); exit 1; }; }
15261 fi
15262 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15263   { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15264 Usually this means the macro was only invoked conditionally." >&5
15265 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15266 Usually this means the macro was only invoked conditionally." >&2;}
15267    { (exit 1); exit 1; }; }
15268 fi
15269
15270 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15271   { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15272 Usually this means the macro was only invoked conditionally." >&5
15273 $as_echo "$as_me: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15274 Usually this means the macro was only invoked conditionally." >&2;}
15275    { (exit 1); exit 1; }; }
15276 fi
15277 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15278   { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_DEBUG\" was never defined.
15279 Usually this means the macro was only invoked conditionally." >&5
15280 $as_echo "$as_me: error: conditional \"FFI_DEBUG\" was never defined.
15281 Usually this means the macro was only invoked conditionally." >&2;}
15282    { (exit 1); exit 1; }; }
15283 fi
15284
15285 : ${CONFIG_STATUS=./config.status}
15286 ac_write_fail=0
15287 ac_clean_files_save=$ac_clean_files
15288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15289 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15291 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15292 #! $SHELL
15293 # Generated by $as_me.
15294 # Run this file to recreate the current configuration.
15295 # Compiler output produced by configure, useful for debugging
15296 # configure, is in config.log if it exists.
15297
15298 debug=false
15299 ac_cs_recheck=false
15300 ac_cs_silent=false
15301 SHELL=\${CONFIG_SHELL-$SHELL}
15302 _ACEOF
15303
15304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15305 ## --------------------- ##
15306 ## M4sh Initialization.  ##
15307 ## --------------------- ##
15308
15309 # Be more Bourne compatible
15310 DUALCASE=1; export DUALCASE # for MKS sh
15311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15312   emulate sh
15313   NULLCMD=:
15314   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15315   # is contrary to our usage.  Disable this feature.
15316   alias -g '${1+"$@"}'='"$@"'
15317   setopt NO_GLOB_SUBST
15318 else
15319   case `(set -o) 2>/dev/null` in
15320   *posix*) set -o posix ;;
15321 esac
15322
15323 fi
15324
15325
15326
15327
15328 # PATH needs CR
15329 # Avoid depending upon Character Ranges.
15330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15333 as_cr_digits='0123456789'
15334 as_cr_alnum=$as_cr_Letters$as_cr_digits
15335
15336 as_nl='
15337 '
15338 export as_nl
15339 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15340 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15341 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15342 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15343 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15344   as_echo='printf %s\n'
15345   as_echo_n='printf %s'
15346 else
15347   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15348     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15349     as_echo_n='/usr/ucb/echo -n'
15350   else
15351     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15352     as_echo_n_body='eval
15353       arg=$1;
15354       case $arg in
15355       *"$as_nl"*)
15356         expr "X$arg" : "X\\(.*\\)$as_nl";
15357         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15358       esac;
15359       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15360     '
15361     export as_echo_n_body
15362     as_echo_n='sh -c $as_echo_n_body as_echo'
15363   fi
15364   export as_echo_body
15365   as_echo='sh -c $as_echo_body as_echo'
15366 fi
15367
15368 # The user is always right.
15369 if test "${PATH_SEPARATOR+set}" != set; then
15370   PATH_SEPARATOR=:
15371   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15372     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15373       PATH_SEPARATOR=';'
15374   }
15375 fi
15376
15377 # Support unset when possible.
15378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15379   as_unset=unset
15380 else
15381   as_unset=false
15382 fi
15383
15384
15385 # IFS
15386 # We need space, tab and new line, in precisely that order.  Quoting is
15387 # there to prevent editors from complaining about space-tab.
15388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15389 # splitting by setting IFS to empty value.)
15390 IFS=" ""        $as_nl"
15391
15392 # Find who we are.  Look in the path if we contain no directory separator.
15393 case $0 in
15394   *[\\/]* ) as_myself=$0 ;;
15395   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15397 do
15398   IFS=$as_save_IFS
15399   test -z "$as_dir" && as_dir=.
15400   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15401 done
15402 IFS=$as_save_IFS
15403
15404      ;;
15405 esac
15406 # We did not find ourselves, most probably we were run as `sh COMMAND'
15407 # in which case we are not to be found in the path.
15408 if test "x$as_myself" = x; then
15409   as_myself=$0
15410 fi
15411 if test ! -f "$as_myself"; then
15412   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15413   { (exit 1); exit 1; }
15414 fi
15415
15416 # Work around bugs in pre-3.0 UWIN ksh.
15417 for as_var in ENV MAIL MAILPATH
15418 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15419 done
15420 PS1='$ '
15421 PS2='> '
15422 PS4='+ '
15423
15424 # NLS nuisances.
15425 LC_ALL=C
15426 export LC_ALL
15427 LANGUAGE=C
15428 export LANGUAGE
15429
15430 # Required to use basename.
15431 if expr a : '\(a\)' >/dev/null 2>&1 &&
15432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15433   as_expr=expr
15434 else
15435   as_expr=false
15436 fi
15437
15438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15439   as_basename=basename
15440 else
15441   as_basename=false
15442 fi
15443
15444
15445 # Name of the executable.
15446 as_me=`$as_basename -- "$0" ||
15447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15448          X"$0" : 'X\(//\)$' \| \
15449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15450 $as_echo X/"$0" |
15451     sed '/^.*\/\([^/][^/]*\)\/*$/{
15452             s//\1/
15453             q
15454           }
15455           /^X\/\(\/\/\)$/{
15456             s//\1/
15457             q
15458           }
15459           /^X\/\(\/\).*/{
15460             s//\1/
15461             q
15462           }
15463           s/.*/./; q'`
15464
15465 # CDPATH.
15466 $as_unset CDPATH
15467
15468
15469
15470   as_lineno_1=$LINENO
15471   as_lineno_2=$LINENO
15472   test "x$as_lineno_1" != "x$as_lineno_2" &&
15473   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15474
15475   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15476   # uniformly replaced by the line number.  The first 'sed' inserts a
15477   # line-number line after each line using $LINENO; the second 'sed'
15478   # does the real work.  The second script uses 'N' to pair each
15479   # line-number line with the line containing $LINENO, and appends
15480   # trailing '-' during substitution so that $LINENO is not a special
15481   # case at line end.
15482   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15483   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15484   # E. McMahon (1931-1989) for sed's syntax.  :-)
15485   sed -n '
15486     p
15487     /[$]LINENO/=
15488   ' <$as_myself |
15489     sed '
15490       s/[$]LINENO.*/&-/
15491       t lineno
15492       b
15493       :lineno
15494       N
15495       :loop
15496       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15497       t loop
15498       s/-\n.*//
15499     ' >$as_me.lineno &&
15500   chmod +x "$as_me.lineno" ||
15501     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15502    { (exit 1); exit 1; }; }
15503
15504   # Don't try to exec as it changes $[0], causing all sort of problems
15505   # (the dirname of $[0] is not the place where we might find the
15506   # original and so on.  Autoconf is especially sensitive to this).
15507   . "./$as_me.lineno"
15508   # Exit status is that of the last command.
15509   exit
15510 }
15511
15512
15513 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15514   as_dirname=dirname
15515 else
15516   as_dirname=false
15517 fi
15518
15519 ECHO_C= ECHO_N= ECHO_T=
15520 case `echo -n x` in
15521 -n*)
15522   case `echo 'x\c'` in
15523   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15524   *)   ECHO_C='\c';;
15525   esac;;
15526 *)
15527   ECHO_N='-n';;
15528 esac
15529 if expr a : '\(a\)' >/dev/null 2>&1 &&
15530    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15531   as_expr=expr
15532 else
15533   as_expr=false
15534 fi
15535
15536 rm -f conf$$ conf$$.exe conf$$.file
15537 if test -d conf$$.dir; then
15538   rm -f conf$$.dir/conf$$.file
15539 else
15540   rm -f conf$$.dir
15541   mkdir conf$$.dir 2>/dev/null
15542 fi
15543 if (echo >conf$$.file) 2>/dev/null; then
15544   if ln -s conf$$.file conf$$ 2>/dev/null; then
15545     as_ln_s='ln -s'
15546     # ... but there are two gotchas:
15547     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15548     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15549     # In both cases, we have to default to `cp -p'.
15550     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15551       as_ln_s='cp -p'
15552   elif ln conf$$.file conf$$ 2>/dev/null; then
15553     as_ln_s=ln
15554   else
15555     as_ln_s='cp -p'
15556   fi
15557 else
15558   as_ln_s='cp -p'
15559 fi
15560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15561 rmdir conf$$.dir 2>/dev/null
15562
15563 if mkdir -p . 2>/dev/null; then
15564   as_mkdir_p=:
15565 else
15566   test -d ./-p && rmdir ./-p
15567   as_mkdir_p=false
15568 fi
15569
15570 if test -x / >/dev/null 2>&1; then
15571   as_test_x='test -x'
15572 else
15573   if ls -dL / >/dev/null 2>&1; then
15574     as_ls_L_option=L
15575   else
15576     as_ls_L_option=
15577   fi
15578   as_test_x='
15579     eval sh -c '\''
15580       if test -d "$1"; then
15581         test -d "$1/.";
15582       else
15583         case $1 in
15584         -*)set "./$1";;
15585         esac;
15586         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15587         ???[sx]*):;;*)false;;esac;fi
15588     '\'' sh
15589   '
15590 fi
15591 as_executable_p=$as_test_x
15592
15593 # Sed expression to map a string onto a valid CPP name.
15594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15595
15596 # Sed expression to map a string onto a valid variable name.
15597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15598
15599
15600 exec 6>&1
15601
15602 # Save the log message, to keep $[0] and so on meaningful, and to
15603 # report actual input values of CONFIG_FILES etc. instead of their
15604 # values after options handling.
15605 ac_log="
15606 This file was extended by libffi $as_me 3.0.10rc3, which was
15607 generated by GNU Autoconf 2.63.  Invocation command line was
15608
15609   CONFIG_FILES    = $CONFIG_FILES
15610   CONFIG_HEADERS  = $CONFIG_HEADERS
15611   CONFIG_LINKS    = $CONFIG_LINKS
15612   CONFIG_COMMANDS = $CONFIG_COMMANDS
15613   $ $0 $@
15614
15615 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15616 "
15617
15618 _ACEOF
15619
15620 case $ac_config_files in *"
15621 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15622 esac
15623
15624 case $ac_config_headers in *"
15625 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15626 esac
15627
15628
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630 # Files that config.status was made for.
15631 config_files="$ac_config_files"
15632 config_headers="$ac_config_headers"
15633 config_links="$ac_config_links"
15634 config_commands="$ac_config_commands"
15635
15636 _ACEOF
15637
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 ac_cs_usage="\
15640 \`$as_me' instantiates files from templates according to the
15641 current configuration.
15642
15643 Usage: $0 [OPTION]... [FILE]...
15644
15645   -h, --help       print this help, then exit
15646   -V, --version    print version number and configuration settings, then exit
15647   -q, --quiet, --silent
15648                    do not print progress messages
15649   -d, --debug      don't remove temporary files
15650       --recheck    update $as_me by reconfiguring in the same conditions
15651       --file=FILE[:TEMPLATE]
15652                    instantiate the configuration file FILE
15653       --header=FILE[:TEMPLATE]
15654                    instantiate the configuration header FILE
15655
15656 Configuration files:
15657 $config_files
15658
15659 Configuration headers:
15660 $config_headers
15661
15662 Configuration links:
15663 $config_links
15664
15665 Configuration commands:
15666 $config_commands
15667
15668 Report bugs to <bug-autoconf@gnu.org>."
15669
15670 _ACEOF
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 ac_cs_version="\\
15673 libffi config.status 3.0.10rc3
15674 configured by $0, generated by GNU Autoconf 2.63,
15675   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15676
15677 Copyright (C) 2008 Free Software Foundation, Inc.
15678 This config.status script is free software; the Free Software Foundation
15679 gives unlimited permission to copy, distribute and modify it."
15680
15681 ac_pwd='$ac_pwd'
15682 srcdir='$srcdir'
15683 INSTALL='$INSTALL'
15684 MKDIR_P='$MKDIR_P'
15685 AWK='$AWK'
15686 test -n "\$AWK" || AWK=awk
15687 _ACEOF
15688
15689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15690 # The default lists apply if the user does not specify any file.
15691 ac_need_defaults=:
15692 while test $# != 0
15693 do
15694   case $1 in
15695   --*=*)
15696     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15697     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15698     ac_shift=:
15699     ;;
15700   *)
15701     ac_option=$1
15702     ac_optarg=$2
15703     ac_shift=shift
15704     ;;
15705   esac
15706
15707   case $ac_option in
15708   # Handling of the options.
15709   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15710     ac_cs_recheck=: ;;
15711   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15712     $as_echo "$ac_cs_version"; exit ;;
15713   --debug | --debu | --deb | --de | --d | -d )
15714     debug=: ;;
15715   --file | --fil | --fi | --f )
15716     $ac_shift
15717     case $ac_optarg in
15718     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15719     esac
15720     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15721     ac_need_defaults=false;;
15722   --header | --heade | --head | --hea )
15723     $ac_shift
15724     case $ac_optarg in
15725     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15726     esac
15727     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15728     ac_need_defaults=false;;
15729   --he | --h)
15730     # Conflict between --help and --header
15731     { $as_echo "$as_me: error: ambiguous option: $1
15732 Try \`$0 --help' for more information." >&2
15733    { (exit 1); exit 1; }; };;
15734   --help | --hel | -h )
15735     $as_echo "$ac_cs_usage"; exit ;;
15736   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15737   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15738     ac_cs_silent=: ;;
15739
15740   # This is an error.
15741   -*) { $as_echo "$as_me: error: unrecognized option: $1
15742 Try \`$0 --help' for more information." >&2
15743    { (exit 1); exit 1; }; } ;;
15744
15745   *) ac_config_targets="$ac_config_targets $1"
15746      ac_need_defaults=false ;;
15747
15748   esac
15749   shift
15750 done
15751
15752 ac_configure_extra_args=
15753
15754 if $ac_cs_silent; then
15755   exec 6>/dev/null
15756   ac_configure_extra_args="$ac_configure_extra_args --silent"
15757 fi
15758
15759 _ACEOF
15760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761 if \$ac_cs_recheck; then
15762   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15763   shift
15764   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15765   CONFIG_SHELL='$SHELL'
15766   export CONFIG_SHELL
15767   exec "\$@"
15768 fi
15769
15770 _ACEOF
15771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15772 exec 5>>config.log
15773 {
15774   echo
15775   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15776 ## Running $as_me. ##
15777 _ASBOX
15778   $as_echo "$ac_log"
15779 } >&5
15780
15781 _ACEOF
15782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15783 #
15784 # INIT-COMMANDS
15785 #
15786 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15787
15788
15789 # The HP-UX ksh and POSIX shell print the target directory to stdout
15790 # if CDPATH is set.
15791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15792
15793 sed_quote_subst='$sed_quote_subst'
15794 double_quote_subst='$double_quote_subst'
15795 delay_variable_subst='$delay_variable_subst'
15796 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15797 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15798 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15799 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15800 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15801 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15802 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15803 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15804 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15805 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15806 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15807 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15808 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15809 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15810 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15811 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15812 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15813 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15814 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15815 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15816 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15817 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15818 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15819 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15820 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15821 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15822 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15823 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15824 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15825 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15826 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15827 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15828 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15829 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15830 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15831 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15832 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15833 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15834 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15835 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15836 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15837 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15838 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15839 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15840 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"`'
15841 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"`'
15842 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15843 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15844 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15845 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15846 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15847 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15848 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15849 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15850 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15851 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15852 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15853 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15854 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15855 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15856 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15857 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15858 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15859 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15860 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15861 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15862 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15863 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15864 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15865 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15866 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15867 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15868 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15869 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15872 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15873 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15874 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15875 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15876 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15877 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15878 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15879 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15880 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15881 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15882 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15883 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15884 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15885 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15886 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15887 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15888 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15889 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15890 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15891 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15892 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15893 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15894 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15895 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15896 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15897 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15898 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15899 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15900 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15901 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15902 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15903 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15904 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15905 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15906 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15907 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15908 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15909 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15910 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15911 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15912 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15913 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15914
15915 LTCC='$LTCC'
15916 LTCFLAGS='$LTCFLAGS'
15917 compiler='$compiler_DEFAULT'
15918
15919 # Quote evaled strings.
15920 for var in SED \
15921 GREP \
15922 EGREP \
15923 FGREP \
15924 LD \
15925 NM \
15926 LN_S \
15927 lt_SP2NL \
15928 lt_NL2SP \
15929 reload_flag \
15930 OBJDUMP \
15931 deplibs_check_method \
15932 file_magic_cmd \
15933 AR \
15934 AR_FLAGS \
15935 STRIP \
15936 RANLIB \
15937 CC \
15938 CFLAGS \
15939 compiler \
15940 lt_cv_sys_global_symbol_pipe \
15941 lt_cv_sys_global_symbol_to_cdecl \
15942 lt_cv_sys_global_symbol_to_c_name_address \
15943 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15944 SHELL \
15945 ECHO \
15946 lt_prog_compiler_no_builtin_flag \
15947 lt_prog_compiler_wl \
15948 lt_prog_compiler_pic \
15949 lt_prog_compiler_static \
15950 lt_cv_prog_compiler_c_o \
15951 need_locks \
15952 DSYMUTIL \
15953 NMEDIT \
15954 LIPO \
15955 OTOOL \
15956 OTOOL64 \
15957 shrext_cmds \
15958 export_dynamic_flag_spec \
15959 whole_archive_flag_spec \
15960 compiler_needs_object \
15961 with_gnu_ld \
15962 allow_undefined_flag \
15963 no_undefined_flag \
15964 hardcode_libdir_flag_spec \
15965 hardcode_libdir_flag_spec_ld \
15966 hardcode_libdir_separator \
15967 fix_srcfile_path \
15968 exclude_expsyms \
15969 include_expsyms \
15970 file_list_spec \
15971 variables_saved_for_relink \
15972 libname_spec \
15973 library_names_spec \
15974 soname_spec \
15975 finish_eval \
15976 old_striplib \
15977 striplib; do
15978     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15979     *[\\\\\\\`\\"\\\$]*)
15980       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15981       ;;
15982     *)
15983       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15984       ;;
15985     esac
15986 done
15987
15988 # Double-quote double-evaled strings.
15989 for var in reload_cmds \
15990 old_postinstall_cmds \
15991 old_postuninstall_cmds \
15992 old_archive_cmds \
15993 extract_expsyms_cmds \
15994 old_archive_from_new_cmds \
15995 old_archive_from_expsyms_cmds \
15996 archive_cmds \
15997 archive_expsym_cmds \
15998 module_cmds \
15999 module_expsym_cmds \
16000 export_symbols_cmds \
16001 prelink_cmds \
16002 postinstall_cmds \
16003 postuninstall_cmds \
16004 finish_cmds \
16005 sys_lib_search_path_spec \
16006 sys_lib_dlsearch_path_spec; do
16007     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16008     *[\\\\\\\`\\"\\\$]*)
16009       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16010       ;;
16011     *)
16012       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16013       ;;
16014     esac
16015 done
16016
16017 # Fix-up fallback echo if it was mangled by the above quoting rules.
16018 case \$lt_ECHO in
16019 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16020   ;;
16021 esac
16022
16023 ac_aux_dir='$ac_aux_dir'
16024 xsi_shell='$xsi_shell'
16025 lt_shell_append='$lt_shell_append'
16026
16027 # See if we are running on zsh, and set the options which allow our
16028 # commands through without removal of \ escapes INIT.
16029 if test -n "\${ZSH_VERSION+set}" ; then
16030    setopt NO_GLOB_SUBST
16031 fi
16032
16033
16034     PACKAGE='$PACKAGE'
16035     VERSION='$VERSION'
16036     TIMESTAMP='$TIMESTAMP'
16037     RM='$RM'
16038     ofile='$ofile'
16039
16040
16041
16042 TARGETDIR="$TARGETDIR"
16043
16044 _ACEOF
16045
16046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16047
16048 # Handling of arguments.
16049 for ac_config_target in $ac_config_targets
16050 do
16051   case $ac_config_target in
16052     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16053     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16054     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16055     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16056     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16057     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16058     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16059     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16060     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16061     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16062     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16063     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16064
16065   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16066 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16067    { (exit 1); exit 1; }; };;
16068   esac
16069 done
16070
16071
16072 # If the user did not use the arguments to specify the items to instantiate,
16073 # then the envvar interface is used.  Set only those that are not.
16074 # We use the long form for the default assignment because of an extremely
16075 # bizarre bug on SunOS 4.1.3.
16076 if $ac_need_defaults; then
16077   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16078   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16079   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16080   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16081 fi
16082
16083 # Have a temporary directory for convenience.  Make it in the build tree
16084 # simply because there is no reason against having it here, and in addition,
16085 # creating and moving files from /tmp can sometimes cause problems.
16086 # Hook for its removal unless debugging.
16087 # Note that there is a small window in which the directory will not be cleaned:
16088 # after its creation but before its name has been assigned to `$tmp'.
16089 $debug ||
16090 {
16091   tmp=
16092   trap 'exit_status=$?
16093   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16094 ' 0
16095   trap '{ (exit 1); exit 1; }' 1 2 13 15
16096 }
16097 # Create a (secure) tmp directory for tmp files.
16098
16099 {
16100   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16101   test -n "$tmp" && test -d "$tmp"
16102 }  ||
16103 {
16104   tmp=./conf$$-$RANDOM
16105   (umask 077 && mkdir "$tmp")
16106 } ||
16107 {
16108    $as_echo "$as_me: cannot create a temporary directory in ." >&2
16109    { (exit 1); exit 1; }
16110 }
16111
16112 # Set up the scripts for CONFIG_FILES section.
16113 # No need to generate them if there are no CONFIG_FILES.
16114 # This happens for instance with `./config.status config.h'.
16115 if test -n "$CONFIG_FILES"; then
16116
16117
16118 ac_cr='\r'
16119 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16120 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16121   ac_cs_awk_cr='\\r'
16122 else
16123   ac_cs_awk_cr=$ac_cr
16124 fi
16125
16126 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16127 _ACEOF
16128
16129
16130 {
16131   echo "cat >conf$$subs.awk <<_ACEOF" &&
16132   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16133   echo "_ACEOF"
16134 } >conf$$subs.sh ||
16135   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16136 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16137    { (exit 1); exit 1; }; }
16138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16139 ac_delim='%!_!# '
16140 for ac_last_try in false false false false false :; do
16141   . ./conf$$subs.sh ||
16142     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16143 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16144    { (exit 1); exit 1; }; }
16145
16146   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16147   if test $ac_delim_n = $ac_delim_num; then
16148     break
16149   elif $ac_last_try; then
16150     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16151 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16152    { (exit 1); exit 1; }; }
16153   else
16154     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16155   fi
16156 done
16157 rm -f conf$$subs.sh
16158
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16161 _ACEOF
16162 sed -n '
16163 h
16164 s/^/S["/; s/!.*/"]=/
16165 p
16166 g
16167 s/^[^!]*!//
16168 :repl
16169 t repl
16170 s/'"$ac_delim"'$//
16171 t delim
16172 :nl
16173 h
16174 s/\(.\{148\}\).*/\1/
16175 t more1
16176 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16177 p
16178 n
16179 b repl
16180 :more1
16181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16182 p
16183 g
16184 s/.\{148\}//
16185 t nl
16186 :delim
16187 h
16188 s/\(.\{148\}\).*/\1/
16189 t more2
16190 s/["\\]/\\&/g; s/^/"/; s/$/"/
16191 p
16192 b
16193 :more2
16194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16195 p
16196 g
16197 s/.\{148\}//
16198 t delim
16199 ' <conf$$subs.awk | sed '
16200 /^[^""]/{
16201   N
16202   s/\n//
16203 }
16204 ' >>$CONFIG_STATUS || ac_write_fail=1
16205 rm -f conf$$subs.awk
16206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16207 _ACAWK
16208 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16209   for (key in S) S_is_set[key] = 1
16210   FS = "\a"
16211
16212 }
16213 {
16214   line = $ 0
16215   nfields = split(line, field, "@")
16216   substed = 0
16217   len = length(field[1])
16218   for (i = 2; i < nfields; i++) {
16219     key = field[i]
16220     keylen = length(key)
16221     if (S_is_set[key]) {
16222       value = S[key]
16223       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16224       len += length(value) + length(field[++i])
16225       substed = 1
16226     } else
16227       len += 1 + keylen
16228   }
16229
16230   print line
16231 }
16232
16233 _ACAWK
16234 _ACEOF
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16237   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16238 else
16239   cat
16240 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16241   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16242 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16243    { (exit 1); exit 1; }; }
16244 _ACEOF
16245
16246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16248 # trailing colons and then remove the whole line if VPATH becomes empty
16249 # (actually we leave an empty line to preserve line numbers).
16250 if test "x$srcdir" = x.; then
16251   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16252 s/:*\$(srcdir):*/:/
16253 s/:*\${srcdir}:*/:/
16254 s/:*@srcdir@:*/:/
16255 s/^\([^=]*=[     ]*\):*/\1/
16256 s/:*$//
16257 s/^[^=]*=[       ]*$//
16258 }'
16259 fi
16260
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 fi # test -n "$CONFIG_FILES"
16263
16264 # Set up the scripts for CONFIG_HEADERS section.
16265 # No need to generate them if there are no CONFIG_HEADERS.
16266 # This happens for instance with `./config.status Makefile'.
16267 if test -n "$CONFIG_HEADERS"; then
16268 cat >"$tmp/defines.awk" <<\_ACAWK ||
16269 BEGIN {
16270 _ACEOF
16271
16272 # Transform confdefs.h into an awk script `defines.awk', embedded as
16273 # here-document in config.status, that substitutes the proper values into
16274 # config.h.in to produce config.h.
16275
16276 # Create a delimiter string that does not exist in confdefs.h, to ease
16277 # handling of long lines.
16278 ac_delim='%!_!# '
16279 for ac_last_try in false false :; do
16280   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16281   if test -z "$ac_t"; then
16282     break
16283   elif $ac_last_try; then
16284     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16285 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16286    { (exit 1); exit 1; }; }
16287   else
16288     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16289   fi
16290 done
16291
16292 # For the awk script, D is an array of macro values keyed by name,
16293 # likewise P contains macro parameters if any.  Preserve backslash
16294 # newline sequences.
16295
16296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16297 sed -n '
16298 s/.\{148\}/&'"$ac_delim"'/g
16299 t rset
16300 :rset
16301 s/^[     ]*#[    ]*define[       ][      ]*/ /
16302 t def
16303 d
16304 :def
16305 s/\\$//
16306 t bsnl
16307 s/["\\]/\\&/g
16308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16309 D["\1"]=" \3"/p
16310 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16311 d
16312 :bsnl
16313 s/["\\]/\\&/g
16314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16315 D["\1"]=" \3\\\\\\n"\\/p
16316 t cont
16317 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16318 t cont
16319 d
16320 :cont
16321 n
16322 s/.\{148\}/&'"$ac_delim"'/g
16323 t clear
16324 :clear
16325 s/\\$//
16326 t bsnlc
16327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16328 d
16329 :bsnlc
16330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16331 b cont
16332 ' <confdefs.h | sed '
16333 s/'"$ac_delim"'/"\\\
16334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16335
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337   for (key in D) D_is_set[key] = 1
16338   FS = "\a"
16339 }
16340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16341   line = \$ 0
16342   split(line, arg, " ")
16343   if (arg[1] == "#") {
16344     defundef = arg[2]
16345     mac1 = arg[3]
16346   } else {
16347     defundef = substr(arg[1], 2)
16348     mac1 = arg[2]
16349   }
16350   split(mac1, mac2, "(") #)
16351   macro = mac2[1]
16352   prefix = substr(line, 1, index(line, defundef) - 1)
16353   if (D_is_set[macro]) {
16354     # Preserve the white space surrounding the "#".
16355     print prefix "define", macro P[macro] D[macro]
16356     next
16357   } else {
16358     # Replace #undef with comments.  This is necessary, for example,
16359     # in the case of _POSIX_SOURCE, which is predefined and required
16360     # on some systems where configure will not decide to define it.
16361     if (defundef == "undef") {
16362       print "/*", prefix defundef, macro, "*/"
16363       next
16364     }
16365   }
16366 }
16367 { print }
16368 _ACAWK
16369 _ACEOF
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16372 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16373    { (exit 1); exit 1; }; }
16374 fi # test -n "$CONFIG_HEADERS"
16375
16376
16377 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16378 shift
16379 for ac_tag
16380 do
16381   case $ac_tag in
16382   :[FHLC]) ac_mode=$ac_tag; continue;;
16383   esac
16384   case $ac_mode$ac_tag in
16385   :[FHL]*:*);;
16386   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16387 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16388    { (exit 1); exit 1; }; };;
16389   :[FH]-) ac_tag=-:-;;
16390   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16391   esac
16392   ac_save_IFS=$IFS
16393   IFS=:
16394   set x $ac_tag
16395   IFS=$ac_save_IFS
16396   shift
16397   ac_file=$1
16398   shift
16399
16400   case $ac_mode in
16401   :L) ac_source=$1;;
16402   :[FH])
16403     ac_file_inputs=
16404     for ac_f
16405     do
16406       case $ac_f in
16407       -) ac_f="$tmp/stdin";;
16408       *) # Look for the file first in the build tree, then in the source tree
16409          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16410          # because $ac_f cannot contain `:'.
16411          test -f "$ac_f" ||
16412            case $ac_f in
16413            [\\/$]*) false;;
16414            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16415            esac ||
16416            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16417 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16418    { (exit 1); exit 1; }; };;
16419       esac
16420       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16421       ac_file_inputs="$ac_file_inputs '$ac_f'"
16422     done
16423
16424     # Let's still pretend it is `configure' which instantiates (i.e., don't
16425     # use $as_me), people would be surprised to read:
16426     #    /* config.h.  Generated by config.status.  */
16427     configure_input='Generated from '`
16428           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16429         `' by configure.'
16430     if test x"$ac_file" != x-; then
16431       configure_input="$ac_file.  $configure_input"
16432       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16433 $as_echo "$as_me: creating $ac_file" >&6;}
16434     fi
16435     # Neutralize special characters interpreted by sed in replacement strings.
16436     case $configure_input in #(
16437     *\&* | *\|* | *\\* )
16438        ac_sed_conf_input=`$as_echo "$configure_input" |
16439        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16440     *) ac_sed_conf_input=$configure_input;;
16441     esac
16442
16443     case $ac_tag in
16444     *:-:* | *:-) cat >"$tmp/stdin" \
16445       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16446 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16447    { (exit 1); exit 1; }; } ;;
16448     esac
16449     ;;
16450   esac
16451
16452   ac_dir=`$as_dirname -- "$ac_file" ||
16453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16454          X"$ac_file" : 'X\(//\)[^/]' \| \
16455          X"$ac_file" : 'X\(//\)$' \| \
16456          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16457 $as_echo X"$ac_file" |
16458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16459             s//\1/
16460             q
16461           }
16462           /^X\(\/\/\)[^/].*/{
16463             s//\1/
16464             q
16465           }
16466           /^X\(\/\/\)$/{
16467             s//\1/
16468             q
16469           }
16470           /^X\(\/\).*/{
16471             s//\1/
16472             q
16473           }
16474           s/.*/./; q'`
16475   { as_dir="$ac_dir"
16476   case $as_dir in #(
16477   -*) as_dir=./$as_dir;;
16478   esac
16479   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16480     as_dirs=
16481     while :; do
16482       case $as_dir in #(
16483       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16484       *) as_qdir=$as_dir;;
16485       esac
16486       as_dirs="'$as_qdir' $as_dirs"
16487       as_dir=`$as_dirname -- "$as_dir" ||
16488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489          X"$as_dir" : 'X\(//\)[^/]' \| \
16490          X"$as_dir" : 'X\(//\)$' \| \
16491          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16492 $as_echo X"$as_dir" |
16493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16494             s//\1/
16495             q
16496           }
16497           /^X\(\/\/\)[^/].*/{
16498             s//\1/
16499             q
16500           }
16501           /^X\(\/\/\)$/{
16502             s//\1/
16503             q
16504           }
16505           /^X\(\/\).*/{
16506             s//\1/
16507             q
16508           }
16509           s/.*/./; q'`
16510       test -d "$as_dir" && break
16511     done
16512     test -z "$as_dirs" || eval "mkdir $as_dirs"
16513   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16514 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16515    { (exit 1); exit 1; }; }; }
16516   ac_builddir=.
16517
16518 case "$ac_dir" in
16519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16520 *)
16521   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16522   # A ".." for each directory in $ac_dir_suffix.
16523   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16524   case $ac_top_builddir_sub in
16525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16527   esac ;;
16528 esac
16529 ac_abs_top_builddir=$ac_pwd
16530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16531 # for backward compatibility:
16532 ac_top_builddir=$ac_top_build_prefix
16533
16534 case $srcdir in
16535   .)  # We are building in place.
16536     ac_srcdir=.
16537     ac_top_srcdir=$ac_top_builddir_sub
16538     ac_abs_top_srcdir=$ac_pwd ;;
16539   [\\/]* | ?:[\\/]* )  # Absolute name.
16540     ac_srcdir=$srcdir$ac_dir_suffix;
16541     ac_top_srcdir=$srcdir
16542     ac_abs_top_srcdir=$srcdir ;;
16543   *) # Relative name.
16544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16545     ac_top_srcdir=$ac_top_build_prefix$srcdir
16546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16547 esac
16548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16549
16550
16551   case $ac_mode in
16552   :F)
16553   #
16554   # CONFIG_FILE
16555   #
16556
16557   case $INSTALL in
16558   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16559   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16560   esac
16561   ac_MKDIR_P=$MKDIR_P
16562   case $MKDIR_P in
16563   [\\/$]* | ?:[\\/]* ) ;;
16564   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16565   esac
16566 _ACEOF
16567
16568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16569 # If the template does not know about datarootdir, expand it.
16570 # FIXME: This hack should be removed a few years after 2.60.
16571 ac_datarootdir_hack=; ac_datarootdir_seen=
16572
16573 ac_sed_dataroot='
16574 /datarootdir/ {
16575   p
16576   q
16577 }
16578 /@datadir@/p
16579 /@docdir@/p
16580 /@infodir@/p
16581 /@localedir@/p
16582 /@mandir@/p
16583 '
16584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16585 *datarootdir*) ac_datarootdir_seen=yes;;
16586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16587   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16589 _ACEOF
16590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16591   ac_datarootdir_hack='
16592   s&@datadir@&$datadir&g
16593   s&@docdir@&$docdir&g
16594   s&@infodir@&$infodir&g
16595   s&@localedir@&$localedir&g
16596   s&@mandir@&$mandir&g
16597     s&\\\${datarootdir}&$datarootdir&g' ;;
16598 esac
16599 _ACEOF
16600
16601 # Neutralize VPATH when `$srcdir' = `.'.
16602 # Shell code in configure.ac might set extrasub.
16603 # FIXME: do we really want to maintain this feature?
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 ac_sed_extra="$ac_vpsub
16606 $extrasub
16607 _ACEOF
16608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16609 :t
16610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16611 s|@configure_input@|$ac_sed_conf_input|;t t
16612 s&@top_builddir@&$ac_top_builddir_sub&;t t
16613 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16614 s&@srcdir@&$ac_srcdir&;t t
16615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16616 s&@top_srcdir@&$ac_top_srcdir&;t t
16617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16618 s&@builddir@&$ac_builddir&;t t
16619 s&@abs_builddir@&$ac_abs_builddir&;t t
16620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16621 s&@INSTALL@&$ac_INSTALL&;t t
16622 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16623 $ac_datarootdir_hack
16624 "
16625 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16626   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16627 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16628    { (exit 1); exit 1; }; }
16629
16630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16631   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16632   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16633   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16634 which seems to be undefined.  Please make sure it is defined." >&5
16635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16636 which seems to be undefined.  Please make sure it is defined." >&2;}
16637
16638   rm -f "$tmp/stdin"
16639   case $ac_file in
16640   -) cat "$tmp/out" && rm -f "$tmp/out";;
16641   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16642   esac \
16643   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16644 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16645    { (exit 1); exit 1; }; }
16646  ;;
16647   :H)
16648   #
16649   # CONFIG_HEADER
16650   #
16651   if test x"$ac_file" != x-; then
16652     {
16653       $as_echo "/* $configure_input  */" \
16654       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16655     } >"$tmp/config.h" \
16656       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16657 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16658    { (exit 1); exit 1; }; }
16659     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16660       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16661 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16662     else
16663       rm -f "$ac_file"
16664       mv "$tmp/config.h" "$ac_file" \
16665         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16666 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16667    { (exit 1); exit 1; }; }
16668     fi
16669   else
16670     $as_echo "/* $configure_input  */" \
16671       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16672       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16673 $as_echo "$as_me: error: could not create -" >&2;}
16674    { (exit 1); exit 1; }; }
16675   fi
16676 # Compute "$ac_file"'s index in $config_headers.
16677 _am_arg="$ac_file"
16678 _am_stamp_count=1
16679 for _am_header in $config_headers :; do
16680   case $_am_header in
16681     $_am_arg | $_am_arg:* )
16682       break ;;
16683     * )
16684       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16685   esac
16686 done
16687 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16688 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16689          X"$_am_arg" : 'X\(//\)[^/]' \| \
16690          X"$_am_arg" : 'X\(//\)$' \| \
16691          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16692 $as_echo X"$_am_arg" |
16693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16694             s//\1/
16695             q
16696           }
16697           /^X\(\/\/\)[^/].*/{
16698             s//\1/
16699             q
16700           }
16701           /^X\(\/\/\)$/{
16702             s//\1/
16703             q
16704           }
16705           /^X\(\/\).*/{
16706             s//\1/
16707             q
16708           }
16709           s/.*/./; q'`/stamp-h$_am_stamp_count
16710  ;;
16711   :L)
16712   #
16713   # CONFIG_LINK
16714   #
16715
16716   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16717     :
16718   else
16719     # Prefer the file from the source tree if names are identical.
16720     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16721       ac_source=$srcdir/$ac_source
16722     fi
16723
16724     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16725 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16726
16727     if test ! -r "$ac_source"; then
16728       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16729 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16730    { (exit 1); exit 1; }; }
16731     fi
16732     rm -f "$ac_file"
16733
16734     # Try a relative symlink, then a hard link, then a copy.
16735     case $srcdir in
16736     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16737         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16738     esac
16739     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16740       ln "$ac_source" "$ac_file" 2>/dev/null ||
16741       cp -p "$ac_source" "$ac_file" ||
16742       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16743 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16744    { (exit 1); exit 1; }; }
16745   fi
16746  ;;
16747   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16748 $as_echo "$as_me: executing $ac_file commands" >&6;}
16749  ;;
16750   esac
16751
16752
16753   case $ac_file$ac_mode in
16754     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16755   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16756   # are listed without --file.  Let's play safe and only enable the eval
16757   # if we detect the quoting.
16758   case $CONFIG_FILES in
16759   *\'*) eval set x "$CONFIG_FILES" ;;
16760   *)   set x $CONFIG_FILES ;;
16761   esac
16762   shift
16763   for mf
16764   do
16765     # Strip MF so we end up with the name of the file.
16766     mf=`echo "$mf" | sed -e 's/:.*$//'`
16767     # Check whether this is an Automake generated Makefile or not.
16768     # We used to match only the files named `Makefile.in', but
16769     # some people rename them; so instead we look at the file content.
16770     # Grep'ing the first line is not enough: some people post-process
16771     # each Makefile.in and add a new line on top of each file to say so.
16772     # Grep'ing the whole file is not good either: AIX grep has a line
16773     # limit of 2048, but all sed's we know have understand at least 4000.
16774     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16775       dirpart=`$as_dirname -- "$mf" ||
16776 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777          X"$mf" : 'X\(//\)[^/]' \| \
16778          X"$mf" : 'X\(//\)$' \| \
16779          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16780 $as_echo X"$mf" |
16781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16782             s//\1/
16783             q
16784           }
16785           /^X\(\/\/\)[^/].*/{
16786             s//\1/
16787             q
16788           }
16789           /^X\(\/\/\)$/{
16790             s//\1/
16791             q
16792           }
16793           /^X\(\/\).*/{
16794             s//\1/
16795             q
16796           }
16797           s/.*/./; q'`
16798     else
16799       continue
16800     fi
16801     # Extract the definition of DEPDIR, am__include, and am__quote
16802     # from the Makefile without running `make'.
16803     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16804     test -z "$DEPDIR" && continue
16805     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16806     test -z "am__include" && continue
16807     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16808     # When using ansi2knr, U may be empty or an underscore; expand it
16809     U=`sed -n 's/^U = //p' < "$mf"`
16810     # Find all dependency output files, they are included files with
16811     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16812     # simplest approach to changing $(DEPDIR) to its actual value in the
16813     # expansion.
16814     for file in `sed -n "
16815       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16816          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16817       # Make sure the directory exists.
16818       test -f "$dirpart/$file" && continue
16819       fdir=`$as_dirname -- "$file" ||
16820 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16821          X"$file" : 'X\(//\)[^/]' \| \
16822          X"$file" : 'X\(//\)$' \| \
16823          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16824 $as_echo X"$file" |
16825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16826             s//\1/
16827             q
16828           }
16829           /^X\(\/\/\)[^/].*/{
16830             s//\1/
16831             q
16832           }
16833           /^X\(\/\/\)$/{
16834             s//\1/
16835             q
16836           }
16837           /^X\(\/\).*/{
16838             s//\1/
16839             q
16840           }
16841           s/.*/./; q'`
16842       { as_dir=$dirpart/$fdir
16843   case $as_dir in #(
16844   -*) as_dir=./$as_dir;;
16845   esac
16846   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16847     as_dirs=
16848     while :; do
16849       case $as_dir in #(
16850       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16851       *) as_qdir=$as_dir;;
16852       esac
16853       as_dirs="'$as_qdir' $as_dirs"
16854       as_dir=`$as_dirname -- "$as_dir" ||
16855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16856          X"$as_dir" : 'X\(//\)[^/]' \| \
16857          X"$as_dir" : 'X\(//\)$' \| \
16858          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16859 $as_echo X"$as_dir" |
16860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16861             s//\1/
16862             q
16863           }
16864           /^X\(\/\/\)[^/].*/{
16865             s//\1/
16866             q
16867           }
16868           /^X\(\/\/\)$/{
16869             s//\1/
16870             q
16871           }
16872           /^X\(\/\).*/{
16873             s//\1/
16874             q
16875           }
16876           s/.*/./; q'`
16877       test -d "$as_dir" && break
16878     done
16879     test -z "$as_dirs" || eval "mkdir $as_dirs"
16880   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16881 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16882    { (exit 1); exit 1; }; }; }
16883       # echo "creating $dirpart/$file"
16884       echo '# dummy' > "$dirpart/$file"
16885     done
16886   done
16887 }
16888  ;;
16889     "libtool":C)
16890
16891     # See if we are running on zsh, and set the options which allow our
16892     # commands through without removal of \ escapes.
16893     if test -n "${ZSH_VERSION+set}" ; then
16894       setopt NO_GLOB_SUBST
16895     fi
16896
16897     cfgfile="${ofile}T"
16898     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16899     $RM "$cfgfile"
16900
16901     cat <<_LT_EOF >> "$cfgfile"
16902 #! $SHELL
16903
16904 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16905 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16906 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16907 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16908 #
16909 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16910 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16911 #   Written by Gordon Matzigkeit, 1996
16912 #
16913 #   This file is part of GNU Libtool.
16914 #
16915 # GNU Libtool is free software; you can redistribute it and/or
16916 # modify it under the terms of the GNU General Public License as
16917 # published by the Free Software Foundation; either version 2 of
16918 # the License, or (at your option) any later version.
16919 #
16920 # As a special exception to the GNU General Public License,
16921 # if you distribute this file as part of a program or library that
16922 # is built using GNU Libtool, you may include this file under the
16923 # same distribution terms that you use for the rest of that program.
16924 #
16925 # GNU Libtool is distributed in the hope that it will be useful,
16926 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16927 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16928 # GNU General Public License for more details.
16929 #
16930 # You should have received a copy of the GNU General Public License
16931 # along with GNU Libtool; see the file COPYING.  If not, a copy
16932 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16933 # obtained by writing to the Free Software Foundation, Inc.,
16934 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16935
16936
16937 # The names of the tagged configurations supported by this script.
16938 available_tags=""
16939
16940 # ### BEGIN LIBTOOL CONFIG
16941
16942 # Which release of libtool.m4 was used?
16943 macro_version=$macro_version
16944 macro_revision=$macro_revision
16945
16946 # Whether or not to build shared libraries.
16947 build_libtool_libs=$enable_shared
16948
16949 # Whether or not to build static libraries.
16950 build_old_libs=$enable_static
16951
16952 # What type of objects to build.
16953 pic_mode=$pic_mode
16954
16955 # Whether or not to optimize for fast installation.
16956 fast_install=$enable_fast_install
16957
16958 # The host system.
16959 host_alias=$host_alias
16960 host=$host
16961 host_os=$host_os
16962
16963 # The build system.
16964 build_alias=$build_alias
16965 build=$build
16966 build_os=$build_os
16967
16968 # A sed program that does not truncate output.
16969 SED=$lt_SED
16970
16971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16972 Xsed="\$SED -e 1s/^X//"
16973
16974 # A grep program that handles long lines.
16975 GREP=$lt_GREP
16976
16977 # An ERE matcher.
16978 EGREP=$lt_EGREP
16979
16980 # A literal string matcher.
16981 FGREP=$lt_FGREP
16982
16983 # A BSD- or MS-compatible name lister.
16984 NM=$lt_NM
16985
16986 # Whether we need soft or hard links.
16987 LN_S=$lt_LN_S
16988
16989 # What is the maximum length of a command?
16990 max_cmd_len=$max_cmd_len
16991
16992 # Object file suffix (normally "o").
16993 objext=$ac_objext
16994
16995 # Executable file suffix (normally "").
16996 exeext=$exeext
16997
16998 # whether the shell understands "unset".
16999 lt_unset=$lt_unset
17000
17001 # turn spaces into newlines.
17002 SP2NL=$lt_lt_SP2NL
17003
17004 # turn newlines into spaces.
17005 NL2SP=$lt_lt_NL2SP
17006
17007 # How to create reloadable object files.
17008 reload_flag=$lt_reload_flag
17009 reload_cmds=$lt_reload_cmds
17010
17011 # An object symbol dumper.
17012 OBJDUMP=$lt_OBJDUMP
17013
17014 # Method to check whether dependent libraries are shared objects.
17015 deplibs_check_method=$lt_deplibs_check_method
17016
17017 # Command to use when deplibs_check_method == "file_magic".
17018 file_magic_cmd=$lt_file_magic_cmd
17019
17020 # The archiver.
17021 AR=$lt_AR
17022 AR_FLAGS=$lt_AR_FLAGS
17023
17024 # A symbol stripping program.
17025 STRIP=$lt_STRIP
17026
17027 # Commands used to install an old-style archive.
17028 RANLIB=$lt_RANLIB
17029 old_postinstall_cmds=$lt_old_postinstall_cmds
17030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17031
17032 # A C compiler.
17033 LTCC=$lt_CC
17034
17035 # LTCC compiler flags.
17036 LTCFLAGS=$lt_CFLAGS
17037
17038 # Take the output of nm and produce a listing of raw symbols and C names.
17039 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17040
17041 # Transform the output of nm in a proper C declaration.
17042 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17043
17044 # Transform the output of nm in a C name address pair.
17045 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17046
17047 # Transform the output of nm in a C name address pair when lib prefix is needed.
17048 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17049
17050 # The name of the directory that contains temporary libtool files.
17051 objdir=$objdir
17052
17053 # Shell to use when invoking shell scripts.
17054 SHELL=$lt_SHELL
17055
17056 # An echo program that does not interpret backslashes.
17057 ECHO=$lt_ECHO
17058
17059 # Used to examine libraries when file_magic_cmd begins with "file".
17060 MAGIC_CMD=$MAGIC_CMD
17061
17062 # Must we lock files when doing compilation?
17063 need_locks=$lt_need_locks
17064
17065 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17066 DSYMUTIL=$lt_DSYMUTIL
17067
17068 # Tool to change global to local symbols on Mac OS X.
17069 NMEDIT=$lt_NMEDIT
17070
17071 # Tool to manipulate fat objects and archives on Mac OS X.
17072 LIPO=$lt_LIPO
17073
17074 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17075 OTOOL=$lt_OTOOL
17076
17077 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17078 OTOOL64=$lt_OTOOL64
17079
17080 # Old archive suffix (normally "a").
17081 libext=$libext
17082
17083 # Shared library suffix (normally ".so").
17084 shrext_cmds=$lt_shrext_cmds
17085
17086 # The commands to extract the exported symbol list from a shared archive.
17087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17088
17089 # Variables whose values should be saved in libtool wrapper scripts and
17090 # restored at link time.
17091 variables_saved_for_relink=$lt_variables_saved_for_relink
17092
17093 # Do we need the "lib" prefix for modules?
17094 need_lib_prefix=$need_lib_prefix
17095
17096 # Do we need a version for libraries?
17097 need_version=$need_version
17098
17099 # Library versioning type.
17100 version_type=$version_type
17101
17102 # Shared library runtime path variable.
17103 runpath_var=$runpath_var
17104
17105 # Shared library path variable.
17106 shlibpath_var=$shlibpath_var
17107
17108 # Is shlibpath searched before the hard-coded library search path?
17109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17110
17111 # Format of library name prefix.
17112 libname_spec=$lt_libname_spec
17113
17114 # List of archive names.  First name is the real one, the rest are links.
17115 # The last name is the one that the linker finds with -lNAME
17116 library_names_spec=$lt_library_names_spec
17117
17118 # The coded name of the library, if different from the real name.
17119 soname_spec=$lt_soname_spec
17120
17121 # Command to use after installation of a shared archive.
17122 postinstall_cmds=$lt_postinstall_cmds
17123
17124 # Command to use after uninstallation of a shared archive.
17125 postuninstall_cmds=$lt_postuninstall_cmds
17126
17127 # Commands used to finish a libtool library installation in a directory.
17128 finish_cmds=$lt_finish_cmds
17129
17130 # As "finish_cmds", except a single script fragment to be evaled but
17131 # not shown.
17132 finish_eval=$lt_finish_eval
17133
17134 # Whether we should hardcode library paths into libraries.
17135 hardcode_into_libs=$hardcode_into_libs
17136
17137 # Compile-time system search path for libraries.
17138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17139
17140 # Run-time system search path for libraries.
17141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17142
17143 # Whether dlopen is supported.
17144 dlopen_support=$enable_dlopen
17145
17146 # Whether dlopen of programs is supported.
17147 dlopen_self=$enable_dlopen_self
17148
17149 # Whether dlopen of statically linked programs is supported.
17150 dlopen_self_static=$enable_dlopen_self_static
17151
17152 # Commands to strip libraries.
17153 old_striplib=$lt_old_striplib
17154 striplib=$lt_striplib
17155
17156
17157 # The linker used to build libraries.
17158 LD=$lt_LD
17159
17160 # Commands used to build an old-style archive.
17161 old_archive_cmds=$lt_old_archive_cmds
17162
17163 # A language specific compiler.
17164 CC=$lt_compiler
17165
17166 # Is the compiler the GNU compiler?
17167 with_gcc=$GCC
17168
17169 # Compiler flag to turn off builtin functions.
17170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17171
17172 # How to pass a linker flag through the compiler.
17173 wl=$lt_lt_prog_compiler_wl
17174
17175 # Additional compiler flags for building library objects.
17176 pic_flag=$lt_lt_prog_compiler_pic
17177
17178 # Compiler flag to prevent dynamic linking.
17179 link_static_flag=$lt_lt_prog_compiler_static
17180
17181 # Does compiler simultaneously support -c and -o options?
17182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17183
17184 # Whether or not to add -lc for building shared libraries.
17185 build_libtool_need_lc=$archive_cmds_need_lc
17186
17187 # Whether or not to disallow shared libs when runtime libs are static.
17188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17189
17190 # Compiler flag to allow reflexive dlopens.
17191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17192
17193 # Compiler flag to generate shared objects directly from archives.
17194 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17195
17196 # Whether the compiler copes with passing no objects directly.
17197 compiler_needs_object=$lt_compiler_needs_object
17198
17199 # Create an old-style archive from a shared archive.
17200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17201
17202 # Create a temporary old-style archive to link instead of a shared archive.
17203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17204
17205 # Commands used to build a shared archive.
17206 archive_cmds=$lt_archive_cmds
17207 archive_expsym_cmds=$lt_archive_expsym_cmds
17208
17209 # Commands used to build a loadable module if different from building
17210 # a shared archive.
17211 module_cmds=$lt_module_cmds
17212 module_expsym_cmds=$lt_module_expsym_cmds
17213
17214 # Whether we are building with GNU ld or not.
17215 with_gnu_ld=$lt_with_gnu_ld
17216
17217 # Flag that allows shared libraries with undefined symbols to be built.
17218 allow_undefined_flag=$lt_allow_undefined_flag
17219
17220 # Flag that enforces no undefined symbols.
17221 no_undefined_flag=$lt_no_undefined_flag
17222
17223 # Flag to hardcode \$libdir into a binary during linking.
17224 # This must work even if \$libdir does not exist
17225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17226
17227 # If ld is used when linking, flag to hardcode \$libdir into a binary
17228 # during linking.  This must work even if \$libdir does not exist.
17229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17230
17231 # Whether we need a single "-rpath" flag with a separated argument.
17232 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17233
17234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17235 # DIR into the resulting binary.
17236 hardcode_direct=$hardcode_direct
17237
17238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239 # DIR into the resulting binary and the resulting library dependency is
17240 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17241 # library is relocated.
17242 hardcode_direct_absolute=$hardcode_direct_absolute
17243
17244 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17245 # into the resulting binary.
17246 hardcode_minus_L=$hardcode_minus_L
17247
17248 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17249 # into the resulting binary.
17250 hardcode_shlibpath_var=$hardcode_shlibpath_var
17251
17252 # Set to "yes" if building a shared library automatically hardcodes DIR
17253 # into the library and all subsequent libraries and executables linked
17254 # against it.
17255 hardcode_automatic=$hardcode_automatic
17256
17257 # Set to yes if linker adds runtime paths of dependent libraries
17258 # to runtime path list.
17259 inherit_rpath=$inherit_rpath
17260
17261 # Whether libtool must link a program against all its dependency libraries.
17262 link_all_deplibs=$link_all_deplibs
17263
17264 # Fix the shell variable \$srcfile for the compiler.
17265 fix_srcfile_path=$lt_fix_srcfile_path
17266
17267 # Set to "yes" if exported symbols are required.
17268 always_export_symbols=$always_export_symbols
17269
17270 # The commands to list exported symbols.
17271 export_symbols_cmds=$lt_export_symbols_cmds
17272
17273 # Symbols that should not be listed in the preloaded symbols.
17274 exclude_expsyms=$lt_exclude_expsyms
17275
17276 # Symbols that must always be exported.
17277 include_expsyms=$lt_include_expsyms
17278
17279 # Commands necessary for linking programs (against libraries) with templates.
17280 prelink_cmds=$lt_prelink_cmds
17281
17282 # Specify filename containing input files.
17283 file_list_spec=$lt_file_list_spec
17284
17285 # How to hardcode a shared library path into an executable.
17286 hardcode_action=$hardcode_action
17287
17288 # ### END LIBTOOL CONFIG
17289
17290 _LT_EOF
17291
17292   case $host_os in
17293   aix3*)
17294     cat <<\_LT_EOF >> "$cfgfile"
17295 # AIX sometimes has problems with the GCC collect2 program.  For some
17296 # reason, if we set the COLLECT_NAMES environment variable, the problems
17297 # vanish in a puff of smoke.
17298 if test "X${COLLECT_NAMES+set}" != Xset; then
17299   COLLECT_NAMES=
17300   export COLLECT_NAMES
17301 fi
17302 _LT_EOF
17303     ;;
17304   esac
17305
17306
17307 ltmain="$ac_aux_dir/ltmain.sh"
17308
17309
17310   # We use sed instead of cat because bash on DJGPP gets confused if
17311   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17312   # text mode, it properly converts lines to CR/LF.  This bash problem
17313   # is reportedly fixed, but why not run on old versions too?
17314   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17315     || (rm -f "$cfgfile"; exit 1)
17316
17317   case $xsi_shell in
17318   yes)
17319     cat << \_LT_EOF >> "$cfgfile"
17320
17321 # func_dirname file append nondir_replacement
17322 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17323 # otherwise set result to NONDIR_REPLACEMENT.
17324 func_dirname ()
17325 {
17326   case ${1} in
17327     */*) func_dirname_result="${1%/*}${2}" ;;
17328     *  ) func_dirname_result="${3}" ;;
17329   esac
17330 }
17331
17332 # func_basename file
17333 func_basename ()
17334 {
17335   func_basename_result="${1##*/}"
17336 }
17337
17338 # func_dirname_and_basename file append nondir_replacement
17339 # perform func_basename and func_dirname in a single function
17340 # call:
17341 #   dirname:  Compute the dirname of FILE.  If nonempty,
17342 #             add APPEND to the result, otherwise set result
17343 #             to NONDIR_REPLACEMENT.
17344 #             value returned in "$func_dirname_result"
17345 #   basename: Compute filename of FILE.
17346 #             value retuned in "$func_basename_result"
17347 # Implementation must be kept synchronized with func_dirname
17348 # and func_basename. For efficiency, we do not delegate to
17349 # those functions but instead duplicate the functionality here.
17350 func_dirname_and_basename ()
17351 {
17352   case ${1} in
17353     */*) func_dirname_result="${1%/*}${2}" ;;
17354     *  ) func_dirname_result="${3}" ;;
17355   esac
17356   func_basename_result="${1##*/}"
17357 }
17358
17359 # func_stripname prefix suffix name
17360 # strip PREFIX and SUFFIX off of NAME.
17361 # PREFIX and SUFFIX must not contain globbing or regex special
17362 # characters, hashes, percent signs, but SUFFIX may contain a leading
17363 # dot (in which case that matches only a dot).
17364 func_stripname ()
17365 {
17366   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17367   # positional parameters, so assign one to ordinary parameter first.
17368   func_stripname_result=${3}
17369   func_stripname_result=${func_stripname_result#"${1}"}
17370   func_stripname_result=${func_stripname_result%"${2}"}
17371 }
17372
17373 # func_opt_split
17374 func_opt_split ()
17375 {
17376   func_opt_split_opt=${1%%=*}
17377   func_opt_split_arg=${1#*=}
17378 }
17379
17380 # func_lo2o object
17381 func_lo2o ()
17382 {
17383   case ${1} in
17384     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17385     *)    func_lo2o_result=${1} ;;
17386   esac
17387 }
17388
17389 # func_xform libobj-or-source
17390 func_xform ()
17391 {
17392   func_xform_result=${1%.*}.lo
17393 }
17394
17395 # func_arith arithmetic-term...
17396 func_arith ()
17397 {
17398   func_arith_result=$(( $* ))
17399 }
17400
17401 # func_len string
17402 # STRING may not start with a hyphen.
17403 func_len ()
17404 {
17405   func_len_result=${#1}
17406 }
17407
17408 _LT_EOF
17409     ;;
17410   *) # Bourne compatible functions.
17411     cat << \_LT_EOF >> "$cfgfile"
17412
17413 # func_dirname file append nondir_replacement
17414 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17415 # otherwise set result to NONDIR_REPLACEMENT.
17416 func_dirname ()
17417 {
17418   # Extract subdirectory from the argument.
17419   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17420   if test "X$func_dirname_result" = "X${1}"; then
17421     func_dirname_result="${3}"
17422   else
17423     func_dirname_result="$func_dirname_result${2}"
17424   fi
17425 }
17426
17427 # func_basename file
17428 func_basename ()
17429 {
17430   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17431 }
17432
17433
17434 # func_stripname prefix suffix name
17435 # strip PREFIX and SUFFIX off of NAME.
17436 # PREFIX and SUFFIX must not contain globbing or regex special
17437 # characters, hashes, percent signs, but SUFFIX may contain a leading
17438 # dot (in which case that matches only a dot).
17439 # func_strip_suffix prefix name
17440 func_stripname ()
17441 {
17442   case ${2} in
17443     .*) func_stripname_result=`$ECHO "X${3}" \
17444            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17445     *)  func_stripname_result=`$ECHO "X${3}" \
17446            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17447   esac
17448 }
17449
17450 # sed scripts:
17451 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17452 my_sed_long_arg='1s/^-[^=]*=//'
17453
17454 # func_opt_split
17455 func_opt_split ()
17456 {
17457   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17458   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17459 }
17460
17461 # func_lo2o object
17462 func_lo2o ()
17463 {
17464   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17465 }
17466
17467 # func_xform libobj-or-source
17468 func_xform ()
17469 {
17470   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17471 }
17472
17473 # func_arith arithmetic-term...
17474 func_arith ()
17475 {
17476   func_arith_result=`expr "$@"`
17477 }
17478
17479 # func_len string
17480 # STRING may not start with a hyphen.
17481 func_len ()
17482 {
17483   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17484 }
17485
17486 _LT_EOF
17487 esac
17488
17489 case $lt_shell_append in
17490   yes)
17491     cat << \_LT_EOF >> "$cfgfile"
17492
17493 # func_append var value
17494 # Append VALUE to the end of shell variable VAR.
17495 func_append ()
17496 {
17497   eval "$1+=\$2"
17498 }
17499 _LT_EOF
17500     ;;
17501   *)
17502     cat << \_LT_EOF >> "$cfgfile"
17503
17504 # func_append var value
17505 # Append VALUE to the end of shell variable VAR.
17506 func_append ()
17507 {
17508   eval "$1=\$$1\$2"
17509 }
17510
17511 _LT_EOF
17512     ;;
17513   esac
17514
17515
17516   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17517     || (rm -f "$cfgfile"; exit 1)
17518
17519   mv -f "$cfgfile" "$ofile" ||
17520     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17521   chmod +x "$ofile"
17522
17523  ;;
17524     "include":C) test -d include || mkdir include ;;
17525     "src":C)
17526 test -d src || mkdir src
17527 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17528  ;;
17529
17530   esac
17531 done # for ac_tag
17532
17533
17534 { (exit 0); exit 0; }
17535 _ACEOF
17536 chmod +x $CONFIG_STATUS
17537 ac_clean_files=$ac_clean_files_save
17538
17539 test $ac_write_fail = 0 ||
17540   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17541 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17542    { (exit 1); exit 1; }; }
17543
17544
17545 # configure is writing to config.log, and then calls config.status.
17546 # config.status does its own redirection, appending to config.log.
17547 # Unfortunately, on DOS this fails, as config.log is still kept open
17548 # by configure, so config.status won't be able to write to it; its
17549 # output is simply discarded.  So we exec the FD to /dev/null,
17550 # effectively closing config.log, so it can be properly (re)opened and
17551 # appended to by config.status.  When coming back to configure, we
17552 # need to make the FD available again.
17553 if test "$no_create" != yes; then
17554   ac_cs_success=:
17555   ac_config_status_args=
17556   test "$silent" = yes &&
17557     ac_config_status_args="$ac_config_status_args --quiet"
17558   exec 5>/dev/null
17559   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17560   exec 5>>config.log
17561   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17562   # would make configure fail if this is the last instruction.
17563   $ac_cs_success || { (exit 1); exit 1; }
17564 fi
17565 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17566   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17567 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17568 fi
17569