Regenerate.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs 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 *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545 case X$ECHO in
546 X*--fallback-echo)
547   # Remove one level of quotation (which was required for Make).
548   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549   ;;
550 esac
551
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554   # Discard the --no-reexec flag, and continue.
555   shift
556 elif test "X$1" = X--fallback-echo; then
557   # Avoid inline document here, it may be left over
558   :
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560   # Yippee, $echo works!
561   :
562 else
563   # Restart under the correct shell.
564   exec $SHELL "$0" --no-reexec ${1+"$@"}
565 fi
566
567 if test "X$1" = X--fallback-echo; then
568   # used as fallback echo
569   shift
570   cat <<EOF
571 $*
572 EOF
573   exit 0
574 fi
575
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586        echo_test_string=`eval $cmd` &&
587        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588     then
589       break
590     fi
591   done
592 fi
593
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596    test "X$echo_testing_string" = "X$echo_test_string"; then
597   :
598 else
599   # The Solaris, AIX, and Digital Unix default echo programs unquote
600   # backslashes.  This makes it impossible to quote backslashes using
601   #   echo "$something" | sed 's/\\/\\\\/g'
602   #
603   # So, first we look for a working echo in the user's PATH.
604
605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606   for dir in $PATH /usr/ucb; do
607     IFS="$lt_save_ifs"
608     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611        test "X$echo_testing_string" = "X$echo_test_string"; then
612       echo="$dir/echo"
613       break
614     fi
615   done
616   IFS="$lt_save_ifs"
617
618   if test "X$echo" = Xecho; then
619     # We didn't find a better echo, so look for alternatives.
620     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       # This shell has a builtin print -r that does the trick.
624       echo='print -r'
625     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626          test "X$CONFIG_SHELL" != X/bin/ksh; then
627       # If we have ksh, try running configure again with it.
628       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629       export ORIGINAL_CONFIG_SHELL
630       CONFIG_SHELL=/bin/ksh
631       export CONFIG_SHELL
632       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633     else
634       # Try using printf.
635       echo='printf %s\n'
636       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638          test "X$echo_testing_string" = "X$echo_test_string"; then
639         # Cool, printf works
640         :
641       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642            test "X$echo_testing_string" = 'X\t' &&
643            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644            test "X$echo_testing_string" = "X$echo_test_string"; then
645         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646         export CONFIG_SHELL
647         SHELL="$CONFIG_SHELL"
648         export SHELL
649         echo="$CONFIG_SHELL $0 --fallback-echo"
650       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651            test "X$echo_testing_string" = 'X\t' &&
652            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653            test "X$echo_testing_string" = "X$echo_test_string"; then
654         echo="$CONFIG_SHELL $0 --fallback-echo"
655       else
656         # maybe with a smaller string...
657         prev=:
658
659         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661           then
662             break
663           fi
664           prev="$cmd"
665         done
666
667         if test "$prev" != 'sed 50q "$0"'; then
668           echo_test_string=`eval $prev`
669           export echo_test_string
670           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671         else
672           # Oops.  We lost completely, so just stick with echo.
673           echo=echo
674         fi
675       fi
676     fi
677   fi
678 fi
679 fi
680
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 fi
687
688
689
690
691 tagnames=${tagnames+${tagnames},}CXX
692
693 tagnames=${tagnames+${tagnames},}F77
694
695 exec 7<&0 </dev/null 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
714
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='2.6svn'
719 PACKAGE_STRING='llvm 2.6svn'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
810 OS
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
817 CC
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
824 CPP
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 BUILD_CXX
831 CVSBUILD
832 ENABLE_OPTIMIZED
833 DISABLE_ASSERTIONS
834 ENABLE_EXPENSIVE_CHECKS
835 EXPENSIVE_CHECKS
836 DEBUG_RUNTIME
837 JIT
838 TARGET_HAS_JIT
839 ENABLE_DOXYGEN
840 ENABLE_THREADS
841 ENABLE_PIC
842 TARGETS_TO_BUILD
843 ENABLE_CBE_PRINTF_A
844 EXTRA_OPTIONS
845 BINUTILS_INCDIR
846 CXX
847 CXXFLAGS
848 ac_ct_CXX
849 NM
850 ifGNUmake
851 LN_S
852 CMP
853 CP
854 DATE
855 FIND
856 MKDIR
857 MV
858 RANLIB
859 RM
860 SED
861 TAR
862 BINPWD
863 GRAPHVIZ
864 DOT
865 GV
866 DOTTY
867 PERL
868 HAVE_PERL
869 INSTALL_PROGRAM
870 INSTALL_SCRIPT
871 INSTALL_DATA
872 BZIP2
873 DOXYGEN
874 GROFF
875 GZIP
876 POD2HTML
877 POD2MAN
878 RUNTEST
879 TCLSH
880 ZIP
881 OCAMLC
882 OCAMLOPT
883 OCAMLDEP
884 OCAMLDOC
885 GAS
886 INSTALL_LTDL_TRUE
887 INSTALL_LTDL_FALSE
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
890 LIBADD_DL
891 ECHO
892 AR
893 STRIP
894 CXXCPP
895 F77
896 FFLAGS
897 ac_ct_F77
898 LIBTOOL
899 LLVMGCC
900 LLVMGXX
901 USE_UDIS86
902 HAVE_PTHREAD
903 HUGE_VAL_SANITY
904 ALLOCA
905 MMAP_FILE
906 LLVMCC1
907 LLVMCC1PLUS
908 LLVMGCCDIR
909 LLVMGCCLIBEXEC
910 LLVMGCC_VERSION
911 LLVMGCC_MAJVERS
912 LLVMGCC_LANGS
913 SHLIBEXT
914 LLVM_PREFIX
915 LLVM_BINDIR
916 LLVM_LIBDIR
917 LLVM_DATADIR
918 LLVM_DOCSDIR
919 LLVM_ETCDIR
920 LLVM_INCLUDEDIR
921 LLVM_INFODIR
922 LLVM_MANDIR
923 LLVM_CONFIGTIME
924 BINDINGS_TO_BUILD
925 ALL_BINDINGS
926 OCAML_LIBDIR
927 ENABLE_VISIBILITY_INLINES_HIDDEN
928 RPATH
929 RDYNAMIC
930 LIBOBJS
931 LTLIBOBJS'
932 ac_subst_files=''
933       ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 CPPFLAGS
940 CPP
941 CXX
942 CXXFLAGS
943 CCC
944 CXXCPP
945 F77
946 FFLAGS'
947 ac_subdirs_all='projects/sample
948 projects/privbracket
949 projects/llvm-stacker
950 projects/llvm-test
951 projects/test-suite
952 projects/llvm-reopt
953 projects/llvm-gcc
954 projects/llvm-java
955 projects/llvm-tv
956 projects/llvm-poolalloc
957 projects/poolalloc
958 projects/llvm-kernel'
959
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
979
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1005
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1009 do
1010   # If the previous option needs an argument, assign it.
1011   if test -n "$ac_prev"; then
1012     eval $ac_prev=\$ac_option
1013     ac_prev=
1014     continue
1015   fi
1016
1017   case $ac_option in
1018   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019   *)    ac_optarg=yes ;;
1020   esac
1021
1022   # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024   case $ac_dashdash$ac_option in
1025   --)
1026     ac_dashdash=yes ;;
1027
1028   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029     ac_prev=bindir ;;
1030   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031     bindir=$ac_optarg ;;
1032
1033   -build | --build | --buil | --bui | --bu)
1034     ac_prev=build_alias ;;
1035   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036     build_alias=$ac_optarg ;;
1037
1038   -cache-file | --cache-file | --cache-fil | --cache-fi \
1039   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040     ac_prev=cache_file ;;
1041   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043     cache_file=$ac_optarg ;;
1044
1045   --config-cache | -C)
1046     cache_file=config.cache ;;
1047
1048   -datadir | --datadir | --datadi | --datad)
1049     ac_prev=datadir ;;
1050   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051     datadir=$ac_optarg ;;
1052
1053   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054   | --dataroo | --dataro | --datar)
1055     ac_prev=datarootdir ;;
1056   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058     datarootdir=$ac_optarg ;;
1059
1060   -disable-* | --disable-*)
1061     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062     # Reject names that are not valid shell variable names.
1063     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1064       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065    { (exit 1); exit 1; }; }
1066     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1067     eval enable_$ac_feature=no ;;
1068
1069   -docdir | --docdir | --docdi | --doc | --do)
1070     ac_prev=docdir ;;
1071   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072     docdir=$ac_optarg ;;
1073
1074   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075     ac_prev=dvidir ;;
1076   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077     dvidir=$ac_optarg ;;
1078
1079   -enable-* | --enable-*)
1080     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084    { (exit 1); exit 1; }; }
1085     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086     eval enable_$ac_feature=\$ac_optarg ;;
1087
1088   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090   | --exec | --exe | --ex)
1091     ac_prev=exec_prefix ;;
1092   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094   | --exec=* | --exe=* | --ex=*)
1095     exec_prefix=$ac_optarg ;;
1096
1097   -gas | --gas | --ga | --g)
1098     # Obsolete; use --with-gas.
1099     with_gas=yes ;;
1100
1101   -help | --help | --hel | --he | -h)
1102     ac_init_help=long ;;
1103   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104     ac_init_help=recursive ;;
1105   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106     ac_init_help=short ;;
1107
1108   -host | --host | --hos | --ho)
1109     ac_prev=host_alias ;;
1110   -host=* | --host=* | --hos=* | --ho=*)
1111     host_alias=$ac_optarg ;;
1112
1113   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114     ac_prev=htmldir ;;
1115   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116   | --ht=*)
1117     htmldir=$ac_optarg ;;
1118
1119   -includedir | --includedir | --includedi | --included | --include \
1120   | --includ | --inclu | --incl | --inc)
1121     ac_prev=includedir ;;
1122   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123   | --includ=* | --inclu=* | --incl=* | --inc=*)
1124     includedir=$ac_optarg ;;
1125
1126   -infodir | --infodir | --infodi | --infod | --info | --inf)
1127     ac_prev=infodir ;;
1128   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129     infodir=$ac_optarg ;;
1130
1131   -libdir | --libdir | --libdi | --libd)
1132     ac_prev=libdir ;;
1133   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134     libdir=$ac_optarg ;;
1135
1136   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137   | --libexe | --libex | --libe)
1138     ac_prev=libexecdir ;;
1139   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140   | --libexe=* | --libex=* | --libe=*)
1141     libexecdir=$ac_optarg ;;
1142
1143   -localedir | --localedir | --localedi | --localed | --locale)
1144     ac_prev=localedir ;;
1145   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146     localedir=$ac_optarg ;;
1147
1148   -localstatedir | --localstatedir | --localstatedi | --localstated \
1149   | --localstate | --localstat | --localsta | --localst | --locals)
1150     ac_prev=localstatedir ;;
1151   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153     localstatedir=$ac_optarg ;;
1154
1155   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156     ac_prev=mandir ;;
1157   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158     mandir=$ac_optarg ;;
1159
1160   -nfp | --nfp | --nf)
1161     # Obsolete; use --without-fp.
1162     with_fp=no ;;
1163
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n)
1166     no_create=yes ;;
1167
1168   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170     no_recursion=yes ;;
1171
1172   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174   | --oldin | --oldi | --old | --ol | --o)
1175     ac_prev=oldincludedir ;;
1176   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179     oldincludedir=$ac_optarg ;;
1180
1181   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182     ac_prev=prefix ;;
1183   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184     prefix=$ac_optarg ;;
1185
1186   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187   | --program-pre | --program-pr | --program-p)
1188     ac_prev=program_prefix ;;
1189   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191     program_prefix=$ac_optarg ;;
1192
1193   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194   | --program-suf | --program-su | --program-s)
1195     ac_prev=program_suffix ;;
1196   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198     program_suffix=$ac_optarg ;;
1199
1200   -program-transform-name | --program-transform-name \
1201   | --program-transform-nam | --program-transform-na \
1202   | --program-transform-n | --program-transform- \
1203   | --program-transform | --program-transfor \
1204   | --program-transfo | --program-transf \
1205   | --program-trans | --program-tran \
1206   | --progr-tra | --program-tr | --program-t)
1207     ac_prev=program_transform_name ;;
1208   -program-transform-name=* | --program-transform-name=* \
1209   | --program-transform-nam=* | --program-transform-na=* \
1210   | --program-transform-n=* | --program-transform-=* \
1211   | --program-transform=* | --program-transfor=* \
1212   | --program-transfo=* | --program-transf=* \
1213   | --program-trans=* | --program-tran=* \
1214   | --progr-tra=* | --program-tr=* | --program-t=*)
1215     program_transform_name=$ac_optarg ;;
1216
1217   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218     ac_prev=pdfdir ;;
1219   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220     pdfdir=$ac_optarg ;;
1221
1222   -psdir | --psdir | --psdi | --psd | --ps)
1223     ac_prev=psdir ;;
1224   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225     psdir=$ac_optarg ;;
1226
1227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228   | -silent | --silent | --silen | --sile | --sil)
1229     silent=yes ;;
1230
1231   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232     ac_prev=sbindir ;;
1233   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234   | --sbi=* | --sb=*)
1235     sbindir=$ac_optarg ;;
1236
1237   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239   | --sharedst | --shareds | --shared | --share | --shar \
1240   | --sha | --sh)
1241     ac_prev=sharedstatedir ;;
1242   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245   | --sha=* | --sh=*)
1246     sharedstatedir=$ac_optarg ;;
1247
1248   -site | --site | --sit)
1249     ac_prev=site ;;
1250   -site=* | --site=* | --sit=*)
1251     site=$ac_optarg ;;
1252
1253   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254     ac_prev=srcdir ;;
1255   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256     srcdir=$ac_optarg ;;
1257
1258   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259   | --syscon | --sysco | --sysc | --sys | --sy)
1260     ac_prev=sysconfdir ;;
1261   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263     sysconfdir=$ac_optarg ;;
1264
1265   -target | --target | --targe | --targ | --tar | --ta | --t)
1266     ac_prev=target_alias ;;
1267   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268     target_alias=$ac_optarg ;;
1269
1270   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271     verbose=yes ;;
1272
1273   -version | --version | --versio | --versi | --vers | -V)
1274     ac_init_version=: ;;
1275
1276   -with-* | --with-*)
1277     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid package name: $ac_package" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_package=`echo $ac_package| sed 's/-/_/g'`
1283     eval with_$ac_package=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1289       { echo "$as_me: error: invalid package name: $ac_package" >&2
1290    { (exit 1); exit 1; }; }
1291     ac_package=`echo $ac_package | sed 's/-/_/g'`
1292     eval with_$ac_package=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) { echo "$as_me: error: unrecognized option: $ac_option
1313 Try \`$0 --help' for more information." >&2
1314    { (exit 1); exit 1; }; }
1315     ;;
1316
1317   *=*)
1318     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322    { (exit 1); exit 1; }; }
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   { echo "$as_me: error: missing argument to $ac_option" >&2
1340    { (exit 1); exit 1; }; }
1341 fi
1342
1343 # Be sure to have absolute directory names.
1344 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345                 datadir sysconfdir sharedstatedir localstatedir includedir \
1346                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347                 libdir localedir mandir
1348 do
1349   eval ac_val=\$$ac_var
1350   case $ac_val in
1351     [\\/$]* | ?:[\\/]* )  continue;;
1352     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353   esac
1354   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355    { (exit 1); exit 1; }; }
1356 done
1357
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1364
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367   if test "x$build_alias" = x; then
1368     cross_compiling=maybe
1369     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370     If a cross compiler is detected then cross compile mode will be used." >&2
1371   elif test "x$build_alias" != "x$host_alias"; then
1372     cross_compiling=yes
1373   fi
1374 fi
1375
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379 test "$silent" = yes && exec 6>/dev/null
1380
1381
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385   { echo "$as_me: error: Working directory cannot be determined" >&2
1386    { (exit 1); exit 1; }; }
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388   { echo "$as_me: error: pwd does not report name of working directory" >&2
1389    { (exit 1); exit 1; }; }
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394   ac_srcdir_defaulted=yes
1395   # Try the directory containing this script, then the parent directory.
1396   ac_confdir=`$as_dirname -- "$0" ||
1397 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398          X"$0" : 'X\(//\)[^/]' \| \
1399          X"$0" : 'X\(//\)$' \| \
1400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401 echo X"$0" |
1402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\/\)[^/].*/{
1407             s//\1/
1408             q
1409           }
1410           /^X\(\/\/\)$/{
1411             s//\1/
1412             q
1413           }
1414           /^X\(\/\).*/{
1415             s//\1/
1416             q
1417           }
1418           s/.*/./; q'`
1419   srcdir=$ac_confdir
1420   if test ! -r "$srcdir/$ac_unique_file"; then
1421     srcdir=..
1422   fi
1423 else
1424   ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1434    { (exit 1); exit 1; }; }
1435         pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438   srcdir=.
1439 fi
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_env_${ac_var}_value=\$${ac_var}
1449   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1452
1453 #
1454 # Report the --help message.
1455 #
1456 if test "$ac_init_help" = "long"; then
1457   # Omit some internal or obsolete options to make the list less imposing.
1458   # This message is too long to be a string in the A/UX 3.1 sh.
1459   cat <<_ACEOF
1460 \`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1461
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467 Defaults for the options are specified in brackets.
1468
1469 Configuration:
1470   -h, --help              display this help and exit
1471       --help=short        display options specific to this package
1472       --help=recursive    display the short help of all the included packages
1473   -V, --version           display version information and exit
1474   -q, --quiet, --silent   do not print \`checking...' messages
1475       --cache-file=FILE   cache test results in FILE [disabled]
1476   -C, --config-cache      alias for \`--cache-file=config.cache'
1477   -n, --no-create         do not create output files
1478       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480 Installation directories:
1481   --prefix=PREFIX         install architecture-independent files in PREFIX
1482                           [$ac_default_prefix]
1483   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484                           [PREFIX]
1485
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1490
1491 For better control, use the options below.
1492
1493 Fine tuning of the installation directories:
1494   --bindir=DIR           user executables [EPREFIX/bin]
1495   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1496   --libexecdir=DIR       program executables [EPREFIX/libexec]
1497   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1498   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1499   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1500   --libdir=DIR           object code libraries [EPREFIX/lib]
1501   --includedir=DIR       C header files [PREFIX/include]
1502   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1503   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1504   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1505   --infodir=DIR          info documentation [DATAROOTDIR/info]
1506   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1507   --mandir=DIR           man documentation [DATAROOTDIR/man]
1508   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1509   --htmldir=DIR          html documentation [DOCDIR]
1510   --dvidir=DIR           dvi documentation [DOCDIR]
1511   --pdfdir=DIR           pdf documentation [DOCDIR]
1512   --psdir=DIR            ps documentation [DOCDIR]
1513 _ACEOF
1514
1515   cat <<\_ACEOF
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520   --target=TARGET   configure for building compilers for TARGET [HOST]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525   case $ac_init_help in
1526      short | recursive ) echo "Configuration of llvm 2.6svn:";;
1527    esac
1528   cat <<\_ACEOF
1529
1530 Optional Features:
1531   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1532   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1533   --enable-optimized
1534   --enable-assertions
1535   --enable-expensive-checks
1536
1537   --enable-debug-runtime
1538   --enable-jit            Enable Just In Time Compiling (default is YES)
1539   --enable-doxygen        Build doxygen documentation (default is NO)
1540   --enable-threads        Use threads if available (default is YES)
1541   --enable-pic            Build LLVM with Position Independent Code (default
1542                           is YES)
1543   --enable-targets        Build specific host targets:
1544                           all,host-only,{target-name} (default=all)
1545   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1546                           %a (default is YES)
1547   --enable-bindings       Build specific language bindings:
1548                           all,auto,none,{binding-name} (default=auto)
1549   --enable-ltdl-install   install libltdl
1550   --enable-shared[=PKGS]  build shared libraries
1551                           [default=yes]
1552   --enable-static[=PKGS]  build static libraries
1553                           [default=yes]
1554   --enable-fast-install[=PKGS]
1555                           optimize for fast installation
1556                           [default=yes]
1557   --disable-libtool-lock  avoid locking (might break parallel builds)
1558
1559 Optional Packages:
1560   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1563                           searches PATH)
1564   --with-llvmgcc          Specify location of llvm-gcc driver (default
1565                           searches PATH)
1566   --with-llvmgxx          Specify location of llvm-g++ driver (default
1567                           searches PATH)
1568   --with-extra-options    Specify addtional options to compile LLVM with
1569   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1570                           is stdlib)
1571   --with-binutils-include Specify path to binutils/include/ containing
1572                           plugin-api.h file for gold plugin.
1573   --with-tclinclude       directory where tcl headers are
1574   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1575   --with-pic              try to use only PIC/non-PIC objects [default=use
1576                           both]
1577   --with-tags[=TAGS]      include additional configurations [automatic]
1578   --with-udis86=<path>    Use udis86 external x86 disassembler library
1579
1580 Some influential environment variables:
1581   CC          C compiler command
1582   CFLAGS      C compiler flags
1583   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1584               nonstandard directory <lib dir>
1585   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586               you have headers in a nonstandard directory <include dir>
1587   CPP         C preprocessor
1588   CXX         C++ compiler command
1589   CXXFLAGS    C++ compiler flags
1590   CXXCPP      C++ preprocessor
1591   F77         Fortran 77 compiler command
1592   FFLAGS      Fortran 77 compiler flags
1593
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1596
1597 Report bugs to <llvmbugs@cs.uiuc.edu>.
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if test "$ac_init_help" = "recursive"; then
1603   # If there are subdirs, report their specific --help.
1604   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605     test -d "$ac_dir" || continue
1606     ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612   # A ".." for each directory in $ac_dir_suffix.
1613   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614   case $ac_top_builddir_sub in
1615   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617   esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625   .)  # We are building in place.
1626     ac_srcdir=.
1627     ac_top_srcdir=$ac_top_builddir_sub
1628     ac_abs_top_srcdir=$ac_pwd ;;
1629   [\\/]* | ?:[\\/]* )  # Absolute name.
1630     ac_srcdir=$srcdir$ac_dir_suffix;
1631     ac_top_srcdir=$srcdir
1632     ac_abs_top_srcdir=$srcdir ;;
1633   *) # Relative name.
1634     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635     ac_top_srcdir=$ac_top_build_prefix$srcdir
1636     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640     cd "$ac_dir" || { ac_status=$?; continue; }
1641     # Check for guested configure.
1642     if test -f "$ac_srcdir/configure.gnu"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645     elif test -f "$ac_srcdir/configure"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure" --help=recursive
1648     else
1649       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650     fi || ac_status=$?
1651     cd "$ac_pwd" || { ac_status=$?; break; }
1652   done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657   cat <<\_ACEOF
1658 llvm configure 2.6svn
1659 generated by GNU Autoconf 2.60
1660
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665
1666 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1667 _ACEOF
1668   exit
1669 fi
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1673
1674 It was created by llvm $as_me 2.6svn, which was
1675 generated by GNU Autoconf 2.60.  Invocation command line was
1676
1677   $ $0 $@
1678
1679 _ACEOF
1680 exec 5>>config.log
1681 {
1682 cat <<_ASUNAME
1683 ## --------- ##
1684 ## Platform. ##
1685 ## --------- ##
1686
1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692
1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1695
1696 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1697 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1700 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1701 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1702 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1703
1704 _ASUNAME
1705
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   echo "PATH: $as_dir"
1712 done
1713 IFS=$as_save_IFS
1714
1715 } >&5
1716
1717 cat >&5 <<_ACEOF
1718
1719
1720 ## ----------- ##
1721 ## Core tests. ##
1722 ## ----------- ##
1723
1724 _ACEOF
1725
1726
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1732 ac_configure_args=
1733 ac_configure_args0=
1734 ac_configure_args1=
1735 ac_must_keep_next=false
1736 for ac_pass in 1 2
1737 do
1738   for ac_arg
1739   do
1740     case $ac_arg in
1741     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743     | -silent | --silent | --silen | --sile | --sil)
1744       continue ;;
1745     *\'*)
1746       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747     esac
1748     case $ac_pass in
1749     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750     2)
1751       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752       if test $ac_must_keep_next = true; then
1753         ac_must_keep_next=false # Got value, back to normal.
1754       else
1755         case $ac_arg in
1756           *=* | --config-cache | -C | -disable-* | --disable-* \
1757           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759           | -with-* | --with-* | -without-* | --without-* | --x)
1760             case "$ac_configure_args0 " in
1761               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762             esac
1763             ;;
1764           -* ) ac_must_keep_next=true ;;
1765         esac
1766       fi
1767       ac_configure_args="$ac_configure_args '$ac_arg'"
1768       ;;
1769     esac
1770   done
1771 done
1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1774
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log.  We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781   # Save into config.log some information that might help in debugging.
1782   {
1783     echo
1784
1785     cat <<\_ASBOX
1786 ## ---------------- ##
1787 ## Cache variables. ##
1788 ## ---------------- ##
1789 _ASBOX
1790     echo
1791     # The following way of writing the cache mishandles newlines in values,
1792 (
1793   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794     eval ac_val=\$$ac_var
1795     case $ac_val in #(
1796     *${as_nl}*)
1797       case $ac_var in #(
1798       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800       esac
1801       case $ac_var in #(
1802       _ | IFS | as_nl) ;; #(
1803       *) $as_unset $ac_var ;;
1804       esac ;;
1805     esac
1806   done
1807   (set) 2>&1 |
1808     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809     *${as_nl}ac_space=\ *)
1810       sed -n \
1811         "s/'\''/'\''\\\\'\'''\''/g;
1812           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813       ;; #(
1814     *)
1815       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816       ;;
1817     esac |
1818     sort
1819 )
1820     echo
1821
1822     cat <<\_ASBOX
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1826 _ASBOX
1827     echo
1828     for ac_var in $ac_subst_vars
1829     do
1830       eval ac_val=\$$ac_var
1831       case $ac_val in
1832       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833       esac
1834       echo "$ac_var='\''$ac_val'\''"
1835     done | sort
1836     echo
1837
1838     if test -n "$ac_subst_files"; then
1839       cat <<\_ASBOX
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1843 _ASBOX
1844       echo
1845       for ac_var in $ac_subst_files
1846       do
1847         eval ac_val=\$$ac_var
1848         case $ac_val in
1849         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850         esac
1851         echo "$ac_var='\''$ac_val'\''"
1852       done | sort
1853       echo
1854     fi
1855
1856     if test -s confdefs.h; then
1857       cat <<\_ASBOX
1858 ## ----------- ##
1859 ## confdefs.h. ##
1860 ## ----------- ##
1861 _ASBOX
1862       echo
1863       cat confdefs.h
1864       echo
1865     fi
1866     test "$ac_signal" != 0 &&
1867       echo "$as_me: caught signal $ac_signal"
1868     echo "$as_me: exit $exit_status"
1869   } >&5
1870   rm -f core *.core core.conftest.* &&
1871     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872     exit $exit_status
1873 ' 0
1874 for ac_signal in 1 2 13 15; do
1875   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 done
1877 ac_signal=0
1878
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1881
1882 # Predefined preprocessor variables.
1883
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 _ACEOF
1907
1908
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer explicitly selected file to automatically selected ones.
1911 if test -n "$CONFIG_SITE"; then
1912   set x "$CONFIG_SITE"
1913 elif test "x$prefix" != xNONE; then
1914   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915 else
1916   set x "$ac_default_prefix/share/config.site" \
1917         "$ac_default_prefix/etc/config.site"
1918 fi
1919 shift
1920 for ac_site_file
1921 do
1922   if test -r "$ac_site_file"; then
1923     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924 echo "$as_me: loading site script $ac_site_file" >&6;}
1925     sed 's/^/| /' "$ac_site_file" >&5
1926     . "$ac_site_file"
1927   fi
1928 done
1929
1930 if test -r "$cache_file"; then
1931   # Some versions of bash will fail to source /dev/null (special
1932   # files actually), so we avoid doing that.
1933   if test -f "$cache_file"; then
1934     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935 echo "$as_me: loading cache $cache_file" >&6;}
1936     case $cache_file in
1937       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938       *)                      . "./$cache_file";;
1939     esac
1940   fi
1941 else
1942   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943 echo "$as_me: creating cache $cache_file" >&6;}
1944   >$cache_file
1945 fi
1946
1947 # Check that the precious variables saved in the cache have kept the same
1948 # value.
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952   eval ac_new_set=\$ac_env_${ac_var}_set
1953   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954   eval ac_new_val=\$ac_env_${ac_var}_value
1955   case $ac_old_set,$ac_new_set in
1956     set,)
1957       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959       ac_cache_corrupted=: ;;
1960     ,set)
1961       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963       ac_cache_corrupted=: ;;
1964     ,);;
1965     *)
1966       if test "x$ac_old_val" != "x$ac_new_val"; then
1967         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1970 echo "$as_me:   former value:  $ac_old_val" >&2;}
1971         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1972 echo "$as_me:   current value: $ac_new_val" >&2;}
1973         ac_cache_corrupted=:
1974       fi;;
1975   esac
1976   # Pass precious variables to config.status.
1977   if test "$ac_new_set" = set; then
1978     case $ac_new_val in
1979     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980     *) ac_arg=$ac_var=$ac_new_val ;;
1981     esac
1982     case " $ac_configure_args " in
1983       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1984       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985     esac
1986   fi
1987 done
1988 if $ac_cache_corrupted; then
1989   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993    { (exit 1); exit 1; }; }
1994 fi
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020 ac_ext=c
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025
2026
2027
2028 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2029
2030
2031
2032
2033
2034
2035
2036 ac_aux_dir=
2037 for ac_dir in autoconf "$srcdir"/autoconf; do
2038   if test -f "$ac_dir/install-sh"; then
2039     ac_aux_dir=$ac_dir
2040     ac_install_sh="$ac_aux_dir/install-sh -c"
2041     break
2042   elif test -f "$ac_dir/install.sh"; then
2043     ac_aux_dir=$ac_dir
2044     ac_install_sh="$ac_aux_dir/install.sh -c"
2045     break
2046   elif test -f "$ac_dir/shtool"; then
2047     ac_aux_dir=$ac_dir
2048     ac_install_sh="$ac_aux_dir/shtool install -c"
2049     break
2050   fi
2051 done
2052 if test -z "$ac_aux_dir"; then
2053   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2055    { (exit 1); exit 1; }; }
2056 fi
2057
2058 # These three variables are undocumented and unsupported,
2059 # and are intended to be withdrawn in a future Autoconf release.
2060 # They can cause serious problems if a builder's source tree is in a directory
2061 # whose full name contains unusual characters.
2062 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2063 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2064 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2065
2066
2067
2068 if test ${srcdir} != "." ; then
2069   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2071 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072    { (exit 1); exit 1; }; }
2073   fi
2074 fi
2075
2076 for i in `ls ${srcdir}/projects`
2077 do
2078   if test -d ${srcdir}/projects/${i} ; then
2079     case ${i} in
2080       CVS) ;;
2081       sample)       subdirs="$subdirs projects/sample"
2082     ;;
2083       privbracket)  subdirs="$subdirs projects/privbracket"
2084  ;;
2085       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2086  ;;
2087       # llvm-test is the old name of the test-suite, kept here for backwards
2088       # compatibility
2089       llvm-test)    subdirs="$subdirs projects/llvm-test"
2090  ;;
2091       test-suite)   subdirs="$subdirs projects/test-suite"
2092  ;;
2093       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2094 ;;
2095       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2096   ;;
2097       llvm-java)    subdirs="$subdirs projects/llvm-java"
2098  ;;
2099       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2100    ;;
2101       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2102  ;;
2103       poolalloc)    subdirs="$subdirs projects/poolalloc"
2104  ;;
2105       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2106  ;;
2107       *)
2108         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2110         ;;
2111     esac
2112   fi
2113 done
2114
2115
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120    { (exit 1); exit 1; }; }
2121
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133    { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137    { (exit 1); exit 1; }; }
2138
2139 fi
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2143 *-*-*) ;;
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146    { (exit 1); exit 1; }; };;
2147 esac
2148 build=$ac_cv_build
2149 ac_save_IFS=$IFS; IFS='-'
2150 set x $ac_cv_build
2151 shift
2152 build_cpu=$1
2153 build_vendor=$2
2154 shift; shift
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2157 build_os=$*
2158 IFS=$ac_save_IFS
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2160
2161
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   if test "x$host_alias" = x; then
2168   ac_cv_host=$ac_cv_build
2169 else
2170   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176 fi
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2179 case $ac_cv_host in
2180 *-*-*) ;;
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183    { (exit 1); exit 1; }; };;
2184 esac
2185 host=$ac_cv_host
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_host
2188 shift
2189 host_cpu=$1
2190 host_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 host_os=$*
2195 IFS=$ac_save_IFS
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197
2198
2199 { echo "$as_me:$LINENO: checking target system type" >&5
2200 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2201 if test "${ac_cv_target+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   if test "x$target_alias" = x; then
2205   ac_cv_target=$ac_cv_host
2206 else
2207   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2210    { (exit 1); exit 1; }; }
2211 fi
2212
2213 fi
2214 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215 echo "${ECHO_T}$ac_cv_target" >&6; }
2216 case $ac_cv_target in
2217 *-*-*) ;;
2218 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219 echo "$as_me: error: invalid value of canonical target" >&2;}
2220    { (exit 1); exit 1; }; };;
2221 esac
2222 target=$ac_cv_target
2223 ac_save_IFS=$IFS; IFS='-'
2224 set x $ac_cv_target
2225 shift
2226 target_cpu=$1
2227 target_vendor=$2
2228 shift; shift
2229 # Remember, the first character of IFS is used to create $*,
2230 # except with old shells:
2231 target_os=$*
2232 IFS=$ac_save_IFS
2233 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2234
2235
2236 # The aliases save the names the user supplied, while $host etc.
2237 # will get canonicalized.
2238 test -n "$target_alias" &&
2239   test "$program_prefix$program_suffix$program_transform_name" = \
2240     NONENONEs,x,x, &&
2241   program_prefix=${target_alias}-
2242
2243 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2245 if test "${llvm_cv_os_type+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   case $host in
2249   *-*-aix*)
2250     llvm_cv_link_all_option="-Wl,--whole-archive"
2251     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252     llvm_cv_os_type="AIX"
2253     llvm_cv_platform_type="Unix" ;;
2254   *-*-irix*)
2255     llvm_cv_link_all_option="-Wl,--whole-archive"
2256     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257     llvm_cv_os_type="IRIX"
2258     llvm_cv_platform_type="Unix" ;;
2259   *-*-cygwin*)
2260     llvm_cv_link_all_option="-Wl,--whole-archive"
2261     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262     llvm_cv_os_type="Cygwin"
2263     llvm_cv_platform_type="Unix" ;;
2264   *-*-darwin*)
2265     llvm_cv_link_all_option="-Wl,-all_load"
2266     llvm_cv_no_link_all_option="-Wl,-noall_load"
2267     llvm_cv_os_type="Darwin"
2268     llvm_cv_platform_type="Unix" ;;
2269   *-*-freebsd*)
2270     llvm_cv_link_all_option="-Wl,--whole-archive"
2271     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272     llvm_cv_os_type="FreeBSD"
2273     llvm_cv_platform_type="Unix" ;;
2274   *-*-openbsd*)
2275     llvm_cv_link_all_option="-Wl,--whole-archive"
2276     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277     llvm_cv_os_type="OpenBSD"
2278     llvm_cv_platform_type="Unix" ;;
2279   *-*-netbsd*)
2280     llvm_cv_link_all_option="-Wl,--whole-archive"
2281     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282     llvm_cv_os_type="NetBSD"
2283     llvm_cv_platform_type="Unix" ;;
2284   *-*-dragonfly*)
2285     llvm_cv_link_all_option="-Wl,--whole-archive"
2286     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287     llvm_cv_os_type="DragonFly"
2288     llvm_cv_platform_type="Unix" ;;
2289   *-*-hpux*)
2290     llvm_cv_link_all_option="-Wl,--whole-archive"
2291     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292     llvm_cv_os_type="HP-UX"
2293     llvm_cv_platform_type="Unix" ;;
2294   *-*-interix*)
2295     llvm_cv_link_all_option="-Wl,--whole-archive"
2296     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297     llvm_cv_os_type="Interix"
2298     llvm_cv_platform_type="Unix" ;;
2299   *-*-linux*)
2300     llvm_cv_link_all_option="-Wl,--whole-archive"
2301     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2302     llvm_cv_os_type="Linux"
2303     llvm_cv_platform_type="Unix" ;;
2304   *-*-solaris*)
2305     llvm_cv_link_all_option="-Wl,-z,allextract"
2306     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2307     llvm_cv_os_type="SunOS"
2308     llvm_cv_platform_type="Unix" ;;
2309   *-*-win32*)
2310     llvm_cv_link_all_option="-Wl,--whole-archive"
2311     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2312     llvm_cv_os_type="Win32"
2313     llvm_cv_platform_type="Win32" ;;
2314   *-*-mingw*)
2315     llvm_cv_link_all_option="-Wl,--whole-archive"
2316     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2317     llvm_cv_os_type="MingW"
2318     llvm_cv_platform_type="Win32" ;;
2319   *)
2320     llvm_cv_link_all_option=""
2321     llvm_cv_no_link_all_option=""
2322     llvm_cv_os_type="Unknown"
2323     llvm_cv_platform_type="Unknown" ;;
2324 esac
2325 fi
2326 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2327 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2328
2329 if test "$llvm_cv_os_type" = "Unknown" ; then
2330   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2331 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2332    { (exit 1); exit 1; }; }
2333 fi
2334
2335 OS=$llvm_cv_os_type
2336
2337
2338 LINKALL=$llvm_cv_link_all_option
2339
2340 NOLINKALL=$llvm_cv_no_link_all_option
2341
2342
2343 case $llvm_cv_platform_type in
2344   Unix)
2345
2346 cat >>confdefs.h <<\_ACEOF
2347 #define LLVM_ON_UNIX 1
2348 _ACEOF
2349
2350     LLVM_ON_UNIX=1
2351
2352     LLVM_ON_WIN32=0
2353
2354     ;;
2355   Win32)
2356
2357 cat >>confdefs.h <<\_ACEOF
2358 #define LLVM_ON_WIN32 1
2359 _ACEOF
2360
2361     LLVM_ON_UNIX=0
2362
2363     LLVM_ON_WIN32=1
2364
2365     ;;
2366 esac
2367
2368 { echo "$as_me:$LINENO: checking target architecture" >&5
2369 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2370 if test "${llvm_cv_target_arch+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   case $target in
2374   i?86-*)                 llvm_cv_target_arch="x86" ;;
2375   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2376   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2377   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2378   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2379   ia64-*)                 llvm_cv_target_arch="IA64" ;;
2380   arm-*)                  llvm_cv_target_arch="ARM" ;;
2381   mips-*)                 llvm_cv_target_arch="Mips" ;;
2382   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2383   xcore-*)                llvm_cv_target_arch="XCore" ;;
2384   *)                      llvm_cv_target_arch="Unknown" ;;
2385 esac
2386 fi
2387 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2389
2390 if test "$llvm_cv_target_arch" = "Unknown" ; then
2391   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2393 fi
2394
2395 ARCH=$llvm_cv_target_arch
2396
2397
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 if test -n "$ac_tool_prefix"; then
2404   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$CC"; then
2412   ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419   for ac_exec_ext in '' $ac_executable_extensions; do
2420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2421     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423     break 2
2424   fi
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430 fi
2431 CC=$ac_cv_prog_CC
2432 if test -n "$CC"; then
2433   { echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6; }
2435 else
2436   { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2438 fi
2439
2440
2441 fi
2442 if test -z "$ac_cv_prog_CC"; then
2443   ac_ct_CC=$CC
2444   # Extract the first word of "gcc", so it can be a program name with args.
2445 set dummy gcc; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   if test -n "$ac_ct_CC"; then
2452   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2461     ac_cv_prog_ac_ct_CC="gcc"
2462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463     break 2
2464   fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472 if test -n "$ac_ct_CC"; then
2473   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474 echo "${ECHO_T}$ac_ct_CC" >&6; }
2475 else
2476   { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2478 fi
2479
2480   if test "x$ac_ct_CC" = x; then
2481     CC=""
2482   else
2483     case $cross_compiling:$ac_tool_warned in
2484 yes:)
2485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486 whose name does not start with the host triplet.  If you think this
2487 configuration is useful to you, please write to autoconf@gnu.org." >&5
2488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489 whose name does not start with the host triplet.  If you think this
2490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491 ac_tool_warned=yes ;;
2492 esac
2493     CC=$ac_ct_CC
2494   fi
2495 else
2496   CC="$ac_cv_prog_CC"
2497 fi
2498
2499 if test -z "$CC"; then
2500           if test -n "$ac_tool_prefix"; then
2501     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2502 set dummy ${ac_tool_prefix}cc; ac_word=$2
2503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 if test "${ac_cv_prog_CC+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test -n "$CC"; then
2509   ac_cv_prog_CC="$CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   for ac_exec_ext in '' $ac_executable_extensions; do
2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2518     ac_cv_prog_CC="${ac_tool_prefix}cc"
2519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 CC=$ac_cv_prog_CC
2529 if test -n "$CC"; then
2530   { echo "$as_me:$LINENO: result: $CC" >&5
2531 echo "${ECHO_T}$CC" >&6; }
2532 else
2533   { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2535 fi
2536
2537
2538   fi
2539 fi
2540 if test -z "$CC"; then
2541   # Extract the first word of "cc", so it can be a program name with args.
2542 set dummy cc; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546   echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548   if test -n "$CC"; then
2549   ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551   ac_prog_rejected=no
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560        ac_prog_rejected=yes
2561        continue
2562      fi
2563     ac_cv_prog_CC="cc"
2564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 if test $ac_prog_rejected = yes; then
2572   # We found a bogon in the path, so make sure we never use it.
2573   set dummy $ac_cv_prog_CC
2574   shift
2575   if test $# != 0; then
2576     # We chose a different compiler from the bogus one.
2577     # However, it has the same basename, so the bogon will be chosen
2578     # first if we set CC to just the basename; use the full file name.
2579     shift
2580     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581   fi
2582 fi
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590   { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$CC"; then
2597   if test -n "$ac_tool_prefix"; then
2598   for ac_prog in cl.exe
2599   do
2600     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$CC"; then
2608   ac_cv_prog_CC="$CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 CC=$ac_cv_prog_CC
2628 if test -n "$CC"; then
2629   { echo "$as_me:$LINENO: result: $CC" >&5
2630 echo "${ECHO_T}$CC" >&6; }
2631 else
2632   { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2634 fi
2635
2636
2637     test -n "$CC" && break
2638   done
2639 fi
2640 if test -z "$CC"; then
2641   ac_ct_CC=$CC
2642   for ac_prog in cl.exe
2643 do
2644   # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   if test -n "$ac_ct_CC"; then
2652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2661     ac_cv_prog_ac_ct_CC="$ac_prog"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672 if test -n "$ac_ct_CC"; then
2673   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674 echo "${ECHO_T}$ac_ct_CC" >&6; }
2675 else
2676   { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678 fi
2679
2680
2681   test -n "$ac_ct_CC" && break
2682 done
2683
2684   if test "x$ac_ct_CC" = x; then
2685     CC=""
2686   else
2687     case $cross_compiling:$ac_tool_warned in
2688 yes:)
2689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet.  If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&5
2692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet.  If you think this
2694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697     CC=$ac_ct_CC
2698   fi
2699 fi
2700
2701 fi
2702
2703
2704 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." >&2;}
2708    { (exit 1); exit 1; }; }
2709
2710 # Provide some information about the compiler.
2711 echo "$as_me:$LINENO: checking for C compiler version" >&5
2712 ac_compiler=`set X $ac_compile; echo $2`
2713 { (ac_try="$ac_compiler --version >&5"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_compiler --version >&5") 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }
2723 { (ac_try="$ac_compiler -v >&5"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_compiler -v >&5") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }
2733 { (ac_try="$ac_compiler -V >&5"
2734 case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_compiler -V >&5") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }
2743
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h.  */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h.  */
2750
2751 int
2752 main ()
2753 {
2754
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 ac_clean_files_save=$ac_clean_files
2760 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2761 # Try to create an executable without -o first, disregard a.out.
2762 # It will help us diagnose broken compilers, and finding out an intuition
2763 # of exeext.
2764 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2766 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767 #
2768 # List of possible output files, starting from the most likely.
2769 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770 # only as a last resort.  b.out is created by i960 compilers.
2771 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772 #
2773 # The IRIX 6 linker writes into existing files which may not be
2774 # executable, retaining their permissions.  Remove them first so a
2775 # subsequent execution test works.
2776 ac_rmfiles=
2777 for ac_file in $ac_files
2778 do
2779   case $ac_file in
2780     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782   esac
2783 done
2784 rm -f $ac_rmfiles
2785
2786 if { (ac_try="$ac_link_default"
2787 case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_link_default") 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; then
2796   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2799 # so that the user can short-circuit this test for compilers unknown to
2800 # Autoconf.
2801 for ac_file in $ac_files
2802 do
2803   test -f "$ac_file" || continue
2804   case $ac_file in
2805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2806         ;;
2807     [ab].out )
2808         # We found the default executable, but exeext='' is most
2809         # certainly right.
2810         break;;
2811     *.* )
2812         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813         then :; else
2814            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815         fi
2816         # We set ac_cv_exeext here because the later test for it is not
2817         # safe: cross compilers may not add the suffix if given an `-o'
2818         # argument, so we may need to know it at that point already.
2819         # Even if this section looks crufty: it has the advantage of
2820         # actually working.
2821         break;;
2822     * )
2823         break;;
2824   esac
2825 done
2826 test "$ac_cv_exeext" = no && ac_cv_exeext=
2827
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: C compiler cannot create executables
2835 See \`config.log' for more details." >&2;}
2836    { (exit 77); exit 77; }; }
2837 fi
2838
2839 ac_exeext=$ac_cv_exeext
2840 { echo "$as_me:$LINENO: result: $ac_file" >&5
2841 echo "${ECHO_T}$ac_file" >&6; }
2842
2843 # Check that the compiler produces executables we can run.  If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848 # If not cross compiling, check that we can run a simple program.
2849 if test "$cross_compiling" != yes; then
2850   if { ac_try='./$ac_file'
2851   { (case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_try") 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860     cross_compiling=no
2861   else
2862     if test "$cross_compiling" = maybe; then
2863         cross_compiling=yes
2864     else
2865         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2866 If you meant to cross compile, use \`--host'.
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot run C compiled programs.
2869 If you meant to cross compile, use \`--host'.
2870 See \`config.log' for more details." >&2;}
2871    { (exit 1); exit 1; }; }
2872     fi
2873   fi
2874 fi
2875 { echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6; }
2877
2878 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2879 ac_clean_files=$ac_clean_files_save
2880 # Check that the compiler produces executables we can run.  If not, either
2881 # the compiler is broken, or we cross compile.
2882 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885 echo "${ECHO_T}$cross_compiling" >&6; }
2886
2887 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889 if { (ac_try="$ac_link"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_link") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; then
2899   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2901 # work properly (i.e., refer to `conftest.exe'), while it won't with
2902 # `rm'.
2903 for ac_file in conftest.exe conftest conftest.*; do
2904   test -f "$ac_file" || continue
2905   case $ac_file in
2906     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2907     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908           break;;
2909     * ) break;;
2910   esac
2911 done
2912 else
2913   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details." >&2;}
2917    { (exit 1); exit 1; }; }
2918 fi
2919
2920 rm -f conftest$ac_cv_exeext
2921 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2923
2924 rm -f conftest.$ac_ext
2925 EXEEXT=$ac_cv_exeext
2926 ac_exeext=$EXEEXT
2927 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2929 if test "${ac_cv_objext+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.o conftest.obj
2948 if { (ac_try="$ac_compile"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_compile") 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; then
2958   for ac_file in conftest.o conftest.obj conftest.*; do
2959   test -f "$ac_file" || continue;
2960   case $ac_file in
2961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2962     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2963        break;;
2964   esac
2965 done
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973 See \`config.log' for more details." >&2;}
2974    { (exit 1); exit 1; }; }
2975 fi
2976
2977 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978 fi
2979 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980 echo "${ECHO_T}$ac_cv_objext" >&6; }
2981 OBJEXT=$ac_cv_objext
2982 ac_objext=$OBJEXT
2983 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994
2995 int
2996 main ()
2997 {
2998 #ifndef __GNUC__
2999        choke me
3000 #endif
3001
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compile") 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } &&
3020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021   { (case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_try") 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; } &&
3030          { ac_try='test -s conftest.$ac_objext'
3031   { (case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_try") 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; }; then
3040   ac_compiler_gnu=yes
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045         ac_compiler_gnu=no
3046 fi
3047
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3050
3051 fi
3052 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3054 GCC=`test $ac_compiler_gnu = yes && echo yes`
3055 ac_test_CFLAGS=${CFLAGS+set}
3056 ac_save_CFLAGS=$CFLAGS
3057 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_cc_g+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   ac_save_c_werror_flag=$ac_c_werror_flag
3063    ac_c_werror_flag=yes
3064    ac_cv_prog_cc_g=no
3065    CFLAGS="-g"
3066    cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072
3073 int
3074 main ()
3075 {
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_compile") 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } &&
3095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096   { (case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_try") 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; } &&
3105          { ac_try='test -s conftest.$ac_objext'
3106   { (case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_try") 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; }; then
3115   ac_cv_prog_cc_g=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         CFLAGS=""
3121       cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } &&
3150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   :
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175         ac_c_werror_flag=$ac_save_c_werror_flag
3176          CFLAGS="-g"
3177          cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3194 case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199   (eval "$ac_compile") 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } &&
3206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207   { (case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212   (eval "$ac_try") 2>&5
3213   ac_status=$?
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); }; } &&
3216          { ac_try='test -s conftest.$ac_objext'
3217   { (case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_try") 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; }; then
3226   ac_cv_prog_cc_g=yes
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231
3232 fi
3233
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241    ac_c_werror_flag=$ac_save_c_werror_flag
3242 fi
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3245 if test "$ac_test_CFLAGS" = set; then
3246   CFLAGS=$ac_save_CFLAGS
3247 elif test $ac_cv_prog_cc_g = yes; then
3248   if test "$GCC" = yes; then
3249     CFLAGS="-g -O2"
3250   else
3251     CFLAGS="-g"
3252   fi
3253 else
3254   if test "$GCC" = yes; then
3255     CFLAGS="-O2"
3256   else
3257     CFLAGS=
3258   fi
3259 fi
3260 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cc_c89+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   ac_cv_prog_cc_c89=no
3266 ac_save_CC=$CC
3267 cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273 #include <stdarg.h>
3274 #include <stdio.h>
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3281      char **p;
3282      int i;
3283 {
3284   return p[i];
3285 }
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3287 {
3288   char *s;
3289   va_list v;
3290   va_start (v,p);
3291   s = g (p, va_arg (v,int));
3292   va_end (v);
3293   return s;
3294 }
3295
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3297    function prototypes and stuff, but not '\xHH' hex character constants.
3298    These don't provoke an error unfortunately, instead are silently treated
3299    as 'x'.  The following induces an error, until -std is added to get
3300    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3301    array size at least.  It's necessary to write '\x00'==0 to get something
3302    that's true only with -std.  */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306    inside strings and character constants.  */
3307 #define FOO(x) 'x'
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 int argc;
3315 char **argv;
3316 int
3317 main ()
3318 {
3319 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326 do
3327   CC="$ac_save_CC $ac_arg"
3328   rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_compile") 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } &&
3342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343   { (case "(($ac_try" in
3344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345   *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348   (eval "$ac_try") 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358   (eval "$ac_try") 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_prog_cc_c89=$ac_arg
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext
3371   test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 done
3373 rm -f conftest.$ac_ext
3374 CC=$ac_save_CC
3375
3376 fi
3377 # AC_CACHE_VAL
3378 case "x$ac_cv_prog_cc_c89" in
3379   x)
3380     { echo "$as_me:$LINENO: result: none needed" >&5
3381 echo "${ECHO_T}none needed" >&6; } ;;
3382   xno)
3383     { echo "$as_me:$LINENO: result: unsupported" >&5
3384 echo "${ECHO_T}unsupported" >&6; } ;;
3385   *)
3386     CC="$CC $ac_cv_prog_cc_c89"
3387     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3389 esac
3390
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399 ac_ext=c
3400 ac_cpp='$CPP $CPPFLAGS'
3401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3406 # On Suns, sometimes $CPP names a directory.
3407 if test -n "$CPP" && test -d "$CPP"; then
3408   CPP=
3409 fi
3410 if test -z "$CPP"; then
3411   if test "${ac_cv_prog_CPP+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414       # Double quotes because CPP needs to be expanded
3415     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416     do
3417       ac_preproc_ok=false
3418 for ac_c_preproc_warn_flag in '' yes
3419 do
3420   # Use a header file that comes with gcc, so configuring glibc
3421   # with a fresh cross-compiler works.
3422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423   # <limits.h> exists even on freestanding compilers.
3424   # On the NeXT, cc -E runs the code through the compiler's parser,
3425   # not just through cpp. "Syntax error" is here to catch this case.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #ifdef __STDC__
3433 # include <limits.h>
3434 #else
3435 # include <assert.h>
3436 #endif
3437                      Syntax error
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null; then
3452   if test -s conftest.err; then
3453     ac_cpp_err=$ac_c_preproc_warn_flag
3454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455   else
3456     ac_cpp_err=
3457   fi
3458 else
3459   ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462   :
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467   # Broken: fails on valid input.
3468 continue
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473   # OK, works on sane cases.  Now check whether nonexistent headers
3474   # can be detected and how.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490   ac_status=$?
3491   grep -v '^ *+' conftest.er1 >conftest.err
3492   rm -f conftest.er1
3493   cat conftest.err >&5
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } >/dev/null; then
3496   if test -s conftest.err; then
3497     ac_cpp_err=$ac_c_preproc_warn_flag
3498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499   else
3500     ac_cpp_err=
3501   fi
3502 else
3503   ac_cpp_err=yes
3504 fi
3505 if test -z "$ac_cpp_err"; then
3506   # Broken: success on invalid input.
3507 continue
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512   # Passes both tests.
3513 ac_preproc_ok=:
3514 break
3515 fi
3516
3517 rm -f conftest.err conftest.$ac_ext
3518
3519 done
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3523   break
3524 fi
3525
3526     done
3527     ac_cv_prog_CPP=$CPP
3528
3529 fi
3530   CPP=$ac_cv_prog_CPP
3531 else
3532   ac_cv_prog_CPP=$CPP
3533 fi
3534 { echo "$as_me:$LINENO: result: $CPP" >&5
3535 echo "${ECHO_T}$CPP" >&6; }
3536 ac_preproc_ok=false
3537 for ac_c_preproc_warn_flag in '' yes
3538 do
3539   # Use a header file that comes with gcc, so configuring glibc
3540   # with a fresh cross-compiler works.
3541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542   # <limits.h> exists even on freestanding compilers.
3543   # On the NeXT, cc -E runs the code through the compiler's parser,
3544   # not just through cpp. "Syntax error" is here to catch this case.
3545   cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 #ifdef __STDC__
3552 # include <limits.h>
3553 #else
3554 # include <assert.h>
3555 #endif
3556                      Syntax error
3557 _ACEOF
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } >/dev/null; then
3571   if test -s conftest.err; then
3572     ac_cpp_err=$ac_c_preproc_warn_flag
3573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574   else
3575     ac_cpp_err=
3576   fi
3577 else
3578   ac_cpp_err=yes
3579 fi
3580 if test -z "$ac_cpp_err"; then
3581   :
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586   # Broken: fails on valid input.
3587 continue
3588 fi
3589
3590 rm -f conftest.err conftest.$ac_ext
3591
3592   # OK, works on sane cases.  Now check whether nonexistent headers
3593   # can be detected and how.
3594   cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <ac_nonexistent.h>
3601 _ACEOF
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } >/dev/null; then
3615   if test -s conftest.err; then
3616     ac_cpp_err=$ac_c_preproc_warn_flag
3617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618   else
3619     ac_cpp_err=
3620   fi
3621 else
3622   ac_cpp_err=yes
3623 fi
3624 if test -z "$ac_cpp_err"; then
3625   # Broken: success on invalid input.
3626 continue
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631   # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3634 fi
3635
3636 rm -f conftest.err conftest.$ac_ext
3637
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3642   :
3643 else
3644   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648    { (exit 1); exit 1; }; }
3649 fi
3650
3651 ac_ext=c
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy grep ggrep; ac_prog_name=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   ac_path_GREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676   for ac_prog in grep ggrep; do
3677   for ac_exec_ext in '' $ac_executable_extensions; do
3678     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3679     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3680     # Check for GNU ac_path_GREP and select it if it is found.
3681   # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3683 *GNU*)
3684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685 *)
3686   ac_count=0
3687   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688   while :
3689   do
3690     cat "conftest.in" "conftest.in" >"conftest.tmp"
3691     mv "conftest.tmp" "conftest.in"
3692     cp "conftest.in" "conftest.nl"
3693     echo 'GREP' >> "conftest.nl"
3694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696     ac_count=`expr $ac_count + 1`
3697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698       # Best one so far, save it but keep looking for a better one
3699       ac_cv_path_GREP="$ac_path_GREP"
3700       ac_path_GREP_max=$ac_count
3701     fi
3702     # 10*(2^10) chars as input seems more than enough
3703     test $ac_count -gt 10 && break
3704   done
3705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3707
3708
3709     $ac_path_GREP_found && break 3
3710   done
3711 done
3712
3713 done
3714 IFS=$as_save_IFS
3715
3716
3717 fi
3718
3719 GREP="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723    { (exit 1); exit 1; }; }
3724 fi
3725
3726 else
3727   ac_cv_path_GREP=$GREP
3728 fi
3729
3730
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734  GREP="$ac_cv_path_GREP"
3735
3736
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743    then ac_cv_path_EGREP="$GREP -E"
3744    else
3745      # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy egrep; ac_prog_name=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   ac_path_EGREP_found=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758   for ac_prog in egrep; do
3759   for ac_exec_ext in '' $ac_executable_extensions; do
3760     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3761     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3762     # Check for GNU ac_path_EGREP and select it if it is found.
3763   # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3765 *GNU*)
3766   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767 *)
3768   ac_count=0
3769   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770   while :
3771   do
3772     cat "conftest.in" "conftest.in" >"conftest.tmp"
3773     mv "conftest.tmp" "conftest.in"
3774     cp "conftest.in" "conftest.nl"
3775     echo 'EGREP' >> "conftest.nl"
3776     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778     ac_count=`expr $ac_count + 1`
3779     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780       # Best one so far, save it but keep looking for a better one
3781       ac_cv_path_EGREP="$ac_path_EGREP"
3782       ac_path_EGREP_max=$ac_count
3783     fi
3784     # 10*(2^10) chars as input seems more than enough
3785     test $ac_count -gt 10 && break
3786   done
3787   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788 esac
3789
3790
3791     $ac_path_EGREP_found && break 3
3792   done
3793 done
3794
3795 done
3796 IFS=$as_save_IFS
3797
3798
3799 fi
3800
3801 EGREP="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805    { (exit 1); exit 1; }; }
3806 fi
3807
3808 else
3809   ac_cv_path_EGREP=$EGREP
3810 fi
3811
3812
3813    fi
3814 fi
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817  EGREP="$ac_cv_path_EGREP"
3818
3819
3820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 #include <stdlib.h>
3832 #include <stdarg.h>
3833 #include <string.h>
3834 #include <float.h>
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext
3845 if { (ac_try="$ac_compile"
3846 case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851   (eval "$ac_compile") 2>conftest.er1
3852   ac_status=$?
3853   grep -v '^ *+' conftest.er1 >conftest.err
3854   rm -f conftest.er1
3855   cat conftest.err >&5
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); } &&
3858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859   { (case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864   (eval "$ac_try") 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); }; } &&
3868          { ac_try='test -s conftest.$ac_objext'
3869   { (case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874   (eval "$ac_try") 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_cv_header_stdc=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883         ac_cv_header_stdc=no
3884 fi
3885
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887
3888 if test $ac_cv_header_stdc = yes; then
3889   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890   cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896 #include <string.h>
3897
3898 _ACEOF
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900   $EGREP "memchr" >/dev/null 2>&1; then
3901   :
3902 else
3903   ac_cv_header_stdc=no
3904 fi
3905 rm -f conftest*
3906
3907 fi
3908
3909 if test $ac_cv_header_stdc = yes; then
3910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911   cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h.  */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h.  */
3917 #include <stdlib.h>
3918
3919 _ACEOF
3920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921   $EGREP "free" >/dev/null 2>&1; then
3922   :
3923 else
3924   ac_cv_header_stdc=no
3925 fi
3926 rm -f conftest*
3927
3928 fi
3929
3930 if test $ac_cv_header_stdc = yes; then
3931   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932   if test "$cross_compiling" = yes; then
3933   :
3934 else
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 #include <ctype.h>
3942 #include <stdlib.h>
3943 #if ((' ' & 0x0FF) == 0x020)
3944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946 #else
3947 # define ISLOWER(c) \
3948                    (('a' <= (c) && (c) <= 'i') \
3949                      || ('j' <= (c) && (c) <= 'r') \
3950                      || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #endif
3953
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955 int
3956 main ()
3957 {
3958   int i;
3959   for (i = 0; i < 256; i++)
3960     if (XOR (islower (i), ISLOWER (i))
3961         || toupper (i) != TOUPPER (i))
3962       return 2;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest$ac_exeext
3967 if { (ac_try="$ac_link"
3968 case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_link") 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3977   { (case "(($ac_try" in
3978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979   *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982   (eval "$ac_try") 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }; }; then
3986   :
3987 else
3988   echo "$as_me: program exited with status $ac_status" >&5
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ( exit $ac_status )
3993 ac_cv_header_stdc=no
3994 fi
3995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996 fi
3997
3998
3999 fi
4000 fi
4001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4003 if test $ac_cv_header_stdc = yes; then
4004
4005 cat >>confdefs.h <<\_ACEOF
4006 #define STDC_HEADERS 1
4007 _ACEOF
4008
4009 fi
4010
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022                   inttypes.h stdint.h unistd.h
4023 do
4024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 $ac_includes_default
4037
4038 #include <$ac_header>
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4042 case "(($ac_try" in
4043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044   *) ac_try_echo=$ac_try;;
4045 esac
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047   (eval "$ac_compile") 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } &&
4054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055   { (case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_try") 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); }; } &&
4064          { ac_try='test -s conftest.$ac_objext'
4065   { (case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_try") 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); }; }; then
4074   eval "$as_ac_Header=yes"
4075 else
4076   echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079         eval "$as_ac_Header=no"
4080 fi
4081
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 fi
4084 ac_res=`eval echo '${'$as_ac_Header'}'`
4085                { echo "$as_me:$LINENO: result: $ac_res" >&5
4086 echo "${ECHO_T}$ac_res" >&6; }
4087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088   cat >>confdefs.h <<_ACEOF
4089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 _ACEOF
4091
4092 fi
4093
4094 done
4095
4096
4097 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099 if test "${ac_cv_c_bigendian+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   # See if sys/param.h defines the BYTE_ORDER macro.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 #include <sys/types.h>
4110 #include <sys/param.h>
4111
4112 int
4113 main ()
4114 {
4115 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4116  bogus endian macros
4117 #endif
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (ac_try="$ac_compile"
4125 case "(($ac_try" in
4126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127   *) ac_try_echo=$ac_try;;
4128 esac
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130   (eval "$ac_compile") 2>conftest.er1
4131   ac_status=$?
4132   grep -v '^ *+' conftest.er1 >conftest.err
4133   rm -f conftest.er1
4134   cat conftest.err >&5
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } &&
4137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138   { (case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_try") 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; } &&
4147          { ac_try='test -s conftest.$ac_objext'
4148   { (case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153   (eval "$ac_try") 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; }; then
4157   # It does; now see whether it defined to BIG_ENDIAN or not.
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 #include <sys/types.h>
4165 #include <sys/param.h>
4166
4167 int
4168 main ()
4169 {
4170 #if BYTE_ORDER != BIG_ENDIAN
4171  not big endian
4172 #endif
4173
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (ac_try="$ac_compile"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_compile") 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193   { (case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_try") 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; } &&
4202          { ac_try='test -s conftest.$ac_objext'
4203   { (case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_try") 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   ac_cv_c_bigendian=yes
4213 else
4214   echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217         ac_cv_c_bigendian=no
4218 fi
4219
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 else
4222   echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225         # It does not; compile a test program.
4226 if test "$cross_compiling" = yes; then
4227   # try to guess the endianness by grepping values into an object file
4228   ac_cv_c_bigendian=unknown
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241 int
4242 main ()
4243 {
4244  _ascii (); _ebcdic ();
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4251 case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256   (eval "$ac_compile") 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264   { (case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_try") 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; } &&
4273          { ac_try='test -s conftest.$ac_objext'
4274   { (case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_try") 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284   ac_cv_c_bigendian=yes
4285 fi
4286 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287   if test "$ac_cv_c_bigendian" = unknown; then
4288     ac_cv_c_bigendian=no
4289   else
4290     # finding both strings is unlikely to happen, but who knows?
4291     ac_cv_c_bigendian=unknown
4292   fi
4293 fi
4294 else
4295   echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298
4299 fi
4300
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 else
4303   cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 $ac_includes_default
4310 int
4311 main ()
4312 {
4313
4314   /* Are we little or big endian?  From Harbison&Steele.  */
4315   union
4316   {
4317     long int l;
4318     char c[sizeof (long int)];
4319   } u;
4320   u.l = 1;
4321   return u.c[sizeof (long int) - 1] == 1;
4322
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_link") 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338   { (case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343   (eval "$ac_try") 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_cv_c_bigendian=no
4348 else
4349   echo "$as_me: program exited with status $ac_status" >&5
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 ( exit $ac_status )
4354 ac_cv_c_bigendian=yes
4355 fi
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357 fi
4358
4359
4360 fi
4361
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366 case $ac_cv_c_bigendian in
4367   yes)
4368     ENDIAN=big
4369  ;;
4370   no)
4371     ENDIAN=little
4372  ;;
4373   *)
4374     { { echo "$as_me:$LINENO: error: unknown endianness
4375 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376 echo "$as_me: error: unknown endianness
4377 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378    { (exit 1); exit 1; }; } ;;
4379 esac
4380
4381
4382 if test "$cross_compiling" = yes; then
4383   LLVM_CROSS_COMPILING=1
4384
4385
4386 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388 if test "${ac_cv_build_exeext+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392   ac_cv_build_exeext=.exe
4393 else
4394   ac_build_prefix=${build_alias}-
4395
4396   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397 set dummy ${ac_build_prefix}gcc; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$BUILD_CC"; then
4404   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421 fi
4422 fi
4423 BUILD_CC=$ac_cv_prog_BUILD_CC
4424 if test -n "$BUILD_CC"; then
4425   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426 echo "${ECHO_T}$BUILD_CC" >&6; }
4427 else
4428   { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4430 fi
4431
4432
4433   if test -z "$BUILD_CC"; then
4434      # Extract the first word of "gcc", so it can be a program name with args.
4435 set dummy gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -n "$BUILD_CC"; then
4442   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_prog_BUILD_CC="gcc"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4465 else
4466   { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4468 fi
4469
4470
4471      if test -z "$BUILD_CC"; then
4472        # Extract the first word of "cc", so it can be a program name with args.
4473 set dummy cc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   if test -n "$BUILD_CC"; then
4480   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481 else
4482   ac_prog_rejected=no
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488   for ac_exec_ext in '' $ac_executable_extensions; do
4489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4490     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491        ac_prog_rejected=yes
4492        continue
4493      fi
4494     ac_cv_prog_BUILD_CC="cc"
4495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496     break 2
4497   fi
4498 done
4499 done
4500 IFS=$as_save_IFS
4501
4502 if test $ac_prog_rejected = yes; then
4503   # We found a bogon in the path, so make sure we never use it.
4504   set dummy $ac_cv_prog_BUILD_CC
4505   shift
4506   if test $# != 0; then
4507     # We chose a different compiler from the bogus one.
4508     # However, it has the same basename, so the bogon will be chosen
4509     # first if we set BUILD_CC to just the basename; use the full file name.
4510     shift
4511     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4512   fi
4513 fi
4514 fi
4515 fi
4516 BUILD_CC=$ac_cv_prog_BUILD_CC
4517 if test -n "$BUILD_CC"; then
4518   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519 echo "${ECHO_T}$BUILD_CC" >&6; }
4520 else
4521   { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4523 fi
4524
4525
4526      fi
4527   fi
4528   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530    { (exit 1); exit 1; }; }
4531   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532   rm -f conftest*
4533   echo 'int main () { return 0; }' > conftest.$ac_ext
4534   ac_cv_build_exeext=
4535   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536   (eval $ac_build_link) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; then
4540     for file in conftest.*; do
4541       case $file in
4542       *.c | *.o | *.obj | *.dSYM) ;;
4543       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4544       esac
4545     done
4546   else
4547     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549    { (exit 1); exit 1; }; }
4550   fi
4551   rm -f conftest*
4552   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4553 fi
4554 fi
4555
4556 BUILD_EXEEXT=""
4557 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560 ac_build_exeext=$BUILD_EXEEXT
4561
4562   ac_build_prefix=${build_alias}-
4563   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4564 set dummy ${ac_build_prefix}g++; ac_word=$2
4565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   if test -n "$BUILD_CXX"; then
4571   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578   for ac_exec_ext in '' $ac_executable_extensions; do
4579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4580     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585 done
4586 IFS=$as_save_IFS
4587
4588 fi
4589 fi
4590 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4591 if test -n "$BUILD_CXX"; then
4592   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4593 echo "${ECHO_T}$BUILD_CXX" >&6; }
4594 else
4595   { echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6; }
4597 fi
4598
4599
4600   if test -z "$BUILD_CXX"; then
4601      # Extract the first word of "g++", so it can be a program name with args.
4602 set dummy g++; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606   echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608   if test -n "$BUILD_CXX"; then
4609   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_prog_BUILD_CXX="g++"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629 if test -n "$BUILD_CXX"; then
4630   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631 echo "${ECHO_T}$BUILD_CXX" >&6; }
4632 else
4633   { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4635 fi
4636
4637
4638      if test -z "$BUILD_CXX"; then
4639        # Extract the first word of "c++", so it can be a program name with args.
4640 set dummy c++; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   if test -n "$BUILD_CXX"; then
4647   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648 else
4649   ac_prog_rejected=no
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4657     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4658        ac_prog_rejected=yes
4659        continue
4660      fi
4661     ac_cv_prog_BUILD_CXX="c++"
4662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 if test $ac_prog_rejected = yes; then
4670   # We found a bogon in the path, so make sure we never use it.
4671   set dummy $ac_cv_prog_BUILD_CXX
4672   shift
4673   if test $# != 0; then
4674     # We chose a different compiler from the bogus one.
4675     # However, it has the same basename, so the bogon will be chosen
4676     # first if we set BUILD_CXX to just the basename; use the full file name.
4677     shift
4678     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4679   fi
4680 fi
4681 fi
4682 fi
4683 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684 if test -n "$BUILD_CXX"; then
4685   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686 echo "${ECHO_T}$BUILD_CXX" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693      fi
4694   fi
4695 else
4696   LLVM_CROSS_COMPILING=0
4697
4698 fi
4699
4700 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4701   cvsbuild="yes"
4702   optimize="no"
4703   CVSBUILD=CVSBUILD=1
4704
4705 else
4706   cvsbuild="no"
4707   optimize="yes"
4708 fi
4709
4710
4711 # Check whether --enable-optimized was given.
4712 if test "${enable_optimized+set}" = set; then
4713   enableval=$enable_optimized;
4714 else
4715   enableval=$optimize
4716 fi
4717
4718 if test ${enableval} = "no" ; then
4719   ENABLE_OPTIMIZED=
4720
4721 else
4722   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4723
4724 fi
4725
4726 # Check whether --enable-assertions was given.
4727 if test "${enable_assertions+set}" = set; then
4728   enableval=$enable_assertions;
4729 else
4730   enableval="yes"
4731 fi
4732
4733 if test ${enableval} = "yes" ; then
4734   DISABLE_ASSERTIONS=
4735
4736 else
4737   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4738
4739 fi
4740
4741 # Check whether --enable-expensive-checks was given.
4742 if test "${enable_expensive_checks+set}" = set; then
4743   enableval=$enable_expensive_checks;
4744 else
4745   enableval="no"
4746 fi
4747
4748 if test ${enableval} = "yes" ; then
4749   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4750
4751   EXPENSIVE_CHECKS=yes
4752
4753 else
4754   ENABLE_EXPENSIVE_CHECKS=
4755
4756   EXPENSIVE_CHECKS=no
4757
4758 fi
4759
4760 # Check whether --enable-debug-runtime was given.
4761 if test "${enable_debug_runtime+set}" = set; then
4762   enableval=$enable_debug_runtime;
4763 else
4764   enableval=no
4765 fi
4766
4767 if test ${enableval} = "no" ; then
4768   DEBUG_RUNTIME=
4769
4770 else
4771   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4772
4773 fi
4774
4775 # Check whether --enable-jit was given.
4776 if test "${enable_jit+set}" = set; then
4777   enableval=$enable_jit;
4778 else
4779   enableval=default
4780 fi
4781
4782 if test ${enableval} = "no"
4783 then
4784   JIT=
4785
4786 else
4787   case "$llvm_cv_target_arch" in
4788     x86)     TARGET_HAS_JIT=1
4789  ;;
4790     Sparc)   TARGET_HAS_JIT=0
4791  ;;
4792     PowerPC) TARGET_HAS_JIT=1
4793  ;;
4794     x86_64)  TARGET_HAS_JIT=1
4795  ;;
4796     Alpha)   TARGET_HAS_JIT=1
4797  ;;
4798     IA64)    TARGET_HAS_JIT=0
4799  ;;
4800     ARM)     TARGET_HAS_JIT=0
4801  ;;
4802     Mips)    TARGET_HAS_JIT=0
4803  ;;
4804     PIC16)   TARGET_HAS_JIT=0
4805  ;;
4806     XCore)   TARGET_HAS_JIT=0
4807  ;;
4808     *)       TARGET_HAS_JIT=0
4809  ;;
4810   esac
4811 fi
4812
4813 # Check whether --enable-doxygen was given.
4814 if test "${enable_doxygen+set}" = set; then
4815   enableval=$enable_doxygen;
4816 else
4817   enableval=default
4818 fi
4819
4820 case "$enableval" in
4821   yes) ENABLE_DOXYGEN=1
4822  ;;
4823   no)  ENABLE_DOXYGEN=0
4824  ;;
4825   default) ENABLE_DOXYGEN=0
4826  ;;
4827   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4828 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4829    { (exit 1); exit 1; }; } ;;
4830 esac
4831
4832 # Check whether --enable-threads was given.
4833 if test "${enable_threads+set}" = set; then
4834   enableval=$enable_threads;
4835 else
4836   enableval=default
4837 fi
4838
4839 case "$enableval" in
4840   yes) ENABLE_THREADS=1
4841  ;;
4842   no)  ENABLE_THREADS=0
4843  ;;
4844   default) ENABLE_THREADS=1
4845  ;;
4846   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4848    { (exit 1); exit 1; }; } ;;
4849 esac
4850
4851 cat >>confdefs.h <<_ACEOF
4852 #define ENABLE_THREADS $ENABLE_THREADS
4853 _ACEOF
4854
4855
4856 # Check whether --enable-pic was given.
4857 if test "${enable_pic+set}" = set; then
4858   enableval=$enable_pic;
4859 else
4860   enableval=default
4861 fi
4862
4863 case "$enableval" in
4864   yes) ENABLE_PIC=1
4865  ;;
4866   no)  ENABLE_PIC=0
4867  ;;
4868   default) ENABLE_PIC=1
4869  ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 cat >>confdefs.h <<_ACEOF
4876 #define ENABLE_PIC $ENABLE_PIC
4877 _ACEOF
4878
4879
4880 TARGETS_TO_BUILD=""
4881 # Check whether --enable-targets was given.
4882 if test "${enable_targets+set}" = set; then
4883   enableval=$enable_targets;
4884 else
4885   enableval=all
4886 fi
4887
4888 case "$enableval" in
4889   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4890   host-only)
4891     case "$llvm_cv_target_arch" in
4892       x86)     TARGETS_TO_BUILD="X86" ;;
4893       x86_64)  TARGETS_TO_BUILD="X86" ;;
4894       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4895       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4896       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4897       IA64)    TARGETS_TO_BUILD="IA64" ;;
4898       ARM)     TARGETS_TO_BUILD="ARM" ;;
4899       Mips)    TARGETS_TO_BUILD="Mips" ;;
4900       CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4901       PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4902       XCore)   TARGETS_TO_BUILD="XCore" ;;
4903       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904 echo "$as_me: error: Can not set target to build" >&2;}
4905    { (exit 1); exit 1; }; } ;;
4906     esac
4907     ;;
4908   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4909       case "$a_target" in
4910         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4913         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4914         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4915         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4916         arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4917         mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4918         spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4919         pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4920         xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4921         cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922         msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4923         cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4924         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4925 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4926    { (exit 1); exit 1; }; } ;;
4927       esac
4928   done
4929   ;;
4930 esac
4931 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4932
4933
4934 # Check whether --enable-cbe-printf-a was given.
4935 if test "${enable_cbe_printf_a+set}" = set; then
4936   enableval=$enable_cbe_printf_a;
4937 else
4938   enableval=default
4939 fi
4940
4941 case "$enableval" in
4942   yes) ENABLE_CBE_PRINTF_A=1
4943  ;;
4944   no)  ENABLE_CBE_PRINTF_A=0
4945  ;;
4946   default)  ENABLE_CBE_PRINTF_A=1
4947  ;;
4948   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4949 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4950    { (exit 1); exit 1; }; } ;;
4951 esac
4952
4953 cat >>confdefs.h <<_ACEOF
4954 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4955 _ACEOF
4956
4957
4958
4959 # Check whether --with-llvmgccdir was given.
4960 if test "${with_llvmgccdir+set}" = set; then
4961   withval=$with_llvmgccdir;
4962 else
4963   withval=default
4964 fi
4965
4966 case "$withval" in
4967   default) WITH_LLVMGCCDIR=default ;;
4968   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4969   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4970 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4971    { (exit 1); exit 1; }; } ;;
4972 esac
4973
4974
4975 # Check whether --with-llvmgcc was given.
4976 if test "${with_llvmgcc+set}" = set; then
4977   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4978       WITH_LLVMGCCDIR=""
4979 fi
4980
4981
4982
4983 # Check whether --with-llvmgxx was given.
4984 if test "${with_llvmgxx+set}" = set; then
4985   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4986     WITH_LLVMGCCDIR=""
4987 fi
4988
4989
4990 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4991    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4992 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4993    { (exit 1); exit 1; }; };
4994 fi
4995
4996 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4997    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4998 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4999    { (exit 1); exit 1; }; };
5000 fi
5001
5002
5003 # Check whether --with-extra-options was given.
5004 if test "${with_extra_options+set}" = set; then
5005   withval=$with_extra_options;
5006 else
5007   withval=default
5008 fi
5009
5010 case "$withval" in
5011   default) EXTRA_OPTIONS= ;;
5012   *) EXTRA_OPTIONS=$withval ;;
5013 esac
5014 EXTRA_OPTIONS=$EXTRA_OPTIONS
5015
5016
5017 # Check whether --enable-bindings was given.
5018 if test "${enable_bindings+set}" = set; then
5019   enableval=$enable_bindings;
5020 else
5021   enableval=default
5022 fi
5023
5024 BINDINGS_TO_BUILD=""
5025 case "$enableval" in
5026   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5027   all ) BINDINGS_TO_BUILD="ocaml" ;;
5028   none | no) BINDINGS_TO_BUILD="" ;;
5029   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5030       case "$a_binding" in
5031         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5032         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5033 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5034    { (exit 1); exit 1; }; } ;;
5035       esac
5036   done
5037   ;;
5038 esac
5039
5040
5041 # Check whether --with-ocaml-libdir was given.
5042 if test "${with_ocaml_libdir+set}" = set; then
5043   withval=$with_ocaml_libdir;
5044 else
5045   withval=auto
5046 fi
5047
5048 case "$withval" in
5049   auto) with_ocaml_libdir="$withval" ;;
5050   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5051   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5052 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5053    { (exit 1); exit 1; }; } ;;
5054 esac
5055
5056
5057 # Check whether --with-binutils-include was given.
5058 if test "${with_binutils_include+set}" = set; then
5059   withval=$with_binutils_include;
5060 else
5061   withval=default
5062 fi
5063
5064 case "$withval" in
5065   default) WITH_BINUTILS_INCDIR=default ;;
5066   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5067   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5068 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5069    { (exit 1); exit 1; }; } ;;
5070 esac
5071 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5072   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5073
5074   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5075      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5076      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5077 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5078    { (exit 1); exit 1; }; };
5079   fi
5080 fi
5081
5082
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090 # On Suns, sometimes $CPP names a directory.
5091 if test -n "$CPP" && test -d "$CPP"; then
5092   CPP=
5093 fi
5094 if test -z "$CPP"; then
5095   if test "${ac_cv_prog_CPP+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098       # Double quotes because CPP needs to be expanded
5099     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100     do
5101       ac_preproc_ok=false
5102 for ac_c_preproc_warn_flag in '' yes
5103 do
5104   # Use a header file that comes with gcc, so configuring glibc
5105   # with a fresh cross-compiler works.
5106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107   # <limits.h> exists even on freestanding compilers.
5108   # On the NeXT, cc -E runs the code through the compiler's parser,
5109   # not just through cpp. "Syntax error" is here to catch this case.
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116 #ifdef __STDC__
5117 # include <limits.h>
5118 #else
5119 # include <assert.h>
5120 #endif
5121                      Syntax error
5122 _ACEOF
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5124 case "(($ac_try" in
5125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126   *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null; then
5136   if test -s conftest.err; then
5137     ac_cpp_err=$ac_c_preproc_warn_flag
5138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139   else
5140     ac_cpp_err=
5141   fi
5142 else
5143   ac_cpp_err=yes
5144 fi
5145 if test -z "$ac_cpp_err"; then
5146   :
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151   # Broken: fails on valid input.
5152 continue
5153 fi
5154
5155 rm -f conftest.err conftest.$ac_ext
5156
5157   # OK, works on sane cases.  Now check whether nonexistent headers
5158   # can be detected and how.
5159   cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h.  */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h.  */
5165 #include <ac_nonexistent.h>
5166 _ACEOF
5167 if { (ac_try="$ac_cpp conftest.$ac_ext"
5168 case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5174   ac_status=$?
5175   grep -v '^ *+' conftest.er1 >conftest.err
5176   rm -f conftest.er1
5177   cat conftest.err >&5
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); } >/dev/null; then
5180   if test -s conftest.err; then
5181     ac_cpp_err=$ac_c_preproc_warn_flag
5182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5183   else
5184     ac_cpp_err=
5185   fi
5186 else
5187   ac_cpp_err=yes
5188 fi
5189 if test -z "$ac_cpp_err"; then
5190   # Broken: success on invalid input.
5191 continue
5192 else
5193   echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196   # Passes both tests.
5197 ac_preproc_ok=:
5198 break
5199 fi
5200
5201 rm -f conftest.err conftest.$ac_ext
5202
5203 done
5204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205 rm -f conftest.err conftest.$ac_ext
5206 if $ac_preproc_ok; then
5207   break
5208 fi
5209
5210     done
5211     ac_cv_prog_CPP=$CPP
5212
5213 fi
5214   CPP=$ac_cv_prog_CPP
5215 else
5216   ac_cv_prog_CPP=$CPP
5217 fi
5218 { echo "$as_me:$LINENO: result: $CPP" >&5
5219 echo "${ECHO_T}$CPP" >&6; }
5220 ac_preproc_ok=false
5221 for ac_c_preproc_warn_flag in '' yes
5222 do
5223   # Use a header file that comes with gcc, so configuring glibc
5224   # with a fresh cross-compiler works.
5225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226   # <limits.h> exists even on freestanding compilers.
5227   # On the NeXT, cc -E runs the code through the compiler's parser,
5228   # not just through cpp. "Syntax error" is here to catch this case.
5229   cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h.  */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h.  */
5235 #ifdef __STDC__
5236 # include <limits.h>
5237 #else
5238 # include <assert.h>
5239 #endif
5240                      Syntax error
5241 _ACEOF
5242 if { (ac_try="$ac_cpp conftest.$ac_ext"
5243 case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } >/dev/null; then
5255   if test -s conftest.err; then
5256     ac_cpp_err=$ac_c_preproc_warn_flag
5257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258   else
5259     ac_cpp_err=
5260   fi
5261 else
5262   ac_cpp_err=yes
5263 fi
5264 if test -z "$ac_cpp_err"; then
5265   :
5266 else
5267   echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270   # Broken: fails on valid input.
5271 continue
5272 fi
5273
5274 rm -f conftest.err conftest.$ac_ext
5275
5276   # OK, works on sane cases.  Now check whether nonexistent headers
5277   # can be detected and how.
5278   cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 #include <ac_nonexistent.h>
5285 _ACEOF
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5287 case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } >/dev/null; then
5299   if test -s conftest.err; then
5300     ac_cpp_err=$ac_c_preproc_warn_flag
5301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302   else
5303     ac_cpp_err=
5304   fi
5305 else
5306   ac_cpp_err=yes
5307 fi
5308 if test -z "$ac_cpp_err"; then
5309   # Broken: success on invalid input.
5310 continue
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315   # Passes both tests.
5316 ac_preproc_ok=:
5317 break
5318 fi
5319
5320 rm -f conftest.err conftest.$ac_ext
5321
5322 done
5323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324 rm -f conftest.err conftest.$ac_ext
5325 if $ac_preproc_ok; then
5326   :
5327 else
5328   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5329 See \`config.log' for more details." >&5
5330 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5331 See \`config.log' for more details." >&2;}
5332    { (exit 1); exit 1; }; }
5333 fi
5334
5335 ac_ext=c
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 if test -n "$ac_tool_prefix"; then
5347   for ac_prog in gcc
5348   do
5349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353 if test "${ac_cv_prog_CC+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   if test -n "$CC"; then
5357   ac_cv_prog_CC="$CC" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362   IFS=$as_save_IFS
5363   test -z "$as_dir" && as_dir=.
5364   for ac_exec_ext in '' $ac_executable_extensions; do
5365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5366     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368     break 2
5369   fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 CC=$ac_cv_prog_CC
5377 if test -n "$CC"; then
5378   { echo "$as_me:$LINENO: result: $CC" >&5
5379 echo "${ECHO_T}$CC" >&6; }
5380 else
5381   { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5383 fi
5384
5385
5386     test -n "$CC" && break
5387   done
5388 fi
5389 if test -z "$CC"; then
5390   ac_ct_CC=$CC
5391   for ac_prog in gcc
5392 do
5393   # Extract the first word of "$ac_prog", so it can be a program name with args.
5394 set dummy $ac_prog; ac_word=$2
5395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   if test -n "$ac_ct_CC"; then
5401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408   for ac_exec_ext in '' $ac_executable_extensions; do
5409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5410     ac_cv_prog_ac_ct_CC="$ac_prog"
5411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5421 if test -n "$ac_ct_CC"; then
5422   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5423 echo "${ECHO_T}$ac_ct_CC" >&6; }
5424 else
5425   { echo "$as_me:$LINENO: result: no" >&5
5426 echo "${ECHO_T}no" >&6; }
5427 fi
5428
5429
5430   test -n "$ac_ct_CC" && break
5431 done
5432
5433   if test "x$ac_ct_CC" = x; then
5434     CC=""
5435   else
5436     case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5439 whose name does not start with the host triplet.  If you think this
5440 configuration is useful to you, please write to autoconf@gnu.org." >&5
5441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet.  If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5444 ac_tool_warned=yes ;;
5445 esac
5446     CC=$ac_ct_CC
5447   fi
5448 fi
5449
5450
5451 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5452 See \`config.log' for more details." >&5
5453 echo "$as_me: error: no acceptable C compiler found in \$PATH
5454 See \`config.log' for more details." >&2;}
5455    { (exit 1); exit 1; }; }
5456
5457 # Provide some information about the compiler.
5458 echo "$as_me:$LINENO: checking for C compiler version" >&5
5459 ac_compiler=`set X $ac_compile; echo $2`
5460 { (ac_try="$ac_compiler --version >&5"
5461 case "(($ac_try" in
5462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463   *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466   (eval "$ac_compiler --version >&5") 2>&5
5467   ac_status=$?
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); }
5470 { (ac_try="$ac_compiler -v >&5"
5471 case "(($ac_try" in
5472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473   *) ac_try_echo=$ac_try;;
5474 esac
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476   (eval "$ac_compiler -v >&5") 2>&5
5477   ac_status=$?
5478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479   (exit $ac_status); }
5480 { (ac_try="$ac_compiler -V >&5"
5481 case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486   (eval "$ac_compiler -V >&5") 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }
5490
5491 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5492 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5493 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502
5503 int
5504 main ()
5505 {
5506 #ifndef __GNUC__
5507        choke me
5508 #endif
5509
5510   ;
5511   return 0;
5512 }
5513 _ACEOF
5514 rm -f conftest.$ac_objext
5515 if { (ac_try="$ac_compile"
5516 case "(($ac_try" in
5517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518   *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521   (eval "$ac_compile") 2>conftest.er1
5522   ac_status=$?
5523   grep -v '^ *+' conftest.er1 >conftest.err
5524   rm -f conftest.er1
5525   cat conftest.err >&5
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } &&
5528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5529   { (case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_try") 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; } &&
5538          { ac_try='test -s conftest.$ac_objext'
5539   { (case "(($ac_try" in
5540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541   *) ac_try_echo=$ac_try;;
5542 esac
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544   (eval "$ac_try") 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548   ac_compiler_gnu=yes
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553         ac_compiler_gnu=no
5554 fi
5555
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5558
5559 fi
5560 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5561 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5562 GCC=`test $ac_compiler_gnu = yes && echo yes`
5563 ac_test_CFLAGS=${CFLAGS+set}
5564 ac_save_CFLAGS=$CFLAGS
5565 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5566 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_cc_g+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   ac_save_c_werror_flag=$ac_c_werror_flag
5571    ac_c_werror_flag=yes
5572    ac_cv_prog_cc_g=no
5573    CFLAGS="-g"
5574    cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580
5581 int
5582 main ()
5583 {
5584
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_compile") 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } &&
5603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5604   { (case "(($ac_try" in
5605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606   *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609   (eval "$ac_try") 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; } &&
5613          { ac_try='test -s conftest.$ac_objext'
5614   { (case "(($ac_try" in
5615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616   *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619   (eval "$ac_try") 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; }; then
5623   ac_cv_prog_cc_g=yes
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628         CFLAGS=""
5629       cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h.  */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h.  */
5635
5636 int
5637 main ()
5638 {
5639
5640   ;
5641   return 0;
5642 }
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (ac_try="$ac_compile"
5646 case "(($ac_try" in
5647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648   *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651   (eval "$ac_compile") 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5659   { (case "(($ac_try" in
5660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661   *) ac_try_echo=$ac_try;;
5662 esac
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664   (eval "$ac_try") 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; } &&
5668          { ac_try='test -s conftest.$ac_objext'
5669   { (case "(($ac_try" in
5670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671   *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674   (eval "$ac_try") 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; }; then
5678   :
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683         ac_c_werror_flag=$ac_save_c_werror_flag
5684          CFLAGS="-g"
5685          cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h.  */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h.  */
5691
5692 int
5693 main ()
5694 {
5695
5696   ;
5697   return 0;
5698 }
5699 _ACEOF
5700 rm -f conftest.$ac_objext
5701 if { (ac_try="$ac_compile"
5702 case "(($ac_try" in
5703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704   *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707   (eval "$ac_compile") 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } &&
5714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5715   { (case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720   (eval "$ac_try") 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; } &&
5724          { ac_try='test -s conftest.$ac_objext'
5725   { (case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_try") 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; }; then
5734   ac_cv_prog_cc_g=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739
5740 fi
5741
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 fi
5747
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749    ac_c_werror_flag=$ac_save_c_werror_flag
5750 fi
5751 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5753 if test "$ac_test_CFLAGS" = set; then
5754   CFLAGS=$ac_save_CFLAGS
5755 elif test $ac_cv_prog_cc_g = yes; then
5756   if test "$GCC" = yes; then
5757     CFLAGS="-g -O2"
5758   else
5759     CFLAGS="-g"
5760   fi
5761 else
5762   if test "$GCC" = yes; then
5763     CFLAGS="-O2"
5764   else
5765     CFLAGS=
5766   fi
5767 fi
5768 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5769 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5770 if test "${ac_cv_prog_cc_c89+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   ac_cv_prog_cc_c89=no
5774 ac_save_CC=$CC
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 #include <stdarg.h>
5782 #include <stdio.h>
5783 #include <sys/types.h>
5784 #include <sys/stat.h>
5785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5786 struct buf { int x; };
5787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5788 static char *e (p, i)
5789      char **p;
5790      int i;
5791 {
5792   return p[i];
5793 }
5794 static char *f (char * (*g) (char **, int), char **p, ...)
5795 {
5796   char *s;
5797   va_list v;
5798   va_start (v,p);
5799   s = g (p, va_arg (v,int));
5800   va_end (v);
5801   return s;
5802 }
5803
5804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5805    function prototypes and stuff, but not '\xHH' hex character constants.
5806    These don't provoke an error unfortunately, instead are silently treated
5807    as 'x'.  The following induces an error, until -std is added to get
5808    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5809    array size at least.  It's necessary to write '\x00'==0 to get something
5810    that's true only with -std.  */
5811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5812
5813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5814    inside strings and character constants.  */
5815 #define FOO(x) 'x'
5816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5817
5818 int test (int i, double x);
5819 struct s1 {int (*f) (int a);};
5820 struct s2 {int (*f) (double a);};
5821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5822 int argc;
5823 char **argv;
5824 int
5825 main ()
5826 {
5827 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5833         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5834 do
5835   CC="$ac_save_CC $ac_arg"
5836   rm -f conftest.$ac_objext
5837 if { (ac_try="$ac_compile"
5838 case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_compile") 2>conftest.er1
5844   ac_status=$?
5845   grep -v '^ *+' conftest.er1 >conftest.err
5846   rm -f conftest.er1
5847   cat conftest.err >&5
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } &&
5850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5851   { (case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856   (eval "$ac_try") 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }; } &&
5860          { ac_try='test -s conftest.$ac_objext'
5861   { (case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_try") 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); }; }; then
5870   ac_cv_prog_cc_c89=$ac_arg
5871 else
5872   echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5874
5875
5876 fi
5877
5878 rm -f core conftest.err conftest.$ac_objext
5879   test "x$ac_cv_prog_cc_c89" != "xno" && break
5880 done
5881 rm -f conftest.$ac_ext
5882 CC=$ac_save_CC
5883
5884 fi
5885 # AC_CACHE_VAL
5886 case "x$ac_cv_prog_cc_c89" in
5887   x)
5888     { echo "$as_me:$LINENO: result: none needed" >&5
5889 echo "${ECHO_T}none needed" >&6; } ;;
5890   xno)
5891     { echo "$as_me:$LINENO: result: unsupported" >&5
5892 echo "${ECHO_T}unsupported" >&6; } ;;
5893   *)
5894     CC="$CC $ac_cv_prog_cc_c89"
5895     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5896 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5897 esac
5898
5899
5900 ac_ext=c
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906 ac_ext=cpp
5907 ac_cpp='$CXXCPP $CPPFLAGS'
5908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911 if test -z "$CXX"; then
5912   if test -n "$CCC"; then
5913     CXX=$CCC
5914   else
5915     if test -n "$ac_tool_prefix"; then
5916   for ac_prog in g++
5917   do
5918     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_CXX+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   if test -n "$CXX"; then
5926   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 CXX=$ac_cv_prog_CXX
5946 if test -n "$CXX"; then
5947   { echo "$as_me:$LINENO: result: $CXX" >&5
5948 echo "${ECHO_T}$CXX" >&6; }
5949 else
5950   { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5952 fi
5953
5954
5955     test -n "$CXX" && break
5956   done
5957 fi
5958 if test -z "$CXX"; then
5959   ac_ct_CXX=$CXX
5960   for ac_prog in g++
5961 do
5962   # Extract the first word of "$ac_prog", so it can be a program name with args.
5963 set dummy $ac_prog; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   if test -n "$ac_ct_CXX"; then
5970   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977   for ac_exec_ext in '' $ac_executable_extensions; do
5978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5979     ac_cv_prog_ac_ct_CXX="$ac_prog"
5980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984 done
5985 IFS=$as_save_IFS
5986
5987 fi
5988 fi
5989 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5990 if test -n "$ac_ct_CXX"; then
5991   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5992 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5993 else
5994   { echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6; }
5996 fi
5997
5998
5999   test -n "$ac_ct_CXX" && break
6000 done
6001
6002   if test "x$ac_ct_CXX" = x; then
6003     CXX="g++"
6004   else
6005     case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008 whose name does not start with the host triplet.  If you think this
6009 configuration is useful to you, please write to autoconf@gnu.org." >&5
6010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011 whose name does not start with the host triplet.  If you think this
6012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013 ac_tool_warned=yes ;;
6014 esac
6015     CXX=$ac_ct_CXX
6016   fi
6017 fi
6018
6019   fi
6020 fi
6021 # Provide some information about the compiler.
6022 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6023 ac_compiler=`set X $ac_compile; echo $2`
6024 { (ac_try="$ac_compiler --version >&5"
6025 case "(($ac_try" in
6026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027   *) ac_try_echo=$ac_try;;
6028 esac
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030   (eval "$ac_compiler --version >&5") 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }
6034 { (ac_try="$ac_compiler -v >&5"
6035 case "(($ac_try" in
6036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037   *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040   (eval "$ac_compiler -v >&5") 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }
6044 { (ac_try="$ac_compiler -V >&5"
6045 case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_compiler -V >&5") 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }
6054
6055 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6056 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6057 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067 int
6068 main ()
6069 {
6070 #ifndef __GNUC__
6071        choke me
6072 #endif
6073
6074   ;
6075   return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (ac_try="$ac_compile"
6080 case "(($ac_try" in
6081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082   *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085   (eval "$ac_compile") 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6093   { (case "(($ac_try" in
6094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095   *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098   (eval "$ac_try") 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; } &&
6102          { ac_try='test -s conftest.$ac_objext'
6103   { (case "(($ac_try" in
6104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105   *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108   (eval "$ac_try") 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; }; then
6112   ac_compiler_gnu=yes
6113 else
6114   echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117         ac_compiler_gnu=no
6118 fi
6119
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6122
6123 fi
6124 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6125 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6126 GXX=`test $ac_compiler_gnu = yes && echo yes`
6127 ac_test_CXXFLAGS=${CXXFLAGS+set}
6128 ac_save_CXXFLAGS=$CXXFLAGS
6129 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6130 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_cxx_g+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6135    ac_cxx_werror_flag=yes
6136    ac_cv_prog_cxx_g=no
6137    CXXFLAGS="-g"
6138    cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144
6145 int
6146 main ()
6147 {
6148
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6155 case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160   (eval "$ac_compile") 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } &&
6167          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6168   { (case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_try") 2>&5
6174   ac_status=$?
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); }; } &&
6177          { ac_try='test -s conftest.$ac_objext'
6178   { (case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_try") 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_cv_prog_cxx_g=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192         CXXFLAGS=""
6193       cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199
6200 int
6201 main ()
6202 {
6203
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (ac_try="$ac_compile"
6210 case "(($ac_try" in
6211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212   *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215   (eval "$ac_compile") 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6223   { (case "(($ac_try" in
6224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225   *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228   (eval "$ac_try") 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; } &&
6232          { ac_try='test -s conftest.$ac_objext'
6233   { (case "(($ac_try" in
6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235   *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238   (eval "$ac_try") 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   :
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6248          CXXFLAGS="-g"
6249          cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h.  */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h.  */
6255
6256 int
6257 main ()
6258 {
6259
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (ac_try="$ac_compile"
6266 case "(($ac_try" in
6267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268   *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271   (eval "$ac_compile") 2>conftest.er1
6272   ac_status=$?
6273   grep -v '^ *+' conftest.er1 >conftest.err
6274   rm -f conftest.er1
6275   cat conftest.err >&5
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); } &&
6278          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6279   { (case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_try") 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; } &&
6288          { ac_try='test -s conftest.$ac_objext'
6289   { (case "(($ac_try" in
6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291   *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294   (eval "$ac_try") 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; }; then
6298   ac_cv_prog_cxx_g=yes
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303
6304 fi
6305
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 fi
6308
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310 fi
6311
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314 fi
6315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6316 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6317 if test "$ac_test_CXXFLAGS" = set; then
6318   CXXFLAGS=$ac_save_CXXFLAGS
6319 elif test $ac_cv_prog_cxx_g = yes; then
6320   if test "$GXX" = yes; then
6321     CXXFLAGS="-g -O2"
6322   else
6323     CXXFLAGS="-g"
6324   fi
6325 else
6326   if test "$GXX" = yes; then
6327     CXXFLAGS="-O2"
6328   else
6329     CXXFLAGS=
6330   fi
6331 fi
6332 ac_ext=c
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
6338
6339 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6340 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6341 if test "${lt_cv_path_NM+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   if test -n "$NM"; then
6345   # Let the user override the test.
6346   lt_cv_path_NM="$NM"
6347 else
6348   lt_nm_to_check="${ac_tool_prefix}nm"
6349   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350     lt_nm_to_check="$lt_nm_to_check nm"
6351   fi
6352   for lt_tmp_nm in $lt_nm_to_check; do
6353     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6355       IFS="$lt_save_ifs"
6356       test -z "$ac_dir" && ac_dir=.
6357       tmp_nm="$ac_dir/$lt_tmp_nm"
6358       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359         # Check to see if the nm accepts a BSD-compat flag.
6360         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361         #   nm: unknown option "B" ignored
6362         # Tru64's nm complains that /dev/null is an invalid object file
6363         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364         */dev/null* | *'Invalid file or object type'*)
6365           lt_cv_path_NM="$tmp_nm -B"
6366           break
6367           ;;
6368         *)
6369           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6370           */dev/null*)
6371             lt_cv_path_NM="$tmp_nm -p"
6372             break
6373             ;;
6374           *)
6375             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376             continue # so that we can try to find one that supports BSD flags
6377             ;;
6378           esac
6379           ;;
6380         esac
6381       fi
6382     done
6383     IFS="$lt_save_ifs"
6384   done
6385   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6386 fi
6387 fi
6388 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6389 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6390 NM="$lt_cv_path_NM"
6391
6392
6393
6394 { echo "$as_me:$LINENO: checking for GNU make" >&5
6395 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6396 if test "${llvm_cv_gnu_make_command+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   llvm_cv_gnu_make_command=''
6400  for a in "$MAKE" make gmake gnumake ; do
6401   if test -z "$a" ; then continue ; fi ;
6402   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6403   then
6404    llvm_cv_gnu_make_command=$a ;
6405    break;
6406   fi
6407  done
6408 fi
6409 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6410 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6411  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6412    ifGNUmake='' ;
6413  else
6414    ifGNUmake='#' ;
6415    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6416 echo "${ECHO_T}\"Not found\"" >&6; };
6417  fi
6418
6419
6420 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6421 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6422 LN_S=$as_ln_s
6423 if test "$LN_S" = "ln -s"; then
6424   { echo "$as_me:$LINENO: result: yes" >&5
6425 echo "${ECHO_T}yes" >&6; }
6426 else
6427   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6428 echo "${ECHO_T}no, using $LN_S" >&6; }
6429 fi
6430
6431 # Extract the first word of "cmp", so it can be a program name with args.
6432 set dummy cmp; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_path_CMP+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   case $CMP in
6439   [\\/]* | ?:[\\/]*)
6440   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6441   ;;
6442   *)
6443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448   for ac_exec_ext in '' $ac_executable_extensions; do
6449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6459   ;;
6460 esac
6461 fi
6462 CMP=$ac_cv_path_CMP
6463 if test -n "$CMP"; then
6464   { echo "$as_me:$LINENO: result: $CMP" >&5
6465 echo "${ECHO_T}$CMP" >&6; }
6466 else
6467   { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6469 fi
6470
6471
6472 # Extract the first word of "cp", so it can be a program name with args.
6473 set dummy cp; ac_word=$2
6474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476 if test "${ac_cv_path_CP+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   case $CP in
6480   [\\/]* | ?:[\\/]*)
6481   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6482   ;;
6483   *)
6484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6500   ;;
6501 esac
6502 fi
6503 CP=$ac_cv_path_CP
6504 if test -n "$CP"; then
6505   { echo "$as_me:$LINENO: result: $CP" >&5
6506 echo "${ECHO_T}$CP" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6510 fi
6511
6512
6513 # Extract the first word of "date", so it can be a program name with args.
6514 set dummy date; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_path_DATE+set}" = set; then
6518   echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520   case $DATE in
6521   [\\/]* | ?:[\\/]*)
6522   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6523   ;;
6524   *)
6525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6541   ;;
6542 esac
6543 fi
6544 DATE=$ac_cv_path_DATE
6545 if test -n "$DATE"; then
6546   { echo "$as_me:$LINENO: result: $DATE" >&5
6547 echo "${ECHO_T}$DATE" >&6; }
6548 else
6549   { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6551 fi
6552
6553
6554 # Extract the first word of "find", so it can be a program name with args.
6555 set dummy find; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_path_FIND+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   case $FIND in
6562   [\\/]* | ?:[\\/]*)
6563   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6564   ;;
6565   *)
6566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569   IFS=$as_save_IFS
6570   test -z "$as_dir" && as_dir=.
6571   for ac_exec_ext in '' $ac_executable_extensions; do
6572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6573     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575     break 2
6576   fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6582   ;;
6583 esac
6584 fi
6585 FIND=$ac_cv_path_FIND
6586 if test -n "$FIND"; then
6587   { echo "$as_me:$LINENO: result: $FIND" >&5
6588 echo "${ECHO_T}$FIND" >&6; }
6589 else
6590   { echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6; }
6592 fi
6593
6594
6595 # Extract the first word of "grep", so it can be a program name with args.
6596 set dummy grep; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_GREP+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   case $GREP in
6603   [\\/]* | ?:[\\/]*)
6604   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6605   ;;
6606   *)
6607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612   for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6623   ;;
6624 esac
6625 fi
6626 GREP=$ac_cv_path_GREP
6627 if test -n "$GREP"; then
6628   { echo "$as_me:$LINENO: result: $GREP" >&5
6629 echo "${ECHO_T}$GREP" >&6; }
6630 else
6631   { echo "$as_me:$LINENO: result: no" >&5
6632 echo "${ECHO_T}no" >&6; }
6633 fi
6634
6635
6636 # Extract the first word of "mkdir", so it can be a program name with args.
6637 set dummy mkdir; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_MKDIR+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   case $MKDIR in
6644   [\\/]* | ?:[\\/]*)
6645   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6646   ;;
6647   *)
6648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653   for ac_exec_ext in '' $ac_executable_extensions; do
6654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6664   ;;
6665 esac
6666 fi
6667 MKDIR=$ac_cv_path_MKDIR
6668 if test -n "$MKDIR"; then
6669   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6670 echo "${ECHO_T}$MKDIR" >&6; }
6671 else
6672   { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6674 fi
6675
6676
6677 # Extract the first word of "mv", so it can be a program name with args.
6678 set dummy mv; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_MV+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   case $MV in
6685   [\\/]* | ?:[\\/]*)
6686   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6687   ;;
6688   *)
6689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6705   ;;
6706 esac
6707 fi
6708 MV=$ac_cv_path_MV
6709 if test -n "$MV"; then
6710   { echo "$as_me:$LINENO: result: $MV" >&5
6711 echo "${ECHO_T}$MV" >&6; }
6712 else
6713   { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6715 fi
6716
6717
6718 if test -n "$ac_tool_prefix"; then
6719   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   if test -n "$RANLIB"; then
6727   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732   IFS=$as_save_IFS
6733   test -z "$as_dir" && as_dir=.
6734   for ac_exec_ext in '' $ac_executable_extensions; do
6735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738     break 2
6739   fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756 fi
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758   ac_ct_RANLIB=$RANLIB
6759   # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   if test -n "$ac_ct_RANLIB"; then
6767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_prog_ac_ct_RANLIB="ranlib"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790 else
6791   { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6793 fi
6794
6795   if test "x$ac_ct_RANLIB" = x; then
6796     RANLIB=":"
6797   else
6798     case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet.  If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     RANLIB=$ac_ct_RANLIB
6809   fi
6810 else
6811   RANLIB="$ac_cv_prog_RANLIB"
6812 fi
6813
6814 # Extract the first word of "rm", so it can be a program name with args.
6815 set dummy rm; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_path_RM+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   case $RM in
6822   [\\/]* | ?:[\\/]*)
6823   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6824   ;;
6825   *)
6826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831   for ac_exec_ext in '' $ac_executable_extensions; do
6832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6833     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6842   ;;
6843 esac
6844 fi
6845 RM=$ac_cv_path_RM
6846 if test -n "$RM"; then
6847   { echo "$as_me:$LINENO: result: $RM" >&5
6848 echo "${ECHO_T}$RM" >&6; }
6849 else
6850   { echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6; }
6852 fi
6853
6854
6855 # Extract the first word of "sed", so it can be a program name with args.
6856 set dummy sed; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_SED+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   case $SED in
6863   [\\/]* | ?:[\\/]*)
6864   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6865   ;;
6866   *)
6867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872   for ac_exec_ext in '' $ac_executable_extensions; do
6873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6883   ;;
6884 esac
6885 fi
6886 SED=$ac_cv_path_SED
6887 if test -n "$SED"; then
6888   { echo "$as_me:$LINENO: result: $SED" >&5
6889 echo "${ECHO_T}$SED" >&6; }
6890 else
6891   { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6893 fi
6894
6895
6896 # Extract the first word of "tar", so it can be a program name with args.
6897 set dummy tar; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_path_TAR+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   case $TAR in
6904   [\\/]* | ?:[\\/]*)
6905   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6906   ;;
6907   *)
6908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913   for ac_exec_ext in '' $ac_executable_extensions; do
6914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6915     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6924   ;;
6925 esac
6926 fi
6927 TAR=$ac_cv_path_TAR
6928 if test -n "$TAR"; then
6929   { echo "$as_me:$LINENO: result: $TAR" >&5
6930 echo "${ECHO_T}$TAR" >&6; }
6931 else
6932   { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6934 fi
6935
6936
6937 # Extract the first word of "pwd", so it can be a program name with args.
6938 set dummy pwd; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_BINPWD+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   case $BINPWD in
6945   [\\/]* | ?:[\\/]*)
6946   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6947   ;;
6948   *)
6949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954   for ac_exec_ext in '' $ac_executable_extensions; do
6955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6965   ;;
6966 esac
6967 fi
6968 BINPWD=$ac_cv_path_BINPWD
6969 if test -n "$BINPWD"; then
6970   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6971 echo "${ECHO_T}$BINPWD" >&6; }
6972 else
6973   { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6975 fi
6976
6977
6978
6979 # Extract the first word of "Graphviz", so it can be a program name with args.
6980 set dummy Graphviz; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   case $GRAPHVIZ in
6987   [\\/]* | ?:[\\/]*)
6988   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6989   ;;
6990   *)
6991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   test -z "$as_dir" && as_dir=.
6996   for ac_exec_ext in '' $ac_executable_extensions; do
6997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000     break 2
7001   fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7007   ;;
7008 esac
7009 fi
7010 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7011 if test -n "$GRAPHVIZ"; then
7012   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7013 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7014 else
7015   { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019
7020 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7021
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_GRAPHVIZ 1
7024 _ACEOF
7025
7026     if test "$llvm_cv_os_type" = "MingW" ; then
7027     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7028   fi
7029
7030 cat >>confdefs.h <<_ACEOF
7031 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7032 _ACEOF
7033
7034 fi
7035 # Extract the first word of "dot", so it can be a program name with args.
7036 set dummy dot; ac_word=$2
7037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039 if test "${ac_cv_path_DOT+set}" = set; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042   case $DOT in
7043   [\\/]* | ?:[\\/]*)
7044   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7045   ;;
7046   *)
7047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052   for ac_exec_ext in '' $ac_executable_extensions; do
7053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7054     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7063   ;;
7064 esac
7065 fi
7066 DOT=$ac_cv_path_DOT
7067 if test -n "$DOT"; then
7068   { echo "$as_me:$LINENO: result: $DOT" >&5
7069 echo "${ECHO_T}$DOT" >&6; }
7070 else
7071   { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7073 fi
7074
7075
7076 if test "$DOT" != "echo dot" ; then
7077
7078 cat >>confdefs.h <<\_ACEOF
7079 #define HAVE_DOT 1
7080 _ACEOF
7081
7082     if test "$llvm_cv_os_type" = "MingW" ; then
7083     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7084   fi
7085
7086 cat >>confdefs.h <<_ACEOF
7087 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7088 _ACEOF
7089
7090 fi
7091 for ac_prog in gv gsview32
7092 do
7093   # Extract the first word of "$ac_prog", so it can be a program name with args.
7094 set dummy $ac_prog; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_GV+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   case $GV in
7101   [\\/]* | ?:[\\/]*)
7102   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7103   ;;
7104   *)
7105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110   for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120   ;;
7121 esac
7122 fi
7123 GV=$ac_cv_path_GV
7124 if test -n "$GV"; then
7125   { echo "$as_me:$LINENO: result: $GV" >&5
7126 echo "${ECHO_T}$GV" >&6; }
7127 else
7128   { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7130 fi
7131
7132
7133   test -n "$GV" && break
7134 done
7135 test -n "$GV" || GV="echo gv"
7136
7137 if test "$GV" != "echo gv" ; then
7138
7139 cat >>confdefs.h <<\_ACEOF
7140 #define HAVE_GV 1
7141 _ACEOF
7142
7143     if test "$llvm_cv_os_type" = "MingW" ; then
7144     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7145   fi
7146
7147 cat >>confdefs.h <<_ACEOF
7148 #define LLVM_PATH_GV "$GV${EXEEXT}"
7149 _ACEOF
7150
7151 fi
7152 # Extract the first word of "dotty", so it can be a program name with args.
7153 set dummy dotty; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_DOTTY+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   case $DOTTY in
7160   [\\/]* | ?:[\\/]*)
7161   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7162   ;;
7163   *)
7164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169   for ac_exec_ext in '' $ac_executable_extensions; do
7170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7180   ;;
7181 esac
7182 fi
7183 DOTTY=$ac_cv_path_DOTTY
7184 if test -n "$DOTTY"; then
7185   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7186 echo "${ECHO_T}$DOTTY" >&6; }
7187 else
7188   { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7190 fi
7191
7192
7193 if test "$DOTTY" != "echo dotty" ; then
7194
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_DOTTY 1
7197 _ACEOF
7198
7199     if test "$llvm_cv_os_type" = "MingW" ; then
7200     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7201   fi
7202
7203 cat >>confdefs.h <<_ACEOF
7204 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7205 _ACEOF
7206
7207 fi
7208
7209
7210 # Extract the first word of "perl", so it can be a program name with args.
7211 set dummy perl; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_PERL+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217   case $PERL in
7218   [\\/]* | ?:[\\/]*)
7219   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7220   ;;
7221   *)
7222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225   IFS=$as_save_IFS
7226   test -z "$as_dir" && as_dir=.
7227   for ac_exec_ext in '' $ac_executable_extensions; do
7228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231     break 2
7232   fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7238   ;;
7239 esac
7240 fi
7241 PERL=$ac_cv_path_PERL
7242 if test -n "$PERL"; then
7243   { echo "$as_me:$LINENO: result: $PERL" >&5
7244 echo "${ECHO_T}$PERL" >&6; }
7245 else
7246   { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7248 fi
7249
7250
7251 if test "$PERL" != "none"; then
7252   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7253 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7254   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7255     { echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6; }
7257   else
7258     PERL=none
7259     { echo "$as_me:$LINENO: result: not found" >&5
7260 echo "${ECHO_T}not found" >&6; }
7261   fi
7262 fi
7263
7264
7265 if test x"$PERL" = xnone; then
7266    HAVE_PERL=0
7267
7268    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7269 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7270    { (exit 1); exit 1; }; }
7271 else
7272    HAVE_PERL=1
7273
7274 fi
7275
7276 # Find a good install program.  We prefer a C program (faster),
7277 # so one script is as good as another.  But avoid the broken or
7278 # incompatible versions:
7279 # SysV /etc/install, /usr/sbin/install
7280 # SunOS /usr/etc/install
7281 # IRIX /sbin/install
7282 # AIX /bin/install
7283 # AmigaOS /C/install, which installs bootblocks on floppy discs
7284 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7285 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7286 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7287 # OS/2's system install, which has a completely different semantic
7288 # ./install, which can be erroneously created by make from ./install.sh.
7289 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7290 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7291 if test -z "$INSTALL"; then
7292 if test "${ac_cv_path_install+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300   # Account for people who put trailing slashes in PATH elements.
7301 case $as_dir/ in
7302   ./ | .// | /cC/* | \
7303   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7304   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7305   /usr/ucb/* ) ;;
7306   *)
7307     # OSF1 and SCO ODT 3.0 have their own names for install.
7308     # Don't use installbsd from OSF since it installs stuff as root
7309     # by default.
7310     for ac_prog in ginstall scoinst install; do
7311       for ac_exec_ext in '' $ac_executable_extensions; do
7312         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7313           if test $ac_prog = install &&
7314             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7315             # AIX install.  It has an incompatible calling convention.
7316             :
7317           elif test $ac_prog = install &&
7318             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7319             # program-specific install script used by HP pwplus--don't use.
7320             :
7321           else
7322             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7323             break 3
7324           fi
7325         fi
7326       done
7327     done
7328     ;;
7329 esac
7330 done
7331 IFS=$as_save_IFS
7332
7333
7334 fi
7335   if test "${ac_cv_path_install+set}" = set; then
7336     INSTALL=$ac_cv_path_install
7337   else
7338     # As a last resort, use the slow shell script.  Don't cache a
7339     # value for INSTALL within a source directory, because that will
7340     # break other packages using the cache if that directory is
7341     # removed, or if the value is a relative name.
7342     INSTALL=$ac_install_sh
7343   fi
7344 fi
7345 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7346 echo "${ECHO_T}$INSTALL" >&6; }
7347
7348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7349 # It thinks the first close brace ends the variable substitution.
7350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7351
7352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7353
7354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7355
7356
7357 # Extract the first word of "bzip2", so it can be a program name with args.
7358 set dummy bzip2; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_BZIP2+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   case $BZIP2 in
7365   [\\/]* | ?:[\\/]*)
7366   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7367   ;;
7368   *)
7369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374   for ac_exec_ext in '' $ac_executable_extensions; do
7375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384   ;;
7385 esac
7386 fi
7387 BZIP2=$ac_cv_path_BZIP2
7388 if test -n "$BZIP2"; then
7389   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7390 echo "${ECHO_T}$BZIP2" >&6; }
7391 else
7392   { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7394 fi
7395
7396
7397 # Extract the first word of "doxygen", so it can be a program name with args.
7398 set dummy doxygen; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   case $DOXYGEN in
7405   [\\/]* | ?:[\\/]*)
7406   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7407   ;;
7408   *)
7409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414   for ac_exec_ext in '' $ac_executable_extensions; do
7415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7416     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421 done
7422 IFS=$as_save_IFS
7423
7424   ;;
7425 esac
7426 fi
7427 DOXYGEN=$ac_cv_path_DOXYGEN
7428 if test -n "$DOXYGEN"; then
7429   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7430 echo "${ECHO_T}$DOXYGEN" >&6; }
7431 else
7432   { echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6; }
7434 fi
7435
7436
7437 # Extract the first word of "groff", so it can be a program name with args.
7438 set dummy groff; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_path_GROFF+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   case $GROFF in
7445   [\\/]* | ?:[\\/]*)
7446   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7447   ;;
7448   *)
7449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454   for ac_exec_ext in '' $ac_executable_extensions; do
7455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7456     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464   ;;
7465 esac
7466 fi
7467 GROFF=$ac_cv_path_GROFF
7468 if test -n "$GROFF"; then
7469   { echo "$as_me:$LINENO: result: $GROFF" >&5
7470 echo "${ECHO_T}$GROFF" >&6; }
7471 else
7472   { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7474 fi
7475
7476
7477 # Extract the first word of "gzip", so it can be a program name with args.
7478 set dummy gzip; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_path_GZIP+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   case $GZIP in
7485   [\\/]* | ?:[\\/]*)
7486   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7487   ;;
7488   *)
7489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494   for ac_exec_ext in '' $ac_executable_extensions; do
7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7496     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504   ;;
7505 esac
7506 fi
7507 GZIP=$ac_cv_path_GZIP
7508 if test -n "$GZIP"; then
7509   { echo "$as_me:$LINENO: result: $GZIP" >&5
7510 echo "${ECHO_T}$GZIP" >&6; }
7511 else
7512   { echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6; }
7514 fi
7515
7516
7517 # Extract the first word of "pod2html", so it can be a program name with args.
7518 set dummy pod2html; ac_word=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_POD2HTML+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   case $POD2HTML in
7525   [\\/]* | ?:[\\/]*)
7526   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7527   ;;
7528   *)
7529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
7532   IFS=$as_save_IFS
7533   test -z "$as_dir" && as_dir=.
7534   for ac_exec_ext in '' $ac_executable_extensions; do
7535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538     break 2
7539   fi
7540 done
7541 done
7542 IFS=$as_save_IFS
7543
7544   ;;
7545 esac
7546 fi
7547 POD2HTML=$ac_cv_path_POD2HTML
7548 if test -n "$POD2HTML"; then
7549   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7550 echo "${ECHO_T}$POD2HTML" >&6; }
7551 else
7552   { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7554 fi
7555
7556
7557 # Extract the first word of "pod2man", so it can be a program name with args.
7558 set dummy pod2man; ac_word=$2
7559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561 if test "${ac_cv_path_POD2MAN+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   case $POD2MAN in
7565   [\\/]* | ?:[\\/]*)
7566   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7567   ;;
7568   *)
7569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572   IFS=$as_save_IFS
7573   test -z "$as_dir" && as_dir=.
7574   for ac_exec_ext in '' $ac_executable_extensions; do
7575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7576     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578     break 2
7579   fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584   ;;
7585 esac
7586 fi
7587 POD2MAN=$ac_cv_path_POD2MAN
7588 if test -n "$POD2MAN"; then
7589   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7590 echo "${ECHO_T}$POD2MAN" >&6; }
7591 else
7592   { echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6; }
7594 fi
7595
7596
7597 # Extract the first word of "runtest", so it can be a program name with args.
7598 set dummy runtest; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_RUNTEST+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   case $RUNTEST in
7605   [\\/]* | ?:[\\/]*)
7606   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7607   ;;
7608   *)
7609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614   for ac_exec_ext in '' $ac_executable_extensions; do
7615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624   ;;
7625 esac
7626 fi
7627 RUNTEST=$ac_cv_path_RUNTEST
7628 if test -n "$RUNTEST"; then
7629   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7630 echo "${ECHO_T}$RUNTEST" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7634 fi
7635
7636
7637
7638 no_itcl=true
7639 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7640 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7641
7642 # Check whether --with-tclinclude was given.
7643 if test "${with_tclinclude+set}" = set; then
7644   withval=$with_tclinclude; with_tclinclude=${withval}
7645 else
7646   with_tclinclude=''
7647 fi
7648
7649 if test "${ac_cv_path_tclsh+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652
7653 if test x"${with_tclinclude}" != x ; then
7654   if test -f ${with_tclinclude}/tclsh ; then
7655     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7656   elif test -f ${with_tclinclude}/src/tclsh ; then
7657     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7658   else
7659     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7660 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7661    { (exit 1); exit 1; }; }
7662   fi
7663 fi
7664
7665 if test x"${ac_cv_path_tclsh}" = x ; then
7666   { echo "$as_me:$LINENO: result: none" >&5
7667 echo "${ECHO_T}none" >&6; }
7668   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7669 do
7670   # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_TCLSH+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   case $TCLSH in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697   ;;
7698 esac
7699 fi
7700 TCLSH=$ac_cv_path_TCLSH
7701 if test -n "$TCLSH"; then
7702   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7703 echo "${ECHO_T}$TCLSH" >&6; }
7704 else
7705   { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709
7710   test -n "$TCLSH" && break
7711 done
7712
7713   if test x"${TCLSH}" = x ; then
7714     ac_cv_path_tclsh='';
7715   else
7716     ac_cv_path_tclsh="${TCLSH}";
7717   fi
7718 else
7719   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7720 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7721   TCLSH="${ac_cv_path_tclsh}"
7722
7723 fi
7724
7725 fi
7726
7727 # Extract the first word of "zip", so it can be a program name with args.
7728 set dummy zip; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_path_ZIP+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   case $ZIP in
7735   [\\/]* | ?:[\\/]*)
7736   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7737   ;;
7738   *)
7739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744   for ac_exec_ext in '' $ac_executable_extensions; do
7745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7746     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754   ;;
7755 esac
7756 fi
7757 ZIP=$ac_cv_path_ZIP
7758 if test -n "$ZIP"; then
7759   { echo "$as_me:$LINENO: result: $ZIP" >&5
7760 echo "${ECHO_T}$ZIP" >&6; }
7761 else
7762   { echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6; }
7764 fi
7765
7766
7767 for ac_prog in ocamlc
7768 do
7769   # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773 if test "${ac_cv_path_OCAMLC+set}" = set; then
7774   echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776   case $OCAMLC in
7777   [\\/]* | ?:[\\/]*)
7778   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7779   ;;
7780   *)
7781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784   IFS=$as_save_IFS
7785   test -z "$as_dir" && as_dir=.
7786   for ac_exec_ext in '' $ac_executable_extensions; do
7787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790     break 2
7791   fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796   ;;
7797 esac
7798 fi
7799 OCAMLC=$ac_cv_path_OCAMLC
7800 if test -n "$OCAMLC"; then
7801   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7802 echo "${ECHO_T}$OCAMLC" >&6; }
7803 else
7804   { echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6; }
7806 fi
7807
7808
7809   test -n "$OCAMLC" && break
7810 done
7811
7812 for ac_prog in ocamlopt
7813 do
7814   # Extract the first word of "$ac_prog", so it can be a program name with args.
7815 set dummy $ac_prog; ac_word=$2
7816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7818 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   case $OCAMLOPT in
7822   [\\/]* | ?:[\\/]*)
7823   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7824   ;;
7825   *)
7826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829   IFS=$as_save_IFS
7830   test -z "$as_dir" && as_dir=.
7831   for ac_exec_ext in '' $ac_executable_extensions; do
7832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7833     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835     break 2
7836   fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841   ;;
7842 esac
7843 fi
7844 OCAMLOPT=$ac_cv_path_OCAMLOPT
7845 if test -n "$OCAMLOPT"; then
7846   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7847 echo "${ECHO_T}$OCAMLOPT" >&6; }
7848 else
7849   { echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6; }
7851 fi
7852
7853
7854   test -n "$OCAMLOPT" && break
7855 done
7856
7857 for ac_prog in ocamldep
7858 do
7859   # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   case $OCAMLDEP in
7867   [\\/]* | ?:[\\/]*)
7868   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7869   ;;
7870   *)
7871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874   IFS=$as_save_IFS
7875   test -z "$as_dir" && as_dir=.
7876   for ac_exec_ext in '' $ac_executable_extensions; do
7877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7878     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880     break 2
7881   fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886   ;;
7887 esac
7888 fi
7889 OCAMLDEP=$ac_cv_path_OCAMLDEP
7890 if test -n "$OCAMLDEP"; then
7891   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7892 echo "${ECHO_T}$OCAMLDEP" >&6; }
7893 else
7894   { echo "$as_me:$LINENO: result: no" >&5
7895 echo "${ECHO_T}no" >&6; }
7896 fi
7897
7898
7899   test -n "$OCAMLDEP" && break
7900 done
7901
7902 for ac_prog in ocamldoc
7903 do
7904   # Extract the first word of "$ac_prog", so it can be a program name with args.
7905 set dummy $ac_prog; ac_word=$2
7906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   case $OCAMLDOC in
7912   [\\/]* | ?:[\\/]*)
7913   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7914   ;;
7915   *)
7916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921   for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928 done
7929 IFS=$as_save_IFS
7930
7931   ;;
7932 esac
7933 fi
7934 OCAMLDOC=$ac_cv_path_OCAMLDOC
7935 if test -n "$OCAMLDOC"; then
7936   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7937 echo "${ECHO_T}$OCAMLDOC" >&6; }
7938 else
7939   { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7941 fi
7942
7943
7944   test -n "$OCAMLDOC" && break
7945 done
7946
7947 for ac_prog in gas as
7948 do
7949   # Extract the first word of "$ac_prog", so it can be a program name with args.
7950 set dummy $ac_prog; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_path_GAS+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   case $GAS in
7957   [\\/]* | ?:[\\/]*)
7958   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7959   ;;
7960   *)
7961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7963 do
7964   IFS=$as_save_IFS
7965   test -z "$as_dir" && as_dir=.
7966   for ac_exec_ext in '' $ac_executable_extensions; do
7967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7968     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970     break 2
7971   fi
7972 done
7973 done
7974 IFS=$as_save_IFS
7975
7976   ;;
7977 esac
7978 fi
7979 GAS=$ac_cv_path_GAS
7980 if test -n "$GAS"; then
7981   { echo "$as_me:$LINENO: result: $GAS" >&5
7982 echo "${ECHO_T}$GAS" >&6; }
7983 else
7984   { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7986 fi
7987
7988
7989   test -n "$GAS" && break
7990 done
7991
7992
7993 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7994 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7995 if test "${llvm_cv_link_use_r+set}" = set; then
7996   echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998    ac_ext=c
7999 ac_cpp='$CPP $CPPFLAGS'
8000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004   oldcflags="$CFLAGS"
8005   CFLAGS="$CFLAGS -Wl,-R."
8006   cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012
8013 int
8014 main ()
8015 {
8016 int main() { return 0; }
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (ac_try="$ac_link"
8023 case "(($ac_try" in
8024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025   *) ac_try_echo=$ac_try;;
8026 esac
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028   (eval "$ac_link") 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } &&
8035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036   { (case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041   (eval "$ac_try") 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; } &&
8045          { ac_try='test -s conftest$ac_exeext'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_try") 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; }; then
8055   llvm_cv_link_use_r=yes
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060         llvm_cv_link_use_r=no
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext \
8064       conftest$ac_exeext conftest.$ac_ext
8065   CFLAGS="$oldcflags"
8066   ac_ext=c
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073 fi
8074 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8075 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8076 if test "$llvm_cv_link_use_r" = yes ; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LINK_R 1
8080 _ACEOF
8081
8082   fi
8083
8084
8085 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8086 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8087 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090    ac_ext=c
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096   oldcflags="$CFLAGS"
8097   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8098   cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104
8105 int
8106 main ()
8107 {
8108 int main() { return 0; }
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (ac_try="$ac_link"
8115 case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120   (eval "$ac_link") 2>conftest.er1
8121   ac_status=$?
8122   grep -v '^ *+' conftest.er1 >conftest.err
8123   rm -f conftest.er1
8124   cat conftest.err >&5
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } &&
8127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8128   { (case "(($ac_try" in
8129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130   *) ac_try_echo=$ac_try;;
8131 esac
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133   (eval "$ac_try") 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; } &&
8137          { ac_try='test -s conftest$ac_exeext'
8138   { (case "(($ac_try" in
8139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140   *) ac_try_echo=$ac_try;;
8141 esac
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143   (eval "$ac_try") 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   llvm_cv_link_use_export_dynamic=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152         llvm_cv_link_use_export_dynamic=no
8153 fi
8154
8155 rm -f core conftest.err conftest.$ac_objext \
8156       conftest$ac_exeext conftest.$ac_ext
8157   CFLAGS="$oldcflags"
8158   ac_ext=c
8159 ac_cpp='$CPP $CPPFLAGS'
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165 fi
8166 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8167 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8168 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8169
8170 cat >>confdefs.h <<\_ACEOF
8171 #define HAVE_LINK_EXPORT_DYNAMIC 1
8172 _ACEOF
8173
8174   fi
8175
8176
8177
8178
8179 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8180 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8181 if test "${ac_cv_c_const+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190
8191 int
8192 main ()
8193 {
8194 /* FIXME: Include the comments suggested by Paul. */
8195 #ifndef __cplusplus
8196   /* Ultrix mips cc rejects this.  */
8197   typedef int charset[2];
8198   const charset x;
8199   /* SunOS 4.1.1 cc rejects this.  */
8200   char const *const *ccp;
8201   char **p;
8202   /* NEC SVR4.0.2 mips cc rejects this.  */
8203   struct point {int x, y;};
8204   static struct point const zero = {0,0};
8205   /* AIX XL C 1.02.0.0 rejects this.
8206      It does not let you subtract one const X* pointer from another in
8207      an arm of an if-expression whose if-part is not a constant
8208      expression */
8209   const char *g = "string";
8210   ccp = &g + (g ? g-g : 0);
8211   /* HPUX 7.0 cc rejects these. */
8212   ++ccp;
8213   p = (char**) ccp;
8214   ccp = (char const *const *) p;
8215   { /* SCO 3.2v4 cc rejects this.  */
8216     char *t;
8217     char const *s = 0 ? (char *) 0 : (char const *) 0;
8218
8219     *t++ = 0;
8220     if (s) return 0;
8221   }
8222   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8223     int x[] = {25, 17};
8224     const int *foo = &x[0];
8225     ++foo;
8226   }
8227   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8228     typedef const int *iptr;
8229     iptr p = 0;
8230     ++p;
8231   }
8232   { /* AIX XL C 1.02.0.0 rejects this saying
8233        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8234     struct s { int j; const int *ap[3]; };
8235     struct s *b; b->j = 5;
8236   }
8237   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8238     const int foo = 10;
8239     if (!foo) return 0;
8240   }
8241   return !x[0] && !zero.x;
8242 #endif
8243
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255   (eval "$ac_compile") 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } &&
8262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263   { (case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_try") 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; } &&
8272          { ac_try='test -s conftest.$ac_objext'
8273   { (case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278   (eval "$ac_try") 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); }; }; then
8282   ac_cv_c_const=yes
8283 else
8284   echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8286
8287         ac_cv_c_const=no
8288 fi
8289
8290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291 fi
8292 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8293 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8294 if test $ac_cv_c_const = no; then
8295
8296 cat >>confdefs.h <<\_ACEOF
8297 #define const
8298 _ACEOF
8299
8300 fi
8301
8302
8303
8304
8305
8306
8307 ac_header_dirent=no
8308 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8309   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8310 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8311 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 #include <sys/types.h>
8322 #include <$ac_hdr>
8323
8324 int
8325 main ()
8326 {
8327 if ((DIR *) 0)
8328 return 0;
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337   *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340   (eval "$ac_compile") 2>conftest.er1
8341   ac_status=$?
8342   grep -v '^ *+' conftest.er1 >conftest.err
8343   rm -f conftest.er1
8344   cat conftest.err >&5
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); } &&
8347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348   { (case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_try") 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); }; } &&
8357          { ac_try='test -s conftest.$ac_objext'
8358   { (case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_try") 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; }; then
8367   eval "$as_ac_Header=yes"
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372         eval "$as_ac_Header=no"
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 fi
8377 ac_res=`eval echo '${'$as_ac_Header'}'`
8378                { echo "$as_me:$LINENO: result: $ac_res" >&5
8379 echo "${ECHO_T}$ac_res" >&6; }
8380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8381   cat >>confdefs.h <<_ACEOF
8382 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8383 _ACEOF
8384
8385 ac_header_dirent=$ac_hdr; break
8386 fi
8387
8388 done
8389 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8390 if test $ac_header_dirent = dirent.h; then
8391   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8392 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8393 if test "${ac_cv_search_opendir+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   ac_func_search_save_LIBS=$LIBS
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403
8404 /* Override any GCC internal prototype to avoid an error.
8405    Use char because int might match the return type of a GCC
8406    builtin and then its argument prototype would still apply.  */
8407 #ifdef __cplusplus
8408 extern "C"
8409 #endif
8410 char opendir ();
8411 int
8412 main ()
8413 {
8414 return opendir ();
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 for ac_lib in '' dir; do
8420   if test -z "$ac_lib"; then
8421     ac_res="none required"
8422   else
8423     ac_res=-l$ac_lib
8424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8425   fi
8426   rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433   (eval "$ac_link") 2>conftest.er1
8434   ac_status=$?
8435   grep -v '^ *+' conftest.er1 >conftest.err
8436   rm -f conftest.er1
8437   cat conftest.err >&5
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441   { (case "(($ac_try" in
8442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443   *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446   (eval "$ac_try") 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); }; } &&
8450          { ac_try='test -s conftest$ac_exeext'
8451   { (case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_try") 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   ac_cv_search_opendir=$ac_res
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465
8466 fi
8467
8468 rm -f core conftest.err conftest.$ac_objext \
8469       conftest$ac_exeext
8470   if test "${ac_cv_search_opendir+set}" = set; then
8471   break
8472 fi
8473 done
8474 if test "${ac_cv_search_opendir+set}" = set; then
8475   :
8476 else
8477   ac_cv_search_opendir=no
8478 fi
8479 rm conftest.$ac_ext
8480 LIBS=$ac_func_search_save_LIBS
8481 fi
8482 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8483 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8484 ac_res=$ac_cv_search_opendir
8485 if test "$ac_res" != no; then
8486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8487
8488 fi
8489
8490 else
8491   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8492 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8493 if test "${ac_cv_search_opendir+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_func_search_save_LIBS=$LIBS
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503
8504 /* Override any GCC internal prototype to avoid an error.
8505    Use char because int might match the return type of a GCC
8506    builtin and then its argument prototype would still apply.  */
8507 #ifdef __cplusplus
8508 extern "C"
8509 #endif
8510 char opendir ();
8511 int
8512 main ()
8513 {
8514 return opendir ();
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 for ac_lib in '' x; do
8520   if test -z "$ac_lib"; then
8521     ac_res="none required"
8522   else
8523     ac_res=-l$ac_lib
8524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8525   fi
8526   rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (ac_try="$ac_link"
8528 case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_link") 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541   { (case "(($ac_try" in
8542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543   *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546   (eval "$ac_try") 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); }; } &&
8550          { ac_try='test -s conftest$ac_exeext'
8551   { (case "(($ac_try" in
8552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553   *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556   (eval "$ac_try") 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; }; then
8560   ac_cv_search_opendir=$ac_res
8561 else
8562   echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565
8566 fi
8567
8568 rm -f core conftest.err conftest.$ac_objext \
8569       conftest$ac_exeext
8570   if test "${ac_cv_search_opendir+set}" = set; then
8571   break
8572 fi
8573 done
8574 if test "${ac_cv_search_opendir+set}" = set; then
8575   :
8576 else
8577   ac_cv_search_opendir=no
8578 fi
8579 rm conftest.$ac_ext
8580 LIBS=$ac_func_search_save_LIBS
8581 fi
8582 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8583 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8584 ac_res=$ac_cv_search_opendir
8585 if test "$ac_res" != no; then
8586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8587
8588 fi
8589
8590 fi
8591
8592
8593 for ac_header in dlfcn.h
8594 do
8595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 fi
8602 ac_res=`eval echo '${'$as_ac_Header'}'`
8603                { echo "$as_me:$LINENO: result: $ac_res" >&5
8604 echo "${ECHO_T}$ac_res" >&6; }
8605 else
8606   # Is the header compilable?
8607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615 $ac_includes_default
8616 #include <$ac_header>
8617 _ACEOF
8618 rm -f conftest.$ac_objext
8619 if { (ac_try="$ac_compile"
8620 case "(($ac_try" in
8621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622   *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625   (eval "$ac_compile") 2>conftest.er1
8626   ac_status=$?
8627   grep -v '^ *+' conftest.er1 >conftest.err
8628   rm -f conftest.er1
8629   cat conftest.err >&5
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } &&
8632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8633   { (case "(($ac_try" in
8634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635   *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638   (eval "$ac_try") 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; } &&
8642          { ac_try='test -s conftest.$ac_objext'
8643   { (case "(($ac_try" in
8644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645   *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648   (eval "$ac_try") 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; }; then
8652   ac_header_compiler=yes
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657         ac_header_compiler=no
8658 fi
8659
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8662 echo "${ECHO_T}$ac_header_compiler" >&6; }
8663
8664 # Is the header present?
8665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673 #include <$ac_header>
8674 _ACEOF
8675 if { (ac_try="$ac_cpp conftest.$ac_ext"
8676 case "(($ac_try" in
8677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678   *) ac_try_echo=$ac_try;;
8679 esac
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8682   ac_status=$?
8683   grep -v '^ *+' conftest.er1 >conftest.err
8684   rm -f conftest.er1
8685   cat conftest.err >&5
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } >/dev/null; then
8688   if test -s conftest.err; then
8689     ac_cpp_err=$ac_c_preproc_warn_flag
8690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8691   else
8692     ac_cpp_err=
8693   fi
8694 else
8695   ac_cpp_err=yes
8696 fi
8697 if test -z "$ac_cpp_err"; then
8698   ac_header_preproc=yes
8699 else
8700   echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703   ac_header_preproc=no
8704 fi
8705
8706 rm -f conftest.err conftest.$ac_ext
8707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708 echo "${ECHO_T}$ac_header_preproc" >&6; }
8709
8710 # So?  What about this header?
8711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712   yes:no: )
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8717     ac_header_preproc=yes
8718     ;;
8719   no:yes:* )
8720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8732     ( cat <<\_ASBOX
8733 ## ----------------------------------- ##
8734 ## Report this to llvmbugs@cs.uiuc.edu ##
8735 ## ----------------------------------- ##
8736 _ASBOX
8737      ) | sed "s/^/$as_me: WARNING:     /" >&2
8738     ;;
8739 esac
8740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   eval "$as_ac_Header=\$ac_header_preproc"
8746 fi
8747 ac_res=`eval echo '${'$as_ac_Header'}'`
8748                { echo "$as_me:$LINENO: result: $ac_res" >&5
8749 echo "${ECHO_T}$ac_res" >&6; }
8750
8751 fi
8752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753   cat >>confdefs.h <<_ACEOF
8754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 _ACEOF
8756
8757 fi
8758
8759 done
8760
8761 # Check whether --enable-ltdl-install was given.
8762 if test "${enable_ltdl_install+set}" = set; then
8763   enableval=$enable_ltdl_install;
8764 fi
8765
8766
8767
8768
8769 if test x"${enable_ltdl_install-no}" != xno; then
8770   INSTALL_LTDL_TRUE=
8771   INSTALL_LTDL_FALSE='#'
8772 else
8773   INSTALL_LTDL_TRUE='#'
8774   INSTALL_LTDL_FALSE=
8775 fi
8776
8777
8778
8779 if test x"${enable_ltdl_convenience-no}" != xno; then
8780   CONVENIENCE_LTDL_TRUE=
8781   CONVENIENCE_LTDL_FALSE='#'
8782 else
8783   CONVENIENCE_LTDL_TRUE='#'
8784   CONVENIENCE_LTDL_FALSE=
8785 fi
8786
8787
8788 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8789 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8790 library_names_spec=
8791 libname_spec='lib$name'
8792 soname_spec=
8793 shrext_cmds=".so"
8794 postinstall_cmds=
8795 postuninstall_cmds=
8796 finish_cmds=
8797 finish_eval=
8798 shlibpath_var=
8799 shlibpath_overrides_runpath=unknown
8800 version_type=none
8801 dynamic_linker="$host_os ld.so"
8802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8803 if test "$GCC" = yes; then
8804   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8805   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8806     # if the path contains ";" then we assume it to be the separator
8807     # otherwise default to the standard path separator (i.e. ":") - it is
8808     # assumed that no part of a normal pathname contains ";" but that should
8809     # okay in the real world where ";" in dirpaths is itself problematic.
8810     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8811   else
8812     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8813   fi
8814 else
8815   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8816 fi
8817 need_lib_prefix=unknown
8818 hardcode_into_libs=no
8819
8820 # when you set need_version to no, make sure it does not cause -set_version
8821 # flags to be left without arguments
8822 need_version=unknown
8823
8824 case $host_os in
8825 aix3*)
8826   version_type=linux
8827   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8828   shlibpath_var=LIBPATH
8829
8830   # AIX 3 has no versioning support, so we append a major version to the name.
8831   soname_spec='${libname}${release}${shared_ext}$major'
8832   ;;
8833
8834 aix4* | aix5*)
8835   version_type=linux
8836   need_lib_prefix=no
8837   need_version=no
8838   hardcode_into_libs=yes
8839   if test "$host_cpu" = ia64; then
8840     # AIX 5 supports IA64
8841     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8842     shlibpath_var=LD_LIBRARY_PATH
8843   else
8844     # With GCC up to 2.95.x, collect2 would create an import file
8845     # for dependence libraries.  The import file would start with
8846     # the line `#! .'.  This would cause the generated library to
8847     # depend on `.', always an invalid library.  This was fixed in
8848     # development snapshots of GCC prior to 3.0.
8849     case $host_os in
8850       aix4 | aix4.[01] | aix4.[01].*)
8851       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8852            echo ' yes '
8853            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8854         :
8855       else
8856         can_build_shared=no
8857       fi
8858       ;;
8859     esac
8860     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8861     # soname into executable. Probably we can add versioning support to
8862     # collect2, so additional links can be useful in future.
8863     if test "$aix_use_runtimelinking" = yes; then
8864       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8865       # instead of lib<name>.a to let people know that these are not
8866       # typical AIX shared libraries.
8867       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868     else
8869       # We preserve .a as extension for shared libraries through AIX4.2
8870       # and later when we are not doing run time linking.
8871       library_names_spec='${libname}${release}.a $libname.a'
8872       soname_spec='${libname}${release}${shared_ext}$major'
8873     fi
8874     shlibpath_var=LIBPATH
8875   fi
8876   ;;
8877
8878 amigaos*)
8879   library_names_spec='$libname.ixlibrary $libname.a'
8880   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8881   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'
8882   ;;
8883
8884 beos*)
8885   library_names_spec='${libname}${shared_ext}'
8886   dynamic_linker="$host_os ld.so"
8887   shlibpath_var=LIBRARY_PATH
8888   ;;
8889
8890 bsdi[45]*)
8891   version_type=linux
8892   need_version=no
8893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894   soname_spec='${libname}${release}${shared_ext}$major'
8895   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8896   shlibpath_var=LD_LIBRARY_PATH
8897   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8898   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8899   # the default ld.so.conf also contains /usr/contrib/lib and
8900   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8901   # libtool to hard-code these into programs
8902   ;;
8903
8904 cygwin* | mingw* | pw32*)
8905   version_type=windows
8906   shrext_cmds=".dll"
8907   need_version=no
8908   need_lib_prefix=no
8909
8910   case $GCC,$host_os in
8911   yes,cygwin* | yes,mingw* | yes,pw32*)
8912     library_names_spec='$libname.dll.a'
8913     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8914     postinstall_cmds='base_file=`basename \${file}`~
8915       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8916       dldir=$destdir/`dirname \$dlpath`~
8917       test -d \$dldir || mkdir -p \$dldir~
8918       $install_prog $dir/$dlname \$dldir/$dlname~
8919       chmod a+x \$dldir/$dlname'
8920     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8921       dlpath=$dir/\$dldll~
8922        $rm \$dlpath'
8923     shlibpath_overrides_runpath=yes
8924
8925     case $host_os in
8926     cygwin*)
8927       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8928       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8929       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8930       ;;
8931     mingw*)
8932       # MinGW DLLs use traditional 'lib' prefix
8933       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8935       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8936         # It is most probably a Windows format PATH printed by
8937         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8938         # path with ; separators, and with drive letters. We can handle the
8939         # drive letters (cygwin fileutils understands them), so leave them,
8940         # especially as we might pass files found there to a mingw objdump,
8941         # which wouldn't understand a cygwinified path. Ahh.
8942         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8943       else
8944         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8945       fi
8946       ;;
8947     pw32*)
8948       # pw32 DLLs use 'pw' prefix rather than 'lib'
8949       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8950       ;;
8951     esac
8952     ;;
8953
8954   *)
8955     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8956     ;;
8957   esac
8958   dynamic_linker='Win32 ld.exe'
8959   # FIXME: first we should search . and the directory the executable is in
8960   shlibpath_var=PATH
8961   ;;
8962
8963 darwin* | rhapsody*)
8964   dynamic_linker="$host_os dyld"
8965   version_type=darwin
8966   need_lib_prefix=no
8967   need_version=no
8968   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8969   soname_spec='${libname}${release}${major}$shared_ext'
8970   shlibpath_overrides_runpath=yes
8971   shlibpath_var=DYLD_LIBRARY_PATH
8972   shrext_cmds='.dylib'
8973   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8974   if test "$GCC" = yes; then
8975     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8976   else
8977     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8978   fi
8979   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8980   ;;
8981
8982 dgux*)
8983   version_type=linux
8984   need_lib_prefix=no
8985   need_version=no
8986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8987   soname_spec='${libname}${release}${shared_ext}$major'
8988   shlibpath_var=LD_LIBRARY_PATH
8989   ;;
8990
8991 freebsd1*)
8992   dynamic_linker=no
8993   ;;
8994
8995 kfreebsd*-gnu)
8996   version_type=linux
8997   need_lib_prefix=no
8998   need_version=no
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9000   soname_spec='${libname}${release}${shared_ext}$major'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   shlibpath_overrides_runpath=no
9003   hardcode_into_libs=yes
9004   dynamic_linker='GNU ld.so'
9005   ;;
9006
9007 freebsd* | dragonfly*)
9008   # DragonFly does not have aout.  When/if they implement a new
9009   # versioning mechanism, adjust this.
9010   if test -x /usr/bin/objformat; then
9011     objformat=`/usr/bin/objformat`
9012   else
9013     case $host_os in
9014     freebsd[123]*) objformat=aout ;;
9015     *) objformat=elf ;;
9016     esac
9017   fi
9018   version_type=freebsd-$objformat
9019   case $version_type in
9020     freebsd-elf*)
9021       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9022       need_version=no
9023       need_lib_prefix=no
9024       ;;
9025     freebsd-*)
9026       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9027       need_version=yes
9028       ;;
9029   esac
9030   shlibpath_var=LD_LIBRARY_PATH
9031   case $host_os in
9032   freebsd2*)
9033     shlibpath_overrides_runpath=yes
9034     ;;
9035   freebsd3.[01]* | freebsdelf3.[01]*)
9036     shlibpath_overrides_runpath=yes
9037     hardcode_into_libs=yes
9038     ;;
9039   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9040   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9041     shlibpath_overrides_runpath=no
9042     hardcode_into_libs=yes
9043     ;;
9044   freebsd*) # from 4.6 on
9045     shlibpath_overrides_runpath=yes
9046     hardcode_into_libs=yes
9047     ;;
9048   esac
9049   ;;
9050
9051 gnu*)
9052   version_type=linux
9053   need_lib_prefix=no
9054   need_version=no
9055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9056   soname_spec='${libname}${release}${shared_ext}$major'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   hardcode_into_libs=yes
9059   ;;
9060
9061 hpux9* | hpux10* | hpux11*)
9062   # Give a soname corresponding to the major version so that dld.sl refuses to
9063   # link against other versions.
9064   version_type=sunos
9065   need_lib_prefix=no
9066   need_version=no
9067   case $host_cpu in
9068   ia64*)
9069     shrext_cmds='.so'
9070     hardcode_into_libs=yes
9071     dynamic_linker="$host_os dld.so"
9072     shlibpath_var=LD_LIBRARY_PATH
9073     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075     soname_spec='${libname}${release}${shared_ext}$major'
9076     if test "X$HPUX_IA64_MODE" = X32; then
9077       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9078     else
9079       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9080     fi
9081     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9082     ;;
9083    hppa*64*)
9084      shrext_cmds='.sl'
9085      hardcode_into_libs=yes
9086      dynamic_linker="$host_os dld.sl"
9087      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9088      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090      soname_spec='${libname}${release}${shared_ext}$major'
9091      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9092      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9093      ;;
9094    *)
9095     shrext_cmds='.sl'
9096     dynamic_linker="$host_os dld.sl"
9097     shlibpath_var=SHLIB_PATH
9098     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100     soname_spec='${libname}${release}${shared_ext}$major'
9101     ;;
9102   esac
9103   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9104   postinstall_cmds='chmod 555 $lib'
9105   ;;
9106
9107 interix3*)
9108   version_type=linux
9109   need_lib_prefix=no
9110   need_version=no
9111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9112   soname_spec='${libname}${release}${shared_ext}$major'
9113   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9114   shlibpath_var=LD_LIBRARY_PATH
9115   shlibpath_overrides_runpath=no
9116   hardcode_into_libs=yes
9117   ;;
9118
9119 irix5* | irix6* | nonstopux*)
9120   case $host_os in
9121     nonstopux*) version_type=nonstopux ;;
9122     *)
9123         if test "$lt_cv_prog_gnu_ld" = yes; then
9124                 version_type=linux
9125         else
9126                 version_type=irix
9127         fi ;;
9128   esac
9129   need_lib_prefix=no
9130   need_version=no
9131   soname_spec='${libname}${release}${shared_ext}$major'
9132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9133   case $host_os in
9134   irix5* | nonstopux*)
9135     libsuff= shlibsuff=
9136     ;;
9137   *)
9138     case $LD in # libtool.m4 will add one of these switches to LD
9139     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9140       libsuff= shlibsuff= libmagic=32-bit;;
9141     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9142       libsuff=32 shlibsuff=N32 libmagic=N32;;
9143     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9144       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9145     *) libsuff= shlibsuff= libmagic=never-match;;
9146     esac
9147     ;;
9148   esac
9149   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9150   shlibpath_overrides_runpath=no
9151   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9152   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9153   hardcode_into_libs=yes
9154   ;;
9155
9156 # No shared lib support for Linux oldld, aout, or coff.
9157 linux*oldld* | linux*aout* | linux*coff*)
9158   dynamic_linker=no
9159   ;;
9160
9161 # This must be Linux ELF.
9162 linux*)
9163   version_type=linux
9164   need_lib_prefix=no
9165   need_version=no
9166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167   soname_spec='${libname}${release}${shared_ext}$major'
9168   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9169   shlibpath_var=LD_LIBRARY_PATH
9170   shlibpath_overrides_runpath=no
9171   # This implies no fast_install, which is unacceptable.
9172   # Some rework will be needed to allow for fast_install
9173   # before this can be enabled.
9174   hardcode_into_libs=yes
9175
9176   # Append ld.so.conf contents to the search path
9177   if test -f /etc/ld.so.conf; then
9178     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9179     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9180   fi
9181
9182   # We used to test for /lib/ld.so.1 and disable shared libraries on
9183   # powerpc, because MkLinux only supported shared libraries with the
9184   # GNU dynamic linker.  Since this was broken with cross compilers,
9185   # most powerpc-linux boxes support dynamic linking these days and
9186   # people can always --disable-shared, the test was removed, and we
9187   # assume the GNU/Linux dynamic linker is in use.
9188   dynamic_linker='GNU/Linux ld.so'
9189   ;;
9190
9191 knetbsd*-gnu)
9192   version_type=linux
9193   need_lib_prefix=no
9194   need_version=no
9195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196   soname_spec='${libname}${release}${shared_ext}$major'
9197   shlibpath_var=LD_LIBRARY_PATH
9198   shlibpath_overrides_runpath=no
9199   hardcode_into_libs=yes
9200   dynamic_linker='GNU ld.so'
9201   ;;
9202
9203 netbsd*)
9204   version_type=sunos
9205   need_lib_prefix=no
9206   need_version=no
9207   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9209     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9210     dynamic_linker='NetBSD (a.out) ld.so'
9211   else
9212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9213     soname_spec='${libname}${release}${shared_ext}$major'
9214     dynamic_linker='NetBSD ld.elf_so'
9215   fi
9216   shlibpath_var=LD_LIBRARY_PATH
9217   shlibpath_overrides_runpath=yes
9218   hardcode_into_libs=yes
9219   ;;
9220
9221 newsos6)
9222   version_type=linux
9223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224   shlibpath_var=LD_LIBRARY_PATH
9225   shlibpath_overrides_runpath=yes
9226   ;;
9227
9228 nto-qnx*)
9229   version_type=linux
9230   need_lib_prefix=no
9231   need_version=no
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233   soname_spec='${libname}${release}${shared_ext}$major'
9234   shlibpath_var=LD_LIBRARY_PATH
9235   shlibpath_overrides_runpath=yes
9236   ;;
9237
9238 openbsd*)
9239   version_type=sunos
9240   sys_lib_dlsearch_path_spec="/usr/lib"
9241   need_lib_prefix=no
9242   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9243   case $host_os in
9244     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9245     *)                         need_version=no  ;;
9246   esac
9247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9248   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9249   shlibpath_var=LD_LIBRARY_PATH
9250   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9251     case $host_os in
9252       openbsd2.[89] | openbsd2.[89].*)
9253         shlibpath_overrides_runpath=no
9254         ;;
9255       *)
9256         shlibpath_overrides_runpath=yes
9257         ;;
9258       esac
9259   else
9260     shlibpath_overrides_runpath=yes
9261   fi
9262   ;;
9263
9264 os2*)
9265   libname_spec='$name'
9266   shrext_cmds=".dll"
9267   need_lib_prefix=no
9268   library_names_spec='$libname${shared_ext} $libname.a'
9269   dynamic_linker='OS/2 ld.exe'
9270   shlibpath_var=LIBPATH
9271   ;;
9272
9273 osf3* | osf4* | osf5*)
9274   version_type=osf
9275   need_lib_prefix=no
9276   need_version=no
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279   shlibpath_var=LD_LIBRARY_PATH
9280   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9281   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9282   ;;
9283
9284 solaris*)
9285   version_type=linux
9286   need_lib_prefix=no
9287   need_version=no
9288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   shlibpath_overrides_runpath=yes
9292   hardcode_into_libs=yes
9293   # ldd complains unless libraries are executable
9294   postinstall_cmds='chmod +x $lib'
9295   ;;
9296
9297 sunos4*)
9298   version_type=sunos
9299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9300   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9301   shlibpath_var=LD_LIBRARY_PATH
9302   shlibpath_overrides_runpath=yes
9303   if test "$with_gnu_ld" = yes; then
9304     need_lib_prefix=no
9305   fi
9306   need_version=yes
9307   ;;
9308
9309 sysv4 | sysv4.3*)
9310   version_type=linux
9311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312   soname_spec='${libname}${release}${shared_ext}$major'
9313   shlibpath_var=LD_LIBRARY_PATH
9314   case $host_vendor in
9315     sni)
9316       shlibpath_overrides_runpath=no
9317       need_lib_prefix=no
9318       export_dynamic_flag_spec='${wl}-Blargedynsym'
9319       runpath_var=LD_RUN_PATH
9320       ;;
9321     siemens)
9322       need_lib_prefix=no
9323       ;;
9324     motorola)
9325       need_lib_prefix=no
9326       need_version=no
9327       shlibpath_overrides_runpath=no
9328       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9329       ;;
9330   esac
9331   ;;
9332
9333 sysv4*MP*)
9334   if test -d /usr/nec ;then
9335     version_type=linux
9336     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9337     soname_spec='$libname${shared_ext}.$major'
9338     shlibpath_var=LD_LIBRARY_PATH
9339   fi
9340   ;;
9341
9342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9343   version_type=freebsd-elf
9344   need_lib_prefix=no
9345   need_version=no
9346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9347   soname_spec='${libname}${release}${shared_ext}$major'
9348   shlibpath_var=LD_LIBRARY_PATH
9349   hardcode_into_libs=yes
9350   if test "$with_gnu_ld" = yes; then
9351     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9352     shlibpath_overrides_runpath=no
9353   else
9354     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9355     shlibpath_overrides_runpath=yes
9356     case $host_os in
9357       sco3.2v5*)
9358         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9359         ;;
9360     esac
9361   fi
9362   sys_lib_dlsearch_path_spec='/usr/lib'
9363   ;;
9364
9365 uts4*)
9366   version_type=linux
9367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368   soname_spec='${libname}${release}${shared_ext}$major'
9369   shlibpath_var=LD_LIBRARY_PATH
9370   ;;
9371
9372 *)
9373   dynamic_linker=no
9374   ;;
9375 esac
9376 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9377 echo "${ECHO_T}$dynamic_linker" >&6; }
9378 test "$dynamic_linker" = no && can_build_shared=no
9379
9380 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9381 if test "$GCC" = yes; then
9382   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9383 fi
9384
9385
9386 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9387 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9388 if test "${libltdl_cv_shlibext+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391
9392 module=yes
9393 eval libltdl_cv_shlibext=$shrext_cmds
9394
9395 fi
9396 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9397 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9398 if test -n "$libltdl_cv_shlibext"; then
9399
9400 cat >>confdefs.h <<_ACEOF
9401 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9402 _ACEOF
9403
9404 fi
9405
9406
9407 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9408 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9409 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   libltdl_cv_shlibpath_var="$shlibpath_var"
9413 fi
9414 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9415 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9416 if test -n "$libltdl_cv_shlibpath_var"; then
9417
9418 cat >>confdefs.h <<_ACEOF
9419 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9420 _ACEOF
9421
9422 fi
9423
9424
9425 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9426 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9427 if test "${libltdl_cv_sys_search_path+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9431 fi
9432 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9433 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9434 if test -n "$libltdl_cv_sys_search_path"; then
9435   sys_search_path=
9436   for dir in $libltdl_cv_sys_search_path; do
9437     if test -z "$sys_search_path"; then
9438       sys_search_path="$dir"
9439     else
9440       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9441     fi
9442   done
9443
9444 cat >>confdefs.h <<_ACEOF
9445 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9446 _ACEOF
9447
9448 fi
9449
9450 { echo "$as_me:$LINENO: checking for objdir" >&5
9451 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9452 if test "${libltdl_cv_objdir+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   libltdl_cv_objdir="$objdir"
9456   if test -n "$objdir"; then
9457     :
9458   else
9459     rm -f .libs 2>/dev/null
9460     mkdir .libs 2>/dev/null
9461     if test -d .libs; then
9462       libltdl_cv_objdir=.libs
9463     else
9464       # MS-DOS does not allow filenames that begin with a dot.
9465       libltdl_cv_objdir=_libs
9466     fi
9467   rmdir .libs 2>/dev/null
9468   fi
9469
9470 fi
9471 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9472 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9473
9474 cat >>confdefs.h <<_ACEOF
9475 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9476 _ACEOF
9477
9478
9479
9480
9481
9482
9483 # Check for command to grab the raw symbol name followed by C symbol from nm.
9484 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9485 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9486 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489
9490 # These are sane defaults that work on at least a few old systems.
9491 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9492
9493 # Character class describing NM global symbol codes.
9494 symcode='[BCDEGRST]'
9495
9496 # Regexp to match symbols that can be accessed directly from C.
9497 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9498
9499 # Transform an extracted symbol line into a proper C declaration
9500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9501
9502 # Transform an extracted symbol line into symbol name and symbol address
9503 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9504
9505 # Define system-specific variables.
9506 case $host_os in
9507 aix*)
9508   symcode='[BCDT]'
9509   ;;
9510 cygwin* | mingw* | pw32*)
9511   symcode='[ABCDGISTW]'
9512   ;;
9513 hpux*) # Its linker distinguishes data from code symbols
9514   if test "$host_cpu" = ia64; then
9515     symcode='[ABCDEGRST]'
9516   fi
9517   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9518   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9519   ;;
9520 linux*)
9521   if test "$host_cpu" = ia64; then
9522     symcode='[ABCDGIRSTW]'
9523     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9524     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9525   fi
9526   ;;
9527 irix* | nonstopux*)
9528   symcode='[BCDEGRST]'
9529   ;;
9530 osf*)
9531   symcode='[BCDEGQRST]'
9532   ;;
9533 solaris*)
9534   symcode='[BDRT]'
9535   ;;
9536 sco3.2v5*)
9537   symcode='[DT]'
9538   ;;
9539 sysv4.2uw2*)
9540   symcode='[DT]'
9541   ;;
9542 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9543   symcode='[ABDT]'
9544   ;;
9545 sysv4)
9546   symcode='[DFNSTU]'
9547   ;;
9548 esac
9549
9550 # Handle CRLF in mingw tool chain
9551 opt_cr=
9552 case $build_os in
9553 mingw*)
9554   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9555   ;;
9556 esac
9557
9558 # If we're using GNU nm, then use its standard symbol codes.
9559 case `$NM -V 2>&1` in
9560 *GNU* | *'with BFD'*)
9561   symcode='[ABCDGIRSTW]' ;;
9562 esac
9563
9564 # Try without a prefix undercore, then with it.
9565 for ac_symprfx in "" "_"; do
9566
9567   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9568   symxfrm="\\1 $ac_symprfx\\2 \\2"
9569
9570   # Write the raw and C identifiers.
9571   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9572
9573   # Check to see that the pipe works correctly.
9574   pipe_works=no
9575
9576   rm -f conftest*
9577   cat > conftest.$ac_ext <<EOF
9578 #ifdef __cplusplus
9579 extern "C" {
9580 #endif
9581 char nm_test_var;
9582 void nm_test_func(){}
9583 #ifdef __cplusplus
9584 }
9585 #endif
9586 int main(){nm_test_var='a';nm_test_func();return(0);}
9587 EOF
9588
9589   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590   (eval $ac_compile) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; then
9594     # Now try to grab the symbols.
9595     nlist=conftest.nm
9596     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9597   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } && test -s "$nlist"; then
9601       # Try sorting and uniquifying the output.
9602       if sort "$nlist" | uniq > "$nlist"T; then
9603         mv -f "$nlist"T "$nlist"
9604       else
9605         rm -f "$nlist"T
9606       fi
9607
9608       # Make sure that we snagged all the symbols we need.
9609       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9610         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9611           cat <<EOF > conftest.$ac_ext
9612 #ifdef __cplusplus
9613 extern "C" {
9614 #endif
9615
9616 EOF
9617           # Now generate the symbol file.
9618           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9619
9620           cat <<EOF >> conftest.$ac_ext
9621 #if defined (__STDC__) && __STDC__
9622 # define lt_ptr_t void *
9623 #else
9624 # define lt_ptr_t char *
9625 # define const
9626 #endif
9627
9628 /* The mapping between symbol names and symbols. */
9629 const struct {
9630   const char *name;
9631   lt_ptr_t address;
9632 }
9633 lt_preloaded_symbols[] =
9634 {
9635 EOF
9636           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9637           cat <<\EOF >> conftest.$ac_ext
9638   {0, (lt_ptr_t) 0}
9639 };
9640
9641 #ifdef __cplusplus
9642 }
9643 #endif
9644 EOF
9645           # Now try linking the two files.
9646           mv conftest.$ac_objext conftstm.$ac_objext
9647           lt_save_LIBS="$LIBS"
9648           lt_save_CFLAGS="$CFLAGS"
9649           LIBS="conftstm.$ac_objext"
9650           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9651           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652   (eval $ac_link) 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9656             pipe_works=yes
9657           fi
9658           LIBS="$lt_save_LIBS"
9659           CFLAGS="$lt_save_CFLAGS"
9660         else
9661           echo "cannot find nm_test_func in $nlist" >&5
9662         fi
9663       else
9664         echo "cannot find nm_test_var in $nlist" >&5
9665       fi
9666     else
9667       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9668     fi
9669   else
9670     echo "$progname: failed program was:" >&5
9671     cat conftest.$ac_ext >&5
9672   fi
9673   rm -f conftest* conftst*
9674
9675   # Do not use the global_symbol_pipe unless it works.
9676   if test "$pipe_works" = yes; then
9677     break
9678   else
9679     lt_cv_sys_global_symbol_pipe=
9680   fi
9681 done
9682
9683 fi
9684
9685 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9686   lt_cv_sys_global_symbol_to_cdecl=
9687 fi
9688 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9689   { echo "$as_me:$LINENO: result: failed" >&5
9690 echo "${ECHO_T}failed" >&6; }
9691 else
9692   { echo "$as_me:$LINENO: result: ok" >&5
9693 echo "${ECHO_T}ok" >&6; }
9694 fi
9695
9696
9697 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9698 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9699 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9703     libltdl_cv_preloaded_symbols=yes
9704   else
9705     libltdl_cv_preloaded_symbols=no
9706   fi
9707
9708 fi
9709 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9710 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9711 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9712
9713 cat >>confdefs.h <<\_ACEOF
9714 #define HAVE_PRELOADED_SYMBOLS 1
9715 _ACEOF
9716
9717 fi
9718
9719 LIBADD_DL=
9720
9721 ac_ext=c
9722 ac_cpp='$CPP $CPPFLAGS'
9723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9726
9727
9728 { echo "$as_me:$LINENO: checking for shl_load" >&5
9729 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9730 if test "${ac_cv_func_shl_load+set}" = set; then
9731   echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733   cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9741 #define shl_load innocuous_shl_load
9742
9743 /* System header to define __stub macros and hopefully few prototypes,
9744     which can conflict with char shl_load (); below.
9745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9746     <limits.h> exists even on freestanding compilers.  */
9747
9748 #ifdef __STDC__
9749 # include <limits.h>
9750 #else
9751 # include <assert.h>
9752 #endif
9753
9754 #undef shl_load
9755
9756 /* Override any GCC internal prototype to avoid an error.
9757    Use char because int might match the return type of a GCC
9758    builtin and then its argument prototype would still apply.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 char shl_load ();
9763 /* The GNU C library defines this for functions which it implements
9764     to always fail with ENOSYS.  Some functions are actually named
9765     something starting with __ and the normal name is an alias.  */
9766 #if defined __stub_shl_load || defined __stub___shl_load
9767 choke me
9768 #endif
9769
9770 int
9771 main ()
9772 {
9773 return shl_load ();
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9780 case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_link") 2>conftest.er1
9786   ac_status=$?
9787   grep -v '^ *+' conftest.er1 >conftest.err
9788   rm -f conftest.er1
9789   cat conftest.err >&5
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793   { (case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_try") 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; } &&
9802          { ac_try='test -s conftest$ac_exeext'
9803   { (case "(($ac_try" in
9804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805   *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808   (eval "$ac_try") 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812   ac_cv_func_shl_load=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         ac_cv_func_shl_load=no
9818 fi
9819
9820 rm -f core conftest.err conftest.$ac_objext \
9821       conftest$ac_exeext conftest.$ac_ext
9822 fi
9823 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9824 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9825 if test $ac_cv_func_shl_load = yes; then
9826
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_SHL_LOAD 1
9829 _ACEOF
9830
9831 else
9832   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9833 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9834 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   ac_check_lib_save_LIBS=$LIBS
9838 LIBS="-ldld  $LIBS"
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847    Use char because int might match the return type of a GCC
9848    builtin and then its argument prototype would still apply.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char shl_load ();
9853 int
9854 main ()
9855 {
9856 return shl_load ();
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_link") 2>conftest.er1
9869   ac_status=$?
9870   grep -v '^ *+' conftest.er1 >conftest.err
9871   rm -f conftest.er1
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; } &&
9885          { ac_try='test -s conftest$ac_exeext'
9886   { (case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_try") 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; }; then
9895   ac_cv_lib_dld_shl_load=yes
9896 else
9897   echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900         ac_cv_lib_dld_shl_load=no
9901 fi
9902
9903 rm -f core conftest.err conftest.$ac_objext \
9904       conftest$ac_exeext conftest.$ac_ext
9905 LIBS=$ac_check_lib_save_LIBS
9906 fi
9907 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9908 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9909 if test $ac_cv_lib_dld_shl_load = yes; then
9910
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_SHL_LOAD 1
9913 _ACEOF
9914
9915         LIBADD_DL="$LIBADD_DL -ldld"
9916 else
9917   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9918 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9919 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-ldl  $LIBS"
9924 cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h.  */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h.  */
9930
9931 /* Override any GCC internal prototype to avoid an error.
9932    Use char because int might match the return type of a GCC
9933    builtin and then its argument prototype would still apply.  */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 char dlopen ();
9938 int
9939 main ()
9940 {
9941 return dlopen ();
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9948 case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_link") 2>conftest.er1
9954   ac_status=$?
9955   grep -v '^ *+' conftest.er1 >conftest.err
9956   rm -f conftest.er1
9957   cat conftest.err >&5
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); } &&
9960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961   { (case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_try") 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (case "(($ac_try" in
9972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973   *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976   (eval "$ac_try") 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_cv_lib_dl_dlopen=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985         ac_cv_lib_dl_dlopen=no
9986 fi
9987
9988 rm -f core conftest.err conftest.$ac_objext \
9989       conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9991 fi
9992 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9993 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9994 if test $ac_cv_lib_dl_dlopen = yes; then
9995
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_LIBDL 1
9998 _ACEOF
9999
10000                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10001 else
10002   cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h.  */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h.  */
10008 #if HAVE_DLFCN_H
10009 #  include <dlfcn.h>
10010 #endif
10011
10012 int
10013 main ()
10014 {
10015 dlopen(0, 0);
10016   ;
10017   return 0;
10018 }
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (ac_try="$ac_link"
10022 case "(($ac_try" in
10023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024   *) ac_try_echo=$ac_try;;
10025 esac
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027   (eval "$ac_link") 2>conftest.er1
10028   ac_status=$?
10029   grep -v '^ *+' conftest.er1 >conftest.err
10030   rm -f conftest.er1
10031   cat conftest.err >&5
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } &&
10034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035   { (case "(($ac_try" in
10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037   *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040   (eval "$ac_try") 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; } &&
10044          { ac_try='test -s conftest$ac_exeext'
10045   { (case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_try") 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054
10055 cat >>confdefs.h <<\_ACEOF
10056 #define HAVE_LIBDL 1
10057 _ACEOF
10058  libltdl_cv_func_dlopen="yes"
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10064 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10065 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068   ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-lsvld  $LIBS"
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076
10077 /* Override any GCC internal prototype to avoid an error.
10078    Use char because int might match the return type of a GCC
10079    builtin and then its argument prototype would still apply.  */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char dlopen ();
10084 int
10085 main ()
10086 {
10087 return dlopen ();
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096   *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099   (eval "$ac_link") 2>conftest.er1
10100   ac_status=$?
10101   grep -v '^ *+' conftest.er1 >conftest.err
10102   rm -f conftest.er1
10103   cat conftest.err >&5
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107   { (case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_try") 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; } &&
10116          { ac_try='test -s conftest$ac_exeext'
10117   { (case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_try") 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_lib_svld_dlopen=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131         ac_cv_lib_svld_dlopen=no
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext \
10135       conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10139 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10140 if test $ac_cv_lib_svld_dlopen = yes; then
10141
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_LIBDL 1
10144 _ACEOF
10145
10146                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10147 else
10148   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10149 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10150 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-ldld  $LIBS"
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10161
10162 /* Override any GCC internal prototype to avoid an error.
10163    Use char because int might match the return type of a GCC
10164    builtin and then its argument prototype would still apply.  */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 char dld_link ();
10169 int
10170 main ()
10171 {
10172 return dld_link ();
10173   ;
10174   return 0;
10175 }
10176 _ACEOF
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181   *) ac_try_echo=$ac_try;;
10182 esac
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184   (eval "$ac_link") 2>conftest.er1
10185   ac_status=$?
10186   grep -v '^ *+' conftest.er1 >conftest.err
10187   rm -f conftest.er1
10188   cat conftest.err >&5
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); } &&
10191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192   { (case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_try") 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; } &&
10201          { ac_try='test -s conftest$ac_exeext'
10202   { (case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207   (eval "$ac_try") 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; }; then
10211   ac_cv_lib_dld_dld_link=yes
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216         ac_cv_lib_dld_dld_link=no
10217 fi
10218
10219 rm -f core conftest.err conftest.$ac_objext \
10220       conftest$ac_exeext conftest.$ac_ext
10221 LIBS=$ac_check_lib_save_LIBS
10222 fi
10223 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10224 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10225 if test $ac_cv_lib_dld_dld_link = yes; then
10226
10227 cat >>confdefs.h <<\_ACEOF
10228 #define HAVE_DLD 1
10229 _ACEOF
10230
10231                 LIBADD_DL="$LIBADD_DL -ldld"
10232 else
10233   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10234 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10235 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h.  */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h.  */
10244 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10246 #define _dyld_func_lookup innocuous__dyld_func_lookup
10247
10248 /* System header to define __stub macros and hopefully few prototypes,
10249     which can conflict with char _dyld_func_lookup (); below.
10250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251     <limits.h> exists even on freestanding compilers.  */
10252
10253 #ifdef __STDC__
10254 # include <limits.h>
10255 #else
10256 # include <assert.h>
10257 #endif
10258
10259 #undef _dyld_func_lookup
10260
10261 /* Override any GCC internal prototype to avoid an error.
10262    Use char because int might match the return type of a GCC
10263    builtin and then its argument prototype would still apply.  */
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 char _dyld_func_lookup ();
10268 /* The GNU C library defines this for functions which it implements
10269     to always fail with ENOSYS.  Some functions are actually named
10270     something starting with __ and the normal name is an alias.  */
10271 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10272 choke me
10273 #endif
10274
10275 int
10276 main ()
10277 {
10278 return _dyld_func_lookup ();
10279   ;
10280   return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290   (eval "$ac_link") 2>conftest.er1
10291   ac_status=$?
10292   grep -v '^ *+' conftest.er1 >conftest.err
10293   rm -f conftest.er1
10294   cat conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } &&
10297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10298   { (case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303   (eval "$ac_try") 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; } &&
10307          { ac_try='test -s conftest$ac_exeext'
10308   { (case "(($ac_try" in
10309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310   *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313   (eval "$ac_try") 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_cv_func__dyld_func_lookup=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322         ac_cv_func__dyld_func_lookup=no
10323 fi
10324
10325 rm -f core conftest.err conftest.$ac_objext \
10326       conftest$ac_exeext conftest.$ac_ext
10327 fi
10328 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10329 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10330 if test $ac_cv_func__dyld_func_lookup = yes; then
10331
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_DYLD 1
10334 _ACEOF
10335
10336 fi
10337
10338
10339 fi
10340
10341
10342 fi
10343
10344
10345 fi
10346
10347 rm -f core conftest.err conftest.$ac_objext \
10348       conftest$ac_exeext conftest.$ac_ext
10349
10350 fi
10351
10352
10353 fi
10354
10355
10356 fi
10357
10358
10359 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10360 then
10361   lt_save_LIBS="$LIBS"
10362   LIBS="$LIBS $LIBADD_DL"
10363
10364 for ac_func in dlerror
10365 do
10366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10370   echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372   cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h.  */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h.  */
10378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10380 #define $ac_func innocuous_$ac_func
10381
10382 /* System header to define __stub macros and hopefully few prototypes,
10383     which can conflict with char $ac_func (); below.
10384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10385     <limits.h> exists even on freestanding compilers.  */
10386
10387 #ifdef __STDC__
10388 # include <limits.h>
10389 #else
10390 # include <assert.h>
10391 #endif
10392
10393 #undef $ac_func
10394
10395 /* Override any GCC internal prototype to avoid an error.
10396    Use char because int might match the return type of a GCC
10397    builtin and then its argument prototype would still apply.  */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 char $ac_func ();
10402 /* The GNU C library defines this for functions which it implements
10403     to always fail with ENOSYS.  Some functions are actually named
10404     something starting with __ and the normal name is an alias.  */
10405 #if defined __stub_$ac_func || defined __stub___$ac_func
10406 choke me
10407 #endif
10408
10409 int
10410 main ()
10411 {
10412 return $ac_func ();
10413   ;
10414   return 0;
10415 }
10416 _ACEOF
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421   *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424   (eval "$ac_link") 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } &&
10431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10432   { (case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_try") 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; } &&
10441          { ac_try='test -s conftest$ac_exeext'
10442   { (case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447   (eval "$ac_try") 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); }; }; then
10451   eval "$as_ac_var=yes"
10452 else
10453   echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456         eval "$as_ac_var=no"
10457 fi
10458
10459 rm -f core conftest.err conftest.$ac_objext \
10460       conftest$ac_exeext conftest.$ac_ext
10461 fi
10462 ac_res=`eval echo '${'$as_ac_var'}'`
10463                { echo "$as_me:$LINENO: result: $ac_res" >&5
10464 echo "${ECHO_T}$ac_res" >&6; }
10465 if test `eval echo '${'$as_ac_var'}'` = yes; then
10466   cat >>confdefs.h <<_ACEOF
10467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468 _ACEOF
10469
10470 fi
10471 done
10472
10473   LIBS="$lt_save_LIBS"
10474 fi
10475 ac_ext=c
10476 ac_cpp='$CPP $CPPFLAGS'
10477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10480
10481
10482
10483 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10484 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10485 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   ac_cv_sys_symbol_underscore=no
10489   cat > conftest.$ac_ext <<EOF
10490 void nm_test_func(){}
10491 int main(){nm_test_func;return 0;}
10492 EOF
10493   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494   (eval $ac_compile) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; then
10498     # Now try to grab the symbols.
10499     ac_nlist=conftest.nm
10500     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10501   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); } && test -s "$ac_nlist"; then
10505       # See whether the symbols have a leading underscore.
10506       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10507         ac_cv_sys_symbol_underscore=yes
10508       else
10509         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10510           :
10511         else
10512           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10513         fi
10514       fi
10515     else
10516       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10517     fi
10518   else
10519     echo "configure: failed program was:" >&5
10520     cat conftest.c >&5
10521   fi
10522   rm -rf conftest*
10523
10524 fi
10525 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10526 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10527
10528
10529 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10530   if test x"$libltdl_cv_func_dlopen" = xyes ||
10531      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10532         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10533 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10534 if test "${libltdl_cv_need_uscore+set}" = set; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537   libltdl_cv_need_uscore=unknown
10538           save_LIBS="$LIBS"
10539           LIBS="$LIBS $LIBADD_DL"
10540           if test "$cross_compiling" = yes; then :
10541   libltdl_cv_need_uscore=cross
10542 else
10543   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544   lt_status=$lt_dlunknown
10545   cat > conftest.$ac_ext <<EOF
10546 #line 10546 "configure"
10547 #include "confdefs.h"
10548
10549 #if HAVE_DLFCN_H
10550 #include <dlfcn.h>
10551 #endif
10552
10553 #include <stdio.h>
10554
10555 #ifdef RTLD_GLOBAL
10556 #  define LT_DLGLOBAL           RTLD_GLOBAL
10557 #else
10558 #  ifdef DL_GLOBAL
10559 #    define LT_DLGLOBAL         DL_GLOBAL
10560 #  else
10561 #    define LT_DLGLOBAL         0
10562 #  endif
10563 #endif
10564
10565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566    find out it does not work in some platform. */
10567 #ifndef LT_DLLAZY_OR_NOW
10568 #  ifdef RTLD_LAZY
10569 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10570 #  else
10571 #    ifdef DL_LAZY
10572 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10573 #    else
10574 #      ifdef RTLD_NOW
10575 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10576 #      else
10577 #        ifdef DL_NOW
10578 #          define LT_DLLAZY_OR_NOW      DL_NOW
10579 #        else
10580 #          define LT_DLLAZY_OR_NOW      0
10581 #        endif
10582 #      endif
10583 #    endif
10584 #  endif
10585 #endif
10586
10587 #ifdef __cplusplus
10588 extern "C" void exit (int);
10589 #endif
10590
10591 void fnord() { int i=42;}
10592 int main ()
10593 {
10594   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10595   int status = $lt_dlunknown;
10596
10597   if (self)
10598     {
10599       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10600       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10601       /* dlclose (self); */
10602     }
10603   else
10604     puts (dlerror ());
10605
10606     exit (status);
10607 }
10608 EOF
10609   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610   (eval $ac_link) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10614     (./conftest; exit; ) >&5 2>/dev/null
10615     lt_status=$?
10616     case x$lt_status in
10617       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10618       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10619       x$lt_dlunknown|x*)  ;;
10620     esac
10621   else :
10622     # compilation failed
10623
10624   fi
10625 fi
10626 rm -fr conftest*
10627
10628           LIBS="$save_LIBS"
10629
10630 fi
10631 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10632 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10633   fi
10634 fi
10635
10636 if test x"$libltdl_cv_need_uscore" = xyes; then
10637
10638 cat >>confdefs.h <<\_ACEOF
10639 #define NEED_USCORE 1
10640 _ACEOF
10641
10642 fi
10643
10644
10645 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10646 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10647 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10648   echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650   # PORTME does your system automatically load deplibs for dlopen?
10651   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10652   # For now, we just catch OSes we know something about -- in the
10653   # future, we'll try test this programmatically.
10654   libltdl_cv_sys_dlopen_deplibs=unknown
10655   case "$host_os" in
10656   aix3*|aix4.1.*|aix4.2.*)
10657     # Unknown whether this is true for these versions of AIX, but
10658     # we want this `case' here to explicitly catch those versions.
10659     libltdl_cv_sys_dlopen_deplibs=unknown
10660     ;;
10661   aix[45]*)
10662     libltdl_cv_sys_dlopen_deplibs=yes
10663     ;;
10664   darwin*)
10665     # Assuming the user has installed a libdl from somewhere, this is true
10666     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10667     libltdl_cv_sys_dlopen_deplibs=yes
10668     ;;
10669   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10670     # GNU and its variants, using gnu ld.so (Glibc)
10671     libltdl_cv_sys_dlopen_deplibs=yes
10672     ;;
10673   hpux10*|hpux11*)
10674     libltdl_cv_sys_dlopen_deplibs=yes
10675     ;;
10676   interix*)
10677     libltdl_cv_sys_dlopen_deplibs=yes
10678     ;;
10679   irix[12345]*|irix6.[01]*)
10680     # Catch all versions of IRIX before 6.2, and indicate that we don't
10681     # know how it worked for any of those versions.
10682     libltdl_cv_sys_dlopen_deplibs=unknown
10683     ;;
10684   irix*)
10685     # The case above catches anything before 6.2, and it's known that
10686     # at 6.2 and later dlopen does load deplibs.
10687     libltdl_cv_sys_dlopen_deplibs=yes
10688     ;;
10689   netbsd*)
10690     libltdl_cv_sys_dlopen_deplibs=yes
10691     ;;
10692   openbsd*)
10693     libltdl_cv_sys_dlopen_deplibs=yes
10694     ;;
10695   osf[1234]*)
10696     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10697     # it did *not* use an RPATH in a shared library to find objects the
10698     # library depends on, so we explictly say `no'.
10699     libltdl_cv_sys_dlopen_deplibs=no
10700     ;;
10701   osf5.0|osf5.0a|osf5.1)
10702     # dlopen *does* load deplibs and with the right loader patch applied
10703     # it even uses RPATH in a shared library to search for shared objects
10704     # that the library depends on, but there's no easy way to know if that
10705     # patch is installed.  Since this is the case, all we can really
10706     # say is unknown -- it depends on the patch being installed.  If
10707     # it is, this changes to `yes'.  Without it, it would be `no'.
10708     libltdl_cv_sys_dlopen_deplibs=unknown
10709     ;;
10710   osf*)
10711     # the two cases above should catch all versions of osf <= 5.1.  Read
10712     # the comments above for what we know about them.
10713     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10714     # is used to find them so we can finally say `yes'.
10715     libltdl_cv_sys_dlopen_deplibs=yes
10716     ;;
10717   solaris*)
10718     libltdl_cv_sys_dlopen_deplibs=yes
10719     ;;
10720   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10721     libltdl_cv_sys_dlopen_deplibs=yes
10722     ;;
10723   esac
10724
10725 fi
10726 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10727 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10728 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10729
10730 cat >>confdefs.h <<\_ACEOF
10731 #define LTDL_DLOPEN_DEPLIBS 1
10732 _ACEOF
10733
10734 fi
10735
10736
10737 for ac_header in argz.h
10738 do
10739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10741   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 fi
10746 ac_res=`eval echo '${'$as_ac_Header'}'`
10747                { echo "$as_me:$LINENO: result: $ac_res" >&5
10748 echo "${ECHO_T}$ac_res" >&6; }
10749 else
10750   # Is the header compilable?
10751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 $ac_includes_default
10760 #include <$ac_header>
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (ac_try="$ac_compile"
10764 case "(($ac_try" in
10765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766   *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769   (eval "$ac_compile") 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } &&
10776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10777   { (case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_try") 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; } &&
10786          { ac_try='test -s conftest.$ac_objext'
10787   { (case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_try") 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; }; then
10796   ac_header_compiler=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801         ac_header_compiler=no
10802 fi
10803
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 echo "${ECHO_T}$ac_header_compiler" >&6; }
10807
10808 # Is the header present?
10809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <$ac_header>
10818 _ACEOF
10819 if { (ac_try="$ac_cpp conftest.$ac_ext"
10820 case "(($ac_try" in
10821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822   *) ac_try_echo=$ac_try;;
10823 esac
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10826   ac_status=$?
10827   grep -v '^ *+' conftest.er1 >conftest.err
10828   rm -f conftest.er1
10829   cat conftest.err >&5
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); } >/dev/null; then
10832   if test -s conftest.err; then
10833     ac_cpp_err=$ac_c_preproc_warn_flag
10834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10835   else
10836     ac_cpp_err=
10837   fi
10838 else
10839   ac_cpp_err=yes
10840 fi
10841 if test -z "$ac_cpp_err"; then
10842   ac_header_preproc=yes
10843 else
10844   echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847   ac_header_preproc=no
10848 fi
10849
10850 rm -f conftest.err conftest.$ac_ext
10851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10852 echo "${ECHO_T}$ac_header_preproc" >&6; }
10853
10854 # So?  What about this header?
10855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10856   yes:no: )
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10861     ac_header_preproc=yes
10862     ;;
10863   no:yes:* )
10864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10876     ( cat <<\_ASBOX
10877 ## ----------------------------------- ##
10878 ## Report this to llvmbugs@cs.uiuc.edu ##
10879 ## ----------------------------------- ##
10880 _ASBOX
10881      ) | sed "s/^/$as_me: WARNING:     /" >&2
10882     ;;
10883 esac
10884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10887   echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889   eval "$as_ac_Header=\$ac_header_preproc"
10890 fi
10891 ac_res=`eval echo '${'$as_ac_Header'}'`
10892                { echo "$as_me:$LINENO: result: $ac_res" >&5
10893 echo "${ECHO_T}$ac_res" >&6; }
10894
10895 fi
10896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10897   cat >>confdefs.h <<_ACEOF
10898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10899 _ACEOF
10900
10901 fi
10902
10903 done
10904
10905
10906 { echo "$as_me:$LINENO: checking for error_t" >&5
10907 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10908 if test "${ac_cv_type_error_t+set}" = set; then
10909   echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911   cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h.  */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h.  */
10917 #if HAVE_ARGZ_H
10918 #  include <argz.h>
10919 #endif
10920
10921 typedef error_t ac__type_new_;
10922 int
10923 main ()
10924 {
10925 if ((ac__type_new_ *) 0)
10926   return 0;
10927 if (sizeof (ac__type_new_))
10928   return 0;
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext
10934 if { (ac_try="$ac_compile"
10935 case "(($ac_try" in
10936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937   *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940   (eval "$ac_compile") 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948   { (case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_try") 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; } &&
10957          { ac_try='test -s conftest.$ac_objext'
10958   { (case "(($ac_try" in
10959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960   *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963   (eval "$ac_try") 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; }; then
10967   ac_cv_type_error_t=yes
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972         ac_cv_type_error_t=no
10973 fi
10974
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 fi
10977 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10978 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10979 if test $ac_cv_type_error_t = yes; then
10980
10981 cat >>confdefs.h <<_ACEOF
10982 #define HAVE_ERROR_T 1
10983 _ACEOF
10984
10985
10986 else
10987
10988 cat >>confdefs.h <<\_ACEOF
10989 #define error_t int
10990 _ACEOF
10991
10992 fi
10993
10994
10995
10996
10997
10998
10999
11000 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11001 do
11002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h.  */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h.  */
11014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11016 #define $ac_func innocuous_$ac_func
11017
11018 /* System header to define __stub macros and hopefully few prototypes,
11019     which can conflict with char $ac_func (); below.
11020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11021     <limits.h> exists even on freestanding compilers.  */
11022
11023 #ifdef __STDC__
11024 # include <limits.h>
11025 #else
11026 # include <assert.h>
11027 #endif
11028
11029 #undef $ac_func
11030
11031 /* Override any GCC internal prototype to avoid an error.
11032    Use char because int might match the return type of a GCC
11033    builtin and then its argument prototype would still apply.  */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char $ac_func ();
11038 /* The GNU C library defines this for functions which it implements
11039     to always fail with ENOSYS.  Some functions are actually named
11040     something starting with __ and the normal name is an alias.  */
11041 #if defined __stub_$ac_func || defined __stub___$ac_func
11042 choke me
11043 #endif
11044
11045 int
11046 main ()
11047 {
11048 return $ac_func ();
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (ac_try="$ac_link"
11055 case "(($ac_try" in
11056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057   *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060   (eval "$ac_link") 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } &&
11067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068   { (case "(($ac_try" in
11069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070   *) ac_try_echo=$ac_try;;
11071 esac
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073   (eval "$ac_try") 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; } &&
11077          { ac_try='test -s conftest$ac_exeext'
11078   { (case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083   (eval "$ac_try") 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; }; then
11087   eval "$as_ac_var=yes"
11088 else
11089   echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11091
11092         eval "$as_ac_var=no"
11093 fi
11094
11095 rm -f core conftest.err conftest.$ac_objext \
11096       conftest$ac_exeext conftest.$ac_ext
11097 fi
11098 ac_res=`eval echo '${'$as_ac_var'}'`
11099                { echo "$as_me:$LINENO: result: $ac_res" >&5
11100 echo "${ECHO_T}$ac_res" >&6; }
11101 if test `eval echo '${'$as_ac_var'}'` = yes; then
11102   cat >>confdefs.h <<_ACEOF
11103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11104 _ACEOF
11105
11106 fi
11107 done
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11137                   stdio.h unistd.h
11138 do
11139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11141   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 fi
11146 ac_res=`eval echo '${'$as_ac_Header'}'`
11147                { echo "$as_me:$LINENO: result: $ac_res" >&5
11148 echo "${ECHO_T}$ac_res" >&6; }
11149 else
11150   # Is the header compilable?
11151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h.  */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h.  */
11159 $ac_includes_default
11160 #include <$ac_header>
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (ac_try="$ac_compile"
11164 case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_compile") 2>conftest.er1
11170   ac_status=$?
11171   grep -v '^ *+' conftest.er1 >conftest.err
11172   rm -f conftest.er1
11173   cat conftest.err >&5
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } &&
11176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177   { (case "(($ac_try" in
11178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179   *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182   (eval "$ac_try") 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); }; } &&
11186          { ac_try='test -s conftest.$ac_objext'
11187   { (case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_try") 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   ac_header_compiler=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201         ac_header_compiler=no
11202 fi
11203
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11206 echo "${ECHO_T}$ac_header_compiler" >&6; }
11207
11208 # Is the header present?
11209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11211 cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h.  */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h.  */
11217 #include <$ac_header>
11218 _ACEOF
11219 if { (ac_try="$ac_cpp conftest.$ac_ext"
11220 case "(($ac_try" in
11221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222   *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11226   ac_status=$?
11227   grep -v '^ *+' conftest.er1 >conftest.err
11228   rm -f conftest.er1
11229   cat conftest.err >&5
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); } >/dev/null; then
11232   if test -s conftest.err; then
11233     ac_cpp_err=$ac_c_preproc_warn_flag
11234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11235   else
11236     ac_cpp_err=
11237   fi
11238 else
11239   ac_cpp_err=yes
11240 fi
11241 if test -z "$ac_cpp_err"; then
11242   ac_header_preproc=yes
11243 else
11244   echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247   ac_header_preproc=no
11248 fi
11249
11250 rm -f conftest.err conftest.$ac_ext
11251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11252 echo "${ECHO_T}$ac_header_preproc" >&6; }
11253
11254 # So?  What about this header?
11255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11256   yes:no: )
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11261     ac_header_preproc=yes
11262     ;;
11263   no:yes:* )
11264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11266     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11267 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11270     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11271 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11276     ( cat <<\_ASBOX
11277 ## ----------------------------------- ##
11278 ## Report this to llvmbugs@cs.uiuc.edu ##
11279 ## ----------------------------------- ##
11280 _ASBOX
11281      ) | sed "s/^/$as_me: WARNING:     /" >&2
11282     ;;
11283 esac
11284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289   eval "$as_ac_Header=\$ac_header_preproc"
11290 fi
11291 ac_res=`eval echo '${'$as_ac_Header'}'`
11292                { echo "$as_me:$LINENO: result: $ac_res" >&5
11293 echo "${ECHO_T}$ac_res" >&6; }
11294
11295 fi
11296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11297   cat >>confdefs.h <<_ACEOF
11298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11299 _ACEOF
11300
11301 fi
11302
11303 done
11304
11305
11306
11307
11308
11309 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11310 do
11311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 fi
11318 ac_res=`eval echo '${'$as_ac_Header'}'`
11319                { echo "$as_me:$LINENO: result: $ac_res" >&5
11320 echo "${ECHO_T}$ac_res" >&6; }
11321 else
11322   # Is the header compilable?
11323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 $ac_includes_default
11332 #include <$ac_header>
11333 _ACEOF
11334 rm -f conftest.$ac_objext
11335 if { (ac_try="$ac_compile"
11336 case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_compile") 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } &&
11348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11349   { (case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_try") 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); }; } &&
11358          { ac_try='test -s conftest.$ac_objext'
11359   { (case "(($ac_try" in
11360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361   *) ac_try_echo=$ac_try;;
11362 esac
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364   (eval "$ac_try") 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; }; then
11368   ac_header_compiler=yes
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373         ac_header_compiler=no
11374 fi
11375
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11378 echo "${ECHO_T}$ac_header_compiler" >&6; }
11379
11380 # Is the header present?
11381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h.  */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h.  */
11389 #include <$ac_header>
11390 _ACEOF
11391 if { (ac_try="$ac_cpp conftest.$ac_ext"
11392 case "(($ac_try" in
11393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394   *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11398   ac_status=$?
11399   grep -v '^ *+' conftest.er1 >conftest.err
11400   rm -f conftest.er1
11401   cat conftest.err >&5
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); } >/dev/null; then
11404   if test -s conftest.err; then
11405     ac_cpp_err=$ac_c_preproc_warn_flag
11406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11407   else
11408     ac_cpp_err=
11409   fi
11410 else
11411   ac_cpp_err=yes
11412 fi
11413 if test -z "$ac_cpp_err"; then
11414   ac_header_preproc=yes
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419   ac_header_preproc=no
11420 fi
11421
11422 rm -f conftest.err conftest.$ac_ext
11423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 echo "${ECHO_T}$ac_header_preproc" >&6; }
11425
11426 # So?  What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428   yes:no: )
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433     ac_header_preproc=yes
11434     ;;
11435   no:yes:* )
11436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11448     ( cat <<\_ASBOX
11449 ## ----------------------------------- ##
11450 ## Report this to llvmbugs@cs.uiuc.edu ##
11451 ## ----------------------------------- ##
11452 _ASBOX
11453      ) | sed "s/^/$as_me: WARNING:     /" >&2
11454     ;;
11455 esac
11456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   eval "$as_ac_Header=\$ac_header_preproc"
11462 fi
11463 ac_res=`eval echo '${'$as_ac_Header'}'`
11464                { echo "$as_me:$LINENO: result: $ac_res" >&5
11465 echo "${ECHO_T}$ac_res" >&6; }
11466
11467 fi
11468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11469   cat >>confdefs.h <<_ACEOF
11470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11471 _ACEOF
11472
11473 fi
11474
11475 done
11476
11477
11478
11479 for ac_header in string.h strings.h
11480 do
11481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 fi
11488 ac_res=`eval echo '${'$as_ac_Header'}'`
11489                { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 else
11492   # Is the header compilable?
11493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 $ac_includes_default
11502 #include <$ac_header>
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_compile") 2>conftest.er1
11512   ac_status=$?
11513   grep -v '^ *+' conftest.er1 >conftest.err
11514   rm -f conftest.er1
11515   cat conftest.err >&5
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } &&
11518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519   { (case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524   (eval "$ac_try") 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; } &&
11528          { ac_try='test -s conftest.$ac_objext'
11529   { (case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_try") 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; }; then
11538   ac_header_compiler=yes
11539 else
11540   echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543         ac_header_compiler=no
11544 fi
11545
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548 echo "${ECHO_T}$ac_header_compiler" >&6; }
11549
11550 # Is the header present?
11551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 #include <$ac_header>
11560 _ACEOF
11561 if { (ac_try="$ac_cpp conftest.$ac_ext"
11562 case "(($ac_try" in
11563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564   *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11568   ac_status=$?
11569   grep -v '^ *+' conftest.er1 >conftest.err
11570   rm -f conftest.er1
11571   cat conftest.err >&5
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } >/dev/null; then
11574   if test -s conftest.err; then
11575     ac_cpp_err=$ac_c_preproc_warn_flag
11576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11577   else
11578     ac_cpp_err=
11579   fi
11580 else
11581   ac_cpp_err=yes
11582 fi
11583 if test -z "$ac_cpp_err"; then
11584   ac_header_preproc=yes
11585 else
11586   echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589   ac_header_preproc=no
11590 fi
11591
11592 rm -f conftest.err conftest.$ac_ext
11593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594 echo "${ECHO_T}$ac_header_preproc" >&6; }
11595
11596 # So?  What about this header?
11597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598   yes:no: )
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11603     ac_header_preproc=yes
11604     ;;
11605   no:yes:* )
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11618     ( cat <<\_ASBOX
11619 ## ----------------------------------- ##
11620 ## Report this to llvmbugs@cs.uiuc.edu ##
11621 ## ----------------------------------- ##
11622 _ASBOX
11623      ) | sed "s/^/$as_me: WARNING:     /" >&2
11624     ;;
11625 esac
11626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11629   echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631   eval "$as_ac_Header=\$ac_header_preproc"
11632 fi
11633 ac_res=`eval echo '${'$as_ac_Header'}'`
11634                { echo "$as_me:$LINENO: result: $ac_res" >&5
11635 echo "${ECHO_T}$ac_res" >&6; }
11636
11637 fi
11638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11639   cat >>confdefs.h <<_ACEOF
11640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11641 _ACEOF
11642  break
11643 fi
11644
11645 done
11646
11647
11648
11649
11650 for ac_func in strchr index
11651 do
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11666 #define $ac_func innocuous_$ac_func
11667
11668 /* System header to define __stub macros and hopefully few prototypes,
11669     which can conflict with char $ac_func (); below.
11670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671     <limits.h> exists even on freestanding compilers.  */
11672
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11678
11679 #undef $ac_func
11680
11681 /* Override any GCC internal prototype to avoid an error.
11682    Use char because int might match the return type of a GCC
11683    builtin and then its argument prototype would still apply.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 char $ac_func ();
11688 /* The GNU C library defines this for functions which it implements
11689     to always fail with ENOSYS.  Some functions are actually named
11690     something starting with __ and the normal name is an alias.  */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 choke me
11693 #endif
11694
11695 int
11696 main ()
11697 {
11698 return $ac_func ();
11699   ;
11700   return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_link") 2>conftest.er1
11711   ac_status=$?
11712   grep -v '^ *+' conftest.er1 >conftest.err
11713   rm -f conftest.er1
11714   cat conftest.err >&5
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); } &&
11717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718   { (case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_try") 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); }; } &&
11727          { ac_try='test -s conftest$ac_exeext'
11728   { (case "(($ac_try" in
11729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730   *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733   (eval "$ac_try") 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; }; then
11737   eval "$as_ac_var=yes"
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742         eval "$as_ac_var=no"
11743 fi
11744
11745 rm -f core conftest.err conftest.$ac_objext \
11746       conftest$ac_exeext conftest.$ac_ext
11747 fi
11748 ac_res=`eval echo '${'$as_ac_var'}'`
11749                { echo "$as_me:$LINENO: result: $ac_res" >&5
11750 echo "${ECHO_T}$ac_res" >&6; }
11751 if test `eval echo '${'$as_ac_var'}'` = yes; then
11752   cat >>confdefs.h <<_ACEOF
11753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754 _ACEOF
11755  break
11756 fi
11757 done
11758
11759
11760
11761 for ac_func in strrchr rindex
11762 do
11763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769   cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11777 #define $ac_func innocuous_$ac_func
11778
11779 /* System header to define __stub macros and hopefully few prototypes,
11780     which can conflict with char $ac_func (); below.
11781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11782     <limits.h> exists even on freestanding compilers.  */
11783
11784 #ifdef __STDC__
11785 # include <limits.h>
11786 #else
11787 # include <assert.h>
11788 #endif
11789
11790 #undef $ac_func
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793    Use char because int might match the return type of a GCC
11794    builtin and then its argument prototype would still apply.  */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char $ac_func ();
11799 /* The GNU C library defines this for functions which it implements
11800     to always fail with ENOSYS.  Some functions are actually named
11801     something starting with __ and the normal name is an alias.  */
11802 #if defined __stub_$ac_func || defined __stub___$ac_func
11803 choke me
11804 #endif
11805
11806 int
11807 main ()
11808 {
11809 return $ac_func ();
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (ac_try="$ac_link"
11816 case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_link") 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829   { (case "(($ac_try" in
11830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831   *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834   (eval "$ac_try") 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }; } &&
11838          { ac_try='test -s conftest$ac_exeext'
11839   { (case "(($ac_try" in
11840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841   *) ac_try_echo=$ac_try;;
11842 esac
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844   (eval "$ac_try") 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; }; then
11848   eval "$as_ac_var=yes"
11849 else
11850   echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853         eval "$as_ac_var=no"
11854 fi
11855
11856 rm -f core conftest.err conftest.$ac_objext \
11857       conftest$ac_exeext conftest.$ac_ext
11858 fi
11859 ac_res=`eval echo '${'$as_ac_var'}'`
11860                { echo "$as_me:$LINENO: result: $ac_res" >&5
11861 echo "${ECHO_T}$ac_res" >&6; }
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863   cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 _ACEOF
11866  break
11867 fi
11868 done
11869
11870
11871
11872 for ac_func in memcpy bcopy
11873 do
11874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11888 #define $ac_func innocuous_$ac_func
11889
11890 /* System header to define __stub macros and hopefully few prototypes,
11891     which can conflict with char $ac_func (); below.
11892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11893     <limits.h> exists even on freestanding compilers.  */
11894
11895 #ifdef __STDC__
11896 # include <limits.h>
11897 #else
11898 # include <assert.h>
11899 #endif
11900
11901 #undef $ac_func
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904    Use char because int might match the return type of a GCC
11905    builtin and then its argument prototype would still apply.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char $ac_func ();
11910 /* The GNU C library defines this for functions which it implements
11911     to always fail with ENOSYS.  Some functions are actually named
11912     something starting with __ and the normal name is an alias.  */
11913 #if defined __stub_$ac_func || defined __stub___$ac_func
11914 choke me
11915 #endif
11916
11917 int
11918 main ()
11919 {
11920 return $ac_func ();
11921   ;
11922   return 0;
11923 }
11924 _ACEOF
11925 rm -f conftest.$ac_objext conftest$ac_exeext
11926 if { (ac_try="$ac_link"
11927 case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932   (eval "$ac_link") 2>conftest.er1
11933   ac_status=$?
11934   grep -v '^ *+' conftest.er1 >conftest.err
11935   rm -f conftest.er1
11936   cat conftest.err >&5
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11940   { (case "(($ac_try" in
11941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942   *) ac_try_echo=$ac_try;;
11943 esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945   (eval "$ac_try") 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; } &&
11949          { ac_try='test -s conftest$ac_exeext'
11950   { (case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_try") 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   eval "$as_ac_var=yes"
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964         eval "$as_ac_var=no"
11965 fi
11966
11967 rm -f core conftest.err conftest.$ac_objext \
11968       conftest$ac_exeext conftest.$ac_ext
11969 fi
11970 ac_res=`eval echo '${'$as_ac_var'}'`
11971                { echo "$as_me:$LINENO: result: $ac_res" >&5
11972 echo "${ECHO_T}$ac_res" >&6; }
11973 if test `eval echo '${'$as_ac_var'}'` = yes; then
11974   cat >>confdefs.h <<_ACEOF
11975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976 _ACEOF
11977  break
11978 fi
11979 done
11980
11981
11982
11983 for ac_func in memmove strcmp
11984 do
11985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11989   echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991   cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h.  */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h.  */
11997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11999 #define $ac_func innocuous_$ac_func
12000
12001 /* System header to define __stub macros and hopefully few prototypes,
12002     which can conflict with char $ac_func (); below.
12003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004     <limits.h> exists even on freestanding compilers.  */
12005
12006 #ifdef __STDC__
12007 # include <limits.h>
12008 #else
12009 # include <assert.h>
12010 #endif
12011
12012 #undef $ac_func
12013
12014 /* Override any GCC internal prototype to avoid an error.
12015    Use char because int might match the return type of a GCC
12016    builtin and then its argument prototype would still apply.  */
12017 #ifdef __cplusplus
12018 extern "C"
12019 #endif
12020 char $ac_func ();
12021 /* The GNU C library defines this for functions which it implements
12022     to always fail with ENOSYS.  Some functions are actually named
12023     something starting with __ and the normal name is an alias.  */
12024 #if defined __stub_$ac_func || defined __stub___$ac_func
12025 choke me
12026 #endif
12027
12028 int
12029 main ()
12030 {
12031 return $ac_func ();
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (ac_try="$ac_link"
12038 case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_link") 2>conftest.er1
12044   ac_status=$?
12045   grep -v '^ *+' conftest.er1 >conftest.err
12046   rm -f conftest.er1
12047   cat conftest.err >&5
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); } &&
12050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051   { (case "(($ac_try" in
12052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053   *) ac_try_echo=$ac_try;;
12054 esac
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056   (eval "$ac_try") 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); }; } &&
12060          { ac_try='test -s conftest$ac_exeext'
12061   { (case "(($ac_try" in
12062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063   *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066   (eval "$ac_try") 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; }; then
12070   eval "$as_ac_var=yes"
12071 else
12072   echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075         eval "$as_ac_var=no"
12076 fi
12077
12078 rm -f core conftest.err conftest.$ac_objext \
12079       conftest$ac_exeext conftest.$ac_ext
12080 fi
12081 ac_res=`eval echo '${'$as_ac_var'}'`
12082                { echo "$as_me:$LINENO: result: $ac_res" >&5
12083 echo "${ECHO_T}$ac_res" >&6; }
12084 if test `eval echo '${'$as_ac_var'}'` = yes; then
12085   cat >>confdefs.h <<_ACEOF
12086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12087 _ACEOF
12088
12089 fi
12090 done
12091
12092
12093
12094
12095 for ac_func in closedir opendir readdir
12096 do
12097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12111 #define $ac_func innocuous_$ac_func
12112
12113 /* System header to define __stub macros and hopefully few prototypes,
12114     which can conflict with char $ac_func (); below.
12115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116     <limits.h> exists even on freestanding compilers.  */
12117
12118 #ifdef __STDC__
12119 # include <limits.h>
12120 #else
12121 # include <assert.h>
12122 #endif
12123
12124 #undef $ac_func
12125
12126 /* Override any GCC internal prototype to avoid an error.
12127    Use char because int might match the return type of a GCC
12128    builtin and then its argument prototype would still apply.  */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char $ac_func ();
12133 /* The GNU C library defines this for functions which it implements
12134     to always fail with ENOSYS.  Some functions are actually named
12135     something starting with __ and the normal name is an alias.  */
12136 #if defined __stub_$ac_func || defined __stub___$ac_func
12137 choke me
12138 #endif
12139
12140 int
12141 main ()
12142 {
12143 return $ac_func ();
12144   ;
12145   return 0;
12146 }
12147 _ACEOF
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (ac_try="$ac_link"
12150 case "(($ac_try" in
12151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152   *) ac_try_echo=$ac_try;;
12153 esac
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155   (eval "$ac_link") 2>conftest.er1
12156   ac_status=$?
12157   grep -v '^ *+' conftest.er1 >conftest.err
12158   rm -f conftest.er1
12159   cat conftest.err >&5
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); } &&
12162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163   { (case "(($ac_try" in
12164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165   *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168   (eval "$ac_try") 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); }; } &&
12172          { ac_try='test -s conftest$ac_exeext'
12173   { (case "(($ac_try" in
12174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175   *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178   (eval "$ac_try") 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; }; then
12182   eval "$as_ac_var=yes"
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187         eval "$as_ac_var=no"
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext \
12191       conftest$ac_exeext conftest.$ac_ext
12192 fi
12193 ac_res=`eval echo '${'$as_ac_var'}'`
12194                { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197   cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 _ACEOF
12200
12201 fi
12202 done
12203
12204
12205 # Check whether --enable-shared was given.
12206 if test "${enable_shared+set}" = set; then
12207   enableval=$enable_shared; p=${PACKAGE-default}
12208     case $enableval in
12209     yes) enable_shared=yes ;;
12210     no) enable_shared=no ;;
12211     *)
12212       enable_shared=no
12213       # Look at the argument we got.  We use all the common list separators.
12214       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12215       for pkg in $enableval; do
12216         IFS="$lt_save_ifs"
12217         if test "X$pkg" = "X$p"; then
12218           enable_shared=yes
12219         fi
12220       done
12221       IFS="$lt_save_ifs"
12222       ;;
12223     esac
12224 else
12225   enable_shared=yes
12226 fi
12227
12228
12229 # Check whether --enable-static was given.
12230 if test "${enable_static+set}" = set; then
12231   enableval=$enable_static; p=${PACKAGE-default}
12232     case $enableval in
12233     yes) enable_static=yes ;;
12234     no) enable_static=no ;;
12235     *)
12236      enable_static=no
12237       # Look at the argument we got.  We use all the common list separators.
12238       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12239       for pkg in $enableval; do
12240         IFS="$lt_save_ifs"
12241         if test "X$pkg" = "X$p"; then
12242           enable_static=yes
12243         fi
12244       done
12245       IFS="$lt_save_ifs"
12246       ;;
12247     esac
12248 else
12249   enable_static=yes
12250 fi
12251
12252
12253 # Check whether --enable-fast-install was given.
12254 if test "${enable_fast_install+set}" = set; then
12255   enableval=$enable_fast_install; p=${PACKAGE-default}
12256     case $enableval in
12257     yes) enable_fast_install=yes ;;
12258     no) enable_fast_install=no ;;
12259     *)
12260       enable_fast_install=no
12261       # Look at the argument we got.  We use all the common list separators.
12262       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12263       for pkg in $enableval; do
12264         IFS="$lt_save_ifs"
12265         if test "X$pkg" = "X$p"; then
12266           enable_fast_install=yes
12267         fi
12268       done
12269       IFS="$lt_save_ifs"
12270       ;;
12271     esac
12272 else
12273   enable_fast_install=yes
12274 fi
12275
12276
12277 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12278 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12279 if test "${lt_cv_path_SED+set}" = set; then
12280   echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282   # Loop through the user's path and test for sed and gsed.
12283 # Then use that list of sed's as ones to test for truncation.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12286 do
12287   IFS=$as_save_IFS
12288   test -z "$as_dir" && as_dir=.
12289   for lt_ac_prog in sed gsed; do
12290     for ac_exec_ext in '' $ac_executable_extensions; do
12291       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12292         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12293       fi
12294     done
12295   done
12296 done
12297 lt_ac_max=0
12298 lt_ac_count=0
12299 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12300 # along with /bin/sed that truncates output.
12301 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12302   test ! -f $lt_ac_sed && continue
12303   cat /dev/null > conftest.in
12304   lt_ac_count=0
12305   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12306   # Check for GNU sed and select it if it is found.
12307   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12308     lt_cv_path_SED=$lt_ac_sed
12309     break
12310   fi
12311   while true; do
12312     cat conftest.in conftest.in >conftest.tmp
12313     mv conftest.tmp conftest.in
12314     cp conftest.in conftest.nl
12315     echo >>conftest.nl
12316     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12317     cmp -s conftest.out conftest.nl || break
12318     # 10000 chars as input seems more than enough
12319     test $lt_ac_count -gt 10 && break
12320     lt_ac_count=`expr $lt_ac_count + 1`
12321     if test $lt_ac_count -gt $lt_ac_max; then
12322       lt_ac_max=$lt_ac_count
12323       lt_cv_path_SED=$lt_ac_sed
12324     fi
12325   done
12326 done
12327
12328 fi
12329
12330 SED=$lt_cv_path_SED
12331 { echo "$as_me:$LINENO: result: $SED" >&5
12332 echo "${ECHO_T}$SED" >&6; }
12333
12334
12335 # Check whether --with-gnu-ld was given.
12336 if test "${with_gnu_ld+set}" = set; then
12337   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12338 else
12339   with_gnu_ld=no
12340 fi
12341
12342 ac_prog=ld
12343 if test "$GCC" = yes; then
12344   # Check if gcc -print-prog-name=ld gives a path.
12345   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12346 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12347   case $host in
12348   *-*-mingw*)
12349     # gcc leaves a trailing carriage return which upsets mingw
12350     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12351   *)
12352     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12353   esac
12354   case $ac_prog in
12355     # Accept absolute paths.
12356     [\\/]* | ?:[\\/]*)
12357       re_direlt='/[^/][^/]*/\.\./'
12358       # Canonicalize the pathname of ld
12359       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12360       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12361         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12362       done
12363       test -z "$LD" && LD="$ac_prog"
12364       ;;
12365   "")
12366     # If it fails, then pretend we aren't using GCC.
12367     ac_prog=ld
12368     ;;
12369   *)
12370     # If it is relative, then search for the first ld in PATH.
12371     with_gnu_ld=unknown
12372     ;;
12373   esac
12374 elif test "$with_gnu_ld" = yes; then
12375   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12376 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12377 else
12378   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12379 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12380 fi
12381 if test "${lt_cv_path_LD+set}" = set; then
12382   echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384   if test -z "$LD"; then
12385   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12386   for ac_dir in $PATH; do
12387     IFS="$lt_save_ifs"
12388     test -z "$ac_dir" && ac_dir=.
12389     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12390       lt_cv_path_LD="$ac_dir/$ac_prog"
12391       # Check to see if the program is GNU ld.  I'd rather use --version,
12392       # but apparently some variants of GNU ld only accept -v.
12393       # Break only if it was the GNU/non-GNU ld that we prefer.
12394       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12395       *GNU* | *'with BFD'*)
12396         test "$with_gnu_ld" != no && break
12397         ;;
12398       *)
12399         test "$with_gnu_ld" != yes && break
12400         ;;
12401       esac
12402     fi
12403   done
12404   IFS="$lt_save_ifs"
12405 else
12406   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12407 fi
12408 fi
12409
12410 LD="$lt_cv_path_LD"
12411 if test -n "$LD"; then
12412   { echo "$as_me:$LINENO: result: $LD" >&5
12413 echo "${ECHO_T}$LD" >&6; }
12414 else
12415   { echo "$as_me:$LINENO: result: no" >&5
12416 echo "${ECHO_T}no" >&6; }
12417 fi
12418 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12419 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12420    { (exit 1); exit 1; }; }
12421 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12422 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12423 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12427 case `$LD -v 2>&1 </dev/null` in
12428 *GNU* | *'with BFD'*)
12429   lt_cv_prog_gnu_ld=yes
12430   ;;
12431 *)
12432   lt_cv_prog_gnu_ld=no
12433   ;;
12434 esac
12435 fi
12436 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12437 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12438 with_gnu_ld=$lt_cv_prog_gnu_ld
12439
12440
12441 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12442 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12443 if test "${lt_cv_ld_reload_flag+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   lt_cv_ld_reload_flag='-r'
12447 fi
12448 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12449 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12450 reload_flag=$lt_cv_ld_reload_flag
12451 case $reload_flag in
12452 "" | " "*) ;;
12453 *) reload_flag=" $reload_flag" ;;
12454 esac
12455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12456 case $host_os in
12457   darwin*)
12458     if test "$GCC" = yes; then
12459       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12460     else
12461       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12462     fi
12463     ;;
12464 esac
12465
12466 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12467 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12468 if test "${lt_cv_deplibs_check_method+set}" = set; then
12469   echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471   lt_cv_file_magic_cmd='$MAGIC_CMD'
12472 lt_cv_file_magic_test_file=
12473 lt_cv_deplibs_check_method='unknown'
12474 # Need to set the preceding variable on all platforms that support
12475 # interlibrary dependencies.
12476 # 'none' -- dependencies not supported.
12477 # `unknown' -- same as none, but documents that we really don't know.
12478 # 'pass_all' -- all dependencies passed with no checks.
12479 # 'test_compile' -- check by making test program.
12480 # 'file_magic [[regex]]' -- check by looking for files in library path
12481 # which responds to the $file_magic_cmd with a given extended regex.
12482 # If you have `file' or equivalent on your system and you're not sure
12483 # whether `pass_all' will *always* work, you probably want this one.
12484
12485 case $host_os in
12486 aix4* | aix5*)
12487   lt_cv_deplibs_check_method=pass_all
12488   ;;
12489
12490 beos*)
12491   lt_cv_deplibs_check_method=pass_all
12492   ;;
12493
12494 bsdi[45]*)
12495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12496   lt_cv_file_magic_cmd='/usr/bin/file -L'
12497   lt_cv_file_magic_test_file=/shlib/libc.so
12498   ;;
12499
12500 cygwin*)
12501   # func_win32_libid is a shell function defined in ltmain.sh
12502   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12503   lt_cv_file_magic_cmd='func_win32_libid'
12504   ;;
12505
12506 mingw* | pw32*)
12507   # Base MSYS/MinGW do not provide the 'file' command needed by
12508   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12509   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12510   lt_cv_file_magic_cmd='$OBJDUMP -f'
12511   ;;
12512
12513 darwin* | rhapsody*)
12514   lt_cv_deplibs_check_method=pass_all
12515   ;;
12516
12517 freebsd* | kfreebsd*-gnu | dragonfly*)
12518   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12519     case $host_cpu in
12520     i*86 )
12521       # Not sure whether the presence of OpenBSD here was a mistake.
12522       # Let's accept both of them until this is cleared up.
12523       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12524       lt_cv_file_magic_cmd=/usr/bin/file
12525       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12526       ;;
12527     esac
12528   else
12529     lt_cv_deplibs_check_method=pass_all
12530   fi
12531   ;;
12532
12533 gnu*)
12534   lt_cv_deplibs_check_method=pass_all
12535   ;;
12536
12537 hpux10.20* | hpux11*)
12538   lt_cv_file_magic_cmd=/usr/bin/file
12539   case $host_cpu in
12540   ia64*)
12541     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12542     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12543     ;;
12544   hppa*64*)
12545     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]'
12546     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12547     ;;
12548   *)
12549     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12550     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12551     ;;
12552   esac
12553   ;;
12554
12555 interix3*)
12556   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12557   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12558   ;;
12559
12560 irix5* | irix6* | nonstopux*)
12561   case $LD in
12562   *-32|*"-32 ") libmagic=32-bit;;
12563   *-n32|*"-n32 ") libmagic=N32;;
12564   *-64|*"-64 ") libmagic=64-bit;;
12565   *) libmagic=never-match;;
12566   esac
12567   lt_cv_deplibs_check_method=pass_all
12568   ;;
12569
12570 # This must be Linux ELF.
12571 linux*)
12572   lt_cv_deplibs_check_method=pass_all
12573   ;;
12574
12575 netbsd*)
12576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12578   else
12579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12580   fi
12581   ;;
12582
12583 newos6*)
12584   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12585   lt_cv_file_magic_cmd=/usr/bin/file
12586   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12587   ;;
12588
12589 nto-qnx*)
12590   lt_cv_deplibs_check_method=unknown
12591   ;;
12592
12593 openbsd*)
12594   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12596   else
12597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12598   fi
12599   ;;
12600
12601 osf3* | osf4* | osf5*)
12602   lt_cv_deplibs_check_method=pass_all
12603   ;;
12604
12605 solaris*)
12606   lt_cv_deplibs_check_method=pass_all
12607   ;;
12608
12609 sysv4 | sysv4.3*)
12610   case $host_vendor in
12611   motorola)
12612     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]'
12613     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12614     ;;
12615   ncr)
12616     lt_cv_deplibs_check_method=pass_all
12617     ;;
12618   sequent)
12619     lt_cv_file_magic_cmd='/bin/file'
12620     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12621     ;;
12622   sni)
12623     lt_cv_file_magic_cmd='/bin/file'
12624     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12625     lt_cv_file_magic_test_file=/lib/libc.so
12626     ;;
12627   siemens)
12628     lt_cv_deplibs_check_method=pass_all
12629     ;;
12630   pc)
12631     lt_cv_deplibs_check_method=pass_all
12632     ;;
12633   esac
12634   ;;
12635
12636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12637   lt_cv_deplibs_check_method=pass_all
12638   ;;
12639 esac
12640
12641 fi
12642 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12644 file_magic_cmd=$lt_cv_file_magic_cmd
12645 deplibs_check_method=$lt_cv_deplibs_check_method
12646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12647
12648
12649
12650 # If no C compiler was specified, use CC.
12651 LTCC=${LTCC-"$CC"}
12652
12653 # If no C compiler flags were specified, use CFLAGS.
12654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12655
12656 # Allow CC to be a program name with arguments.
12657 compiler=$CC
12658
12659 # Check whether --enable-libtool-lock was given.
12660 if test "${enable_libtool_lock+set}" = set; then
12661   enableval=$enable_libtool_lock;
12662 fi
12663
12664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12665
12666 # Some flags need to be propagated to the compiler or linker for good
12667 # libtool support.
12668 case $host in
12669 ia64-*-hpux*)
12670   # Find out which ABI we are using.
12671   echo 'int i;' > conftest.$ac_ext
12672   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673   (eval $ac_compile) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }; then
12677     case `/usr/bin/file conftest.$ac_objext` in
12678     *ELF-32*)
12679       HPUX_IA64_MODE="32"
12680       ;;
12681     *ELF-64*)
12682       HPUX_IA64_MODE="64"
12683       ;;
12684     esac
12685   fi
12686   rm -rf conftest*
12687   ;;
12688 *-*-irix6*)
12689   # Find out which ABI we are using.
12690   echo '#line 12690 "configure"' > conftest.$ac_ext
12691   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12692   (eval $ac_compile) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; then
12696    if test "$lt_cv_prog_gnu_ld" = yes; then
12697     case `/usr/bin/file conftest.$ac_objext` in
12698     *32-bit*)
12699       LD="${LD-ld} -melf32bsmip"
12700       ;;
12701     *N32*)
12702       LD="${LD-ld} -melf32bmipn32"
12703       ;;
12704     *64-bit*)
12705       LD="${LD-ld} -melf64bmip"
12706       ;;
12707     esac
12708    else
12709     case `/usr/bin/file conftest.$ac_objext` in
12710     *32-bit*)
12711       LD="${LD-ld} -32"
12712       ;;
12713     *N32*)
12714       LD="${LD-ld} -n32"
12715       ;;
12716     *64-bit*)
12717       LD="${LD-ld} -64"
12718       ;;
12719     esac
12720    fi
12721   fi
12722   rm -rf conftest*
12723   ;;
12724
12725 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12726   # Find out which ABI we are using.
12727   echo 'int i;' > conftest.$ac_ext
12728   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729   (eval $ac_compile) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; then
12733     case `/usr/bin/file conftest.o` in
12734     *32-bit*)
12735       case $host in
12736         x86_64-*linux*)
12737           LD="${LD-ld} -m elf_i386"
12738           ;;
12739         ppc64-*linux*|powerpc64-*linux*)
12740           LD="${LD-ld} -m elf32ppclinux"
12741           ;;
12742         s390x-*linux*)
12743           LD="${LD-ld} -m elf_s390"
12744           ;;
12745         sparc64-*linux*)
12746           LD="${LD-ld} -m elf32_sparc"
12747           ;;
12748       esac
12749       ;;
12750     *64-bit*)
12751       case $host in
12752         x86_64-*linux*)
12753           LD="${LD-ld} -m elf_x86_64"
12754           ;;
12755         ppc*-*linux*|powerpc*-*linux*)
12756           LD="${LD-ld} -m elf64ppc"
12757           ;;
12758         s390*-*linux*)
12759           LD="${LD-ld} -m elf64_s390"
12760           ;;
12761         sparc*-*linux*)
12762           LD="${LD-ld} -m elf64_sparc"
12763           ;;
12764       esac
12765       ;;
12766     esac
12767   fi
12768   rm -rf conftest*
12769   ;;
12770
12771 *-*-sco3.2v5*)
12772   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12773   SAVE_CFLAGS="$CFLAGS"
12774   CFLAGS="$CFLAGS -belf"
12775   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12776 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12777 if test "${lt_cv_cc_needs_belf+set}" = set; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780   ac_ext=c
12781 ac_cpp='$CPP $CPPFLAGS'
12782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12785
12786      cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792
12793 int
12794 main ()
12795 {
12796
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (ac_try="$ac_link"
12803 case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_link") 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } &&
12815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12816   { (case "(($ac_try" in
12817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818   *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821   (eval "$ac_try") 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; } &&
12825          { ac_try='test -s conftest$ac_exeext'
12826   { (case "(($ac_try" in
12827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828   *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831   (eval "$ac_try") 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); }; }; then
12835   lt_cv_cc_needs_belf=yes
12836 else
12837   echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12839
12840         lt_cv_cc_needs_belf=no
12841 fi
12842
12843 rm -f core conftest.err conftest.$ac_objext \
12844       conftest$ac_exeext conftest.$ac_ext
12845      ac_ext=c
12846 ac_cpp='$CPP $CPPFLAGS'
12847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12850
12851 fi
12852 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12853 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12854   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12855     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12856     CFLAGS="$SAVE_CFLAGS"
12857   fi
12858   ;;
12859 sparc*-*solaris*)
12860   # Find out which ABI we are using.
12861   echo 'int i;' > conftest.$ac_ext
12862   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863   (eval $ac_compile) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; then
12867     case `/usr/bin/file conftest.o` in
12868     *64-bit*)
12869       case $lt_cv_prog_gnu_ld in
12870       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12871       *)    LD="${LD-ld} -64" ;;
12872       esac
12873       ;;
12874     esac
12875   fi
12876   rm -rf conftest*
12877   ;;
12878
12879
12880 esac
12881
12882 need_locks="$enable_libtool_lock"
12883
12884
12885
12886
12887 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12888     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12889     (test "X$CXX" != "Xg++"))) ; then
12890   ac_ext=cpp
12891 ac_cpp='$CXXCPP $CPPFLAGS'
12892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12895 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12896 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12897 if test -z "$CXXCPP"; then
12898   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901       # Double quotes because CXXCPP needs to be expanded
12902     for CXXCPP in "$CXX -E" "/lib/cpp"
12903     do
12904       ac_preproc_ok=false
12905 for ac_cxx_preproc_warn_flag in '' yes
12906 do
12907   # Use a header file that comes with gcc, so configuring glibc
12908   # with a fresh cross-compiler works.
12909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12910   # <limits.h> exists even on freestanding compilers.
12911   # On the NeXT, cc -E runs the code through the compiler's parser,
12912   # not just through cpp. "Syntax error" is here to catch this case.
12913   cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 #ifdef __STDC__
12920 # include <limits.h>
12921 #else
12922 # include <assert.h>
12923 #endif
12924                      Syntax error
12925 _ACEOF
12926 if { (ac_try="$ac_cpp conftest.$ac_ext"
12927 case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } >/dev/null; then
12939   if test -s conftest.err; then
12940     ac_cpp_err=$ac_cxx_preproc_warn_flag
12941     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12942   else
12943     ac_cpp_err=
12944   fi
12945 else
12946   ac_cpp_err=yes
12947 fi
12948 if test -z "$ac_cpp_err"; then
12949   :
12950 else
12951   echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954   # Broken: fails on valid input.
12955 continue
12956 fi
12957
12958 rm -f conftest.err conftest.$ac_ext
12959
12960   # OK, works on sane cases.  Now check whether nonexistent headers
12961   # can be detected and how.
12962   cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 #include <ac_nonexistent.h>
12969 _ACEOF
12970 if { (ac_try="$ac_cpp conftest.$ac_ext"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } >/dev/null; then
12983   if test -s conftest.err; then
12984     ac_cpp_err=$ac_cxx_preproc_warn_flag
12985     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12986   else
12987     ac_cpp_err=
12988   fi
12989 else
12990   ac_cpp_err=yes
12991 fi
12992 if test -z "$ac_cpp_err"; then
12993   # Broken: success on invalid input.
12994 continue
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999   # Passes both tests.
13000 ac_preproc_ok=:
13001 break
13002 fi
13003
13004 rm -f conftest.err conftest.$ac_ext
13005
13006 done
13007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13008 rm -f conftest.err conftest.$ac_ext
13009 if $ac_preproc_ok; then
13010   break
13011 fi
13012
13013     done
13014     ac_cv_prog_CXXCPP=$CXXCPP
13015
13016 fi
13017   CXXCPP=$ac_cv_prog_CXXCPP
13018 else
13019   ac_cv_prog_CXXCPP=$CXXCPP
13020 fi
13021 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13022 echo "${ECHO_T}$CXXCPP" >&6; }
13023 ac_preproc_ok=false
13024 for ac_cxx_preproc_warn_flag in '' yes
13025 do
13026   # Use a header file that comes with gcc, so configuring glibc
13027   # with a fresh cross-compiler works.
13028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13029   # <limits.h> exists even on freestanding compilers.
13030   # On the NeXT, cc -E runs the code through the compiler's parser,
13031   # not just through cpp. "Syntax error" is here to catch this case.
13032   cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038 #ifdef __STDC__
13039 # include <limits.h>
13040 #else
13041 # include <assert.h>
13042 #endif
13043                      Syntax error
13044 _ACEOF
13045 if { (ac_try="$ac_cpp conftest.$ac_ext"
13046 case "(($ac_try" in
13047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048   *) ac_try_echo=$ac_try;;
13049 esac
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } >/dev/null; then
13058   if test -s conftest.err; then
13059     ac_cpp_err=$ac_cxx_preproc_warn_flag
13060     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13061   else
13062     ac_cpp_err=
13063   fi
13064 else
13065   ac_cpp_err=yes
13066 fi
13067 if test -z "$ac_cpp_err"; then
13068   :
13069 else
13070   echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073   # Broken: fails on valid input.
13074 continue
13075 fi
13076
13077 rm -f conftest.err conftest.$ac_ext
13078
13079   # OK, works on sane cases.  Now check whether nonexistent headers
13080   # can be detected and how.
13081   cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 #include <ac_nonexistent.h>
13088 _ACEOF
13089 if { (ac_try="$ac_cpp conftest.$ac_ext"
13090 case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13096   ac_status=$?
13097   grep -v '^ *+' conftest.er1 >conftest.err
13098   rm -f conftest.er1
13099   cat conftest.err >&5
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); } >/dev/null; then
13102   if test -s conftest.err; then
13103     ac_cpp_err=$ac_cxx_preproc_warn_flag
13104     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13105   else
13106     ac_cpp_err=
13107   fi
13108 else
13109   ac_cpp_err=yes
13110 fi
13111 if test -z "$ac_cpp_err"; then
13112   # Broken: success on invalid input.
13113 continue
13114 else
13115   echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118   # Passes both tests.
13119 ac_preproc_ok=:
13120 break
13121 fi
13122
13123 rm -f conftest.err conftest.$ac_ext
13124
13125 done
13126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13127 rm -f conftest.err conftest.$ac_ext
13128 if $ac_preproc_ok; then
13129   :
13130 else
13131   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13132 See \`config.log' for more details." >&5
13133 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13134 See \`config.log' for more details." >&2;}
13135    { (exit 1); exit 1; }; }
13136 fi
13137
13138 ac_ext=cpp
13139 ac_cpp='$CXXCPP $CPPFLAGS'
13140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13143
13144 fi
13145
13146
13147 ac_ext=f
13148 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13149 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13150 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13151 if test -n "$ac_tool_prefix"; then
13152   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13153   do
13154     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13158 if test "${ac_cv_prog_F77+set}" = set; then
13159   echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161   if test -n "$F77"; then
13162   ac_cv_prog_F77="$F77" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13166 do
13167   IFS=$as_save_IFS
13168   test -z "$as_dir" && as_dir=.
13169   for ac_exec_ext in '' $ac_executable_extensions; do
13170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13171     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173     break 2
13174   fi
13175 done
13176 done
13177 IFS=$as_save_IFS
13178
13179 fi
13180 fi
13181 F77=$ac_cv_prog_F77
13182 if test -n "$F77"; then
13183   { echo "$as_me:$LINENO: result: $F77" >&5
13184 echo "${ECHO_T}$F77" >&6; }
13185 else
13186   { echo "$as_me:$LINENO: result: no" >&5
13187 echo "${ECHO_T}no" >&6; }
13188 fi
13189
13190
13191     test -n "$F77" && break
13192   done
13193 fi
13194 if test -z "$F77"; then
13195   ac_ct_F77=$F77
13196   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
13197 do
13198   # Extract the first word of "$ac_prog", so it can be a program name with args.
13199 set dummy $ac_prog; ac_word=$2
13200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13202 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13203   echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205   if test -n "$ac_ct_F77"; then
13206   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211   IFS=$as_save_IFS
13212   test -z "$as_dir" && as_dir=.
13213   for ac_exec_ext in '' $ac_executable_extensions; do
13214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13215     ac_cv_prog_ac_ct_F77="$ac_prog"
13216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13217     break 2
13218   fi
13219 done
13220 done
13221 IFS=$as_save_IFS
13222
13223 fi
13224 fi
13225 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13226 if test -n "$ac_ct_F77"; then
13227   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13228 echo "${ECHO_T}$ac_ct_F77" >&6; }
13229 else
13230   { echo "$as_me:$LINENO: result: no" >&5
13231 echo "${ECHO_T}no" >&6; }
13232 fi
13233
13234
13235   test -n "$ac_ct_F77" && break
13236 done
13237
13238   if test "x$ac_ct_F77" = x; then
13239     F77=""
13240   else
13241     case $cross_compiling:$ac_tool_warned in
13242 yes:)
13243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13244 whose name does not start with the host triplet.  If you think this
13245 configuration is useful to you, please write to autoconf@gnu.org." >&5
13246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13247 whose name does not start with the host triplet.  If you think this
13248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13249 ac_tool_warned=yes ;;
13250 esac
13251     F77=$ac_ct_F77
13252   fi
13253 fi
13254
13255
13256 # Provide some information about the compiler.
13257 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13258 ac_compiler=`set X $ac_compile; echo $2`
13259 { (ac_try="$ac_compiler --version >&5"
13260 case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_compiler --version >&5") 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }
13269 { (ac_try="$ac_compiler -v >&5"
13270 case "(($ac_try" in
13271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272   *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275   (eval "$ac_compiler -v >&5") 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }
13279 { (ac_try="$ac_compiler -V >&5"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_compiler -V >&5") 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }
13289 rm -f a.out
13290
13291 # If we don't use `.F' as extension, the preprocessor is not run on the
13292 # input file.  (Note that this only needs to work for GNU compilers.)
13293 ac_save_ext=$ac_ext
13294 ac_ext=F
13295 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13296 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13297 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   cat >conftest.$ac_ext <<_ACEOF
13301       program main
13302 #ifndef __GNUC__
13303        choke me
13304 #endif
13305
13306       end
13307 _ACEOF
13308 rm -f conftest.$ac_objext
13309 if { (ac_try="$ac_compile"
13310 case "(($ac_try" in
13311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312   *) ac_try_echo=$ac_try;;
13313 esac
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315   (eval "$ac_compile") 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } &&
13322          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13323   { (case "(($ac_try" in
13324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325   *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328   (eval "$ac_try") 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); }; } &&
13332          { ac_try='test -s conftest.$ac_objext'
13333   { (case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_try") 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; }; then
13342   ac_compiler_gnu=yes
13343 else
13344   echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347         ac_compiler_gnu=no
13348 fi
13349
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13352
13353 fi
13354 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13355 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13356 ac_ext=$ac_save_ext
13357 ac_test_FFLAGS=${FFLAGS+set}
13358 ac_save_FFLAGS=$FFLAGS
13359 FFLAGS=
13360 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13361 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13362 if test "${ac_cv_prog_f77_g+set}" = set; then
13363   echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365   FFLAGS=-g
13366 cat >conftest.$ac_ext <<_ACEOF
13367       program main
13368
13369       end
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375   *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378   (eval "$ac_compile") 2>conftest.er1
13379   ac_status=$?
13380   grep -v '^ *+' conftest.er1 >conftest.err
13381   rm -f conftest.er1
13382   cat conftest.err >&5
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); } &&
13385          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13386   { (case "(($ac_try" in
13387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388   *) ac_try_echo=$ac_try;;
13389 esac
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391   (eval "$ac_try") 2>&5
13392   ac_status=$?
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); }; } &&
13395          { ac_try='test -s conftest.$ac_objext'
13396   { (case "(($ac_try" in
13397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398   *) ac_try_echo=$ac_try;;
13399 esac
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401   (eval "$ac_try") 2>&5
13402   ac_status=$?
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); }; }; then
13405   ac_cv_prog_f77_g=yes
13406 else
13407   echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13409
13410         ac_cv_prog_f77_g=no
13411 fi
13412
13413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414
13415 fi
13416 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13417 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13418 if test "$ac_test_FFLAGS" = set; then
13419   FFLAGS=$ac_save_FFLAGS
13420 elif test $ac_cv_prog_f77_g = yes; then
13421   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13422     FFLAGS="-g -O2"
13423   else
13424     FFLAGS="-g"
13425   fi
13426 else
13427   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13428     FFLAGS="-O2"
13429   else
13430     FFLAGS=
13431   fi
13432 fi
13433
13434 G77=`test $ac_compiler_gnu = yes && echo yes`
13435 ac_ext=c
13436 ac_cpp='$CPP $CPPFLAGS'
13437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13440
13441
13442
13443 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13444
13445 # find the maximum length of command line arguments
13446 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13447 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13448 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13449   echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451     i=0
13452   teststring="ABCD"
13453
13454   case $build_os in
13455   msdosdjgpp*)
13456     # On DJGPP, this test can blow up pretty badly due to problems in libc
13457     # (any single argument exceeding 2000 bytes causes a buffer overrun
13458     # during glob expansion).  Even if it were fixed, the result of this
13459     # check would be larger than it should be.
13460     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13461     ;;
13462
13463   gnu*)
13464     # Under GNU Hurd, this test is not required because there is
13465     # no limit to the length of command line arguments.
13466     # Libtool will interpret -1 as no limit whatsoever
13467     lt_cv_sys_max_cmd_len=-1;
13468     ;;
13469
13470   cygwin* | mingw*)
13471     # On Win9x/ME, this test blows up -- it succeeds, but takes
13472     # about 5 minutes as the teststring grows exponentially.
13473     # Worse, since 9x/ME are not pre-emptively multitasking,
13474     # you end up with a "frozen" computer, even though with patience
13475     # the test eventually succeeds (with a max line length of 256k).
13476     # Instead, let's just punt: use the minimum linelength reported by
13477     # all of the supported platforms: 8192 (on NT/2K/XP).
13478     lt_cv_sys_max_cmd_len=8192;
13479     ;;
13480
13481   amigaos*)
13482     # On AmigaOS with pdksh, this test takes hours, literally.
13483     # So we just punt and use a minimum line length of 8192.
13484     lt_cv_sys_max_cmd_len=8192;
13485     ;;
13486
13487   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13488     # This has been around since 386BSD, at least.  Likely further.
13489     if test -x /sbin/sysctl; then
13490       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13491     elif test -x /usr/sbin/sysctl; then
13492       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13493     else
13494       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13495     fi
13496     # And add a safety zone
13497     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13498     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13499     ;;
13500
13501   interix*)
13502     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13503     lt_cv_sys_max_cmd_len=196608
13504     ;;
13505
13506   osf*)
13507     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13508     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13509     # nice to cause kernel panics so lets avoid the loop below.
13510     # First set a reasonable default.
13511     lt_cv_sys_max_cmd_len=16384
13512     #
13513     if test -x /sbin/sysconfig; then
13514       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13515         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13516       esac
13517     fi
13518     ;;
13519   sco3.2v5*)
13520     lt_cv_sys_max_cmd_len=102400
13521     ;;
13522   sysv5* | sco5v6* | sysv4.2uw2*)
13523     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13524     if test -n "$kargmax"; then
13525       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13526     else
13527       lt_cv_sys_max_cmd_len=32768
13528     fi
13529     ;;
13530   *)
13531     # If test is not a shell built-in, we'll probably end up computing a
13532     # maximum length that is only half of the actual maximum length, but
13533     # we can't tell.
13534     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13535     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13536                = "XX$teststring") >/dev/null 2>&1 &&
13537             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13538             lt_cv_sys_max_cmd_len=$new_result &&
13539             test $i != 17 # 1/2 MB should be enough
13540     do
13541       i=`expr $i + 1`
13542       teststring=$teststring$teststring
13543     done
13544     teststring=
13545     # Add a significant safety factor because C++ compilers can tack on massive
13546     # amounts of additional arguments before passing them to the linker.
13547     # It appears as though 1/2 is a usable value.
13548     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13549     ;;
13550   esac
13551
13552 fi
13553
13554 if test -n $lt_cv_sys_max_cmd_len ; then
13555   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13556 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13557 else
13558   { echo "$as_me:$LINENO: result: none" >&5
13559 echo "${ECHO_T}none" >&6; }
13560 fi
13561
13562
13563
13564
13565 # Check for command to grab the raw symbol name followed by C symbol from nm.
13566 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13567 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13568 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571
13572 # These are sane defaults that work on at least a few old systems.
13573 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13574
13575 # Character class describing NM global symbol codes.
13576 symcode='[BCDEGRST]'
13577
13578 # Regexp to match symbols that can be accessed directly from C.
13579 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13580
13581 # Transform an extracted symbol line into a proper C declaration
13582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13583
13584 # Transform an extracted symbol line into symbol name and symbol address
13585 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
13586
13587 # Define system-specific variables.
13588 case $host_os in
13589 aix*)
13590   symcode='[BCDT]'
13591   ;;
13592 cygwin* | mingw* | pw32*)
13593   symcode='[ABCDGISTW]'
13594   ;;
13595 hpux*) # Its linker distinguishes data from code symbols
13596   if test "$host_cpu" = ia64; then
13597     symcode='[ABCDEGRST]'
13598   fi
13599   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13600   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
13601   ;;
13602 linux*)
13603   if test "$host_cpu" = ia64; then
13604     symcode='[ABCDGIRSTW]'
13605     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13606     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
13607   fi
13608   ;;
13609 irix* | nonstopux*)
13610   symcode='[BCDEGRST]'
13611   ;;
13612 osf*)
13613   symcode='[BCDEGQRST]'
13614   ;;
13615 solaris*)
13616   symcode='[BDRT]'
13617   ;;
13618 sco3.2v5*)
13619   symcode='[DT]'
13620   ;;
13621 sysv4.2uw2*)
13622   symcode='[DT]'
13623   ;;
13624 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13625   symcode='[ABDT]'
13626   ;;
13627 sysv4)
13628   symcode='[DFNSTU]'
13629   ;;
13630 esac
13631
13632 # Handle CRLF in mingw tool chain
13633 opt_cr=
13634 case $build_os in
13635 mingw*)
13636   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13637   ;;
13638 esac
13639
13640 # If we're using GNU nm, then use its standard symbol codes.
13641 case `$NM -V 2>&1` in
13642 *GNU* | *'with BFD'*)
13643   symcode='[ABCDGIRSTW]' ;;
13644 esac
13645
13646 # Try without a prefix undercore, then with it.
13647 for ac_symprfx in "" "_"; do
13648
13649   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13650   symxfrm="\\1 $ac_symprfx\\2 \\2"
13651
13652   # Write the raw and C identifiers.
13653   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13654
13655   # Check to see that the pipe works correctly.
13656   pipe_works=no
13657
13658   rm -f conftest*
13659   cat > conftest.$ac_ext <<EOF
13660 #ifdef __cplusplus
13661 extern "C" {
13662 #endif
13663 char nm_test_var;
13664 void nm_test_func(){}
13665 #ifdef __cplusplus
13666 }
13667 #endif
13668 int main(){nm_test_var='a';nm_test_func();return(0);}
13669 EOF
13670
13671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13672   (eval $ac_compile) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; then
13676     # Now try to grab the symbols.
13677     nlist=conftest.nm
13678     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13679   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } && test -s "$nlist"; then
13683       # Try sorting and uniquifying the output.
13684       if sort "$nlist" | uniq > "$nlist"T; then
13685         mv -f "$nlist"T "$nlist"
13686       else
13687         rm -f "$nlist"T
13688       fi
13689
13690       # Make sure that we snagged all the symbols we need.
13691       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13692         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13693           cat <<EOF > conftest.$ac_ext
13694 #ifdef __cplusplus
13695 extern "C" {
13696 #endif
13697
13698 EOF
13699           # Now generate the symbol file.
13700           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13701
13702           cat <<EOF >> conftest.$ac_ext
13703 #if defined (__STDC__) && __STDC__
13704 # define lt_ptr_t void *
13705 #else
13706 # define lt_ptr_t char *
13707 # define const
13708 #endif
13709
13710 /* The mapping between symbol names and symbols. */
13711 const struct {
13712   const char *name;
13713   lt_ptr_t address;
13714 }
13715 lt_preloaded_symbols[] =
13716 {
13717 EOF
13718           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13719           cat <<\EOF >> conftest.$ac_ext
13720   {0, (lt_ptr_t) 0}
13721 };
13722
13723 #ifdef __cplusplus
13724 }
13725 #endif
13726 EOF
13727           # Now try linking the two files.
13728           mv conftest.$ac_objext conftstm.$ac_objext
13729           lt_save_LIBS="$LIBS"
13730           lt_save_CFLAGS="$CFLAGS"
13731           LIBS="conftstm.$ac_objext"
13732           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13733           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734   (eval $ac_link) 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13738             pipe_works=yes
13739           fi
13740           LIBS="$lt_save_LIBS"
13741           CFLAGS="$lt_save_CFLAGS"
13742         else
13743           echo "cannot find nm_test_func in $nlist" >&5
13744         fi
13745       else
13746         echo "cannot find nm_test_var in $nlist" >&5
13747       fi
13748     else
13749       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13750     fi
13751   else
13752     echo "$progname: failed program was:" >&5
13753     cat conftest.$ac_ext >&5
13754   fi
13755   rm -f conftest* conftst*
13756
13757   # Do not use the global_symbol_pipe unless it works.
13758   if test "$pipe_works" = yes; then
13759     break
13760   else
13761     lt_cv_sys_global_symbol_pipe=
13762   fi
13763 done
13764
13765 fi
13766
13767 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13768   lt_cv_sys_global_symbol_to_cdecl=
13769 fi
13770 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13771   { echo "$as_me:$LINENO: result: failed" >&5
13772 echo "${ECHO_T}failed" >&6; }
13773 else
13774   { echo "$as_me:$LINENO: result: ok" >&5
13775 echo "${ECHO_T}ok" >&6; }
13776 fi
13777
13778 { echo "$as_me:$LINENO: checking for objdir" >&5
13779 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13780 if test "${lt_cv_objdir+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   rm -f .libs 2>/dev/null
13784 mkdir .libs 2>/dev/null
13785 if test -d .libs; then
13786   lt_cv_objdir=.libs
13787 else
13788   # MS-DOS does not allow filenames that begin with a dot.
13789   lt_cv_objdir=_libs
13790 fi
13791 rmdir .libs 2>/dev/null
13792 fi
13793 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13794 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13795 objdir=$lt_cv_objdir
13796
13797
13798
13799
13800
13801 case $host_os in
13802 aix3*)
13803   # AIX sometimes has problems with the GCC collect2 program.  For some
13804   # reason, if we set the COLLECT_NAMES environment variable, the problems
13805   # vanish in a puff of smoke.
13806   if test "X${COLLECT_NAMES+set}" != Xset; then
13807     COLLECT_NAMES=
13808     export COLLECT_NAMES
13809   fi
13810   ;;
13811 esac
13812
13813 # Sed substitution that helps us do robust quoting.  It backslashifies
13814 # metacharacters that are still active within double-quoted strings.
13815 Xsed='sed -e 1s/^X//'
13816 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13817
13818 # Same as above, but do not quote variable references.
13819 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13820
13821 # Sed substitution to delay expansion of an escaped shell variable in a
13822 # double_quote_subst'ed string.
13823 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13824
13825 # Sed substitution to avoid accidental globbing in evaled expressions
13826 no_glob_subst='s/\*/\\\*/g'
13827
13828 # Constants:
13829 rm="rm -f"
13830
13831 # Global variables:
13832 default_ofile=mklib
13833 can_build_shared=yes
13834
13835 # All known linkers require a `.a' archive for static linking (except MSVC,
13836 # which needs '.lib').
13837 libext=a
13838 ltmain="$ac_aux_dir/ltmain.sh"
13839 ofile="$default_ofile"
13840 with_gnu_ld="$lt_cv_prog_gnu_ld"
13841
13842 if test -n "$ac_tool_prefix"; then
13843   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13844 set dummy ${ac_tool_prefix}ar; ac_word=$2
13845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13847 if test "${ac_cv_prog_AR+set}" = set; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   if test -n "$AR"; then
13851   ac_cv_prog_AR="$AR" # Let the user override the test.
13852 else
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13855 do
13856   IFS=$as_save_IFS
13857   test -z "$as_dir" && as_dir=.
13858   for ac_exec_ext in '' $ac_executable_extensions; do
13859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13860     ac_cv_prog_AR="${ac_tool_prefix}ar"
13861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13862     break 2
13863   fi
13864 done
13865 done
13866 IFS=$as_save_IFS
13867
13868 fi
13869 fi
13870 AR=$ac_cv_prog_AR
13871 if test -n "$AR"; then
13872   { echo "$as_me:$LINENO: result: $AR" >&5
13873 echo "${ECHO_T}$AR" >&6; }
13874 else
13875   { echo "$as_me:$LINENO: result: no" >&5
13876 echo "${ECHO_T}no" >&6; }
13877 fi
13878
13879
13880 fi
13881 if test -z "$ac_cv_prog_AR"; then
13882   ac_ct_AR=$AR
13883   # Extract the first word of "ar", so it can be a program name with args.
13884 set dummy ar; ac_word=$2
13885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13887 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13888   echo $ECHO_N "(cached) $ECHO_C" >&6
13889 else
13890   if test -n "$ac_ct_AR"; then
13891   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13892 else
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13895 do
13896   IFS=$as_save_IFS
13897   test -z "$as_dir" && as_dir=.
13898   for ac_exec_ext in '' $ac_executable_extensions; do
13899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13900     ac_cv_prog_ac_ct_AR="ar"
13901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13902     break 2
13903   fi
13904 done
13905 done
13906 IFS=$as_save_IFS
13907
13908 fi
13909 fi
13910 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13911 if test -n "$ac_ct_AR"; then
13912   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13913 echo "${ECHO_T}$ac_ct_AR" >&6; }
13914 else
13915   { echo "$as_me:$LINENO: result: no" >&5
13916 echo "${ECHO_T}no" >&6; }
13917 fi
13918
13919   if test "x$ac_ct_AR" = x; then
13920     AR="false"
13921   else
13922     case $cross_compiling:$ac_tool_warned in
13923 yes:)
13924 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13925 whose name does not start with the host triplet.  If you think this
13926 configuration is useful to you, please write to autoconf@gnu.org." >&5
13927 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13928 whose name does not start with the host triplet.  If you think this
13929 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13930 ac_tool_warned=yes ;;
13931 esac
13932     AR=$ac_ct_AR
13933   fi
13934 else
13935   AR="$ac_cv_prog_AR"
13936 fi
13937
13938 if test -n "$ac_tool_prefix"; then
13939   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13943 if test "${ac_cv_prog_RANLIB+set}" = set; then
13944   echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946   if test -n "$RANLIB"; then
13947   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13948 else
13949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13951 do
13952   IFS=$as_save_IFS
13953   test -z "$as_dir" && as_dir=.
13954   for ac_exec_ext in '' $ac_executable_extensions; do
13955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13956     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13958     break 2
13959   fi
13960 done
13961 done
13962 IFS=$as_save_IFS
13963
13964 fi
13965 fi
13966 RANLIB=$ac_cv_prog_RANLIB
13967 if test -n "$RANLIB"; then
13968   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13969 echo "${ECHO_T}$RANLIB" >&6; }
13970 else
13971   { echo "$as_me:$LINENO: result: no" >&5
13972 echo "${ECHO_T}no" >&6; }
13973 fi
13974
13975
13976 fi
13977 if test -z "$ac_cv_prog_RANLIB"; then
13978   ac_ct_RANLIB=$RANLIB
13979   # Extract the first word of "ranlib", so it can be a program name with args.
13980 set dummy ranlib; ac_word=$2
13981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13984   echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986   if test -n "$ac_ct_RANLIB"; then
13987   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13988 else
13989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in $PATH
13991 do
13992   IFS=$as_save_IFS
13993   test -z "$as_dir" && as_dir=.
13994   for ac_exec_ext in '' $ac_executable_extensions; do
13995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13996     ac_cv_prog_ac_ct_RANLIB="ranlib"
13997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13998     break 2
13999   fi
14000 done
14001 done
14002 IFS=$as_save_IFS
14003
14004 fi
14005 fi
14006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14007 if test -n "$ac_ct_RANLIB"; then
14008   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14009 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14010 else
14011   { echo "$as_me:$LINENO: result: no" >&5
14012 echo "${ECHO_T}no" >&6; }
14013 fi
14014
14015   if test "x$ac_ct_RANLIB" = x; then
14016     RANLIB=":"
14017   else
14018     case $cross_compiling:$ac_tool_warned in
14019 yes:)
14020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14021 whose name does not start with the host triplet.  If you think this
14022 configuration is useful to you, please write to autoconf@gnu.org." >&5
14023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14024 whose name does not start with the host triplet.  If you think this
14025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14026 ac_tool_warned=yes ;;
14027 esac
14028     RANLIB=$ac_ct_RANLIB
14029   fi
14030 else
14031   RANLIB="$ac_cv_prog_RANLIB"
14032 fi
14033
14034 if test -n "$ac_tool_prefix"; then
14035   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14036 set dummy ${ac_tool_prefix}strip; ac_word=$2
14037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14039 if test "${ac_cv_prog_STRIP+set}" = set; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   if test -n "$STRIP"; then
14043   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14044 else
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14047 do
14048   IFS=$as_save_IFS
14049   test -z "$as_dir" && as_dir=.
14050   for ac_exec_ext in '' $ac_executable_extensions; do
14051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14052     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14054     break 2
14055   fi
14056 done
14057 done
14058 IFS=$as_save_IFS
14059
14060 fi
14061 fi
14062 STRIP=$ac_cv_prog_STRIP
14063 if test -n "$STRIP"; then
14064   { echo "$as_me:$LINENO: result: $STRIP" >&5
14065 echo "${ECHO_T}$STRIP" >&6; }
14066 else
14067   { echo "$as_me:$LINENO: result: no" >&5
14068 echo "${ECHO_T}no" >&6; }
14069 fi
14070
14071
14072 fi
14073 if test -z "$ac_cv_prog_STRIP"; then
14074   ac_ct_STRIP=$STRIP
14075   # Extract the first word of "strip", so it can be a program name with args.
14076 set dummy strip; ac_word=$2
14077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14079 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   if test -n "$ac_ct_STRIP"; then
14083   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14084 else
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14087 do
14088   IFS=$as_save_IFS
14089   test -z "$as_dir" && as_dir=.
14090   for ac_exec_ext in '' $ac_executable_extensions; do
14091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14092     ac_cv_prog_ac_ct_STRIP="strip"
14093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094     break 2
14095   fi
14096 done
14097 done
14098 IFS=$as_save_IFS
14099
14100 fi
14101 fi
14102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14103 if test -n "$ac_ct_STRIP"; then
14104   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14105 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14106 else
14107   { echo "$as_me:$LINENO: result: no" >&5
14108 echo "${ECHO_T}no" >&6; }
14109 fi
14110
14111   if test "x$ac_ct_STRIP" = x; then
14112     STRIP=":"
14113   else
14114     case $cross_compiling:$ac_tool_warned in
14115 yes:)
14116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14117 whose name does not start with the host triplet.  If you think this
14118 configuration is useful to you, please write to autoconf@gnu.org." >&5
14119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14120 whose name does not start with the host triplet.  If you think this
14121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14122 ac_tool_warned=yes ;;
14123 esac
14124     STRIP=$ac_ct_STRIP
14125   fi
14126 else
14127   STRIP="$ac_cv_prog_STRIP"
14128 fi
14129
14130
14131 old_CC="$CC"
14132 old_CFLAGS="$CFLAGS"
14133
14134 # Set sane defaults for various variables
14135 test -z "$AR" && AR=ar
14136 test -z "$AR_FLAGS" && AR_FLAGS=cru
14137 test -z "$AS" && AS=as
14138 test -z "$CC" && CC=cc
14139 test -z "$LTCC" && LTCC=$CC
14140 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14141 test -z "$DLLTOOL" && DLLTOOL=dlltool
14142 test -z "$LD" && LD=ld
14143 test -z "$LN_S" && LN_S="ln -s"
14144 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14145 test -z "$NM" && NM=nm
14146 test -z "$SED" && SED=sed
14147 test -z "$OBJDUMP" && OBJDUMP=objdump
14148 test -z "$RANLIB" && RANLIB=:
14149 test -z "$STRIP" && STRIP=:
14150 test -z "$ac_objext" && ac_objext=o
14151
14152 # Determine commands to create old-style static archives.
14153 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14154 old_postinstall_cmds='chmod 644 $oldlib'
14155 old_postuninstall_cmds=
14156
14157 if test -n "$RANLIB"; then
14158   case $host_os in
14159   openbsd*)
14160     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14161     ;;
14162   *)
14163     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14164     ;;
14165   esac
14166   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14167 fi
14168
14169 for cc_temp in $compiler""; do
14170   case $cc_temp in
14171     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14172     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14173     \-*) ;;
14174     *) break;;
14175   esac
14176 done
14177 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14178
14179
14180 # Only perform the check for file, if the check method requires it
14181 case $deplibs_check_method in
14182 file_magic*)
14183   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14184     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14185 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14186 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14187   echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189   case $MAGIC_CMD in
14190 [\\/*] |  ?:[\\/]*)
14191   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14192   ;;
14193 *)
14194   lt_save_MAGIC_CMD="$MAGIC_CMD"
14195   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14196   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14197   for ac_dir in $ac_dummy; do
14198     IFS="$lt_save_ifs"
14199     test -z "$ac_dir" && ac_dir=.
14200     if test -f $ac_dir/${ac_tool_prefix}file; then
14201       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14202       if test -n "$file_magic_test_file"; then
14203         case $deplibs_check_method in
14204         "file_magic "*)
14205           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14206           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14207           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14208             $EGREP "$file_magic_regex" > /dev/null; then
14209             :
14210           else
14211             cat <<EOF 1>&2
14212
14213 *** Warning: the command libtool uses to detect shared libraries,
14214 *** $file_magic_cmd, produces output that libtool cannot recognize.
14215 *** The result is that libtool may fail to recognize shared libraries
14216 *** as such.  This will affect the creation of libtool libraries that
14217 *** depend on shared libraries, but programs linked with such libtool
14218 *** libraries will work regardless of this problem.  Nevertheless, you
14219 *** may want to report the problem to your system manager and/or to
14220 *** bug-libtool@gnu.org
14221
14222 EOF
14223           fi ;;
14224         esac
14225       fi
14226       break
14227     fi
14228   done
14229   IFS="$lt_save_ifs"
14230   MAGIC_CMD="$lt_save_MAGIC_CMD"
14231   ;;
14232 esac
14233 fi
14234
14235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14236 if test -n "$MAGIC_CMD"; then
14237   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14238 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14239 else
14240   { echo "$as_me:$LINENO: result: no" >&5
14241 echo "${ECHO_T}no" >&6; }
14242 fi
14243
14244 if test -z "$lt_cv_path_MAGIC_CMD"; then
14245   if test -n "$ac_tool_prefix"; then
14246     { echo "$as_me:$LINENO: checking for file" >&5
14247 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14248 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   case $MAGIC_CMD in
14252 [\\/*] |  ?:[\\/]*)
14253   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14254   ;;
14255 *)
14256   lt_save_MAGIC_CMD="$MAGIC_CMD"
14257   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14258   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14259   for ac_dir in $ac_dummy; do
14260     IFS="$lt_save_ifs"
14261     test -z "$ac_dir" && ac_dir=.
14262     if test -f $ac_dir/file; then
14263       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14264       if test -n "$file_magic_test_file"; then
14265         case $deplibs_check_method in
14266         "file_magic "*)
14267           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14268           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14269           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14270             $EGREP "$file_magic_regex" > /dev/null; then
14271             :
14272           else
14273             cat <<EOF 1>&2
14274
14275 *** Warning: the command libtool uses to detect shared libraries,
14276 *** $file_magic_cmd, produces output that libtool cannot recognize.
14277 *** The result is that libtool may fail to recognize shared libraries
14278 *** as such.  This will affect the creation of libtool libraries that
14279 *** depend on shared libraries, but programs linked with such libtool
14280 *** libraries will work regardless of this problem.  Nevertheless, you
14281 *** may want to report the problem to your system manager and/or to
14282 *** bug-libtool@gnu.org
14283
14284 EOF
14285           fi ;;
14286         esac
14287       fi
14288       break
14289     fi
14290   done
14291   IFS="$lt_save_ifs"
14292   MAGIC_CMD="$lt_save_MAGIC_CMD"
14293   ;;
14294 esac
14295 fi
14296
14297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14298 if test -n "$MAGIC_CMD"; then
14299   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14300 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14301 else
14302   { echo "$as_me:$LINENO: result: no" >&5
14303 echo "${ECHO_T}no" >&6; }
14304 fi
14305
14306   else
14307     MAGIC_CMD=:
14308   fi
14309 fi
14310
14311   fi
14312   ;;
14313 esac
14314
14315 enable_dlopen=yes
14316 enable_win32_dll=no
14317
14318 # Check whether --enable-libtool-lock was given.
14319 if test "${enable_libtool_lock+set}" = set; then
14320   enableval=$enable_libtool_lock;
14321 fi
14322
14323 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14324
14325
14326 # Check whether --with-pic was given.
14327 if test "${with_pic+set}" = set; then
14328   withval=$with_pic; pic_mode="$withval"
14329 else
14330   pic_mode=default
14331 fi
14332
14333 test -z "$pic_mode" && pic_mode=default
14334
14335 # Use C for the default configuration in the libtool script
14336 tagname=
14337 lt_save_CC="$CC"
14338 ac_ext=c
14339 ac_cpp='$CPP $CPPFLAGS'
14340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343
14344
14345 # Source file extension for C test sources.
14346 ac_ext=c
14347
14348 # Object file extension for compiled C test sources.
14349 objext=o
14350 objext=$objext
14351
14352 # Code to be used in simple compile tests
14353 lt_simple_compile_test_code="int some_variable = 0;\n"
14354
14355 # Code to be used in simple link tests
14356 lt_simple_link_test_code='int main(){return(0);}\n'
14357
14358
14359 # If no C compiler was specified, use CC.
14360 LTCC=${LTCC-"$CC"}
14361
14362 # If no C compiler flags were specified, use CFLAGS.
14363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14364
14365 # Allow CC to be a program name with arguments.
14366 compiler=$CC
14367
14368
14369 # save warnings/boilerplate of simple test code
14370 ac_outfile=conftest.$ac_objext
14371 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14373 _lt_compiler_boilerplate=`cat conftest.err`
14374 $rm conftest*
14375
14376 ac_outfile=conftest.$ac_objext
14377 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14379 _lt_linker_boilerplate=`cat conftest.err`
14380 $rm conftest*
14381
14382
14383
14384 lt_prog_compiler_no_builtin_flag=
14385
14386 if test "$GCC" = yes; then
14387   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14388
14389
14390 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14391 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14392 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   lt_cv_prog_compiler_rtti_exceptions=no
14396   ac_outfile=conftest.$ac_objext
14397    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14398    lt_compiler_flag="-fno-rtti -fno-exceptions"
14399    # Insert the option either (1) after the last *FLAGS variable, or
14400    # (2) before a word containing "conftest.", or (3) at the end.
14401    # Note that $ac_compile itself does not contain backslashes and begins
14402    # with a dollar sign (not a hyphen), so the echo should work correctly.
14403    # The option is referenced via a variable to avoid confusing sed.
14404    lt_compile=`echo "$ac_compile" | $SED \
14405    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14406    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14407    -e 's:$: $lt_compiler_flag:'`
14408    (eval echo "\"\$as_me:14408: $lt_compile\"" >&5)
14409    (eval "$lt_compile" 2>conftest.err)
14410    ac_status=$?
14411    cat conftest.err >&5
14412    echo "$as_me:14412: \$? = $ac_status" >&5
14413    if (exit $ac_status) && test -s "$ac_outfile"; then
14414      # The compiler can only warn and ignore the option if not recognized
14415      # So say no if there are warnings other than the usual output.
14416      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14417      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14418      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14419        lt_cv_prog_compiler_rtti_exceptions=yes
14420      fi
14421    fi
14422    $rm conftest*
14423
14424 fi
14425 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14426 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14427
14428 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14429     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14430 else
14431     :
14432 fi
14433
14434 fi
14435
14436 lt_prog_compiler_wl=
14437 lt_prog_compiler_pic=
14438 lt_prog_compiler_static=
14439
14440 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14441 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14442
14443   if test "$GCC" = yes; then
14444     lt_prog_compiler_wl='-Wl,'
14445     lt_prog_compiler_static='-static'
14446
14447     case $host_os in
14448       aix*)
14449       # All AIX code is PIC.
14450       if test "$host_cpu" = ia64; then
14451         # AIX 5 now supports IA64 processor
14452         lt_prog_compiler_static='-Bstatic'
14453       fi
14454       ;;
14455
14456     amigaos*)
14457       # FIXME: we need at least 68020 code to build shared libraries, but
14458       # adding the `-m68020' flag to GCC prevents building anything better,
14459       # like `-m68040'.
14460       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14461       ;;
14462
14463     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14464       # PIC is the default for these OSes.
14465       ;;
14466
14467     mingw* | pw32* | os2*)
14468       # This hack is so that the source file can tell whether it is being
14469       # built for inclusion in a dll (and should export symbols for example).
14470       lt_prog_compiler_pic='-DDLL_EXPORT'
14471       ;;
14472
14473     darwin* | rhapsody*)
14474       # PIC is the default on this platform
14475       # Common symbols not allowed in MH_DYLIB files
14476       lt_prog_compiler_pic='-fno-common'
14477       ;;
14478
14479     interix3*)
14480       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14481       # Instead, we relocate shared libraries at runtime.
14482       ;;
14483
14484     msdosdjgpp*)
14485       # Just because we use GCC doesn't mean we suddenly get shared libraries
14486       # on systems that don't support them.
14487       lt_prog_compiler_can_build_shared=no
14488       enable_shared=no
14489       ;;
14490
14491     sysv4*MP*)
14492       if test -d /usr/nec; then
14493         lt_prog_compiler_pic=-Kconform_pic
14494       fi
14495       ;;
14496
14497     hpux*)
14498       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14499       # not for PA HP-UX.
14500       case $host_cpu in
14501       hppa*64*|ia64*)
14502         # +Z the default
14503         ;;
14504       *)
14505         lt_prog_compiler_pic='-fPIC'
14506         ;;
14507       esac
14508       ;;
14509
14510     *)
14511       lt_prog_compiler_pic='-fPIC'
14512       ;;
14513     esac
14514   else
14515     # PORTME Check for flag to pass linker flags through the system compiler.
14516     case $host_os in
14517     aix*)
14518       lt_prog_compiler_wl='-Wl,'
14519       if test "$host_cpu" = ia64; then
14520         # AIX 5 now supports IA64 processor
14521         lt_prog_compiler_static='-Bstatic'
14522       else
14523         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14524       fi
14525       ;;
14526       darwin*)
14527         # PIC is the default on this platform
14528         # Common symbols not allowed in MH_DYLIB files
14529        case $cc_basename in
14530          xlc*)
14531          lt_prog_compiler_pic='-qnocommon'
14532          lt_prog_compiler_wl='-Wl,'
14533          ;;
14534        esac
14535        ;;
14536
14537     mingw* | pw32* | os2*)
14538       # This hack is so that the source file can tell whether it is being
14539       # built for inclusion in a dll (and should export symbols for example).
14540       lt_prog_compiler_pic='-DDLL_EXPORT'
14541       ;;
14542
14543     hpux9* | hpux10* | hpux11*)
14544       lt_prog_compiler_wl='-Wl,'
14545       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14546       # not for PA HP-UX.
14547       case $host_cpu in
14548       hppa*64*|ia64*)
14549         # +Z the default
14550         ;;
14551       *)
14552         lt_prog_compiler_pic='+Z'
14553         ;;
14554       esac
14555       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14556       lt_prog_compiler_static='${wl}-a ${wl}archive'
14557       ;;
14558
14559     irix5* | irix6* | nonstopux*)
14560       lt_prog_compiler_wl='-Wl,'
14561       # PIC (with -KPIC) is the default.
14562       lt_prog_compiler_static='-non_shared'
14563       ;;
14564
14565     newsos6)
14566       lt_prog_compiler_pic='-KPIC'
14567       lt_prog_compiler_static='-Bstatic'
14568       ;;
14569
14570     linux*)
14571       case $cc_basename in
14572       icc* | ecc*)
14573         lt_prog_compiler_wl='-Wl,'
14574         lt_prog_compiler_pic='-KPIC'
14575         lt_prog_compiler_static='-static'
14576         ;;
14577       pgcc* | pgf77* | pgf90* | pgf95*)
14578         # Portland Group compilers (*not* the Pentium gcc compiler,
14579         # which looks to be a dead project)
14580         lt_prog_compiler_wl='-Wl,'
14581         lt_prog_compiler_pic='-fpic'
14582         lt_prog_compiler_static='-Bstatic'
14583         ;;
14584       ccc*)
14585         lt_prog_compiler_wl='-Wl,'
14586         # All Alpha code is PIC.
14587         lt_prog_compiler_static='-non_shared'
14588         ;;
14589       esac
14590       ;;
14591
14592     osf3* | osf4* | osf5*)
14593       lt_prog_compiler_wl='-Wl,'
14594       # All OSF/1 code is PIC.
14595       lt_prog_compiler_static='-non_shared'
14596       ;;
14597
14598     solaris*)
14599       lt_prog_compiler_pic='-KPIC'
14600       lt_prog_compiler_static='-Bstatic'
14601       case $cc_basename in
14602       f77* | f90* | f95*)
14603         lt_prog_compiler_wl='-Qoption ld ';;
14604       *)
14605         lt_prog_compiler_wl='-Wl,';;
14606       esac
14607       ;;
14608
14609     sunos4*)
14610       lt_prog_compiler_wl='-Qoption ld '
14611       lt_prog_compiler_pic='-PIC'
14612       lt_prog_compiler_static='-Bstatic'
14613       ;;
14614
14615     sysv4 | sysv4.2uw2* | sysv4.3*)
14616       lt_prog_compiler_wl='-Wl,'
14617       lt_prog_compiler_pic='-KPIC'
14618       lt_prog_compiler_static='-Bstatic'
14619       ;;
14620
14621     sysv4*MP*)
14622       if test -d /usr/nec ;then
14623         lt_prog_compiler_pic='-Kconform_pic'
14624         lt_prog_compiler_static='-Bstatic'
14625       fi
14626       ;;
14627
14628     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14629       lt_prog_compiler_wl='-Wl,'
14630       lt_prog_compiler_pic='-KPIC'
14631       lt_prog_compiler_static='-Bstatic'
14632       ;;
14633
14634     unicos*)
14635       lt_prog_compiler_wl='-Wl,'
14636       lt_prog_compiler_can_build_shared=no
14637       ;;
14638
14639     uts4*)
14640       lt_prog_compiler_pic='-pic'
14641       lt_prog_compiler_static='-Bstatic'
14642       ;;
14643
14644     *)
14645       lt_prog_compiler_can_build_shared=no
14646       ;;
14647     esac
14648   fi
14649
14650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14651 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14652
14653 #
14654 # Check to make sure the PIC flag actually works.
14655 #
14656 if test -n "$lt_prog_compiler_pic"; then
14657
14658 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14659 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14660 if test "${lt_prog_compiler_pic_works+set}" = set; then
14661   echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663   lt_prog_compiler_pic_works=no
14664   ac_outfile=conftest.$ac_objext
14665    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14666    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14667    # Insert the option either (1) after the last *FLAGS variable, or
14668    # (2) before a word containing "conftest.", or (3) at the end.
14669    # Note that $ac_compile itself does not contain backslashes and begins
14670    # with a dollar sign (not a hyphen), so the echo should work correctly.
14671    # The option is referenced via a variable to avoid confusing sed.
14672    lt_compile=`echo "$ac_compile" | $SED \
14673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675    -e 's:$: $lt_compiler_flag:'`
14676    (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
14677    (eval "$lt_compile" 2>conftest.err)
14678    ac_status=$?
14679    cat conftest.err >&5
14680    echo "$as_me:14680: \$? = $ac_status" >&5
14681    if (exit $ac_status) && test -s "$ac_outfile"; then
14682      # The compiler can only warn and ignore the option if not recognized
14683      # So say no if there are warnings other than the usual output.
14684      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14685      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14686      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14687        lt_prog_compiler_pic_works=yes
14688      fi
14689    fi
14690    $rm conftest*
14691
14692 fi
14693 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14694 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14695
14696 if test x"$lt_prog_compiler_pic_works" = xyes; then
14697     case $lt_prog_compiler_pic in
14698      "" | " "*) ;;
14699      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14700      esac
14701 else
14702     lt_prog_compiler_pic=
14703      lt_prog_compiler_can_build_shared=no
14704 fi
14705
14706 fi
14707 case $host_os in
14708   # For platforms which do not support PIC, -DPIC is meaningless:
14709   *djgpp*)
14710     lt_prog_compiler_pic=
14711     ;;
14712   *)
14713     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14714     ;;
14715 esac
14716
14717 #
14718 # Check to make sure the static flag actually works.
14719 #
14720 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14721 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14722 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14723 if test "${lt_prog_compiler_static_works+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   lt_prog_compiler_static_works=no
14727    save_LDFLAGS="$LDFLAGS"
14728    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14729    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14730    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14731      # The linker can only warn and ignore the option if not recognized
14732      # So say no if there are warnings
14733      if test -s conftest.err; then
14734        # Append any errors to the config.log.
14735        cat conftest.err 1>&5
14736        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14737        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738        if diff conftest.exp conftest.er2 >/dev/null; then
14739          lt_prog_compiler_static_works=yes
14740        fi
14741      else
14742        lt_prog_compiler_static_works=yes
14743      fi
14744    fi
14745    $rm conftest*
14746    LDFLAGS="$save_LDFLAGS"
14747
14748 fi
14749 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14750 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14751
14752 if test x"$lt_prog_compiler_static_works" = xyes; then
14753     :
14754 else
14755     lt_prog_compiler_static=
14756 fi
14757
14758
14759 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14760 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14761 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14762   echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764   lt_cv_prog_compiler_c_o=no
14765    $rm -r conftest 2>/dev/null
14766    mkdir conftest
14767    cd conftest
14768    mkdir out
14769    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14770
14771    lt_compiler_flag="-o out/conftest2.$ac_objext"
14772    # Insert the option either (1) after the last *FLAGS variable, or
14773    # (2) before a word containing "conftest.", or (3) at the end.
14774    # Note that $ac_compile itself does not contain backslashes and begins
14775    # with a dollar sign (not a hyphen), so the echo should work correctly.
14776    lt_compile=`echo "$ac_compile" | $SED \
14777    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779    -e 's:$: $lt_compiler_flag:'`
14780    (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
14781    (eval "$lt_compile" 2>out/conftest.err)
14782    ac_status=$?
14783    cat out/conftest.err >&5
14784    echo "$as_me:14784: \$? = $ac_status" >&5
14785    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786    then
14787      # The compiler can only warn and ignore the option if not recognized
14788      # So say no if there are warnings
14789      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14790      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14791      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14792        lt_cv_prog_compiler_c_o=yes
14793      fi
14794    fi
14795    chmod u+w . 2>&5
14796    $rm conftest*
14797    # SGI C++ compiler will create directory out/ii_files/ for
14798    # template instantiation
14799    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14800    $rm out/* && rmdir out
14801    cd ..
14802    rmdir conftest
14803    $rm conftest*
14804
14805 fi
14806 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14807 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14808
14809
14810 hard_links="nottested"
14811 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14812   # do not overwrite the value of need_locks provided by the user
14813   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14814 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14815   hard_links=yes
14816   $rm conftest*
14817   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14818   touch conftest.a
14819   ln conftest.a conftest.b 2>&5 || hard_links=no
14820   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14821   { echo "$as_me:$LINENO: result: $hard_links" >&5
14822 echo "${ECHO_T}$hard_links" >&6; }
14823   if test "$hard_links" = no; then
14824     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14825 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14826     need_locks=warn
14827   fi
14828 else
14829   need_locks=no
14830 fi
14831
14832 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14834
14835   runpath_var=
14836   allow_undefined_flag=
14837   enable_shared_with_static_runtimes=no
14838   archive_cmds=
14839   archive_expsym_cmds=
14840   old_archive_From_new_cmds=
14841   old_archive_from_expsyms_cmds=
14842   export_dynamic_flag_spec=
14843   whole_archive_flag_spec=
14844   thread_safe_flag_spec=
14845   hardcode_libdir_flag_spec=
14846   hardcode_libdir_flag_spec_ld=
14847   hardcode_libdir_separator=
14848   hardcode_direct=no
14849   hardcode_minus_L=no
14850   hardcode_shlibpath_var=unsupported
14851   link_all_deplibs=unknown
14852   hardcode_automatic=no
14853   module_cmds=
14854   module_expsym_cmds=
14855   always_export_symbols=no
14856   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14857   # include_expsyms should be a list of space-separated symbols to be *always*
14858   # included in the symbol list
14859   include_expsyms=
14860   # exclude_expsyms can be an extended regexp of symbols to exclude
14861   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14862   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863   # as well as any symbol that contains `d'.
14864   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14865   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866   # platforms (ab)use it in PIC code, but their linkers get confused if
14867   # the symbol is explicitly referenced.  Since portable code cannot
14868   # rely on this symbol name, it's probably fine to never include it in
14869   # preloaded symbol tables.
14870   extract_expsyms_cmds=
14871   # Just being paranoid about ensuring that cc_basename is set.
14872   for cc_temp in $compiler""; do
14873   case $cc_temp in
14874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14876     \-*) ;;
14877     *) break;;
14878   esac
14879 done
14880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14881
14882   case $host_os in
14883   cygwin* | mingw* | pw32*)
14884     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14885     # When not using gcc, we currently assume that we are using
14886     # Microsoft Visual C++.
14887     if test "$GCC" != yes; then
14888       with_gnu_ld=no
14889     fi
14890     ;;
14891   interix*)
14892     # we just hope/assume this is gcc and not c89 (= MSVC++)
14893     with_gnu_ld=yes
14894     ;;
14895   openbsd*)
14896     with_gnu_ld=no
14897     ;;
14898   esac
14899
14900   ld_shlibs=yes
14901   if test "$with_gnu_ld" = yes; then
14902     # If archive_cmds runs LD, not CC, wlarc should be empty
14903     wlarc='${wl}'
14904
14905     # Set some defaults for GNU ld with shared library support. These
14906     # are reset later if shared libraries are not supported. Putting them
14907     # here allows them to be overridden if necessary.
14908     runpath_var=LD_RUN_PATH
14909     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14910     export_dynamic_flag_spec='${wl}--export-dynamic'
14911     # ancient GNU ld didn't support --whole-archive et. al.
14912     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14913         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14914       else
14915         whole_archive_flag_spec=
14916     fi
14917     supports_anon_versioning=no
14918     case `$LD -v 2>/dev/null` in
14919       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14920       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14921       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14922       *\ 2.11.*) ;; # other 2.11 versions
14923       *) supports_anon_versioning=yes ;;
14924     esac
14925
14926     # See if GNU ld supports shared libraries.
14927     case $host_os in
14928     aix3* | aix4* | aix5*)
14929       # On AIX/PPC, the GNU linker is very broken
14930       if test "$host_cpu" != ia64; then
14931         ld_shlibs=no
14932         cat <<EOF 1>&2
14933
14934 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14935 *** to be unable to reliably create shared libraries on AIX.
14936 *** Therefore, libtool is disabling shared libraries support.  If you
14937 *** really care for shared libraries, you may want to modify your PATH
14938 *** so that a non-GNU linker is found, and then restart.
14939
14940 EOF
14941       fi
14942       ;;
14943
14944     amigaos*)
14945       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)'
14946       hardcode_libdir_flag_spec='-L$libdir'
14947       hardcode_minus_L=yes
14948
14949       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14950       # that the semantics of dynamic libraries on AmigaOS, at least up
14951       # to version 4, is to share data among multiple programs linked
14952       # with the same dynamic library.  Since this doesn't match the
14953       # behavior of shared libraries on other platforms, we can't use
14954       # them.
14955       ld_shlibs=no
14956       ;;
14957
14958     beos*)
14959       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960         allow_undefined_flag=unsupported
14961         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14962         # support --undefined.  This deserves some investigation.  FIXME
14963         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964       else
14965         ld_shlibs=no
14966       fi
14967       ;;
14968
14969     cygwin* | mingw* | pw32*)
14970       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14971       # as there is no search path for DLLs.
14972       hardcode_libdir_flag_spec='-L$libdir'
14973       allow_undefined_flag=unsupported
14974       always_export_symbols=no
14975       enable_shared_with_static_runtimes=yes
14976       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14977
14978       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14979         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980         # If the export-symbols file already is a .def file (1st line
14981         # is EXPORTS), use it as is; otherwise, prepend...
14982         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983           cp $export_symbols $output_objdir/$soname.def;
14984         else
14985           echo EXPORTS > $output_objdir/$soname.def;
14986           cat $export_symbols >> $output_objdir/$soname.def;
14987         fi~
14988         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14989       else
14990         ld_shlibs=no
14991       fi
14992       ;;
14993
14994     interix3*)
14995       hardcode_direct=no
14996       hardcode_shlibpath_var=no
14997       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14998       export_dynamic_flag_spec='${wl}-E'
14999       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15000       # Instead, shared libraries are loaded at an image base (0x10000000 by
15001       # default) and relocated if they conflict, which is a slow very memory
15002       # consuming and fragmenting process.  To avoid this, we pick a random,
15003       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15004       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15005       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15006       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'
15007       ;;
15008
15009     linux*)
15010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011         tmp_addflag=
15012         case $cc_basename,$host_cpu in
15013         pgcc*)                          # Portland Group C compiler
15014           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'
15015           tmp_addflag=' $pic_flag'
15016           ;;
15017         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15018           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'
15019           tmp_addflag=' $pic_flag -Mnomain' ;;
15020         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15021           tmp_addflag=' -i_dynamic' ;;
15022         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15023           tmp_addflag=' -i_dynamic -nofor_main' ;;
15024         ifc* | ifort*)                  # Intel Fortran compiler
15025           tmp_addflag=' -nofor_main' ;;
15026         esac
15027         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028
15029         if test $supports_anon_versioning = yes; then
15030           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15031   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15032   $echo "local: *; };" >> $output_objdir/$libname.ver~
15033           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15034         fi
15035       else
15036         ld_shlibs=no
15037       fi
15038       ;;
15039
15040     netbsd*)
15041       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15042         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15043         wlarc=
15044       else
15045         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15047       fi
15048       ;;
15049
15050     solaris*)
15051       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15052         ld_shlibs=no
15053         cat <<EOF 1>&2
15054
15055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15056 *** create shared libraries on Solaris systems.  Therefore, libtool
15057 *** is disabling shared libraries support.  We urge you to upgrade GNU
15058 *** binutils to release 2.9.1 or newer.  Another option is to modify
15059 *** your PATH or compiler configuration so that the native linker is
15060 *** used, and then restart.
15061
15062 EOF
15063       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066       else
15067         ld_shlibs=no
15068       fi
15069       ;;
15070
15071     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15072       case `$LD -v 2>&1` in
15073         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15074         ld_shlibs=no
15075         cat <<_LT_EOF 1>&2
15076
15077 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15078 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15079 *** is disabling shared libraries support.  We urge you to upgrade GNU
15080 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15081 *** your PATH or compiler configuration so that the native linker is
15082 *** used, and then restart.
15083
15084 _LT_EOF
15085         ;;
15086         *)
15087           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15088             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15089             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15090             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15091           else
15092             ld_shlibs=no
15093           fi
15094         ;;
15095       esac
15096       ;;
15097
15098     sunos4*)
15099       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15100       wlarc=
15101       hardcode_direct=yes
15102       hardcode_shlibpath_var=no
15103       ;;
15104
15105     *)
15106       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15109       else
15110         ld_shlibs=no
15111       fi
15112       ;;
15113     esac
15114
15115     if test "$ld_shlibs" = no; then
15116       runpath_var=
15117       hardcode_libdir_flag_spec=
15118       export_dynamic_flag_spec=
15119       whole_archive_flag_spec=
15120     fi
15121   else
15122     # PORTME fill in a description of your system's linker (not GNU ld)
15123     case $host_os in
15124     aix3*)
15125       allow_undefined_flag=unsupported
15126       always_export_symbols=yes
15127       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'
15128       # Note: this linker hardcodes the directories in LIBPATH if there
15129       # are no directories specified by -L.
15130       hardcode_minus_L=yes
15131       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15132         # Neither direct hardcoding nor static linking is supported with a
15133         # broken collect2.
15134         hardcode_direct=unsupported
15135       fi
15136       ;;
15137
15138     aix4* | aix5*)
15139       if test "$host_cpu" = ia64; then
15140         # On IA64, the linker does run time linking by default, so we don't
15141         # have to do anything special.
15142         aix_use_runtimelinking=no
15143         exp_sym_flag='-Bexport'
15144         no_entry_flag=""
15145       else
15146         # If we're using GNU nm, then we don't want the "-C" option.
15147         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15148         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15149           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'
15150         else
15151           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'
15152         fi
15153         aix_use_runtimelinking=no
15154
15155         # Test if we are trying to use run time linking or normal
15156         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15157         # need to do runtime linking.
15158         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15159           for ld_flag in $LDFLAGS; do
15160           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15161             aix_use_runtimelinking=yes
15162             break
15163           fi
15164           done
15165           ;;
15166         esac
15167
15168         exp_sym_flag='-bexport'
15169         no_entry_flag='-bnoentry'
15170       fi
15171
15172       # When large executables or shared objects are built, AIX ld can
15173       # have problems creating the table of contents.  If linking a library
15174       # or program results in "error TOC overflow" add -mminimal-toc to
15175       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15176       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15177
15178       archive_cmds=''
15179       hardcode_direct=yes
15180       hardcode_libdir_separator=':'
15181       link_all_deplibs=yes
15182
15183       if test "$GCC" = yes; then
15184         case $host_os in aix4.[012]|aix4.[012].*)
15185         # We only want to do this on AIX 4.2 and lower, the check
15186         # below for broken collect2 doesn't work under 4.3+
15187           collect2name=`${CC} -print-prog-name=collect2`
15188           if test -f "$collect2name" && \
15189            strings "$collect2name" | grep resolve_lib_name >/dev/null
15190           then
15191           # We have reworked collect2
15192           hardcode_direct=yes
15193           else
15194           # We have old collect2
15195           hardcode_direct=unsupported
15196           # It fails to find uninstalled libraries when the uninstalled
15197           # path is not listed in the libpath.  Setting hardcode_minus_L
15198           # to unsupported forces relinking
15199           hardcode_minus_L=yes
15200           hardcode_libdir_flag_spec='-L$libdir'
15201           hardcode_libdir_separator=
15202           fi
15203           ;;
15204         esac
15205         shared_flag='-shared'
15206         if test "$aix_use_runtimelinking" = yes; then
15207           shared_flag="$shared_flag "'${wl}-G'
15208         fi
15209       else
15210         # not using gcc
15211         if test "$host_cpu" = ia64; then
15212         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15213         # chokes on -Wl,-G. The following line is correct:
15214           shared_flag='-G'
15215         else
15216           if test "$aix_use_runtimelinking" = yes; then
15217             shared_flag='${wl}-G'
15218           else
15219             shared_flag='${wl}-bM:SRE'
15220           fi
15221         fi
15222       fi
15223
15224       # It seems that -bexpall does not export symbols beginning with
15225       # underscore (_), so it is better to generate a list of symbols to export.
15226       always_export_symbols=yes
15227       if test "$aix_use_runtimelinking" = yes; then
15228         # Warning - without using the other runtime loading flags (-brtl),
15229         # -berok will link without error, but may produce a broken library.
15230         allow_undefined_flag='-berok'
15231        # Determine the default libpath from the value encoded in an empty executable.
15232        cat >conftest.$ac_ext <<_ACEOF
15233 /* confdefs.h.  */
15234 _ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h.  */
15238
15239 int
15240 main ()
15241 {
15242
15243   ;
15244   return 0;
15245 }
15246 _ACEOF
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_link") 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } &&
15261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262   { (case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_try") 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; } &&
15271          { ac_try='test -s conftest$ac_exeext'
15272   { (case "(($ac_try" in
15273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274   *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277   (eval "$ac_try") 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281
15282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15283 }'`
15284 # Check for a 64-bit object if we didn't find anything.
15285 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15286 }'`; fi
15287 else
15288   echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291
15292 fi
15293
15294 rm -f core conftest.err conftest.$ac_objext \
15295       conftest$ac_exeext conftest.$ac_ext
15296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15297
15298        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15299         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15300        else
15301         if test "$host_cpu" = ia64; then
15302           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15303           allow_undefined_flag="-z nodefs"
15304           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"
15305         else
15306          # Determine the default libpath from the value encoded in an empty executable.
15307          cat >conftest.$ac_ext <<_ACEOF
15308 /* confdefs.h.  */
15309 _ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h.  */
15313
15314 int
15315 main ()
15316 {
15317
15318   ;
15319   return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (ac_try="$ac_link"
15324 case "(($ac_try" in
15325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326   *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329   (eval "$ac_link") 2>conftest.er1
15330   ac_status=$?
15331   grep -v '^ *+' conftest.er1 >conftest.err
15332   rm -f conftest.er1
15333   cat conftest.err >&5
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15337   { (case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342   (eval "$ac_try") 2>&5
15343   ac_status=$?
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); }; } &&
15346          { ac_try='test -s conftest$ac_exeext'
15347   { (case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_try") 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; }; then
15356
15357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15358 }'`
15359 # Check for a 64-bit object if we didn't find anything.
15360 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15361 }'`; fi
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366
15367 fi
15368
15369 rm -f core conftest.err conftest.$ac_objext \
15370       conftest$ac_exeext conftest.$ac_ext
15371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15372
15373          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15374           # Warning - without using the other run time loading flags,
15375           # -berok will link without error, but may produce a broken library.
15376           no_undefined_flag=' ${wl}-bernotok'
15377           allow_undefined_flag=' ${wl}-berok'
15378           # Exported symbols can be pulled into shared objects from archives
15379           whole_archive_flag_spec='$convenience'
15380           archive_cmds_need_lc=yes
15381           # This is similar to how AIX traditionally builds its shared libraries.
15382           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'
15383         fi
15384       fi
15385       ;;
15386
15387     amigaos*)
15388       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)'
15389       hardcode_libdir_flag_spec='-L$libdir'
15390       hardcode_minus_L=yes
15391       # see comment about different semantics on the GNU ld section
15392       ld_shlibs=no
15393       ;;
15394
15395     bsdi[45]*)
15396       export_dynamic_flag_spec=-rdynamic
15397       ;;
15398
15399     cygwin* | mingw* | pw32*)
15400       # When not using gcc, we currently assume that we are using
15401       # Microsoft Visual C++.
15402       # hardcode_libdir_flag_spec is actually meaningless, as there is
15403       # no search path for DLLs.
15404       hardcode_libdir_flag_spec=' '
15405       allow_undefined_flag=unsupported
15406       # Tell ltmain to make .lib files, not .a files.
15407       libext=lib
15408       # Tell ltmain to make .dll files, not .so files.
15409       shrext_cmds=".dll"
15410       # FIXME: Setting linknames here is a bad hack.
15411       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15412       # The linker will automatically build a .lib file if we build a DLL.
15413       old_archive_From_new_cmds='true'
15414       # FIXME: Should let the user specify the lib program.
15415       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15416       fix_srcfile_path='`cygpath -w "$srcfile"`'
15417       enable_shared_with_static_runtimes=yes
15418       ;;
15419
15420     darwin* | rhapsody*)
15421       case $host_os in
15422         rhapsody* | darwin1.[012])
15423          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15424          ;;
15425        *) # Darwin 1.3 on
15426          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15427            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15428          else
15429            case ${MACOSX_DEPLOYMENT_TARGET} in
15430              10.[012])
15431                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15432                ;;
15433              10.*)
15434                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15435                ;;
15436            esac
15437          fi
15438          ;;
15439       esac
15440       archive_cmds_need_lc=no
15441       hardcode_direct=no
15442       hardcode_automatic=yes
15443       hardcode_shlibpath_var=unsupported
15444       whole_archive_flag_spec=''
15445       link_all_deplibs=yes
15446     if test "$GCC" = yes ; then
15447         output_verbose_link_cmd='echo'
15448         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15449       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15450       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15451       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15452       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15453     else
15454       case $cc_basename in
15455         xlc*)
15456          output_verbose_link_cmd='echo'
15457          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15458          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15459           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15460          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15461           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15462           ;;
15463        *)
15464          ld_shlibs=no
15465           ;;
15466       esac
15467     fi
15468       ;;
15469
15470     dgux*)
15471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15472       hardcode_libdir_flag_spec='-L$libdir'
15473       hardcode_shlibpath_var=no
15474       ;;
15475
15476     freebsd1*)
15477       ld_shlibs=no
15478       ;;
15479
15480     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15481     # support.  Future versions do this automatically, but an explicit c++rt0.o
15482     # does not break anything, and helps significantly (at the cost of a little
15483     # extra space).
15484     freebsd2.2*)
15485       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15486       hardcode_libdir_flag_spec='-R$libdir'
15487       hardcode_direct=yes
15488       hardcode_shlibpath_var=no
15489       ;;
15490
15491     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15492     freebsd2*)
15493       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494       hardcode_direct=yes
15495       hardcode_minus_L=yes
15496       hardcode_shlibpath_var=no
15497       ;;
15498
15499     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15500     freebsd* | kfreebsd*-gnu | dragonfly*)
15501       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15502       hardcode_libdir_flag_spec='-R$libdir'
15503       hardcode_direct=yes
15504       hardcode_shlibpath_var=no
15505       ;;
15506
15507     hpux9*)
15508       if test "$GCC" = yes; then
15509         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'
15510       else
15511         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'
15512       fi
15513       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514       hardcode_libdir_separator=:
15515       hardcode_direct=yes
15516
15517       # hardcode_minus_L: Not really in the search PATH,
15518       # but as the default location of the library.
15519       hardcode_minus_L=yes
15520       export_dynamic_flag_spec='${wl}-E'
15521       ;;
15522
15523     hpux10*)
15524       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15525         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15526       else
15527         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15528       fi
15529       if test "$with_gnu_ld" = no; then
15530         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15531         hardcode_libdir_separator=:
15532
15533         hardcode_direct=yes
15534         export_dynamic_flag_spec='${wl}-E'
15535
15536         # hardcode_minus_L: Not really in the search PATH,
15537         # but as the default location of the library.
15538         hardcode_minus_L=yes
15539       fi
15540       ;;
15541
15542     hpux11*)
15543       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15544         case $host_cpu in
15545         hppa*64*)
15546           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15547           ;;
15548         ia64*)
15549           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15550           ;;
15551         *)
15552           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553           ;;
15554         esac
15555       else
15556         case $host_cpu in
15557         hppa*64*)
15558           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15559           ;;
15560         ia64*)
15561           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15562           ;;
15563         *)
15564           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15565           ;;
15566         esac
15567       fi
15568       if test "$with_gnu_ld" = no; then
15569         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15570         hardcode_libdir_separator=:
15571
15572         case $host_cpu in
15573         hppa*64*|ia64*)
15574           hardcode_libdir_flag_spec_ld='+b $libdir'
15575           hardcode_direct=no
15576           hardcode_shlibpath_var=no
15577           ;;
15578         *)
15579           hardcode_direct=yes
15580           export_dynamic_flag_spec='${wl}-E'
15581
15582           # hardcode_minus_L: Not really in the search PATH,
15583           # but as the default location of the library.
15584           hardcode_minus_L=yes
15585           ;;
15586         esac
15587       fi
15588       ;;
15589
15590     irix5* | irix6* | nonstopux*)
15591       if test "$GCC" = yes; then
15592         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15593       else
15594         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15595         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15596       fi
15597       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598       hardcode_libdir_separator=:
15599       link_all_deplibs=yes
15600       ;;
15601
15602     netbsd*)
15603       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15604         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15605       else
15606         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15607       fi
15608       hardcode_libdir_flag_spec='-R$libdir'
15609       hardcode_direct=yes
15610       hardcode_shlibpath_var=no
15611       ;;
15612
15613     newsos6)
15614       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615       hardcode_direct=yes
15616       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15617       hardcode_libdir_separator=:
15618       hardcode_shlibpath_var=no
15619       ;;
15620
15621     openbsd*)
15622       hardcode_direct=yes
15623       hardcode_shlibpath_var=no
15624       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15625         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15626         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15627         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15628         export_dynamic_flag_spec='${wl}-E'
15629       else
15630        case $host_os in
15631          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15632            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15633            hardcode_libdir_flag_spec='-R$libdir'
15634            ;;
15635          *)
15636            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15637            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15638            ;;
15639        esac
15640       fi
15641       ;;
15642
15643     os2*)
15644       hardcode_libdir_flag_spec='-L$libdir'
15645       hardcode_minus_L=yes
15646       allow_undefined_flag=unsupported
15647       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'
15648       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15649       ;;
15650
15651     osf3*)
15652       if test "$GCC" = yes; then
15653         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15654         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15655       else
15656         allow_undefined_flag=' -expect_unresolved \*'
15657         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15658       fi
15659       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15660       hardcode_libdir_separator=:
15661       ;;
15662
15663     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15664       if test "$GCC" = yes; then
15665         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15666         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15667         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15668       else
15669         allow_undefined_flag=' -expect_unresolved \*'
15670         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15671         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15672         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15673
15674         # Both c and cxx compiler support -rpath directly
15675         hardcode_libdir_flag_spec='-rpath $libdir'
15676       fi
15677       hardcode_libdir_separator=:
15678       ;;
15679
15680     solaris*)
15681       no_undefined_flag=' -z text'
15682       if test "$GCC" = yes; then
15683         wlarc='${wl}'
15684         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15685         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15686           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15687       else
15688         wlarc=''
15689         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15691         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15692       fi
15693       hardcode_libdir_flag_spec='-R$libdir'
15694       hardcode_shlibpath_var=no
15695       case $host_os in
15696       solaris2.[0-5] | solaris2.[0-5].*) ;;
15697       *)
15698         # The compiler driver will combine linker options so we
15699         # cannot just pass the convience library names through
15700         # without $wl, iff we do not link with $LD.
15701         # Luckily, gcc supports the same syntax we need for Sun Studio.
15702         # Supported since Solaris 2.6 (maybe 2.5.1?)
15703         case $wlarc in
15704         '')
15705           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15706         *)
15707           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15708         esac ;;
15709       esac
15710       link_all_deplibs=yes
15711       ;;
15712
15713     sunos4*)
15714       if test "x$host_vendor" = xsequent; then
15715         # Use $CC to link under sequent, because it throws in some extra .o
15716         # files that make .init and .fini sections work.
15717         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15718       else
15719         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15720       fi
15721       hardcode_libdir_flag_spec='-L$libdir'
15722       hardcode_direct=yes
15723       hardcode_minus_L=yes
15724       hardcode_shlibpath_var=no
15725       ;;
15726
15727     sysv4)
15728       case $host_vendor in
15729         sni)
15730           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731           hardcode_direct=yes # is this really true???
15732         ;;
15733         siemens)
15734           ## LD is ld it makes a PLAMLIB
15735           ## CC just makes a GrossModule.
15736           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15737           reload_cmds='$CC -r -o $output$reload_objs'
15738           hardcode_direct=no
15739         ;;
15740         motorola)
15741           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15743         ;;
15744       esac
15745       runpath_var='LD_RUN_PATH'
15746       hardcode_shlibpath_var=no
15747       ;;
15748
15749     sysv4.3*)
15750       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751       hardcode_shlibpath_var=no
15752       export_dynamic_flag_spec='-Bexport'
15753       ;;
15754
15755     sysv4*MP*)
15756       if test -d /usr/nec; then
15757         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758         hardcode_shlibpath_var=no
15759         runpath_var=LD_RUN_PATH
15760         hardcode_runpath_var=yes
15761         ld_shlibs=yes
15762       fi
15763       ;;
15764
15765     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15766       no_undefined_flag='${wl}-z,text'
15767       archive_cmds_need_lc=no
15768       hardcode_shlibpath_var=no
15769       runpath_var='LD_RUN_PATH'
15770
15771       if test "$GCC" = yes; then
15772         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15773         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15774       else
15775         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15776         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15777       fi
15778       ;;
15779
15780     sysv5* | sco3.2v5* | sco5v6*)
15781       # Note: We can NOT use -z defs as we might desire, because we do not
15782       # link with -lc, and that would cause any symbols used from libc to
15783       # always be unresolved, which means just about no library would
15784       # ever link correctly.  If we're not using GNU ld we use -z text
15785       # though, which does catch some bad symbols but isn't as heavy-handed
15786       # as -z defs.
15787       no_undefined_flag='${wl}-z,text'
15788       allow_undefined_flag='${wl}-z,nodefs'
15789       archive_cmds_need_lc=no
15790       hardcode_shlibpath_var=no
15791       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15792       hardcode_libdir_separator=':'
15793       link_all_deplibs=yes
15794       export_dynamic_flag_spec='${wl}-Bexport'
15795       runpath_var='LD_RUN_PATH'
15796
15797       if test "$GCC" = yes; then
15798         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15799         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800       else
15801         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15802         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803       fi
15804       ;;
15805
15806     uts4*)
15807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15808       hardcode_libdir_flag_spec='-L$libdir'
15809       hardcode_shlibpath_var=no
15810       ;;
15811
15812     *)
15813       ld_shlibs=no
15814       ;;
15815     esac
15816   fi
15817
15818 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15819 echo "${ECHO_T}$ld_shlibs" >&6; }
15820 test "$ld_shlibs" = no && can_build_shared=no
15821
15822 #
15823 # Do we need to explicitly link libc?
15824 #
15825 case "x$archive_cmds_need_lc" in
15826 x|xyes)
15827   # Assume -lc should be added
15828   archive_cmds_need_lc=yes
15829
15830   if test "$enable_shared" = yes && test "$GCC" = yes; then
15831     case $archive_cmds in
15832     *'~'*)
15833       # FIXME: we may have to deal with multi-command sequences.
15834       ;;
15835     '$CC '*)
15836       # Test whether the compiler implicitly links with -lc since on some
15837       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15838       # to ld, don't add -lc before -lgcc.
15839       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15840 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15841       $rm conftest*
15842       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15843
15844       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845   (eval $ac_compile) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } 2>conftest.err; then
15849         soname=conftest
15850         lib=conftest
15851         libobjs=conftest.$ac_objext
15852         deplibs=
15853         wl=$lt_prog_compiler_wl
15854         pic_flag=$lt_prog_compiler_pic
15855         compiler_flags=-v
15856         linker_flags=-v
15857         verstring=
15858         output_objdir=.
15859         libname=conftest
15860         lt_save_allow_undefined_flag=$allow_undefined_flag
15861         allow_undefined_flag=
15862         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15863   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15864   ac_status=$?
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); }
15867         then
15868           archive_cmds_need_lc=no
15869         else
15870           archive_cmds_need_lc=yes
15871         fi
15872         allow_undefined_flag=$lt_save_allow_undefined_flag
15873       else
15874         cat conftest.err 1>&5
15875       fi
15876       $rm conftest*
15877       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15878 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15879       ;;
15880     esac
15881   fi
15882   ;;
15883 esac
15884
15885 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15886 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15887 library_names_spec=
15888 libname_spec='lib$name'
15889 soname_spec=
15890 shrext_cmds=".so"
15891 postinstall_cmds=
15892 postuninstall_cmds=
15893 finish_cmds=
15894 finish_eval=
15895 shlibpath_var=
15896 shlibpath_overrides_runpath=unknown
15897 version_type=none
15898 dynamic_linker="$host_os ld.so"
15899 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15900 if test "$GCC" = yes; then
15901   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15902   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15903     # if the path contains ";" then we assume it to be the separator
15904     # otherwise default to the standard path separator (i.e. ":") - it is
15905     # assumed that no part of a normal pathname contains ";" but that should
15906     # okay in the real world where ";" in dirpaths is itself problematic.
15907     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15908   else
15909     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15910   fi
15911 else
15912   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15913 fi
15914 need_lib_prefix=unknown
15915 hardcode_into_libs=no
15916
15917 # when you set need_version to no, make sure it does not cause -set_version
15918 # flags to be left without arguments
15919 need_version=unknown
15920
15921 case $host_os in
15922 aix3*)
15923   version_type=linux
15924   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15925   shlibpath_var=LIBPATH
15926
15927   # AIX 3 has no versioning support, so we append a major version to the name.
15928   soname_spec='${libname}${release}${shared_ext}$major'
15929   ;;
15930
15931 aix4* | aix5*)
15932   version_type=linux
15933   need_lib_prefix=no
15934   need_version=no
15935   hardcode_into_libs=yes
15936   if test "$host_cpu" = ia64; then
15937     # AIX 5 supports IA64
15938     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15939     shlibpath_var=LD_LIBRARY_PATH
15940   else
15941     # With GCC up to 2.95.x, collect2 would create an import file
15942     # for dependence libraries.  The import file would start with
15943     # the line `#! .'.  This would cause the generated library to
15944     # depend on `.', always an invalid library.  This was fixed in
15945     # development snapshots of GCC prior to 3.0.
15946     case $host_os in
15947       aix4 | aix4.[01] | aix4.[01].*)
15948       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15949            echo ' yes '
15950            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15951         :
15952       else
15953         can_build_shared=no
15954       fi
15955       ;;
15956     esac
15957     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15958     # soname into executable. Probably we can add versioning support to
15959     # collect2, so additional links can be useful in future.
15960     if test "$aix_use_runtimelinking" = yes; then
15961       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15962       # instead of lib<name>.a to let people know that these are not
15963       # typical AIX shared libraries.
15964       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965     else
15966       # We preserve .a as extension for shared libraries through AIX4.2
15967       # and later when we are not doing run time linking.
15968       library_names_spec='${libname}${release}.a $libname.a'
15969       soname_spec='${libname}${release}${shared_ext}$major'
15970     fi
15971     shlibpath_var=LIBPATH
15972   fi
15973   ;;
15974
15975 amigaos*)
15976   library_names_spec='$libname.ixlibrary $libname.a'
15977   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15978   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'
15979   ;;
15980
15981 beos*)
15982   library_names_spec='${libname}${shared_ext}'
15983   dynamic_linker="$host_os ld.so"
15984   shlibpath_var=LIBRARY_PATH
15985   ;;
15986
15987 bsdi[45]*)
15988   version_type=linux
15989   need_version=no
15990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991   soname_spec='${libname}${release}${shared_ext}$major'
15992   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15993   shlibpath_var=LD_LIBRARY_PATH
15994   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15995   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15996   # the default ld.so.conf also contains /usr/contrib/lib and
15997   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15998   # libtool to hard-code these into programs
15999   ;;
16000
16001 cygwin* | mingw* | pw32*)
16002   version_type=windows
16003   shrext_cmds=".dll"
16004   need_version=no
16005   need_lib_prefix=no
16006
16007   case $GCC,$host_os in
16008   yes,cygwin* | yes,mingw* | yes,pw32*)
16009     library_names_spec='$libname.dll.a'
16010     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16011     postinstall_cmds='base_file=`basename \${file}`~
16012       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16013       dldir=$destdir/`dirname \$dlpath`~
16014       test -d \$dldir || mkdir -p \$dldir~
16015       $install_prog $dir/$dlname \$dldir/$dlname~
16016       chmod a+x \$dldir/$dlname'
16017     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16018       dlpath=$dir/\$dldll~
16019        $rm \$dlpath'
16020     shlibpath_overrides_runpath=yes
16021
16022     case $host_os in
16023     cygwin*)
16024       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16025       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16026       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16027       ;;
16028     mingw*)
16029       # MinGW DLLs use traditional 'lib' prefix
16030       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16031       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16032       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16033         # It is most probably a Windows format PATH printed by
16034         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16035         # path with ; separators, and with drive letters. We can handle the
16036         # drive letters (cygwin fileutils understands them), so leave them,
16037         # especially as we might pass files found there to a mingw objdump,
16038         # which wouldn't understand a cygwinified path. Ahh.
16039         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16040       else
16041         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16042       fi
16043       ;;
16044     pw32*)
16045       # pw32 DLLs use 'pw' prefix rather than 'lib'
16046       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16047       ;;
16048     esac
16049     ;;
16050
16051   *)
16052     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16053     ;;
16054   esac
16055   dynamic_linker='Win32 ld.exe'
16056   # FIXME: first we should search . and the directory the executable is in
16057   shlibpath_var=PATH
16058   ;;
16059
16060 darwin* | rhapsody*)
16061   dynamic_linker="$host_os dyld"
16062   version_type=darwin
16063   need_lib_prefix=no
16064   need_version=no
16065   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16066   soname_spec='${libname}${release}${major}$shared_ext'
16067   shlibpath_overrides_runpath=yes
16068   shlibpath_var=DYLD_LIBRARY_PATH
16069   shrext_cmds='.dylib'
16070   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16071   if test "$GCC" = yes; then
16072     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16073   else
16074     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16075   fi
16076   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16077   ;;
16078
16079 dgux*)
16080   version_type=linux
16081   need_lib_prefix=no
16082   need_version=no
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16084   soname_spec='${libname}${release}${shared_ext}$major'
16085   shlibpath_var=LD_LIBRARY_PATH
16086   ;;
16087
16088 freebsd1*)
16089   dynamic_linker=no
16090   ;;
16091
16092 kfreebsd*-gnu)
16093   version_type=linux
16094   need_lib_prefix=no
16095   need_version=no
16096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16097   soname_spec='${libname}${release}${shared_ext}$major'
16098   shlibpath_var=LD_LIBRARY_PATH
16099   shlibpath_overrides_runpath=no
16100   hardcode_into_libs=yes
16101   dynamic_linker='GNU ld.so'
16102   ;;
16103
16104 freebsd* | dragonfly*)
16105   # DragonFly does not have aout.  When/if they implement a new
16106   # versioning mechanism, adjust this.
16107   if test -x /usr/bin/objformat; then
16108     objformat=`/usr/bin/objformat`
16109   else
16110     case $host_os in
16111     freebsd[123]*) objformat=aout ;;
16112     *) objformat=elf ;;
16113     esac
16114   fi
16115   version_type=freebsd-$objformat
16116   case $version_type in
16117     freebsd-elf*)
16118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16119       need_version=no
16120       need_lib_prefix=no
16121       ;;
16122     freebsd-*)
16123       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16124       need_version=yes
16125       ;;
16126   esac
16127   shlibpath_var=LD_LIBRARY_PATH
16128   case $host_os in
16129   freebsd2*)
16130     shlibpath_overrides_runpath=yes
16131     ;;
16132   freebsd3.[01]* | freebsdelf3.[01]*)
16133     shlibpath_overrides_runpath=yes
16134     hardcode_into_libs=yes
16135     ;;
16136   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16137   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16138     shlibpath_overrides_runpath=no
16139     hardcode_into_libs=yes
16140     ;;
16141   freebsd*) # from 4.6 on
16142     shlibpath_overrides_runpath=yes
16143     hardcode_into_libs=yes
16144     ;;
16145   esac
16146   ;;
16147
16148 gnu*)
16149   version_type=linux
16150   need_lib_prefix=no
16151   need_version=no
16152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16153   soname_spec='${libname}${release}${shared_ext}$major'
16154   shlibpath_var=LD_LIBRARY_PATH
16155   hardcode_into_libs=yes
16156   ;;
16157
16158 hpux9* | hpux10* | hpux11*)
16159   # Give a soname corresponding to the major version so that dld.sl refuses to
16160   # link against other versions.
16161   version_type=sunos
16162   need_lib_prefix=no
16163   need_version=no
16164   case $host_cpu in
16165   ia64*)
16166     shrext_cmds='.so'
16167     hardcode_into_libs=yes
16168     dynamic_linker="$host_os dld.so"
16169     shlibpath_var=LD_LIBRARY_PATH
16170     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172     soname_spec='${libname}${release}${shared_ext}$major'
16173     if test "X$HPUX_IA64_MODE" = X32; then
16174       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16175     else
16176       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16177     fi
16178     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16179     ;;
16180    hppa*64*)
16181      shrext_cmds='.sl'
16182      hardcode_into_libs=yes
16183      dynamic_linker="$host_os dld.sl"
16184      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16185      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187      soname_spec='${libname}${release}${shared_ext}$major'
16188      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16189      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16190      ;;
16191    *)
16192     shrext_cmds='.sl'
16193     dynamic_linker="$host_os dld.sl"
16194     shlibpath_var=SHLIB_PATH
16195     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197     soname_spec='${libname}${release}${shared_ext}$major'
16198     ;;
16199   esac
16200   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16201   postinstall_cmds='chmod 555 $lib'
16202   ;;
16203
16204 interix3*)
16205   version_type=linux
16206   need_lib_prefix=no
16207   need_version=no
16208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16209   soname_spec='${libname}${release}${shared_ext}$major'
16210   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16211   shlibpath_var=LD_LIBRARY_PATH
16212   shlibpath_overrides_runpath=no
16213   hardcode_into_libs=yes
16214   ;;
16215
16216 irix5* | irix6* | nonstopux*)
16217   case $host_os in
16218     nonstopux*) version_type=nonstopux ;;
16219     *)
16220         if test "$lt_cv_prog_gnu_ld" = yes; then
16221                 version_type=linux
16222         else
16223                 version_type=irix
16224         fi ;;
16225   esac
16226   need_lib_prefix=no
16227   need_version=no
16228   soname_spec='${libname}${release}${shared_ext}$major'
16229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16230   case $host_os in
16231   irix5* | nonstopux*)
16232     libsuff= shlibsuff=
16233     ;;
16234   *)
16235     case $LD in # libtool.m4 will add one of these switches to LD
16236     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16237       libsuff= shlibsuff= libmagic=32-bit;;
16238     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16239       libsuff=32 shlibsuff=N32 libmagic=N32;;
16240     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16241       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16242     *) libsuff= shlibsuff= libmagic=never-match;;
16243     esac
16244     ;;
16245   esac
16246   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16247   shlibpath_overrides_runpath=no
16248   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16249   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16250   hardcode_into_libs=yes
16251   ;;
16252
16253 # No shared lib support for Linux oldld, aout, or coff.
16254 linux*oldld* | linux*aout* | linux*coff*)
16255   dynamic_linker=no
16256   ;;
16257
16258 # This must be Linux ELF.
16259 linux*)
16260   version_type=linux
16261   need_lib_prefix=no
16262   need_version=no
16263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264   soname_spec='${libname}${release}${shared_ext}$major'
16265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16266   shlibpath_var=LD_LIBRARY_PATH
16267   shlibpath_overrides_runpath=no
16268   # This implies no fast_install, which is unacceptable.
16269   # Some rework will be needed to allow for fast_install
16270   # before this can be enabled.
16271   hardcode_into_libs=yes
16272
16273   # Append ld.so.conf contents to the search path
16274   if test -f /etc/ld.so.conf; then
16275     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16276     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16277   fi
16278
16279   # We used to test for /lib/ld.so.1 and disable shared libraries on
16280   # powerpc, because MkLinux only supported shared libraries with the
16281   # GNU dynamic linker.  Since this was broken with cross compilers,
16282   # most powerpc-linux boxes support dynamic linking these days and
16283   # people can always --disable-shared, the test was removed, and we
16284   # assume the GNU/Linux dynamic linker is in use.
16285   dynamic_linker='GNU/Linux ld.so'
16286   ;;
16287
16288 knetbsd*-gnu)
16289   version_type=linux
16290   need_lib_prefix=no
16291   need_version=no
16292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16293   soname_spec='${libname}${release}${shared_ext}$major'
16294   shlibpath_var=LD_LIBRARY_PATH
16295   shlibpath_overrides_runpath=no
16296   hardcode_into_libs=yes
16297   dynamic_linker='GNU ld.so'
16298   ;;
16299
16300 netbsd*)
16301   version_type=sunos
16302   need_lib_prefix=no
16303   need_version=no
16304   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16306     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16307     dynamic_linker='NetBSD (a.out) ld.so'
16308   else
16309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16310     soname_spec='${libname}${release}${shared_ext}$major'
16311     dynamic_linker='NetBSD ld.elf_so'
16312   fi
16313   shlibpath_var=LD_LIBRARY_PATH
16314   shlibpath_overrides_runpath=yes
16315   hardcode_into_libs=yes
16316   ;;
16317
16318 newsos6)
16319   version_type=linux
16320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321   shlibpath_var=LD_LIBRARY_PATH
16322   shlibpath_overrides_runpath=yes
16323   ;;
16324
16325 nto-qnx*)
16326   version_type=linux
16327   need_lib_prefix=no
16328   need_version=no
16329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330   soname_spec='${libname}${release}${shared_ext}$major'
16331   shlibpath_var=LD_LIBRARY_PATH
16332   shlibpath_overrides_runpath=yes
16333   ;;
16334
16335 openbsd*)
16336   version_type=sunos
16337   sys_lib_dlsearch_path_spec="/usr/lib"
16338   need_lib_prefix=no
16339   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16340   case $host_os in
16341     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16342     *)                         need_version=no  ;;
16343   esac
16344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16346   shlibpath_var=LD_LIBRARY_PATH
16347   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16348     case $host_os in
16349       openbsd2.[89] | openbsd2.[89].*)
16350         shlibpath_overrides_runpath=no
16351         ;;
16352       *)
16353         shlibpath_overrides_runpath=yes
16354         ;;
16355       esac
16356   else
16357     shlibpath_overrides_runpath=yes
16358   fi
16359   ;;
16360
16361 os2*)
16362   libname_spec='$name'
16363   shrext_cmds=".dll"
16364   need_lib_prefix=no
16365   library_names_spec='$libname${shared_ext} $libname.a'
16366   dynamic_linker='OS/2 ld.exe'
16367   shlibpath_var=LIBPATH
16368   ;;
16369
16370 osf3* | osf4* | osf5*)
16371   version_type=osf
16372   need_lib_prefix=no
16373   need_version=no
16374   soname_spec='${libname}${release}${shared_ext}$major'
16375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376   shlibpath_var=LD_LIBRARY_PATH
16377   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16378   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16379   ;;
16380
16381 solaris*)
16382   version_type=linux
16383   need_lib_prefix=no
16384   need_version=no
16385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386   soname_spec='${libname}${release}${shared_ext}$major'
16387   shlibpath_var=LD_LIBRARY_PATH
16388   shlibpath_overrides_runpath=yes
16389   hardcode_into_libs=yes
16390   # ldd complains unless libraries are executable
16391   postinstall_cmds='chmod +x $lib'
16392   ;;
16393
16394 sunos4*)
16395   version_type=sunos
16396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16397   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16398   shlibpath_var=LD_LIBRARY_PATH
16399   shlibpath_overrides_runpath=yes
16400   if test "$with_gnu_ld" = yes; then
16401     need_lib_prefix=no
16402   fi
16403   need_version=yes
16404   ;;
16405
16406 sysv4 | sysv4.3*)
16407   version_type=linux
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409   soname_spec='${libname}${release}${shared_ext}$major'
16410   shlibpath_var=LD_LIBRARY_PATH
16411   case $host_vendor in
16412     sni)
16413       shlibpath_overrides_runpath=no
16414       need_lib_prefix=no
16415       export_dynamic_flag_spec='${wl}-Blargedynsym'
16416       runpath_var=LD_RUN_PATH
16417       ;;
16418     siemens)
16419       need_lib_prefix=no
16420       ;;
16421     motorola)
16422       need_lib_prefix=no
16423       need_version=no
16424       shlibpath_overrides_runpath=no
16425       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16426       ;;
16427   esac
16428   ;;
16429
16430 sysv4*MP*)
16431   if test -d /usr/nec ;then
16432     version_type=linux
16433     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16434     soname_spec='$libname${shared_ext}.$major'
16435     shlibpath_var=LD_LIBRARY_PATH
16436   fi
16437   ;;
16438
16439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16440   version_type=freebsd-elf
16441   need_lib_prefix=no
16442   need_version=no
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   hardcode_into_libs=yes
16447   if test "$with_gnu_ld" = yes; then
16448     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16449     shlibpath_overrides_runpath=no
16450   else
16451     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16452     shlibpath_overrides_runpath=yes
16453     case $host_os in
16454       sco3.2v5*)
16455         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16456         ;;
16457     esac
16458   fi
16459   sys_lib_dlsearch_path_spec='/usr/lib'
16460   ;;
16461
16462 uts4*)
16463   version_type=linux
16464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465   soname_spec='${libname}${release}${shared_ext}$major'
16466   shlibpath_var=LD_LIBRARY_PATH
16467   ;;
16468
16469 *)
16470   dynamic_linker=no
16471   ;;
16472 esac
16473 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16474 echo "${ECHO_T}$dynamic_linker" >&6; }
16475 test "$dynamic_linker" = no && can_build_shared=no
16476
16477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16478 if test "$GCC" = yes; then
16479   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16480 fi
16481
16482 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16483 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16484 hardcode_action=
16485 if test -n "$hardcode_libdir_flag_spec" || \
16486    test -n "$runpath_var" || \
16487    test "X$hardcode_automatic" = "Xyes" ; then
16488
16489   # We can hardcode non-existant directories.
16490   if test "$hardcode_direct" != no &&
16491      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16492      # have to relink, otherwise we might link with an installed library
16493      # when we should be linking with a yet-to-be-installed one
16494      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16495      test "$hardcode_minus_L" != no; then
16496     # Linking always hardcodes the temporary library directory.
16497     hardcode_action=relink
16498   else
16499     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16500     hardcode_action=immediate
16501   fi
16502 else
16503   # We cannot hardcode anything, or else we can only hardcode existing
16504   # directories.
16505   hardcode_action=unsupported
16506 fi
16507 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16508 echo "${ECHO_T}$hardcode_action" >&6; }
16509
16510 if test "$hardcode_action" = relink; then
16511   # Fast installation is not supported
16512   enable_fast_install=no
16513 elif test "$shlibpath_overrides_runpath" = yes ||
16514      test "$enable_shared" = no; then
16515   # Fast installation is not necessary
16516   enable_fast_install=needless
16517 fi
16518
16519 striplib=
16520 old_striplib=
16521 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16522 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16523 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16524   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16525   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16526   { echo "$as_me:$LINENO: result: yes" >&5
16527 echo "${ECHO_T}yes" >&6; }
16528 else
16529 # FIXME - insert some real tests, host_os isn't really good enough
16530   case $host_os in
16531    darwin*)
16532        if test -n "$STRIP" ; then
16533          striplib="$STRIP -x"
16534          { echo "$as_me:$LINENO: result: yes" >&5
16535 echo "${ECHO_T}yes" >&6; }
16536        else
16537   { echo "$as_me:$LINENO: result: no" >&5
16538 echo "${ECHO_T}no" >&6; }
16539 fi
16540        ;;
16541    *)
16542   { echo "$as_me:$LINENO: result: no" >&5
16543 echo "${ECHO_T}no" >&6; }
16544     ;;
16545   esac
16546 fi
16547
16548 if test "x$enable_dlopen" != xyes; then
16549   enable_dlopen=unknown
16550   enable_dlopen_self=unknown
16551   enable_dlopen_self_static=unknown
16552 else
16553   lt_cv_dlopen=no
16554   lt_cv_dlopen_libs=
16555
16556   case $host_os in
16557   beos*)
16558     lt_cv_dlopen="load_add_on"
16559     lt_cv_dlopen_libs=
16560     lt_cv_dlopen_self=yes
16561     ;;
16562
16563   mingw* | pw32*)
16564     lt_cv_dlopen="LoadLibrary"
16565     lt_cv_dlopen_libs=
16566    ;;
16567
16568   cygwin*)
16569     lt_cv_dlopen="dlopen"
16570     lt_cv_dlopen_libs=
16571    ;;
16572
16573   darwin*)
16574   # if libdl is installed we need to link against it
16575     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16576 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16577 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   ac_check_lib_save_LIBS=$LIBS
16581 LIBS="-ldl  $LIBS"
16582 cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h.  */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h.  */
16588
16589 /* Override any GCC internal prototype to avoid an error.
16590    Use char because int might match the return type of a GCC
16591    builtin and then its argument prototype would still apply.  */
16592 #ifdef __cplusplus
16593 extern "C"
16594 #endif
16595 char dlopen ();
16596 int
16597 main ()
16598 {
16599 return dlopen ();
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (ac_try="$ac_link"
16606 case "(($ac_try" in
16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608   *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611   (eval "$ac_link") 2>conftest.er1
16612   ac_status=$?
16613   grep -v '^ *+' conftest.er1 >conftest.err
16614   rm -f conftest.er1
16615   cat conftest.err >&5
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); } &&
16618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16619   { (case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_try") 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; } &&
16628          { ac_try='test -s conftest$ac_exeext'
16629   { (case "(($ac_try" in
16630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631   *) ac_try_echo=$ac_try;;
16632 esac
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634   (eval "$ac_try") 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); }; }; then
16638   ac_cv_lib_dl_dlopen=yes
16639 else
16640   echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16642
16643         ac_cv_lib_dl_dlopen=no
16644 fi
16645
16646 rm -f core conftest.err conftest.$ac_objext \
16647       conftest$ac_exeext conftest.$ac_ext
16648 LIBS=$ac_check_lib_save_LIBS
16649 fi
16650 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16652 if test $ac_cv_lib_dl_dlopen = yes; then
16653   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16654 else
16655
16656     lt_cv_dlopen="dyld"
16657     lt_cv_dlopen_libs=
16658     lt_cv_dlopen_self=yes
16659
16660 fi
16661
16662    ;;
16663
16664   *)
16665     { echo "$as_me:$LINENO: checking for shl_load" >&5
16666 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16667 if test "${ac_cv_func_shl_load+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h.  */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h.  */
16676 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16678 #define shl_load innocuous_shl_load
16679
16680 /* System header to define __stub macros and hopefully few prototypes,
16681     which can conflict with char shl_load (); below.
16682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16683     <limits.h> exists even on freestanding compilers.  */
16684
16685 #ifdef __STDC__
16686 # include <limits.h>
16687 #else
16688 # include <assert.h>
16689 #endif
16690
16691 #undef shl_load
16692
16693 /* Override any GCC internal prototype to avoid an error.
16694    Use char because int might match the return type of a GCC
16695    builtin and then its argument prototype would still apply.  */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 char shl_load ();
16700 /* The GNU C library defines this for functions which it implements
16701     to always fail with ENOSYS.  Some functions are actually named
16702     something starting with __ and the normal name is an alias.  */
16703 #if defined __stub_shl_load || defined __stub___shl_load
16704 choke me
16705 #endif
16706
16707 int
16708 main ()
16709 {
16710 return shl_load ();
16711   ;
16712   return 0;
16713 }
16714 _ACEOF
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (ac_try="$ac_link"
16717 case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_link") 2>conftest.er1
16723   ac_status=$?
16724   grep -v '^ *+' conftest.er1 >conftest.err
16725   rm -f conftest.er1
16726   cat conftest.err >&5
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); } &&
16729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16730   { (case "(($ac_try" in
16731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732   *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735   (eval "$ac_try") 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; } &&
16739          { ac_try='test -s conftest$ac_exeext'
16740   { (case "(($ac_try" in
16741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742   *) ac_try_echo=$ac_try;;
16743 esac
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745   (eval "$ac_try") 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); }; }; then
16749   ac_cv_func_shl_load=yes
16750 else
16751   echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16753
16754         ac_cv_func_shl_load=no
16755 fi
16756
16757 rm -f core conftest.err conftest.$ac_objext \
16758       conftest$ac_exeext conftest.$ac_ext
16759 fi
16760 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16761 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16762 if test $ac_cv_func_shl_load = yes; then
16763   lt_cv_dlopen="shl_load"
16764 else
16765   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770   ac_check_lib_save_LIBS=$LIBS
16771 LIBS="-ldld  $LIBS"
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778
16779 /* Override any GCC internal prototype to avoid an error.
16780    Use char because int might match the return type of a GCC
16781    builtin and then its argument prototype would still apply.  */
16782 #ifdef __cplusplus
16783 extern "C"
16784 #endif
16785 char shl_load ();
16786 int
16787 main ()
16788 {
16789 return shl_load ();
16790   ;
16791   return 0;
16792 }
16793 _ACEOF
16794 rm -f conftest.$ac_objext conftest$ac_exeext
16795 if { (ac_try="$ac_link"
16796 case "(($ac_try" in
16797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798   *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801   (eval "$ac_link") 2>conftest.er1
16802   ac_status=$?
16803   grep -v '^ *+' conftest.er1 >conftest.err
16804   rm -f conftest.er1
16805   cat conftest.err >&5
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); } &&
16808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809   { (case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_try") 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; } &&
16818          { ac_try='test -s conftest$ac_exeext'
16819   { (case "(($ac_try" in
16820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821   *) ac_try_echo=$ac_try;;
16822 esac
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824   (eval "$ac_try") 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; }; then
16828   ac_cv_lib_dld_shl_load=yes
16829 else
16830   echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16832
16833         ac_cv_lib_dld_shl_load=no
16834 fi
16835
16836 rm -f core conftest.err conftest.$ac_objext \
16837       conftest$ac_exeext conftest.$ac_ext
16838 LIBS=$ac_check_lib_save_LIBS
16839 fi
16840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16841 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16842 if test $ac_cv_lib_dld_shl_load = yes; then
16843   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16844 else
16845   { echo "$as_me:$LINENO: checking for dlopen" >&5
16846 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16847 if test "${ac_cv_func_dlopen+set}" = set; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850   cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16858 #define dlopen innocuous_dlopen
16859
16860 /* System header to define __stub macros and hopefully few prototypes,
16861     which can conflict with char dlopen (); below.
16862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863     <limits.h> exists even on freestanding compilers.  */
16864
16865 #ifdef __STDC__
16866 # include <limits.h>
16867 #else
16868 # include <assert.h>
16869 #endif
16870
16871 #undef dlopen
16872
16873 /* Override any GCC internal prototype to avoid an error.
16874    Use char because int might match the return type of a GCC
16875    builtin and then its argument prototype would still apply.  */
16876 #ifdef __cplusplus
16877 extern "C"
16878 #endif
16879 char dlopen ();
16880 /* The GNU C library defines this for functions which it implements
16881     to always fail with ENOSYS.  Some functions are actually named
16882     something starting with __ and the normal name is an alias.  */
16883 #if defined __stub_dlopen || defined __stub___dlopen
16884 choke me
16885 #endif
16886
16887 int
16888 main ()
16889 {
16890 return dlopen ();
16891   ;
16892   return 0;
16893 }
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_link") 2>conftest.er1
16903   ac_status=$?
16904   grep -v '^ *+' conftest.er1 >conftest.err
16905   rm -f conftest.er1
16906   cat conftest.err >&5
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); } &&
16909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910   { (case "(($ac_try" in
16911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912   *) ac_try_echo=$ac_try;;
16913 esac
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915   (eval "$ac_try") 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; } &&
16919          { ac_try='test -s conftest$ac_exeext'
16920   { (case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_try") 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; }; then
16929   ac_cv_func_dlopen=yes
16930 else
16931   echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16933
16934         ac_cv_func_dlopen=no
16935 fi
16936
16937 rm -f core conftest.err conftest.$ac_objext \
16938       conftest$ac_exeext conftest.$ac_ext
16939 fi
16940 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16941 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16942 if test $ac_cv_func_dlopen = yes; then
16943   lt_cv_dlopen="dlopen"
16944 else
16945   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16948   echo $ECHO_N "(cached) $ECHO_C" >&6
16949 else
16950   ac_check_lib_save_LIBS=$LIBS
16951 LIBS="-ldl  $LIBS"
16952 cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h.  */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h.  */
16958
16959 /* Override any GCC internal prototype to avoid an error.
16960    Use char because int might match the return type of a GCC
16961    builtin and then its argument prototype would still apply.  */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 char dlopen ();
16966 int
16967 main ()
16968 {
16969 return dlopen ();
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (ac_try="$ac_link"
16976 case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_link") 2>conftest.er1
16982   ac_status=$?
16983   grep -v '^ *+' conftest.er1 >conftest.err
16984   rm -f conftest.er1
16985   cat conftest.err >&5
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } &&
16988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16989   { (case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_try") 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; } &&
16998          { ac_try='test -s conftest$ac_exeext'
16999   { (case "(($ac_try" in
17000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001   *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004   (eval "$ac_try") 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); }; }; then
17008   ac_cv_lib_dl_dlopen=yes
17009 else
17010   echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17012
17013         ac_cv_lib_dl_dlopen=no
17014 fi
17015
17016 rm -f core conftest.err conftest.$ac_objext \
17017       conftest$ac_exeext conftest.$ac_ext
17018 LIBS=$ac_check_lib_save_LIBS
17019 fi
17020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17022 if test $ac_cv_lib_dl_dlopen = yes; then
17023   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17024 else
17025   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17026 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17028   echo $ECHO_N "(cached) $ECHO_C" >&6
17029 else
17030   ac_check_lib_save_LIBS=$LIBS
17031 LIBS="-lsvld  $LIBS"
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h.  */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h.  */
17038
17039 /* Override any GCC internal prototype to avoid an error.
17040    Use char because int might match the return type of a GCC
17041    builtin and then its argument prototype would still apply.  */
17042 #ifdef __cplusplus
17043 extern "C"
17044 #endif
17045 char dlopen ();
17046 int
17047 main ()
17048 {
17049 return dlopen ();
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (ac_try="$ac_link"
17056 case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_link") 2>conftest.er1
17062   ac_status=$?
17063   grep -v '^ *+' conftest.er1 >conftest.err
17064   rm -f conftest.er1
17065   cat conftest.err >&5
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); } &&
17068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17069   { (case "(($ac_try" in
17070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071   *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074   (eval "$ac_try") 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }; } &&
17078          { ac_try='test -s conftest$ac_exeext'
17079   { (case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084   (eval "$ac_try") 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; }; then
17088   ac_cv_lib_svld_dlopen=yes
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093         ac_cv_lib_svld_dlopen=no
17094 fi
17095
17096 rm -f core conftest.err conftest.$ac_objext \
17097       conftest$ac_exeext conftest.$ac_ext
17098 LIBS=$ac_check_lib_save_LIBS
17099 fi
17100 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17101 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17102 if test $ac_cv_lib_svld_dlopen = yes; then
17103   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17104 else
17105   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17106 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17107 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   ac_check_lib_save_LIBS=$LIBS
17111 LIBS="-ldld  $LIBS"
17112 cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118
17119 /* Override any GCC internal prototype to avoid an error.
17120    Use char because int might match the return type of a GCC
17121    builtin and then its argument prototype would still apply.  */
17122 #ifdef __cplusplus
17123 extern "C"
17124 #endif
17125 char dld_link ();
17126 int
17127 main ()
17128 {
17129 return dld_link ();
17130   ;
17131   return 0;
17132 }
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (ac_try="$ac_link"
17136 case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_link") 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } &&
17148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17149   { (case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_try") 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; } &&
17158          { ac_try='test -s conftest$ac_exeext'
17159   { (case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_try") 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; }; then
17168   ac_cv_lib_dld_dld_link=yes
17169 else
17170   echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173         ac_cv_lib_dld_dld_link=no
17174 fi
17175
17176 rm -f core conftest.err conftest.$ac_objext \
17177       conftest$ac_exeext conftest.$ac_ext
17178 LIBS=$ac_check_lib_save_LIBS
17179 fi
17180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17182 if test $ac_cv_lib_dld_dld_link = yes; then
17183   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17184 fi
17185
17186
17187 fi
17188
17189
17190 fi
17191
17192
17193 fi
17194
17195
17196 fi
17197
17198
17199 fi
17200
17201     ;;
17202   esac
17203
17204   if test "x$lt_cv_dlopen" != xno; then
17205     enable_dlopen=yes
17206   else
17207     enable_dlopen=no
17208   fi
17209
17210   case $lt_cv_dlopen in
17211   dlopen)
17212     save_CPPFLAGS="$CPPFLAGS"
17213     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17214
17215     save_LDFLAGS="$LDFLAGS"
17216     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17217
17218     save_LIBS="$LIBS"
17219     LIBS="$lt_cv_dlopen_libs $LIBS"
17220
17221     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17222 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17223 if test "${lt_cv_dlopen_self+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226           if test "$cross_compiling" = yes; then :
17227   lt_cv_dlopen_self=cross
17228 else
17229   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17230   lt_status=$lt_dlunknown
17231   cat > conftest.$ac_ext <<EOF
17232 #line 17232 "configure"
17233 #include "confdefs.h"
17234
17235 #if HAVE_DLFCN_H
17236 #include <dlfcn.h>
17237 #endif
17238
17239 #include <stdio.h>
17240
17241 #ifdef RTLD_GLOBAL
17242 #  define LT_DLGLOBAL           RTLD_GLOBAL
17243 #else
17244 #  ifdef DL_GLOBAL
17245 #    define LT_DLGLOBAL         DL_GLOBAL
17246 #  else
17247 #    define LT_DLGLOBAL         0
17248 #  endif
17249 #endif
17250
17251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17252    find out it does not work in some platform. */
17253 #ifndef LT_DLLAZY_OR_NOW
17254 #  ifdef RTLD_LAZY
17255 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17256 #  else
17257 #    ifdef DL_LAZY
17258 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17259 #    else
17260 #      ifdef RTLD_NOW
17261 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17262 #      else
17263 #        ifdef DL_NOW
17264 #          define LT_DLLAZY_OR_NOW      DL_NOW
17265 #        else
17266 #          define LT_DLLAZY_OR_NOW      0
17267 #        endif
17268 #      endif
17269 #    endif
17270 #  endif
17271 #endif
17272
17273 #ifdef __cplusplus
17274 extern "C" void exit (int);
17275 #endif
17276
17277 void fnord() { int i=42;}
17278 int main ()
17279 {
17280   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17281   int status = $lt_dlunknown;
17282
17283   if (self)
17284     {
17285       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17286       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17287       /* dlclose (self); */
17288     }
17289   else
17290     puts (dlerror ());
17291
17292     exit (status);
17293 }
17294 EOF
17295   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296   (eval $ac_link) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17300     (./conftest; exit; ) >&5 2>/dev/null
17301     lt_status=$?
17302     case x$lt_status in
17303       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17304       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17305       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17306     esac
17307   else :
17308     # compilation failed
17309     lt_cv_dlopen_self=no
17310   fi
17311 fi
17312 rm -fr conftest*
17313
17314
17315 fi
17316 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17317 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17318
17319     if test "x$lt_cv_dlopen_self" = xyes; then
17320       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17321       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17322 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17323 if test "${lt_cv_dlopen_self_static+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326           if test "$cross_compiling" = yes; then :
17327   lt_cv_dlopen_self_static=cross
17328 else
17329   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17330   lt_status=$lt_dlunknown
17331   cat > conftest.$ac_ext <<EOF
17332 #line 17332 "configure"
17333 #include "confdefs.h"
17334
17335 #if HAVE_DLFCN_H
17336 #include <dlfcn.h>
17337 #endif
17338
17339 #include <stdio.h>
17340
17341 #ifdef RTLD_GLOBAL
17342 #  define LT_DLGLOBAL           RTLD_GLOBAL
17343 #else
17344 #  ifdef DL_GLOBAL
17345 #    define LT_DLGLOBAL         DL_GLOBAL
17346 #  else
17347 #    define LT_DLGLOBAL         0
17348 #  endif
17349 #endif
17350
17351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17352    find out it does not work in some platform. */
17353 #ifndef LT_DLLAZY_OR_NOW
17354 #  ifdef RTLD_LAZY
17355 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17356 #  else
17357 #    ifdef DL_LAZY
17358 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17359 #    else
17360 #      ifdef RTLD_NOW
17361 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17362 #      else
17363 #        ifdef DL_NOW
17364 #          define LT_DLLAZY_OR_NOW      DL_NOW
17365 #        else
17366 #          define LT_DLLAZY_OR_NOW      0
17367 #        endif
17368 #      endif
17369 #    endif
17370 #  endif
17371 #endif
17372
17373 #ifdef __cplusplus
17374 extern "C" void exit (int);
17375 #endif
17376
17377 void fnord() { int i=42;}
17378 int main ()
17379 {
17380   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17381   int status = $lt_dlunknown;
17382
17383   if (self)
17384     {
17385       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17386       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17387       /* dlclose (self); */
17388     }
17389   else
17390     puts (dlerror ());
17391
17392     exit (status);
17393 }
17394 EOF
17395   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396   (eval $ac_link) 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17400     (./conftest; exit; ) >&5 2>/dev/null
17401     lt_status=$?
17402     case x$lt_status in
17403       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17404       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17405       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17406     esac
17407   else :
17408     # compilation failed
17409     lt_cv_dlopen_self_static=no
17410   fi
17411 fi
17412 rm -fr conftest*
17413
17414
17415 fi
17416 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17417 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17418     fi
17419
17420     CPPFLAGS="$save_CPPFLAGS"
17421     LDFLAGS="$save_LDFLAGS"
17422     LIBS="$save_LIBS"
17423     ;;
17424   esac
17425
17426   case $lt_cv_dlopen_self in
17427   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17428   *) enable_dlopen_self=unknown ;;
17429   esac
17430
17431   case $lt_cv_dlopen_self_static in
17432   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17433   *) enable_dlopen_self_static=unknown ;;
17434   esac
17435 fi
17436
17437
17438 # Report which library types will actually be built
17439 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17440 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17441 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17442 echo "${ECHO_T}$can_build_shared" >&6; }
17443
17444 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17445 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17446 test "$can_build_shared" = "no" && enable_shared=no
17447
17448 # On AIX, shared libraries and static libraries use the same namespace, and
17449 # are all built from PIC.
17450 case $host_os in
17451 aix3*)
17452   test "$enable_shared" = yes && enable_static=no
17453   if test -n "$RANLIB"; then
17454     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17455     postinstall_cmds='$RANLIB $lib'
17456   fi
17457   ;;
17458
17459 aix4* | aix5*)
17460   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17461     test "$enable_shared" = yes && enable_static=no
17462   fi
17463     ;;
17464 esac
17465 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17466 echo "${ECHO_T}$enable_shared" >&6; }
17467
17468 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17470 # Make sure either enable_shared or enable_static is yes.
17471 test "$enable_shared" = yes || enable_static=yes
17472 { echo "$as_me:$LINENO: result: $enable_static" >&5
17473 echo "${ECHO_T}$enable_static" >&6; }
17474
17475 # The else clause should only fire when bootstrapping the
17476 # libtool distribution, otherwise you forgot to ship ltmain.sh
17477 # with your package, and you will get complaints that there are
17478 # no rules to generate ltmain.sh.
17479 if test -f "$ltmain"; then
17480   # See if we are running on zsh, and set the options which allow our commands through
17481   # without removal of \ escapes.
17482   if test -n "${ZSH_VERSION+set}" ; then
17483     setopt NO_GLOB_SUBST
17484   fi
17485   # Now quote all the things that may contain metacharacters while being
17486   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17487   # variables and quote the copies for generation of the libtool script.
17488   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17489     SED SHELL STRIP \
17490     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17491     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17492     deplibs_check_method reload_flag reload_cmds need_locks \
17493     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17494     lt_cv_sys_global_symbol_to_c_name_address \
17495     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17496     old_postinstall_cmds old_postuninstall_cmds \
17497     compiler \
17498     CC \
17499     LD \
17500     lt_prog_compiler_wl \
17501     lt_prog_compiler_pic \
17502     lt_prog_compiler_static \
17503     lt_prog_compiler_no_builtin_flag \
17504     export_dynamic_flag_spec \
17505     thread_safe_flag_spec \
17506     whole_archive_flag_spec \
17507     enable_shared_with_static_runtimes \
17508     old_archive_cmds \
17509     old_archive_from_new_cmds \
17510     predep_objects \
17511     postdep_objects \
17512     predeps \
17513     postdeps \
17514     compiler_lib_search_path \
17515     archive_cmds \
17516     archive_expsym_cmds \
17517     postinstall_cmds \
17518     postuninstall_cmds \
17519     old_archive_from_expsyms_cmds \
17520     allow_undefined_flag \
17521     no_undefined_flag \
17522     export_symbols_cmds \
17523     hardcode_libdir_flag_spec \
17524     hardcode_libdir_flag_spec_ld \
17525     hardcode_libdir_separator \
17526     hardcode_automatic \
17527     module_cmds \
17528     module_expsym_cmds \
17529     lt_cv_prog_compiler_c_o \
17530     exclude_expsyms \
17531     include_expsyms; do
17532
17533     case $var in
17534     old_archive_cmds | \
17535     old_archive_from_new_cmds | \
17536     archive_cmds | \
17537     archive_expsym_cmds | \
17538     module_cmds | \
17539     module_expsym_cmds | \
17540     old_archive_from_expsyms_cmds | \
17541     export_symbols_cmds | \
17542     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17543     postinstall_cmds | postuninstall_cmds | \
17544     old_postinstall_cmds | old_postuninstall_cmds | \
17545     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17546       # Double-quote double-evaled strings.
17547       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17548       ;;
17549     *)
17550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17551       ;;
17552     esac
17553   done
17554
17555   case $lt_echo in
17556   *'\$0 --fallback-echo"')
17557     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17558     ;;
17559   esac
17560
17561 cfgfile="${ofile}T"
17562   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17563   $rm -f "$cfgfile"
17564   { echo "$as_me:$LINENO: creating $ofile" >&5
17565 echo "$as_me: creating $ofile" >&6;}
17566
17567   cat <<__EOF__ >> "$cfgfile"
17568 #! $SHELL
17569
17570 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17571 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17573 #
17574 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17575 # Free Software Foundation, Inc.
17576 #
17577 # This file is part of GNU Libtool:
17578 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17579 #
17580 # This program is free software; you can redistribute it and/or modify
17581 # it under the terms of the GNU General Public License as published by
17582 # the Free Software Foundation; either version 2 of the License, or
17583 # (at your option) any later version.
17584 #
17585 # This program is distributed in the hope that it will be useful, but
17586 # WITHOUT ANY WARRANTY; without even the implied warranty of
17587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17588 # General Public License for more details.
17589 #
17590 # You should have received a copy of the GNU General Public License
17591 # along with this program; if not, write to the Free Software
17592 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17593 #
17594 # As a special exception to the GNU General Public License, if you
17595 # distribute this file as part of a program that contains a
17596 # configuration script generated by Autoconf, you may include it under
17597 # the same distribution terms that you use for the rest of that program.
17598
17599 # A sed program that does not truncate output.
17600 SED=$lt_SED
17601
17602 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17603 Xsed="$SED -e 1s/^X//"
17604
17605 # The HP-UX ksh and POSIX shell print the target directory to stdout
17606 # if CDPATH is set.
17607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17608
17609 # The names of the tagged configurations supported by this script.
17610 available_tags=
17611
17612 # ### BEGIN LIBTOOL CONFIG
17613
17614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17615
17616 # Shell to use when invoking shell scripts.
17617 SHELL=$lt_SHELL
17618
17619 # Whether or not to build shared libraries.
17620 build_libtool_libs=$enable_shared
17621
17622 # Whether or not to build static libraries.
17623 build_old_libs=$enable_static
17624
17625 # Whether or not to add -lc for building shared libraries.
17626 build_libtool_need_lc=$archive_cmds_need_lc
17627
17628 # Whether or not to disallow shared libs when runtime libs are static
17629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17630
17631 # Whether or not to optimize for fast installation.
17632 fast_install=$enable_fast_install
17633
17634 # The host system.
17635 host_alias=$host_alias
17636 host=$host
17637 host_os=$host_os
17638
17639 # The build system.
17640 build_alias=$build_alias
17641 build=$build
17642 build_os=$build_os
17643
17644 # An echo program that does not interpret backslashes.
17645 echo=$lt_echo
17646
17647 # The archiver.
17648 AR=$lt_AR
17649 AR_FLAGS=$lt_AR_FLAGS
17650
17651 # A C compiler.
17652 LTCC=$lt_LTCC
17653
17654 # LTCC compiler flags.
17655 LTCFLAGS=$lt_LTCFLAGS
17656
17657 # A language-specific compiler.
17658 CC=$lt_compiler
17659
17660 # Is the compiler the GNU C compiler?
17661 with_gcc=$GCC
17662
17663 # An ERE matcher.
17664 EGREP=$lt_EGREP
17665
17666 # The linker used to build libraries.
17667 LD=$lt_LD
17668
17669 # Whether we need hard or soft links.
17670 LN_S=$lt_LN_S
17671
17672 # A BSD-compatible nm program.
17673 NM=$lt_NM
17674
17675 # A symbol stripping program
17676 STRIP=$lt_STRIP
17677
17678 # Used to examine libraries when file_magic_cmd begins "file"
17679 MAGIC_CMD=$MAGIC_CMD
17680
17681 # Used on cygwin: DLL creation program.
17682 DLLTOOL="$DLLTOOL"
17683
17684 # Used on cygwin: object dumper.
17685 OBJDUMP="$OBJDUMP"
17686
17687 # Used on cygwin: assembler.
17688 AS="$AS"
17689
17690 # The name of the directory that contains temporary libtool files.
17691 objdir=$objdir
17692
17693 # How to create reloadable object files.
17694 reload_flag=$lt_reload_flag
17695 reload_cmds=$lt_reload_cmds
17696
17697 # How to pass a linker flag through the compiler.
17698 wl=$lt_lt_prog_compiler_wl
17699
17700 # Object file suffix (normally "o").
17701 objext="$ac_objext"
17702
17703 # Old archive suffix (normally "a").
17704 libext="$libext"
17705
17706 # Shared library suffix (normally ".so").
17707 shrext_cmds='$shrext_cmds'
17708
17709 # Executable file suffix (normally "").
17710 exeext="$exeext"
17711
17712 # Additional compiler flags for building library objects.
17713 pic_flag=$lt_lt_prog_compiler_pic
17714 pic_mode=$pic_mode
17715
17716 # What is the maximum length of a command?
17717 max_cmd_len=$lt_cv_sys_max_cmd_len
17718
17719 # Does compiler simultaneously support -c and -o options?
17720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17721
17722 # Must we lock files when doing compilation?
17723 need_locks=$lt_need_locks
17724
17725 # Do we need the lib prefix for modules?
17726 need_lib_prefix=$need_lib_prefix
17727
17728 # Do we need a version for libraries?
17729 need_version=$need_version
17730
17731 # Whether dlopen is supported.
17732 dlopen_support=$enable_dlopen
17733
17734 # Whether dlopen of programs is supported.
17735 dlopen_self=$enable_dlopen_self
17736
17737 # Whether dlopen of statically linked programs is supported.
17738 dlopen_self_static=$enable_dlopen_self_static
17739
17740 # Compiler flag to prevent dynamic linking.
17741 link_static_flag=$lt_lt_prog_compiler_static
17742
17743 # Compiler flag to turn off builtin functions.
17744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17745
17746 # Compiler flag to allow reflexive dlopens.
17747 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17748
17749 # Compiler flag to generate shared objects directly from archives.
17750 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17751
17752 # Compiler flag to generate thread-safe objects.
17753 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17754
17755 # Library versioning type.
17756 version_type=$version_type
17757
17758 # Format of library name prefix.
17759 libname_spec=$lt_libname_spec
17760
17761 # List of archive names.  First name is the real one, the rest are links.
17762 # The last name is the one that the linker finds with -lNAME.
17763 library_names_spec=$lt_library_names_spec
17764
17765 # The coded name of the library, if different from the real name.
17766 soname_spec=$lt_soname_spec
17767
17768 # Commands used to build and install an old-style archive.
17769 RANLIB=$lt_RANLIB
17770 old_archive_cmds=$lt_old_archive_cmds
17771 old_postinstall_cmds=$lt_old_postinstall_cmds
17772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17773
17774 # Create an old-style archive from a shared archive.
17775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17776
17777 # Create a temporary old-style archive to link instead of a shared archive.
17778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17779
17780 # Commands used to build and install a shared archive.
17781 archive_cmds=$lt_archive_cmds
17782 archive_expsym_cmds=$lt_archive_expsym_cmds
17783 postinstall_cmds=$lt_postinstall_cmds
17784 postuninstall_cmds=$lt_postuninstall_cmds
17785
17786 # Commands used to build a loadable module (assumed same as above if empty)
17787 module_cmds=$lt_module_cmds
17788 module_expsym_cmds=$lt_module_expsym_cmds
17789
17790 # Commands to strip libraries.
17791 old_striplib=$lt_old_striplib
17792 striplib=$lt_striplib
17793
17794 # Dependencies to place before the objects being linked to create a
17795 # shared library.
17796 predep_objects=$lt_predep_objects
17797
17798 # Dependencies to place after the objects being linked to create a
17799 # shared library.
17800 postdep_objects=$lt_postdep_objects
17801
17802 # Dependencies to place before the objects being linked to create a
17803 # shared library.
17804 predeps=$lt_predeps
17805
17806 # Dependencies to place after the objects being linked to create a
17807 # shared library.
17808 postdeps=$lt_postdeps
17809
17810 # The library search path used internally by the compiler when linking
17811 # a shared library.
17812 compiler_lib_search_path=$lt_compiler_lib_search_path
17813
17814 # Method to check whether dependent libraries are shared objects.
17815 deplibs_check_method=$lt_deplibs_check_method
17816
17817 # Command to use when deplibs_check_method == file_magic.
17818 file_magic_cmd=$lt_file_magic_cmd
17819
17820 # Flag that allows shared libraries with undefined symbols to be built.
17821 allow_undefined_flag=$lt_allow_undefined_flag
17822
17823 # Flag that forces no undefined symbols.
17824 no_undefined_flag=$lt_no_undefined_flag
17825
17826 # Commands used to finish a libtool library installation in a directory.
17827 finish_cmds=$lt_finish_cmds
17828
17829 # Same as above, but a single script fragment to be evaled but not shown.
17830 finish_eval=$lt_finish_eval
17831
17832 # Take the output of nm and produce a listing of raw symbols and C names.
17833 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17834
17835 # Transform the output of nm in a proper C declaration
17836 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17837
17838 # Transform the output of nm in a C name address pair
17839 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17840
17841 # This is the shared library runtime path variable.
17842 runpath_var=$runpath_var
17843
17844 # This is the shared library path variable.
17845 shlibpath_var=$shlibpath_var
17846
17847 # Is shlibpath searched before the hard-coded library search path?
17848 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17849
17850 # How to hardcode a shared library path into an executable.
17851 hardcode_action=$hardcode_action
17852
17853 # Whether we should hardcode library paths into libraries.
17854 hardcode_into_libs=$hardcode_into_libs
17855
17856 # Flag to hardcode \$libdir into a binary during linking.
17857 # This must work even if \$libdir does not exist.
17858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17859
17860 # If ld is used when linking, flag to hardcode \$libdir into
17861 # a binary during linking. This must work even if \$libdir does
17862 # not exist.
17863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17864
17865 # Whether we need a single -rpath flag with a separated argument.
17866 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17867
17868 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17869 # resulting binary.
17870 hardcode_direct=$hardcode_direct
17871
17872 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17873 # resulting binary.
17874 hardcode_minus_L=$hardcode_minus_L
17875
17876 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17877 # the resulting binary.
17878 hardcode_shlibpath_var=$hardcode_shlibpath_var
17879
17880 # Set to yes if building a shared library automatically hardcodes DIR into the library
17881 # and all subsequent libraries and executables linked against it.
17882 hardcode_automatic=$hardcode_automatic
17883
17884 # Variables whose values should be saved in libtool wrapper scripts and
17885 # restored at relink time.
17886 variables_saved_for_relink="$variables_saved_for_relink"
17887
17888 # Whether libtool must link a program against all its dependency libraries.
17889 link_all_deplibs=$link_all_deplibs
17890
17891 # Compile-time system search path for libraries
17892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17893
17894 # Run-time system search path for libraries
17895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17896
17897 # Fix the shell variable \$srcfile for the compiler.
17898 fix_srcfile_path="$fix_srcfile_path"
17899
17900 # Set to yes if exported symbols are required.
17901 always_export_symbols=$always_export_symbols
17902
17903 # The commands to list exported symbols.
17904 export_symbols_cmds=$lt_export_symbols_cmds
17905
17906 # The commands to extract the exported symbol list from a shared archive.
17907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17908
17909 # Symbols that should not be listed in the preloaded symbols.
17910 exclude_expsyms=$lt_exclude_expsyms
17911
17912 # Symbols that must always be exported.
17913 include_expsyms=$lt_include_expsyms
17914
17915 # ### END LIBTOOL CONFIG
17916
17917 __EOF__
17918
17919
17920   case $host_os in
17921   aix3*)
17922     cat <<\EOF >> "$cfgfile"
17923
17924 # AIX sometimes has problems with the GCC collect2 program.  For some
17925 # reason, if we set the COLLECT_NAMES environment variable, the problems
17926 # vanish in a puff of smoke.
17927 if test "X${COLLECT_NAMES+set}" != Xset; then
17928   COLLECT_NAMES=
17929   export COLLECT_NAMES
17930 fi
17931 EOF
17932     ;;
17933   esac
17934
17935   # We use sed instead of cat because bash on DJGPP gets confused if
17936   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17937   # text mode, it properly converts lines to CR/LF.  This bash problem
17938   # is reportedly fixed, but why not run on old versions too?
17939   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17940
17941   mv -f "$cfgfile" "$ofile" || \
17942     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17943   chmod +x "$ofile"
17944
17945 else
17946   # If there is no Makefile yet, we rely on a make rule to execute
17947   # `config.status --recheck' to rerun these tests and create the
17948   # libtool script then.
17949   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17950   if test -f "$ltmain_in"; then
17951     test -f Makefile && make "$ltmain"
17952   fi
17953 fi
17954
17955
17956 ac_ext=c
17957 ac_cpp='$CPP $CPPFLAGS'
17958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17961
17962 CC="$lt_save_CC"
17963
17964
17965 # Check whether --with-tags was given.
17966 if test "${with_tags+set}" = set; then
17967   withval=$with_tags; tagnames="$withval"
17968 fi
17969
17970
17971 if test -f "$ltmain" && test -n "$tagnames"; then
17972   if test ! -f "${ofile}"; then
17973     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17974 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17975   fi
17976
17977   if test -z "$LTCC"; then
17978     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17979     if test -z "$LTCC"; then
17980       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17981 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17982     else
17983       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17984 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17985     fi
17986   fi
17987   if test -z "$LTCFLAGS"; then
17988     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17989   fi
17990
17991   # Extract list of available tagged configurations in $ofile.
17992   # Note that this assumes the entire list is on one line.
17993   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17994
17995   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17996   for tagname in $tagnames; do
17997     IFS="$lt_save_ifs"
17998     # Check whether tagname contains only valid characters
17999     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18000     "") ;;
18001     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18002 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18003    { (exit 1); exit 1; }; }
18004         ;;
18005     esac
18006
18007     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18008     then
18009       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18010 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18011    { (exit 1); exit 1; }; }
18012     fi
18013
18014     # Update the list of available tags.
18015     if test -n "$tagname"; then
18016       echo appending configuration tag \"$tagname\" to $ofile
18017
18018       case $tagname in
18019       CXX)
18020         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18021             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18022             (test "X$CXX" != "Xg++"))) ; then
18023           ac_ext=cpp
18024 ac_cpp='$CXXCPP $CPPFLAGS'
18025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18028
18029
18030
18031
18032 archive_cmds_need_lc_CXX=no
18033 allow_undefined_flag_CXX=
18034 always_export_symbols_CXX=no
18035 archive_expsym_cmds_CXX=
18036 export_dynamic_flag_spec_CXX=
18037 hardcode_direct_CXX=no
18038 hardcode_libdir_flag_spec_CXX=
18039 hardcode_libdir_flag_spec_ld_CXX=
18040 hardcode_libdir_separator_CXX=
18041 hardcode_minus_L_CXX=no
18042 hardcode_shlibpath_var_CXX=unsupported
18043 hardcode_automatic_CXX=no
18044 module_cmds_CXX=
18045 module_expsym_cmds_CXX=
18046 link_all_deplibs_CXX=unknown
18047 old_archive_cmds_CXX=$old_archive_cmds
18048 no_undefined_flag_CXX=
18049 whole_archive_flag_spec_CXX=
18050 enable_shared_with_static_runtimes_CXX=no
18051
18052 # Dependencies to place before and after the object being linked:
18053 predep_objects_CXX=
18054 postdep_objects_CXX=
18055 predeps_CXX=
18056 postdeps_CXX=
18057 compiler_lib_search_path_CXX=
18058
18059 # Source file extension for C++ test sources.
18060 ac_ext=cpp
18061
18062 # Object file extension for compiled C++ test sources.
18063 objext=o
18064 objext_CXX=$objext
18065
18066 # Code to be used in simple compile tests
18067 lt_simple_compile_test_code="int some_variable = 0;\n"
18068
18069 # Code to be used in simple link tests
18070 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18071
18072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073
18074 # If no C compiler was specified, use CC.
18075 LTCC=${LTCC-"$CC"}
18076
18077 # If no C compiler flags were specified, use CFLAGS.
18078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18079
18080 # Allow CC to be a program name with arguments.
18081 compiler=$CC
18082
18083
18084 # save warnings/boilerplate of simple test code
18085 ac_outfile=conftest.$ac_objext
18086 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18088 _lt_compiler_boilerplate=`cat conftest.err`
18089 $rm conftest*
18090
18091 ac_outfile=conftest.$ac_objext
18092 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18094 _lt_linker_boilerplate=`cat conftest.err`
18095 $rm conftest*
18096
18097
18098 # Allow CC to be a program name with arguments.
18099 lt_save_CC=$CC
18100 lt_save_LD=$LD
18101 lt_save_GCC=$GCC
18102 GCC=$GXX
18103 lt_save_with_gnu_ld=$with_gnu_ld
18104 lt_save_path_LD=$lt_cv_path_LD
18105 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18106   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18107 else
18108   $as_unset lt_cv_prog_gnu_ld
18109 fi
18110 if test -n "${lt_cv_path_LDCXX+set}"; then
18111   lt_cv_path_LD=$lt_cv_path_LDCXX
18112 else
18113   $as_unset lt_cv_path_LD
18114 fi
18115 test -z "${LDCXX+set}" || LD=$LDCXX
18116 CC=${CXX-"c++"}
18117 compiler=$CC
18118 compiler_CXX=$CC
18119 for cc_temp in $compiler""; do
18120   case $cc_temp in
18121     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18122     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18123     \-*) ;;
18124     *) break;;
18125   esac
18126 done
18127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18128
18129
18130 # We don't want -fno-exception wen compiling C++ code, so set the
18131 # no_builtin_flag separately
18132 if test "$GXX" = yes; then
18133   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18134 else
18135   lt_prog_compiler_no_builtin_flag_CXX=
18136 fi
18137
18138 if test "$GXX" = yes; then
18139   # Set up default GNU C++ configuration
18140
18141
18142 # Check whether --with-gnu-ld was given.
18143 if test "${with_gnu_ld+set}" = set; then
18144   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18145 else
18146   with_gnu_ld=no
18147 fi
18148
18149 ac_prog=ld
18150 if test "$GCC" = yes; then
18151   # Check if gcc -print-prog-name=ld gives a path.
18152   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18153 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18154   case $host in
18155   *-*-mingw*)
18156     # gcc leaves a trailing carriage return which upsets mingw
18157     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18158   *)
18159     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18160   esac
18161   case $ac_prog in
18162     # Accept absolute paths.
18163     [\\/]* | ?:[\\/]*)
18164       re_direlt='/[^/][^/]*/\.\./'
18165       # Canonicalize the pathname of ld
18166       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18167       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18168         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18169       done
18170       test -z "$LD" && LD="$ac_prog"
18171       ;;
18172   "")
18173     # If it fails, then pretend we aren't using GCC.
18174     ac_prog=ld
18175     ;;
18176   *)
18177     # If it is relative, then search for the first ld in PATH.
18178     with_gnu_ld=unknown
18179     ;;
18180   esac
18181 elif test "$with_gnu_ld" = yes; then
18182   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18184 else
18185   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18187 fi
18188 if test "${lt_cv_path_LD+set}" = set; then
18189   echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191   if test -z "$LD"; then
18192   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18193   for ac_dir in $PATH; do
18194     IFS="$lt_save_ifs"
18195     test -z "$ac_dir" && ac_dir=.
18196     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18197       lt_cv_path_LD="$ac_dir/$ac_prog"
18198       # Check to see if the program is GNU ld.  I'd rather use --version,
18199       # but apparently some variants of GNU ld only accept -v.
18200       # Break only if it was the GNU/non-GNU ld that we prefer.
18201       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18202       *GNU* | *'with BFD'*)
18203         test "$with_gnu_ld" != no && break
18204         ;;
18205       *)
18206         test "$with_gnu_ld" != yes && break
18207         ;;
18208       esac
18209     fi
18210   done
18211   IFS="$lt_save_ifs"
18212 else
18213   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18214 fi
18215 fi
18216
18217 LD="$lt_cv_path_LD"
18218 if test -n "$LD"; then
18219   { echo "$as_me:$LINENO: result: $LD" >&5
18220 echo "${ECHO_T}$LD" >&6; }
18221 else
18222   { echo "$as_me:$LINENO: result: no" >&5
18223 echo "${ECHO_T}no" >&6; }
18224 fi
18225 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18226 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18227    { (exit 1); exit 1; }; }
18228 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18229 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18230 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18231   echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18234 case `$LD -v 2>&1 </dev/null` in
18235 *GNU* | *'with BFD'*)
18236   lt_cv_prog_gnu_ld=yes
18237   ;;
18238 *)
18239   lt_cv_prog_gnu_ld=no
18240   ;;
18241 esac
18242 fi
18243 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18244 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18245 with_gnu_ld=$lt_cv_prog_gnu_ld
18246
18247
18248
18249   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18250   # archiving commands below assume that GNU ld is being used.
18251   if test "$with_gnu_ld" = yes; then
18252     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18253     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18254
18255     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18256     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18257
18258     # If archive_cmds runs LD, not CC, wlarc should be empty
18259     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18260     #     investigate it a little bit more. (MM)
18261     wlarc='${wl}'
18262
18263     # ancient GNU ld didn't support --whole-archive et. al.
18264     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18265         grep 'no-whole-archive' > /dev/null; then
18266       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18267     else
18268       whole_archive_flag_spec_CXX=
18269     fi
18270   else
18271     with_gnu_ld=no
18272     wlarc=
18273
18274     # A generic and very simple default shared library creation
18275     # command for GNU C++ for the case where it uses the native
18276     # linker, instead of GNU ld.  If possible, this setting should
18277     # overridden to take advantage of the native linker features on
18278     # the platform it is being used on.
18279     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18280   fi
18281
18282   # Commands to make compiler produce verbose output that lists
18283   # what "hidden" libraries, object files and flags are used when
18284   # linking a shared library.
18285   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18286
18287 else
18288   GXX=no
18289   with_gnu_ld=no
18290   wlarc=
18291 fi
18292
18293 # PORTME: fill in a description of your system's C++ link characteristics
18294 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18295 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18296 ld_shlibs_CXX=yes
18297 case $host_os in
18298   aix3*)
18299     # FIXME: insert proper C++ library support
18300     ld_shlibs_CXX=no
18301     ;;
18302   aix4* | aix5*)
18303     if test "$host_cpu" = ia64; then
18304       # On IA64, the linker does run time linking by default, so we don't
18305       # have to do anything special.
18306       aix_use_runtimelinking=no
18307       exp_sym_flag='-Bexport'
18308       no_entry_flag=""
18309     else
18310       aix_use_runtimelinking=no
18311
18312       # Test if we are trying to use run time linking or normal
18313       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18314       # need to do runtime linking.
18315       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18316         for ld_flag in $LDFLAGS; do
18317           case $ld_flag in
18318           *-brtl*)
18319             aix_use_runtimelinking=yes
18320             break
18321             ;;
18322           esac
18323         done
18324         ;;
18325       esac
18326
18327       exp_sym_flag='-bexport'
18328       no_entry_flag='-bnoentry'
18329     fi
18330
18331     # When large executables or shared objects are built, AIX ld can
18332     # have problems creating the table of contents.  If linking a library
18333     # or program results in "error TOC overflow" add -mminimal-toc to
18334     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18335     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18336
18337     archive_cmds_CXX=''
18338     hardcode_direct_CXX=yes
18339     hardcode_libdir_separator_CXX=':'
18340     link_all_deplibs_CXX=yes
18341
18342     if test "$GXX" = yes; then
18343       case $host_os in aix4.[012]|aix4.[012].*)
18344       # We only want to do this on AIX 4.2 and lower, the check
18345       # below for broken collect2 doesn't work under 4.3+
18346         collect2name=`${CC} -print-prog-name=collect2`
18347         if test -f "$collect2name" && \
18348            strings "$collect2name" | grep resolve_lib_name >/dev/null
18349         then
18350           # We have reworked collect2
18351           hardcode_direct_CXX=yes
18352         else
18353           # We have old collect2
18354           hardcode_direct_CXX=unsupported
18355           # It fails to find uninstalled libraries when the uninstalled
18356           # path is not listed in the libpath.  Setting hardcode_minus_L
18357           # to unsupported forces relinking
18358           hardcode_minus_L_CXX=yes
18359           hardcode_libdir_flag_spec_CXX='-L$libdir'
18360           hardcode_libdir_separator_CXX=
18361         fi
18362         ;;
18363       esac
18364       shared_flag='-shared'
18365       if test "$aix_use_runtimelinking" = yes; then
18366         shared_flag="$shared_flag "'${wl}-G'
18367       fi
18368     else
18369       # not using gcc
18370       if test "$host_cpu" = ia64; then
18371         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18372         # chokes on -Wl,-G. The following line is correct:
18373         shared_flag='-G'
18374       else
18375         if test "$aix_use_runtimelinking" = yes; then
18376           shared_flag='${wl}-G'
18377         else
18378           shared_flag='${wl}-bM:SRE'
18379         fi
18380       fi
18381     fi
18382
18383     # It seems that -bexpall does not export symbols beginning with
18384     # underscore (_), so it is better to generate a list of symbols to export.
18385     always_export_symbols_CXX=yes
18386     if test "$aix_use_runtimelinking" = yes; then
18387       # Warning - without using the other runtime loading flags (-brtl),
18388       # -berok will link without error, but may produce a broken library.
18389       allow_undefined_flag_CXX='-berok'
18390       # Determine the default libpath from the value encoded in an empty executable.
18391       cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h.  */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h.  */
18397
18398 int
18399 main ()
18400 {
18401
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_link") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } &&
18420          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18421   { (case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_try") 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; } &&
18430          { ac_try='test -s conftest$ac_exeext'
18431   { (case "(($ac_try" in
18432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433   *) ac_try_echo=$ac_try;;
18434 esac
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436   (eval "$ac_try") 2>&5
18437   ac_status=$?
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); }; }; then
18440
18441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18442 }'`
18443 # Check for a 64-bit object if we didn't find anything.
18444 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18445 }'`; fi
18446 else
18447   echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450
18451 fi
18452
18453 rm -f core conftest.err conftest.$ac_objext \
18454       conftest$ac_exeext conftest.$ac_ext
18455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18456
18457       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18458
18459       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18460      else
18461       if test "$host_cpu" = ia64; then
18462         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18463         allow_undefined_flag_CXX="-z nodefs"
18464         archive_expsym_cmds_CXX="\$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"
18465       else
18466         # Determine the default libpath from the value encoded in an empty executable.
18467         cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h.  */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h.  */
18473
18474 int
18475 main ()
18476 {
18477
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_link") 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } &&
18496          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18497   { (case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_try") 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; } &&
18506          { ac_try='test -s conftest$ac_exeext'
18507   { (case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_try") 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516
18517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18518 }'`
18519 # Check for a 64-bit object if we didn't find anything.
18520 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18521 }'`; fi
18522 else
18523   echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18525
18526
18527 fi
18528
18529 rm -f core conftest.err conftest.$ac_objext \
18530       conftest$ac_exeext conftest.$ac_ext
18531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18532
18533         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18534         # Warning - without using the other run time loading flags,
18535         # -berok will link without error, but may produce a broken library.
18536         no_undefined_flag_CXX=' ${wl}-bernotok'
18537         allow_undefined_flag_CXX=' ${wl}-berok'
18538         # Exported symbols can be pulled into shared objects from archives
18539         whole_archive_flag_spec_CXX='$convenience'
18540         archive_cmds_need_lc_CXX=yes
18541         # This is similar to how AIX traditionally builds its shared libraries.
18542         archive_expsym_cmds_CXX="\$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'
18543       fi
18544     fi
18545     ;;
18546
18547   beos*)
18548     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18549       allow_undefined_flag_CXX=unsupported
18550       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18551       # support --undefined.  This deserves some investigation.  FIXME
18552       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18553     else
18554       ld_shlibs_CXX=no
18555     fi
18556     ;;
18557
18558   chorus*)
18559     case $cc_basename in
18560       *)
18561         # FIXME: insert proper C++ library support
18562         ld_shlibs_CXX=no
18563         ;;
18564     esac
18565     ;;
18566
18567   cygwin* | mingw* | pw32*)
18568     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18569     # as there is no search path for DLLs.
18570     hardcode_libdir_flag_spec_CXX='-L$libdir'
18571     allow_undefined_flag_CXX=unsupported
18572     always_export_symbols_CXX=no
18573     enable_shared_with_static_runtimes_CXX=yes
18574
18575     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18576       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18577       # If the export-symbols file already is a .def file (1st line
18578       # is EXPORTS), use it as is; otherwise, prepend...
18579       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18580         cp $export_symbols $output_objdir/$soname.def;
18581       else
18582         echo EXPORTS > $output_objdir/$soname.def;
18583         cat $export_symbols >> $output_objdir/$soname.def;
18584       fi~
18585       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18586     else
18587       ld_shlibs_CXX=no
18588     fi
18589   ;;
18590       darwin* | rhapsody*)
18591         case $host_os in
18592         rhapsody* | darwin1.[012])
18593          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18594          ;;
18595        *) # Darwin 1.3 on
18596          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18597            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18598          else
18599            case ${MACOSX_DEPLOYMENT_TARGET} in
18600              10.[012])
18601                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18602                ;;
18603              10.*)
18604                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18605                ;;
18606            esac
18607          fi
18608          ;;
18609         esac
18610       archive_cmds_need_lc_CXX=no
18611       hardcode_direct_CXX=no
18612       hardcode_automatic_CXX=yes
18613       hardcode_shlibpath_var_CXX=unsupported
18614       whole_archive_flag_spec_CXX=''
18615       link_all_deplibs_CXX=yes
18616
18617     if test "$GXX" = yes ; then
18618       lt_int_apple_cc_single_mod=no
18619       output_verbose_link_cmd='echo'
18620       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18621        lt_int_apple_cc_single_mod=yes
18622       fi
18623       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18624        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18625       else
18626           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18627         fi
18628         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18629         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18630           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18631             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18632           else
18633             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18634           fi
18635             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18636       else
18637       case $cc_basename in
18638         xlc*)
18639          output_verbose_link_cmd='echo'
18640           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18641           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18642           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18643           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18644           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18645           ;;
18646        *)
18647          ld_shlibs_CXX=no
18648           ;;
18649       esac
18650       fi
18651         ;;
18652
18653   dgux*)
18654     case $cc_basename in
18655       ec++*)
18656         # FIXME: insert proper C++ library support
18657         ld_shlibs_CXX=no
18658         ;;
18659       ghcx*)
18660         # Green Hills C++ Compiler
18661         # FIXME: insert proper C++ library support
18662         ld_shlibs_CXX=no
18663         ;;
18664       *)
18665         # FIXME: insert proper C++ library support
18666         ld_shlibs_CXX=no
18667         ;;
18668     esac
18669     ;;
18670   freebsd[12]*)
18671     # C++ shared libraries reported to be fairly broken before switch to ELF
18672     ld_shlibs_CXX=no
18673     ;;
18674   freebsd-elf*)
18675     archive_cmds_need_lc_CXX=no
18676     ;;
18677   freebsd* | kfreebsd*-gnu | dragonfly*)
18678     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18679     # conventions
18680     ld_shlibs_CXX=yes
18681     ;;
18682   gnu*)
18683     ;;
18684   hpux9*)
18685     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18686     hardcode_libdir_separator_CXX=:
18687     export_dynamic_flag_spec_CXX='${wl}-E'
18688     hardcode_direct_CXX=yes
18689     hardcode_minus_L_CXX=yes # Not in the search PATH,
18690                                 # but as the default
18691                                 # location of the library.
18692
18693     case $cc_basename in
18694     CC*)
18695       # FIXME: insert proper C++ library support
18696       ld_shlibs_CXX=no
18697       ;;
18698     aCC*)
18699       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18700       # Commands to make compiler produce verbose output that lists
18701       # what "hidden" libraries, object files and flags are used when
18702       # linking a shared library.
18703       #
18704       # There doesn't appear to be a way to prevent this compiler from
18705       # explicitly linking system object files so we need to strip them
18706       # from the output so that they don't get included in the library
18707       # dependencies.
18708       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18709       ;;
18710     *)
18711       if test "$GXX" = yes; then
18712         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18713       else
18714         # FIXME: insert proper C++ library support
18715         ld_shlibs_CXX=no
18716       fi
18717       ;;
18718     esac
18719     ;;
18720   hpux10*|hpux11*)
18721     if test $with_gnu_ld = no; then
18722       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18723       hardcode_libdir_separator_CXX=:
18724
18725       case $host_cpu in
18726       hppa*64*|ia64*)
18727         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18728         ;;
18729       *)
18730         export_dynamic_flag_spec_CXX='${wl}-E'
18731         ;;
18732       esac
18733     fi
18734     case $host_cpu in
18735     hppa*64*|ia64*)
18736       hardcode_direct_CXX=no
18737       hardcode_shlibpath_var_CXX=no
18738       ;;
18739     *)
18740       hardcode_direct_CXX=yes
18741       hardcode_minus_L_CXX=yes # Not in the search PATH,
18742                                               # but as the default
18743                                               # location of the library.
18744       ;;
18745     esac
18746
18747     case $cc_basename in
18748       CC*)
18749         # FIXME: insert proper C++ library support
18750         ld_shlibs_CXX=no
18751         ;;
18752       aCC*)
18753         case $host_cpu in
18754         hppa*64*)
18755           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18756           ;;
18757         ia64*)
18758           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18759           ;;
18760         *)
18761           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18762           ;;
18763         esac
18764         # Commands to make compiler produce verbose output that lists
18765         # what "hidden" libraries, object files and flags are used when
18766         # linking a shared library.
18767         #
18768         # There doesn't appear to be a way to prevent this compiler from
18769         # explicitly linking system object files so we need to strip them
18770         # from the output so that they don't get included in the library
18771         # dependencies.
18772         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18773         ;;
18774       *)
18775         if test "$GXX" = yes; then
18776           if test $with_gnu_ld = no; then
18777             case $host_cpu in
18778             hppa*64*)
18779               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18780               ;;
18781             ia64*)
18782               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18783               ;;
18784             *)
18785               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18786               ;;
18787             esac
18788           fi
18789         else
18790           # FIXME: insert proper C++ library support
18791           ld_shlibs_CXX=no
18792         fi
18793         ;;
18794     esac
18795     ;;
18796   interix3*)
18797     hardcode_direct_CXX=no
18798     hardcode_shlibpath_var_CXX=no
18799     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800     export_dynamic_flag_spec_CXX='${wl}-E'
18801     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18802     # Instead, shared libraries are loaded at an image base (0x10000000 by
18803     # default) and relocated if they conflict, which is a slow very memory
18804     # consuming and fragmenting process.  To avoid this, we pick a random,
18805     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18806     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18807     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18808     archive_expsym_cmds_CXX='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'
18809     ;;
18810   irix5* | irix6*)
18811     case $cc_basename in
18812       CC*)
18813         # SGI C++
18814         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18815
18816         # Archives containing C++ object files must be created using
18817         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18818         # necessary to make sure instantiated templates are included
18819         # in the archive.
18820         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18821         ;;
18822       *)
18823         if test "$GXX" = yes; then
18824           if test "$with_gnu_ld" = no; then
18825             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18826           else
18827             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
18828           fi
18829         fi
18830         link_all_deplibs_CXX=yes
18831         ;;
18832     esac
18833     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834     hardcode_libdir_separator_CXX=:
18835     ;;
18836   linux*)
18837     case $cc_basename in
18838       KCC*)
18839         # Kuck and Associates, Inc. (KAI) C++ Compiler
18840
18841         # KCC will only create a shared library if the output file
18842         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18843         # to its proper name (with version) after linking.
18844         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18845         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18846         # Commands to make compiler produce verbose output that lists
18847         # what "hidden" libraries, object files and flags are used when
18848         # linking a shared library.
18849         #
18850         # There doesn't appear to be a way to prevent this compiler from
18851         # explicitly linking system object files so we need to strip them
18852         # from the output so that they don't get included in the library
18853         # dependencies.
18854         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18855
18856         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18857         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18858
18859         # Archives containing C++ object files must be created using
18860         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18861         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18862         ;;
18863       icpc*)
18864         # Intel C++
18865         with_gnu_ld=yes
18866         # version 8.0 and above of icpc choke on multiply defined symbols
18867         # if we add $predep_objects and $postdep_objects, however 7.1 and
18868         # earlier do not add the objects themselves.
18869         case `$CC -V 2>&1` in
18870         *"Version 7."*)
18871           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18872           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18873           ;;
18874         *)  # Version 8.0 or newer
18875           tmp_idyn=
18876           case $host_cpu in
18877             ia64*) tmp_idyn=' -i_dynamic';;
18878           esac
18879           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18880           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18881           ;;
18882         esac
18883         archive_cmds_need_lc_CXX=no
18884         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18885         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18886         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18887         ;;
18888       pgCC*)
18889         # Portland Group C++ compiler
18890         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18891         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18892
18893         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18894         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18895         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18896         ;;
18897       cxx*)
18898         # Compaq C++
18899         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18900         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18901
18902         runpath_var=LD_RUN_PATH
18903         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18904         hardcode_libdir_separator_CXX=:
18905
18906         # Commands to make compiler produce verbose output that lists
18907         # what "hidden" libraries, object files and flags are used when
18908         # linking a shared library.
18909         #
18910         # There doesn't appear to be a way to prevent this compiler from
18911         # explicitly linking system object files so we need to strip them
18912         # from the output so that they don't get included in the library
18913         # dependencies.
18914         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18915         ;;
18916     esac
18917     ;;
18918   lynxos*)
18919     # FIXME: insert proper C++ library support
18920     ld_shlibs_CXX=no
18921     ;;
18922   m88k*)
18923     # FIXME: insert proper C++ library support
18924     ld_shlibs_CXX=no
18925     ;;
18926   mvs*)
18927     case $cc_basename in
18928       cxx*)
18929         # FIXME: insert proper C++ library support
18930         ld_shlibs_CXX=no
18931         ;;
18932       *)
18933         # FIXME: insert proper C++ library support
18934         ld_shlibs_CXX=no
18935         ;;
18936     esac
18937     ;;
18938   netbsd*)
18939     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18940       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18941       wlarc=
18942       hardcode_libdir_flag_spec_CXX='-R$libdir'
18943       hardcode_direct_CXX=yes
18944       hardcode_shlibpath_var_CXX=no
18945     fi
18946     # Workaround some broken pre-1.5 toolchains
18947     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18948     ;;
18949   openbsd2*)
18950     # C++ shared libraries are fairly broken
18951     ld_shlibs_CXX=no
18952     ;;
18953   openbsd*)
18954     hardcode_direct_CXX=yes
18955     hardcode_shlibpath_var_CXX=no
18956     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18957     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18958     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18959       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18960       export_dynamic_flag_spec_CXX='${wl}-E'
18961       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18962     fi
18963     output_verbose_link_cmd='echo'
18964     ;;
18965   osf3*)
18966     case $cc_basename in
18967       KCC*)
18968         # Kuck and Associates, Inc. (KAI) C++ Compiler
18969
18970         # KCC will only create a shared library if the output file
18971         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18972         # to its proper name (with version) after linking.
18973         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18974
18975         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18976         hardcode_libdir_separator_CXX=:
18977
18978         # Archives containing C++ object files must be created using
18979         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18980         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18981
18982         ;;
18983       RCC*)
18984         # Rational C++ 2.4.1
18985         # FIXME: insert proper C++ library support
18986         ld_shlibs_CXX=no
18987         ;;
18988       cxx*)
18989         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18990         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18991
18992         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18993         hardcode_libdir_separator_CXX=:
18994
18995         # Commands to make compiler produce verbose output that lists
18996         # what "hidden" libraries, object files and flags are used when
18997         # linking a shared library.
18998         #
18999         # There doesn't appear to be a way to prevent this compiler from
19000         # explicitly linking system object files so we need to strip them
19001         # from the output so that they don't get included in the library
19002         # dependencies.
19003         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19004         ;;
19005       *)
19006         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19007           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19008           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19009
19010           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19011           hardcode_libdir_separator_CXX=:
19012
19013           # Commands to make compiler produce verbose output that lists
19014           # what "hidden" libraries, object files and flags are used when
19015           # linking a shared library.
19016           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19017
19018         else
19019           # FIXME: insert proper C++ library support
19020           ld_shlibs_CXX=no
19021         fi
19022         ;;
19023     esac
19024     ;;
19025   osf4* | osf5*)
19026     case $cc_basename in
19027       KCC*)
19028         # Kuck and Associates, Inc. (KAI) C++ Compiler
19029
19030         # KCC will only create a shared library if the output file
19031         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19032         # to its proper name (with version) after linking.
19033         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19034
19035         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19036         hardcode_libdir_separator_CXX=:
19037
19038         # Archives containing C++ object files must be created using
19039         # the KAI C++ compiler.
19040         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19041         ;;
19042       RCC*)
19043         # Rational C++ 2.4.1
19044         # FIXME: insert proper C++ library support
19045         ld_shlibs_CXX=no
19046         ;;
19047       cxx*)
19048         allow_undefined_flag_CXX=' -expect_unresolved \*'
19049         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19050         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19051           echo "-hidden">> $lib.exp~
19052           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
19053           $rm $lib.exp'
19054
19055         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19056         hardcode_libdir_separator_CXX=:
19057
19058         # Commands to make compiler produce verbose output that lists
19059         # what "hidden" libraries, object files and flags are used when
19060         # linking a shared library.
19061         #
19062         # There doesn't appear to be a way to prevent this compiler from
19063         # explicitly linking system object files so we need to strip them
19064         # from the output so that they don't get included in the library
19065         # dependencies.
19066         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19067         ;;
19068       *)
19069         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19070           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19071          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19072
19073           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19074           hardcode_libdir_separator_CXX=:
19075
19076           # Commands to make compiler produce verbose output that lists
19077           # what "hidden" libraries, object files and flags are used when
19078           # linking a shared library.
19079           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19080
19081         else
19082           # FIXME: insert proper C++ library support
19083           ld_shlibs_CXX=no
19084         fi
19085         ;;
19086     esac
19087     ;;
19088   psos*)
19089     # FIXME: insert proper C++ library support
19090     ld_shlibs_CXX=no
19091     ;;
19092   sunos4*)
19093     case $cc_basename in
19094       CC*)
19095         # Sun C++ 4.x
19096         # FIXME: insert proper C++ library support
19097         ld_shlibs_CXX=no
19098         ;;
19099       lcc*)
19100         # Lucid
19101         # FIXME: insert proper C++ library support
19102         ld_shlibs_CXX=no
19103         ;;
19104       *)
19105         # FIXME: insert proper C++ library support
19106         ld_shlibs_CXX=no
19107         ;;
19108     esac
19109     ;;
19110   solaris*)
19111     case $cc_basename in
19112       CC*)
19113         # Sun C++ 4.2, 5.x and Centerline C++
19114         archive_cmds_need_lc_CXX=yes
19115         no_undefined_flag_CXX=' -zdefs'
19116         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19117         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19118         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19119
19120         hardcode_libdir_flag_spec_CXX='-R$libdir'
19121         hardcode_shlibpath_var_CXX=no
19122         case $host_os in
19123           solaris2.[0-5] | solaris2.[0-5].*) ;;
19124           *)
19125             # The C++ compiler is used as linker so we must use $wl
19126             # flag to pass the commands to the underlying system
19127             # linker. We must also pass each convience library through
19128             # to the system linker between allextract/defaultextract.
19129             # The C++ compiler will combine linker options so we
19130             # cannot just pass the convience library names through
19131             # without $wl.
19132             # Supported since Solaris 2.6 (maybe 2.5.1?)
19133             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19134             ;;
19135         esac
19136         link_all_deplibs_CXX=yes
19137
19138         output_verbose_link_cmd='echo'
19139
19140         # Archives containing C++ object files must be created using
19141         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19142         # necessary to make sure instantiated templates are included
19143         # in the archive.
19144         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19145         ;;
19146       gcx*)
19147         # Green Hills C++ Compiler
19148         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19149
19150         # The C++ compiler must be used to create the archive.
19151         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19152         ;;
19153       *)
19154         # GNU C++ compiler with Solaris linker
19155         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19156           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19157           if $CC --version | grep -v '^2\.7' > /dev/null; then
19158             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19159             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19160                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19161
19162             # Commands to make compiler produce verbose output that lists
19163             # what "hidden" libraries, object files and flags are used when
19164             # linking a shared library.
19165             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19166           else
19167             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19168             # platform.
19169             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19170             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19171                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19172
19173             # Commands to make compiler produce verbose output that lists
19174             # what "hidden" libraries, object files and flags are used when
19175             # linking a shared library.
19176             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19177           fi
19178
19179           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19180         fi
19181         ;;
19182     esac
19183     ;;
19184   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19185     no_undefined_flag_CXX='${wl}-z,text'
19186     archive_cmds_need_lc_CXX=no
19187     hardcode_shlibpath_var_CXX=no
19188     runpath_var='LD_RUN_PATH'
19189
19190     case $cc_basename in
19191       CC*)
19192         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19193         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19194         ;;
19195       *)
19196         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19197         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198         ;;
19199     esac
19200     ;;
19201   sysv5* | sco3.2v5* | sco5v6*)
19202     # Note: We can NOT use -z defs as we might desire, because we do not
19203     # link with -lc, and that would cause any symbols used from libc to
19204     # always be unresolved, which means just about no library would
19205     # ever link correctly.  If we're not using GNU ld we use -z text
19206     # though, which does catch some bad symbols but isn't as heavy-handed
19207     # as -z defs.
19208     # For security reasons, it is highly recommended that you always
19209     # use absolute paths for naming shared libraries, and exclude the
19210     # DT_RUNPATH tag from executables and libraries.  But doing so
19211     # requires that you compile everything twice, which is a pain.
19212     # So that behaviour is only enabled if SCOABSPATH is set to a
19213     # non-empty value in the environment.  Most likely only useful for
19214     # creating official distributions of packages.
19215     # This is a hack until libtool officially supports absolute path
19216     # names for shared libraries.
19217     no_undefined_flag_CXX='${wl}-z,text'
19218     allow_undefined_flag_CXX='${wl}-z,nodefs'
19219     archive_cmds_need_lc_CXX=no
19220     hardcode_shlibpath_var_CXX=no
19221     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19222     hardcode_libdir_separator_CXX=':'
19223     link_all_deplibs_CXX=yes
19224     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19225     runpath_var='LD_RUN_PATH'
19226
19227     case $cc_basename in
19228       CC*)
19229         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19230         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19231         ;;
19232       *)
19233         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235         ;;
19236     esac
19237     ;;
19238   tandem*)
19239     case $cc_basename in
19240       NCC*)
19241         # NonStop-UX NCC 3.20
19242         # FIXME: insert proper C++ library support
19243         ld_shlibs_CXX=no
19244         ;;
19245       *)
19246         # FIXME: insert proper C++ library support
19247         ld_shlibs_CXX=no
19248         ;;
19249     esac
19250     ;;
19251   vxworks*)
19252     # FIXME: insert proper C++ library support
19253     ld_shlibs_CXX=no
19254     ;;
19255   *)
19256     # FIXME: insert proper C++ library support
19257     ld_shlibs_CXX=no
19258     ;;
19259 esac
19260 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19261 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19262 test "$ld_shlibs_CXX" = no && can_build_shared=no
19263
19264 GCC_CXX="$GXX"
19265 LD_CXX="$LD"
19266
19267
19268 cat > conftest.$ac_ext <<EOF
19269 class Foo
19270 {
19271 public:
19272   Foo (void) { a = 0; }
19273 private:
19274   int a;
19275 };
19276 EOF
19277
19278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19279   (eval $ac_compile) 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; then
19283   # Parse the compiler output and extract the necessary
19284   # objects, libraries and library flags.
19285
19286   # Sentinel used to keep track of whether or not we are before
19287   # the conftest object file.
19288   pre_test_object_deps_done=no
19289
19290   # The `*' in the case matches for architectures that use `case' in
19291   # $output_verbose_cmd can trigger glob expansion during the loop
19292   # eval without this substitution.
19293   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19294
19295   for p in `eval $output_verbose_link_cmd`; do
19296     case $p in
19297
19298     -L* | -R* | -l*)
19299        # Some compilers place space between "-{L,R}" and the path.
19300        # Remove the space.
19301        if test $p = "-L" \
19302           || test $p = "-R"; then
19303          prev=$p
19304          continue
19305        else
19306          prev=
19307        fi
19308
19309        if test "$pre_test_object_deps_done" = no; then
19310          case $p in
19311          -L* | -R*)
19312            # Internal compiler library paths should come after those
19313            # provided the user.  The postdeps already come after the
19314            # user supplied libs so there is no need to process them.
19315            if test -z "$compiler_lib_search_path_CXX"; then
19316              compiler_lib_search_path_CXX="${prev}${p}"
19317            else
19318              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19319            fi
19320            ;;
19321          # The "-l" case would never come before the object being
19322          # linked, so don't bother handling this case.
19323          esac
19324        else
19325          if test -z "$postdeps_CXX"; then
19326            postdeps_CXX="${prev}${p}"
19327          else
19328            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19329          fi
19330        fi
19331        ;;
19332
19333     *.$objext)
19334        # This assumes that the test object file only shows up
19335        # once in the compiler output.
19336        if test "$p" = "conftest.$objext"; then
19337          pre_test_object_deps_done=yes
19338          continue
19339        fi
19340
19341        if test "$pre_test_object_deps_done" = no; then
19342          if test -z "$predep_objects_CXX"; then
19343            predep_objects_CXX="$p"
19344          else
19345            predep_objects_CXX="$predep_objects_CXX $p"
19346          fi
19347        else
19348          if test -z "$postdep_objects_CXX"; then
19349            postdep_objects_CXX="$p"
19350          else
19351            postdep_objects_CXX="$postdep_objects_CXX $p"
19352          fi
19353        fi
19354        ;;
19355
19356     *) ;; # Ignore the rest.
19357
19358     esac
19359   done
19360
19361   # Clean up.
19362   rm -f a.out a.exe
19363 else
19364   echo "libtool.m4: error: problem compiling CXX test program"
19365 fi
19366
19367 $rm -f confest.$objext
19368
19369 # PORTME: override above test on systems where it is broken
19370 case $host_os in
19371 interix3*)
19372   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19373   # hack all around it, let's just trust "g++" to DTRT.
19374   predep_objects_CXX=
19375   postdep_objects_CXX=
19376   postdeps_CXX=
19377   ;;
19378
19379 solaris*)
19380   case $cc_basename in
19381   CC*)
19382     # Adding this requires a known-good setup of shared libraries for
19383     # Sun compiler versions before 5.6, else PIC objects from an old
19384     # archive will be linked into the output, leading to subtle bugs.
19385     postdeps_CXX='-lCstd -lCrun'
19386     ;;
19387   esac
19388   ;;
19389 esac
19390
19391
19392 case " $postdeps_CXX " in
19393 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19394 esac
19395
19396 lt_prog_compiler_wl_CXX=
19397 lt_prog_compiler_pic_CXX=
19398 lt_prog_compiler_static_CXX=
19399
19400 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19401 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19402
19403   # C++ specific cases for pic, static, wl, etc.
19404   if test "$GXX" = yes; then
19405     lt_prog_compiler_wl_CXX='-Wl,'
19406     lt_prog_compiler_static_CXX='-static'
19407
19408     case $host_os in
19409     aix*)
19410       # All AIX code is PIC.
19411       if test "$host_cpu" = ia64; then
19412         # AIX 5 now supports IA64 processor
19413         lt_prog_compiler_static_CXX='-Bstatic'
19414       fi
19415       ;;
19416     amigaos*)
19417       # FIXME: we need at least 68020 code to build shared libraries, but
19418       # adding the `-m68020' flag to GCC prevents building anything better,
19419       # like `-m68040'.
19420       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19421       ;;
19422     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19423       # PIC is the default for these OSes.
19424       ;;
19425     mingw* | os2* | pw32*)
19426       # This hack is so that the source file can tell whether it is being
19427       # built for inclusion in a dll (and should export symbols for example).
19428       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19429       ;;
19430     darwin* | rhapsody*)
19431       # PIC is the default on this platform
19432       # Common symbols not allowed in MH_DYLIB files
19433       lt_prog_compiler_pic_CXX='-fno-common'
19434       ;;
19435     *djgpp*)
19436       # DJGPP does not support shared libraries at all
19437       lt_prog_compiler_pic_CXX=
19438       ;;
19439     interix3*)
19440       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19441       # Instead, we relocate shared libraries at runtime.
19442       ;;
19443     sysv4*MP*)
19444       if test -d /usr/nec; then
19445         lt_prog_compiler_pic_CXX=-Kconform_pic
19446       fi
19447       ;;
19448     hpux*)
19449       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19450       # not for PA HP-UX.
19451       case $host_cpu in
19452       hppa*64*|ia64*)
19453         ;;
19454       *)
19455         lt_prog_compiler_pic_CXX='-fPIC'
19456         ;;
19457       esac
19458       ;;
19459     *)
19460       lt_prog_compiler_pic_CXX='-fPIC'
19461       ;;
19462     esac
19463   else
19464     case $host_os in
19465       aix4* | aix5*)
19466         # All AIX code is PIC.
19467         if test "$host_cpu" = ia64; then
19468           # AIX 5 now supports IA64 processor
19469           lt_prog_compiler_static_CXX='-Bstatic'
19470         else
19471           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19472         fi
19473         ;;
19474       chorus*)
19475         case $cc_basename in
19476         cxch68*)
19477           # Green Hills C++ Compiler
19478           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19479           ;;
19480         esac
19481         ;;
19482        darwin*)
19483          # PIC is the default on this platform
19484          # Common symbols not allowed in MH_DYLIB files
19485          case $cc_basename in
19486            xlc*)
19487            lt_prog_compiler_pic_CXX='-qnocommon'
19488            lt_prog_compiler_wl_CXX='-Wl,'
19489            ;;
19490          esac
19491        ;;
19492       dgux*)
19493         case $cc_basename in
19494           ec++*)
19495             lt_prog_compiler_pic_CXX='-KPIC'
19496             ;;
19497           ghcx*)
19498             # Green Hills C++ Compiler
19499             lt_prog_compiler_pic_CXX='-pic'
19500             ;;
19501           *)
19502             ;;
19503         esac
19504         ;;
19505       freebsd* | kfreebsd*-gnu | dragonfly*)
19506         # FreeBSD uses GNU C++
19507         ;;
19508       hpux9* | hpux10* | hpux11*)
19509         case $cc_basename in
19510           CC*)
19511             lt_prog_compiler_wl_CXX='-Wl,'
19512             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19513             if test "$host_cpu" != ia64; then
19514               lt_prog_compiler_pic_CXX='+Z'
19515             fi
19516             ;;
19517           aCC*)
19518             lt_prog_compiler_wl_CXX='-Wl,'
19519             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19520             case $host_cpu in
19521             hppa*64*|ia64*)
19522               # +Z the default
19523               ;;
19524             *)
19525               lt_prog_compiler_pic_CXX='+Z'
19526               ;;
19527             esac
19528             ;;
19529           *)
19530             ;;
19531         esac
19532         ;;
19533       interix*)
19534         # This is c89, which is MS Visual C++ (no shared libs)
19535         # Anyone wants to do a port?
19536         ;;
19537       irix5* | irix6* | nonstopux*)
19538         case $cc_basename in
19539           CC*)
19540             lt_prog_compiler_wl_CXX='-Wl,'
19541             lt_prog_compiler_static_CXX='-non_shared'
19542             # CC pic flag -KPIC is the default.
19543             ;;
19544           *)
19545             ;;
19546         esac
19547         ;;
19548       linux*)
19549         case $cc_basename in
19550           KCC*)
19551             # KAI C++ Compiler
19552             lt_prog_compiler_wl_CXX='--backend -Wl,'
19553             lt_prog_compiler_pic_CXX='-fPIC'
19554             ;;
19555           icpc* | ecpc*)
19556             # Intel C++
19557             lt_prog_compiler_wl_CXX='-Wl,'
19558             lt_prog_compiler_pic_CXX='-KPIC'
19559             lt_prog_compiler_static_CXX='-static'
19560             ;;
19561           pgCC*)
19562             # Portland Group C++ compiler.
19563             lt_prog_compiler_wl_CXX='-Wl,'
19564             lt_prog_compiler_pic_CXX='-fpic'
19565             lt_prog_compiler_static_CXX='-Bstatic'
19566             ;;
19567           cxx*)
19568             # Compaq C++
19569             # Make sure the PIC flag is empty.  It appears that all Alpha
19570             # Linux and Compaq Tru64 Unix objects are PIC.
19571             lt_prog_compiler_pic_CXX=
19572             lt_prog_compiler_static_CXX='-non_shared'
19573             ;;
19574           *)
19575             ;;
19576         esac
19577         ;;
19578       lynxos*)
19579         ;;
19580       m88k*)
19581         ;;
19582       mvs*)
19583         case $cc_basename in
19584           cxx*)
19585             lt_prog_compiler_pic_CXX='-W c,exportall'
19586             ;;
19587           *)
19588             ;;
19589         esac
19590         ;;
19591       netbsd*)
19592         ;;
19593       osf3* | osf4* | osf5*)
19594         case $cc_basename in
19595           KCC*)
19596             lt_prog_compiler_wl_CXX='--backend -Wl,'
19597             ;;
19598           RCC*)
19599             # Rational C++ 2.4.1
19600             lt_prog_compiler_pic_CXX='-pic'
19601             ;;
19602           cxx*)
19603             # Digital/Compaq C++
19604             lt_prog_compiler_wl_CXX='-Wl,'
19605             # Make sure the PIC flag is empty.  It appears that all Alpha
19606             # Linux and Compaq Tru64 Unix objects are PIC.
19607             lt_prog_compiler_pic_CXX=
19608             lt_prog_compiler_static_CXX='-non_shared'
19609             ;;
19610           *)
19611             ;;
19612         esac
19613         ;;
19614       psos*)
19615         ;;
19616       solaris*)
19617         case $cc_basename in
19618           CC*)
19619             # Sun C++ 4.2, 5.x and Centerline C++
19620             lt_prog_compiler_pic_CXX='-KPIC'
19621             lt_prog_compiler_static_CXX='-Bstatic'
19622             lt_prog_compiler_wl_CXX='-Qoption ld '
19623             ;;
19624           gcx*)
19625             # Green Hills C++ Compiler
19626             lt_prog_compiler_pic_CXX='-PIC'
19627             ;;
19628           *)
19629             ;;
19630         esac
19631         ;;
19632       sunos4*)
19633         case $cc_basename in
19634           CC*)
19635             # Sun C++ 4.x
19636             lt_prog_compiler_pic_CXX='-pic'
19637             lt_prog_compiler_static_CXX='-Bstatic'
19638             ;;
19639           lcc*)
19640             # Lucid
19641             lt_prog_compiler_pic_CXX='-pic'
19642             ;;
19643           *)
19644             ;;
19645         esac
19646         ;;
19647       tandem*)
19648         case $cc_basename in
19649           NCC*)
19650             # NonStop-UX NCC 3.20
19651             lt_prog_compiler_pic_CXX='-KPIC'
19652             ;;
19653           *)
19654             ;;
19655         esac
19656         ;;
19657       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19658         case $cc_basename in
19659           CC*)
19660             lt_prog_compiler_wl_CXX='-Wl,'
19661             lt_prog_compiler_pic_CXX='-KPIC'
19662             lt_prog_compiler_static_CXX='-Bstatic'
19663             ;;
19664         esac
19665         ;;
19666       vxworks*)
19667         ;;
19668       *)
19669         lt_prog_compiler_can_build_shared_CXX=no
19670         ;;
19671     esac
19672   fi
19673
19674 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19675 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19676
19677 #
19678 # Check to make sure the PIC flag actually works.
19679 #
19680 if test -n "$lt_prog_compiler_pic_CXX"; then
19681
19682 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19683 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19684 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19685   echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687   lt_prog_compiler_pic_works_CXX=no
19688   ac_outfile=conftest.$ac_objext
19689    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19690    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19691    # Insert the option either (1) after the last *FLAGS variable, or
19692    # (2) before a word containing "conftest.", or (3) at the end.
19693    # Note that $ac_compile itself does not contain backslashes and begins
19694    # with a dollar sign (not a hyphen), so the echo should work correctly.
19695    # The option is referenced via a variable to avoid confusing sed.
19696    lt_compile=`echo "$ac_compile" | $SED \
19697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19699    -e 's:$: $lt_compiler_flag:'`
19700    (eval echo "\"\$as_me:19700: $lt_compile\"" >&5)
19701    (eval "$lt_compile" 2>conftest.err)
19702    ac_status=$?
19703    cat conftest.err >&5
19704    echo "$as_me:19704: \$? = $ac_status" >&5
19705    if (exit $ac_status) && test -s "$ac_outfile"; then
19706      # The compiler can only warn and ignore the option if not recognized
19707      # So say no if there are warnings other than the usual output.
19708      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19709      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19710      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19711        lt_prog_compiler_pic_works_CXX=yes
19712      fi
19713    fi
19714    $rm conftest*
19715
19716 fi
19717 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19718 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19719
19720 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19721     case $lt_prog_compiler_pic_CXX in
19722      "" | " "*) ;;
19723      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19724      esac
19725 else
19726     lt_prog_compiler_pic_CXX=
19727      lt_prog_compiler_can_build_shared_CXX=no
19728 fi
19729
19730 fi
19731 case $host_os in
19732   # For platforms which do not support PIC, -DPIC is meaningless:
19733   *djgpp*)
19734     lt_prog_compiler_pic_CXX=
19735     ;;
19736   *)
19737     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19738     ;;
19739 esac
19740
19741 #
19742 # Check to make sure the static flag actually works.
19743 #
19744 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19745 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19746 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19747 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19748   echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750   lt_prog_compiler_static_works_CXX=no
19751    save_LDFLAGS="$LDFLAGS"
19752    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19753    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19754    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19755      # The linker can only warn and ignore the option if not recognized
19756      # So say no if there are warnings
19757      if test -s conftest.err; then
19758        # Append any errors to the config.log.
19759        cat conftest.err 1>&5
19760        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19761        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19762        if diff conftest.exp conftest.er2 >/dev/null; then
19763          lt_prog_compiler_static_works_CXX=yes
19764        fi
19765      else
19766        lt_prog_compiler_static_works_CXX=yes
19767      fi
19768    fi
19769    $rm conftest*
19770    LDFLAGS="$save_LDFLAGS"
19771
19772 fi
19773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19774 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19775
19776 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19777     :
19778 else
19779     lt_prog_compiler_static_CXX=
19780 fi
19781
19782
19783 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19784 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19785 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   lt_cv_prog_compiler_c_o_CXX=no
19789    $rm -r conftest 2>/dev/null
19790    mkdir conftest
19791    cd conftest
19792    mkdir out
19793    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19794
19795    lt_compiler_flag="-o out/conftest2.$ac_objext"
19796    # Insert the option either (1) after the last *FLAGS variable, or
19797    # (2) before a word containing "conftest.", or (3) at the end.
19798    # Note that $ac_compile itself does not contain backslashes and begins
19799    # with a dollar sign (not a hyphen), so the echo should work correctly.
19800    lt_compile=`echo "$ac_compile" | $SED \
19801    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19802    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19803    -e 's:$: $lt_compiler_flag:'`
19804    (eval echo "\"\$as_me:19804: $lt_compile\"" >&5)
19805    (eval "$lt_compile" 2>out/conftest.err)
19806    ac_status=$?
19807    cat out/conftest.err >&5
19808    echo "$as_me:19808: \$? = $ac_status" >&5
19809    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19810    then
19811      # The compiler can only warn and ignore the option if not recognized
19812      # So say no if there are warnings
19813      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19814      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19815      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19816        lt_cv_prog_compiler_c_o_CXX=yes
19817      fi
19818    fi
19819    chmod u+w . 2>&5
19820    $rm conftest*
19821    # SGI C++ compiler will create directory out/ii_files/ for
19822    # template instantiation
19823    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19824    $rm out/* && rmdir out
19825    cd ..
19826    rmdir conftest
19827    $rm conftest*
19828
19829 fi
19830 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19831 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19832
19833
19834 hard_links="nottested"
19835 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19836   # do not overwrite the value of need_locks provided by the user
19837   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19838 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19839   hard_links=yes
19840   $rm conftest*
19841   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19842   touch conftest.a
19843   ln conftest.a conftest.b 2>&5 || hard_links=no
19844   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19845   { echo "$as_me:$LINENO: result: $hard_links" >&5
19846 echo "${ECHO_T}$hard_links" >&6; }
19847   if test "$hard_links" = no; then
19848     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19849 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19850     need_locks=warn
19851   fi
19852 else
19853   need_locks=no
19854 fi
19855
19856 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19857 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19858
19859   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19860   case $host_os in
19861   aix4* | aix5*)
19862     # If we're using GNU nm, then we don't want the "-C" option.
19863     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19864     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19865       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19866     else
19867       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19868     fi
19869     ;;
19870   pw32*)
19871     export_symbols_cmds_CXX="$ltdll_cmds"
19872   ;;
19873   cygwin* | mingw*)
19874     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19875   ;;
19876   *)
19877     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19878   ;;
19879   esac
19880
19881 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19882 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19883 test "$ld_shlibs_CXX" = no && can_build_shared=no
19884
19885 #
19886 # Do we need to explicitly link libc?
19887 #
19888 case "x$archive_cmds_need_lc_CXX" in
19889 x|xyes)
19890   # Assume -lc should be added
19891   archive_cmds_need_lc_CXX=yes
19892
19893   if test "$enable_shared" = yes && test "$GCC" = yes; then
19894     case $archive_cmds_CXX in
19895     *'~'*)
19896       # FIXME: we may have to deal with multi-command sequences.
19897       ;;
19898     '$CC '*)
19899       # Test whether the compiler implicitly links with -lc since on some
19900       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19901       # to ld, don't add -lc before -lgcc.
19902       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19904       $rm conftest*
19905       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19906
19907       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908   (eval $ac_compile) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } 2>conftest.err; then
19912         soname=conftest
19913         lib=conftest
19914         libobjs=conftest.$ac_objext
19915         deplibs=
19916         wl=$lt_prog_compiler_wl_CXX
19917         pic_flag=$lt_prog_compiler_pic_CXX
19918         compiler_flags=-v
19919         linker_flags=-v
19920         verstring=
19921         output_objdir=.
19922         libname=conftest
19923         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19924         allow_undefined_flag_CXX=
19925         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19926   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }
19930         then
19931           archive_cmds_need_lc_CXX=no
19932         else
19933           archive_cmds_need_lc_CXX=yes
19934         fi
19935         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19936       else
19937         cat conftest.err 1>&5
19938       fi
19939       $rm conftest*
19940       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19941 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19942       ;;
19943     esac
19944   fi
19945   ;;
19946 esac
19947
19948 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19950 library_names_spec=
19951 libname_spec='lib$name'
19952 soname_spec=
19953 shrext_cmds=".so"
19954 postinstall_cmds=
19955 postuninstall_cmds=
19956 finish_cmds=
19957 finish_eval=
19958 shlibpath_var=
19959 shlibpath_overrides_runpath=unknown
19960 version_type=none
19961 dynamic_linker="$host_os ld.so"
19962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19963 if test "$GCC" = yes; then
19964   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19965   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19966     # if the path contains ";" then we assume it to be the separator
19967     # otherwise default to the standard path separator (i.e. ":") - it is
19968     # assumed that no part of a normal pathname contains ";" but that should
19969     # okay in the real world where ";" in dirpaths is itself problematic.
19970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19971   else
19972     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19973   fi
19974 else
19975   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19976 fi
19977 need_lib_prefix=unknown
19978 hardcode_into_libs=no
19979
19980 # when you set need_version to no, make sure it does not cause -set_version
19981 # flags to be left without arguments
19982 need_version=unknown
19983
19984 case $host_os in
19985 aix3*)
19986   version_type=linux
19987   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19988   shlibpath_var=LIBPATH
19989
19990   # AIX 3 has no versioning support, so we append a major version to the name.
19991   soname_spec='${libname}${release}${shared_ext}$major'
19992   ;;
19993
19994 aix4* | aix5*)
19995   version_type=linux
19996   need_lib_prefix=no
19997   need_version=no
19998   hardcode_into_libs=yes
19999   if test "$host_cpu" = ia64; then
20000     # AIX 5 supports IA64
20001     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20002     shlibpath_var=LD_LIBRARY_PATH
20003   else
20004     # With GCC up to 2.95.x, collect2 would create an import file
20005     # for dependence libraries.  The import file would start with
20006     # the line `#! .'.  This would cause the generated library to
20007     # depend on `.', always an invalid library.  This was fixed in
20008     # development snapshots of GCC prior to 3.0.
20009     case $host_os in
20010       aix4 | aix4.[01] | aix4.[01].*)
20011       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20012            echo ' yes '
20013            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20014         :
20015       else
20016         can_build_shared=no
20017       fi
20018       ;;
20019     esac
20020     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20021     # soname into executable. Probably we can add versioning support to
20022     # collect2, so additional links can be useful in future.
20023     if test "$aix_use_runtimelinking" = yes; then
20024       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20025       # instead of lib<name>.a to let people know that these are not
20026       # typical AIX shared libraries.
20027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20028     else
20029       # We preserve .a as extension for shared libraries through AIX4.2
20030       # and later when we are not doing run time linking.
20031       library_names_spec='${libname}${release}.a $libname.a'
20032       soname_spec='${libname}${release}${shared_ext}$major'
20033     fi
20034     shlibpath_var=LIBPATH
20035   fi
20036   ;;
20037
20038 amigaos*)
20039   library_names_spec='$libname.ixlibrary $libname.a'
20040   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20041   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'
20042   ;;
20043
20044 beos*)
20045   library_names_spec='${libname}${shared_ext}'
20046   dynamic_linker="$host_os ld.so"
20047   shlibpath_var=LIBRARY_PATH
20048   ;;
20049
20050 bsdi[45]*)
20051   version_type=linux
20052   need_version=no
20053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20054   soname_spec='${libname}${release}${shared_ext}$major'
20055   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20056   shlibpath_var=LD_LIBRARY_PATH
20057   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20058   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20059   # the default ld.so.conf also contains /usr/contrib/lib and
20060   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20061   # libtool to hard-code these into programs
20062   ;;
20063
20064 cygwin* | mingw* | pw32*)
20065   version_type=windows
20066   shrext_cmds=".dll"
20067   need_version=no
20068   need_lib_prefix=no
20069
20070   case $GCC,$host_os in
20071   yes,cygwin* | yes,mingw* | yes,pw32*)
20072     library_names_spec='$libname.dll.a'
20073     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20074     postinstall_cmds='base_file=`basename \${file}`~
20075       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20076       dldir=$destdir/`dirname \$dlpath`~
20077       test -d \$dldir || mkdir -p \$dldir~
20078       $install_prog $dir/$dlname \$dldir/$dlname~
20079       chmod a+x \$dldir/$dlname'
20080     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20081       dlpath=$dir/\$dldll~
20082        $rm \$dlpath'
20083     shlibpath_overrides_runpath=yes
20084
20085     case $host_os in
20086     cygwin*)
20087       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20088       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20089       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20090       ;;
20091     mingw*)
20092       # MinGW DLLs use traditional 'lib' prefix
20093       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20094       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20095       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20096         # It is most probably a Windows format PATH printed by
20097         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20098         # path with ; separators, and with drive letters. We can handle the
20099         # drive letters (cygwin fileutils understands them), so leave them,
20100         # especially as we might pass files found there to a mingw objdump,
20101         # which wouldn't understand a cygwinified path. Ahh.
20102         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20103       else
20104         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20105       fi
20106       ;;
20107     pw32*)
20108       # pw32 DLLs use 'pw' prefix rather than 'lib'
20109       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20110       ;;
20111     esac
20112     ;;
20113
20114   *)
20115     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20116     ;;
20117   esac
20118   dynamic_linker='Win32 ld.exe'
20119   # FIXME: first we should search . and the directory the executable is in
20120   shlibpath_var=PATH
20121   ;;
20122
20123 darwin* | rhapsody*)
20124   dynamic_linker="$host_os dyld"
20125   version_type=darwin
20126   need_lib_prefix=no
20127   need_version=no
20128   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20129   soname_spec='${libname}${release}${major}$shared_ext'
20130   shlibpath_overrides_runpath=yes
20131   shlibpath_var=DYLD_LIBRARY_PATH
20132   shrext_cmds='.dylib'
20133   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20134   if test "$GCC" = yes; then
20135     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20136   else
20137     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20138   fi
20139   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20140   ;;
20141
20142 dgux*)
20143   version_type=linux
20144   need_lib_prefix=no
20145   need_version=no
20146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20147   soname_spec='${libname}${release}${shared_ext}$major'
20148   shlibpath_var=LD_LIBRARY_PATH
20149   ;;
20150
20151 freebsd1*)
20152   dynamic_linker=no
20153   ;;
20154
20155 kfreebsd*-gnu)
20156   version_type=linux
20157   need_lib_prefix=no
20158   need_version=no
20159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20160   soname_spec='${libname}${release}${shared_ext}$major'
20161   shlibpath_var=LD_LIBRARY_PATH
20162   shlibpath_overrides_runpath=no
20163   hardcode_into_libs=yes
20164   dynamic_linker='GNU ld.so'
20165   ;;
20166
20167 freebsd* | dragonfly*)
20168   # DragonFly does not have aout.  When/if they implement a new
20169   # versioning mechanism, adjust this.
20170   if test -x /usr/bin/objformat; then
20171     objformat=`/usr/bin/objformat`
20172   else
20173     case $host_os in
20174     freebsd[123]*) objformat=aout ;;
20175     *) objformat=elf ;;
20176     esac
20177   fi
20178   version_type=freebsd-$objformat
20179   case $version_type in
20180     freebsd-elf*)
20181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20182       need_version=no
20183       need_lib_prefix=no
20184       ;;
20185     freebsd-*)
20186       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20187       need_version=yes
20188       ;;
20189   esac
20190   shlibpath_var=LD_LIBRARY_PATH
20191   case $host_os in
20192   freebsd2*)
20193     shlibpath_overrides_runpath=yes
20194     ;;
20195   freebsd3.[01]* | freebsdelf3.[01]*)
20196     shlibpath_overrides_runpath=yes
20197     hardcode_into_libs=yes
20198     ;;
20199   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20200   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20201     shlibpath_overrides_runpath=no
20202     hardcode_into_libs=yes
20203     ;;
20204   freebsd*) # from 4.6 on
20205     shlibpath_overrides_runpath=yes
20206     hardcode_into_libs=yes
20207     ;;
20208   esac
20209   ;;
20210
20211 gnu*)
20212   version_type=linux
20213   need_lib_prefix=no
20214   need_version=no
20215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20216   soname_spec='${libname}${release}${shared_ext}$major'
20217   shlibpath_var=LD_LIBRARY_PATH
20218   hardcode_into_libs=yes
20219   ;;
20220
20221 hpux9* | hpux10* | hpux11*)
20222   # Give a soname corresponding to the major version so that dld.sl refuses to
20223   # link against other versions.
20224   version_type=sunos
20225   need_lib_prefix=no
20226   need_version=no
20227   case $host_cpu in
20228   ia64*)
20229     shrext_cmds='.so'
20230     hardcode_into_libs=yes
20231     dynamic_linker="$host_os dld.so"
20232     shlibpath_var=LD_LIBRARY_PATH
20233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235     soname_spec='${libname}${release}${shared_ext}$major'
20236     if test "X$HPUX_IA64_MODE" = X32; then
20237       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20238     else
20239       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20240     fi
20241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20242     ;;
20243    hppa*64*)
20244      shrext_cmds='.sl'
20245      hardcode_into_libs=yes
20246      dynamic_linker="$host_os dld.sl"
20247      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20248      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250      soname_spec='${libname}${release}${shared_ext}$major'
20251      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20252      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20253      ;;
20254    *)
20255     shrext_cmds='.sl'
20256     dynamic_linker="$host_os dld.sl"
20257     shlibpath_var=SHLIB_PATH
20258     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260     soname_spec='${libname}${release}${shared_ext}$major'
20261     ;;
20262   esac
20263   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20264   postinstall_cmds='chmod 555 $lib'
20265   ;;
20266
20267 interix3*)
20268   version_type=linux
20269   need_lib_prefix=no
20270   need_version=no
20271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20272   soname_spec='${libname}${release}${shared_ext}$major'
20273   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20274   shlibpath_var=LD_LIBRARY_PATH
20275   shlibpath_overrides_runpath=no
20276   hardcode_into_libs=yes
20277   ;;
20278
20279 irix5* | irix6* | nonstopux*)
20280   case $host_os in
20281     nonstopux*) version_type=nonstopux ;;
20282     *)
20283         if test "$lt_cv_prog_gnu_ld" = yes; then
20284                 version_type=linux
20285         else
20286                 version_type=irix
20287         fi ;;
20288   esac
20289   need_lib_prefix=no
20290   need_version=no
20291   soname_spec='${libname}${release}${shared_ext}$major'
20292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20293   case $host_os in
20294   irix5* | nonstopux*)
20295     libsuff= shlibsuff=
20296     ;;
20297   *)
20298     case $LD in # libtool.m4 will add one of these switches to LD
20299     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20300       libsuff= shlibsuff= libmagic=32-bit;;
20301     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20302       libsuff=32 shlibsuff=N32 libmagic=N32;;
20303     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20304       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20305     *) libsuff= shlibsuff= libmagic=never-match;;
20306     esac
20307     ;;
20308   esac
20309   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20310   shlibpath_overrides_runpath=no
20311   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20312   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20313   hardcode_into_libs=yes
20314   ;;
20315
20316 # No shared lib support for Linux oldld, aout, or coff.
20317 linux*oldld* | linux*aout* | linux*coff*)
20318   dynamic_linker=no
20319   ;;
20320
20321 # This must be Linux ELF.
20322 linux*)
20323   version_type=linux
20324   need_lib_prefix=no
20325   need_version=no
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327   soname_spec='${libname}${release}${shared_ext}$major'
20328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20329   shlibpath_var=LD_LIBRARY_PATH
20330   shlibpath_overrides_runpath=no
20331   # This implies no fast_install, which is unacceptable.
20332   # Some rework will be needed to allow for fast_install
20333   # before this can be enabled.
20334   hardcode_into_libs=yes
20335
20336   # Append ld.so.conf contents to the search path
20337   if test -f /etc/ld.so.conf; then
20338     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20339     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20340   fi
20341
20342   # We used to test for /lib/ld.so.1 and disable shared libraries on
20343   # powerpc, because MkLinux only supported shared libraries with the
20344   # GNU dynamic linker.  Since this was broken with cross compilers,
20345   # most powerpc-linux boxes support dynamic linking these days and
20346   # people can always --disable-shared, the test was removed, and we
20347   # assume the GNU/Linux dynamic linker is in use.
20348   dynamic_linker='GNU/Linux ld.so'
20349   ;;
20350
20351 knetbsd*-gnu)
20352   version_type=linux
20353   need_lib_prefix=no
20354   need_version=no
20355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20356   soname_spec='${libname}${release}${shared_ext}$major'
20357   shlibpath_var=LD_LIBRARY_PATH
20358   shlibpath_overrides_runpath=no
20359   hardcode_into_libs=yes
20360   dynamic_linker='GNU ld.so'
20361   ;;
20362
20363 netbsd*)
20364   version_type=sunos
20365   need_lib_prefix=no
20366   need_version=no
20367   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20369     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20370     dynamic_linker='NetBSD (a.out) ld.so'
20371   else
20372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20373     soname_spec='${libname}${release}${shared_ext}$major'
20374     dynamic_linker='NetBSD ld.elf_so'
20375   fi
20376   shlibpath_var=LD_LIBRARY_PATH
20377   shlibpath_overrides_runpath=yes
20378   hardcode_into_libs=yes
20379   ;;
20380
20381 newsos6)
20382   version_type=linux
20383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384   shlibpath_var=LD_LIBRARY_PATH
20385   shlibpath_overrides_runpath=yes
20386   ;;
20387
20388 nto-qnx*)
20389   version_type=linux
20390   need_lib_prefix=no
20391   need_version=no
20392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393   soname_spec='${libname}${release}${shared_ext}$major'
20394   shlibpath_var=LD_LIBRARY_PATH
20395   shlibpath_overrides_runpath=yes
20396   ;;
20397
20398 openbsd*)
20399   version_type=sunos
20400   sys_lib_dlsearch_path_spec="/usr/lib"
20401   need_lib_prefix=no
20402   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20403   case $host_os in
20404     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20405     *)                         need_version=no  ;;
20406   esac
20407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20408   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20409   shlibpath_var=LD_LIBRARY_PATH
20410   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20411     case $host_os in
20412       openbsd2.[89] | openbsd2.[89].*)
20413         shlibpath_overrides_runpath=no
20414         ;;
20415       *)
20416         shlibpath_overrides_runpath=yes
20417         ;;
20418       esac
20419   else
20420     shlibpath_overrides_runpath=yes
20421   fi
20422   ;;
20423
20424 os2*)
20425   libname_spec='$name'
20426   shrext_cmds=".dll"
20427   need_lib_prefix=no
20428   library_names_spec='$libname${shared_ext} $libname.a'
20429   dynamic_linker='OS/2 ld.exe'
20430   shlibpath_var=LIBPATH
20431   ;;
20432
20433 osf3* | osf4* | osf5*)
20434   version_type=osf
20435   need_lib_prefix=no
20436   need_version=no
20437   soname_spec='${libname}${release}${shared_ext}$major'
20438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439   shlibpath_var=LD_LIBRARY_PATH
20440   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20441   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20442   ;;
20443
20444 solaris*)
20445   version_type=linux
20446   need_lib_prefix=no
20447   need_version=no
20448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20449   soname_spec='${libname}${release}${shared_ext}$major'
20450   shlibpath_var=LD_LIBRARY_PATH
20451   shlibpath_overrides_runpath=yes
20452   hardcode_into_libs=yes
20453   # ldd complains unless libraries are executable
20454   postinstall_cmds='chmod +x $lib'
20455   ;;
20456
20457 sunos4*)
20458   version_type=sunos
20459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20460   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20461   shlibpath_var=LD_LIBRARY_PATH
20462   shlibpath_overrides_runpath=yes
20463   if test "$with_gnu_ld" = yes; then
20464     need_lib_prefix=no
20465   fi
20466   need_version=yes
20467   ;;
20468
20469 sysv4 | sysv4.3*)
20470   version_type=linux
20471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472   soname_spec='${libname}${release}${shared_ext}$major'
20473   shlibpath_var=LD_LIBRARY_PATH
20474   case $host_vendor in
20475     sni)
20476       shlibpath_overrides_runpath=no
20477       need_lib_prefix=no
20478       export_dynamic_flag_spec='${wl}-Blargedynsym'
20479       runpath_var=LD_RUN_PATH
20480       ;;
20481     siemens)
20482       need_lib_prefix=no
20483       ;;
20484     motorola)
20485       need_lib_prefix=no
20486       need_version=no
20487       shlibpath_overrides_runpath=no
20488       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20489       ;;
20490   esac
20491   ;;
20492
20493 sysv4*MP*)
20494   if test -d /usr/nec ;then
20495     version_type=linux
20496     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20497     soname_spec='$libname${shared_ext}.$major'
20498     shlibpath_var=LD_LIBRARY_PATH
20499   fi
20500   ;;
20501
20502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20503   version_type=freebsd-elf
20504   need_lib_prefix=no
20505   need_version=no
20506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20507   soname_spec='${libname}${release}${shared_ext}$major'
20508   shlibpath_var=LD_LIBRARY_PATH
20509   hardcode_into_libs=yes
20510   if test "$with_gnu_ld" = yes; then
20511     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20512     shlibpath_overrides_runpath=no
20513   else
20514     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20515     shlibpath_overrides_runpath=yes
20516     case $host_os in
20517       sco3.2v5*)
20518         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20519         ;;
20520     esac
20521   fi
20522   sys_lib_dlsearch_path_spec='/usr/lib'
20523   ;;
20524
20525 uts4*)
20526   version_type=linux
20527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20528   soname_spec='${libname}${release}${shared_ext}$major'
20529   shlibpath_var=LD_LIBRARY_PATH
20530   ;;
20531
20532 *)
20533   dynamic_linker=no
20534   ;;
20535 esac
20536 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20537 echo "${ECHO_T}$dynamic_linker" >&6; }
20538 test "$dynamic_linker" = no && can_build_shared=no
20539
20540 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20541 if test "$GCC" = yes; then
20542   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20543 fi
20544
20545 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20546 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20547 hardcode_action_CXX=
20548 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20549    test -n "$runpath_var_CXX" || \
20550    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20551
20552   # We can hardcode non-existant directories.
20553   if test "$hardcode_direct_CXX" != no &&
20554      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20555      # have to relink, otherwise we might link with an installed library
20556      # when we should be linking with a yet-to-be-installed one
20557      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20558      test "$hardcode_minus_L_CXX" != no; then
20559     # Linking always hardcodes the temporary library directory.
20560     hardcode_action_CXX=relink
20561   else
20562     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20563     hardcode_action_CXX=immediate
20564   fi
20565 else
20566   # We cannot hardcode anything, or else we can only hardcode existing
20567   # directories.
20568   hardcode_action_CXX=unsupported
20569 fi
20570 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20571 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20572
20573 if test "$hardcode_action_CXX" = relink; then
20574   # Fast installation is not supported
20575   enable_fast_install=no
20576 elif test "$shlibpath_overrides_runpath" = yes ||
20577      test "$enable_shared" = no; then
20578   # Fast installation is not necessary
20579   enable_fast_install=needless
20580 fi
20581
20582
20583 # The else clause should only fire when bootstrapping the
20584 # libtool distribution, otherwise you forgot to ship ltmain.sh
20585 # with your package, and you will get complaints that there are
20586 # no rules to generate ltmain.sh.
20587 if test -f "$ltmain"; then
20588   # See if we are running on zsh, and set the options which allow our commands through
20589   # without removal of \ escapes.
20590   if test -n "${ZSH_VERSION+set}" ; then
20591     setopt NO_GLOB_SUBST
20592   fi
20593   # Now quote all the things that may contain metacharacters while being
20594   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20595   # variables and quote the copies for generation of the libtool script.
20596   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20597     SED SHELL STRIP \
20598     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20599     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20600     deplibs_check_method reload_flag reload_cmds need_locks \
20601     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20602     lt_cv_sys_global_symbol_to_c_name_address \
20603     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20604     old_postinstall_cmds old_postuninstall_cmds \
20605     compiler_CXX \
20606     CC_CXX \
20607     LD_CXX \
20608     lt_prog_compiler_wl_CXX \
20609     lt_prog_compiler_pic_CXX \
20610     lt_prog_compiler_static_CXX \
20611     lt_prog_compiler_no_builtin_flag_CXX \
20612     export_dynamic_flag_spec_CXX \
20613     thread_safe_flag_spec_CXX \
20614     whole_archive_flag_spec_CXX \
20615     enable_shared_with_static_runtimes_CXX \
20616     old_archive_cmds_CXX \
20617     old_archive_from_new_cmds_CXX \
20618     predep_objects_CXX \
20619     postdep_objects_CXX \
20620     predeps_CXX \
20621     postdeps_CXX \
20622     compiler_lib_search_path_CXX \
20623     archive_cmds_CXX \
20624     archive_expsym_cmds_CXX \
20625     postinstall_cmds_CXX \
20626     postuninstall_cmds_CXX \
20627     old_archive_from_expsyms_cmds_CXX \
20628     allow_undefined_flag_CXX \
20629     no_undefined_flag_CXX \
20630     export_symbols_cmds_CXX \
20631     hardcode_libdir_flag_spec_CXX \
20632     hardcode_libdir_flag_spec_ld_CXX \
20633     hardcode_libdir_separator_CXX \
20634     hardcode_automatic_CXX \
20635     module_cmds_CXX \
20636     module_expsym_cmds_CXX \
20637     lt_cv_prog_compiler_c_o_CXX \
20638     exclude_expsyms_CXX \
20639     include_expsyms_CXX; do
20640
20641     case $var in
20642     old_archive_cmds_CXX | \
20643     old_archive_from_new_cmds_CXX | \
20644     archive_cmds_CXX | \
20645     archive_expsym_cmds_CXX | \
20646     module_cmds_CXX | \
20647     module_expsym_cmds_CXX | \
20648     old_archive_from_expsyms_cmds_CXX | \
20649     export_symbols_cmds_CXX | \
20650     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20651     postinstall_cmds | postuninstall_cmds | \
20652     old_postinstall_cmds | old_postuninstall_cmds | \
20653     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20654       # Double-quote double-evaled strings.
20655       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20656       ;;
20657     *)
20658       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20659       ;;
20660     esac
20661   done
20662
20663   case $lt_echo in
20664   *'\$0 --fallback-echo"')
20665     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20666     ;;
20667   esac
20668
20669 cfgfile="$ofile"
20670
20671   cat <<__EOF__ >> "$cfgfile"
20672 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20673
20674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20675
20676 # Shell to use when invoking shell scripts.
20677 SHELL=$lt_SHELL
20678
20679 # Whether or not to build shared libraries.
20680 build_libtool_libs=$enable_shared
20681
20682 # Whether or not to build static libraries.
20683 build_old_libs=$enable_static
20684
20685 # Whether or not to add -lc for building shared libraries.
20686 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20687
20688 # Whether or not to disallow shared libs when runtime libs are static
20689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20690
20691 # Whether or not to optimize for fast installation.
20692 fast_install=$enable_fast_install
20693
20694 # The host system.
20695 host_alias=$host_alias
20696 host=$host
20697 host_os=$host_os
20698
20699 # The build system.
20700 build_alias=$build_alias
20701 build=$build
20702 build_os=$build_os
20703
20704 # An echo program that does not interpret backslashes.
20705 echo=$lt_echo
20706
20707 # The archiver.
20708 AR=$lt_AR
20709 AR_FLAGS=$lt_AR_FLAGS
20710
20711 # A C compiler.
20712 LTCC=$lt_LTCC
20713
20714 # LTCC compiler flags.
20715 LTCFLAGS=$lt_LTCFLAGS
20716
20717 # A language-specific compiler.
20718 CC=$lt_compiler_CXX
20719
20720 # Is the compiler the GNU C compiler?
20721 with_gcc=$GCC_CXX
20722
20723 # An ERE matcher.
20724 EGREP=$lt_EGREP
20725
20726 # The linker used to build libraries.
20727 LD=$lt_LD_CXX
20728
20729 # Whether we need hard or soft links.
20730 LN_S=$lt_LN_S
20731
20732 # A BSD-compatible nm program.
20733 NM=$lt_NM
20734
20735 # A symbol stripping program
20736 STRIP=$lt_STRIP
20737
20738 # Used to examine libraries when file_magic_cmd begins "file"
20739 MAGIC_CMD=$MAGIC_CMD
20740
20741 # Used on cygwin: DLL creation program.
20742 DLLTOOL="$DLLTOOL"
20743
20744 # Used on cygwin: object dumper.
20745 OBJDUMP="$OBJDUMP"
20746
20747 # Used on cygwin: assembler.
20748 AS="$AS"
20749
20750 # The name of the directory that contains temporary libtool files.
20751 objdir=$objdir
20752
20753 # How to create reloadable object files.
20754 reload_flag=$lt_reload_flag
20755 reload_cmds=$lt_reload_cmds
20756
20757 # How to pass a linker flag through the compiler.
20758 wl=$lt_lt_prog_compiler_wl_CXX
20759
20760 # Object file suffix (normally "o").
20761 objext="$ac_objext"
20762
20763 # Old archive suffix (normally "a").
20764 libext="$libext"
20765
20766 # Shared library suffix (normally ".so").
20767 shrext_cmds='$shrext_cmds'
20768
20769 # Executable file suffix (normally "").
20770 exeext="$exeext"
20771
20772 # Additional compiler flags for building library objects.
20773 pic_flag=$lt_lt_prog_compiler_pic_CXX
20774 pic_mode=$pic_mode
20775
20776 # What is the maximum length of a command?
20777 max_cmd_len=$lt_cv_sys_max_cmd_len
20778
20779 # Does compiler simultaneously support -c and -o options?
20780 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20781
20782 # Must we lock files when doing compilation?
20783 need_locks=$lt_need_locks
20784
20785 # Do we need the lib prefix for modules?
20786 need_lib_prefix=$need_lib_prefix
20787
20788 # Do we need a version for libraries?
20789 need_version=$need_version
20790
20791 # Whether dlopen is supported.
20792 dlopen_support=$enable_dlopen
20793
20794 # Whether dlopen of programs is supported.
20795 dlopen_self=$enable_dlopen_self
20796
20797 # Whether dlopen of statically linked programs is supported.
20798 dlopen_self_static=$enable_dlopen_self_static
20799
20800 # Compiler flag to prevent dynamic linking.
20801 link_static_flag=$lt_lt_prog_compiler_static_CXX
20802
20803 # Compiler flag to turn off builtin functions.
20804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20805
20806 # Compiler flag to allow reflexive dlopens.
20807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20808
20809 # Compiler flag to generate shared objects directly from archives.
20810 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20811
20812 # Compiler flag to generate thread-safe objects.
20813 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20814
20815 # Library versioning type.
20816 version_type=$version_type
20817
20818 # Format of library name prefix.
20819 libname_spec=$lt_libname_spec
20820
20821 # List of archive names.  First name is the real one, the rest are links.
20822 # The last name is the one that the linker finds with -lNAME.
20823 library_names_spec=$lt_library_names_spec
20824
20825 # The coded name of the library, if different from the real name.
20826 soname_spec=$lt_soname_spec
20827
20828 # Commands used to build and install an old-style archive.
20829 RANLIB=$lt_RANLIB
20830 old_archive_cmds=$lt_old_archive_cmds_CXX
20831 old_postinstall_cmds=$lt_old_postinstall_cmds
20832 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20833
20834 # Create an old-style archive from a shared archive.
20835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20836
20837 # Create a temporary old-style archive to link instead of a shared archive.
20838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20839
20840 # Commands used to build and install a shared archive.
20841 archive_cmds=$lt_archive_cmds_CXX
20842 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20843 postinstall_cmds=$lt_postinstall_cmds
20844 postuninstall_cmds=$lt_postuninstall_cmds
20845
20846 # Commands used to build a loadable module (assumed same as above if empty)
20847 module_cmds=$lt_module_cmds_CXX
20848 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20849
20850 # Commands to strip libraries.
20851 old_striplib=$lt_old_striplib
20852 striplib=$lt_striplib
20853
20854 # Dependencies to place before the objects being linked to create a
20855 # shared library.
20856 predep_objects=$lt_predep_objects_CXX
20857
20858 # Dependencies to place after the objects being linked to create a
20859 # shared library.
20860 postdep_objects=$lt_postdep_objects_CXX
20861
20862 # Dependencies to place before the objects being linked to create a
20863 # shared library.
20864 predeps=$lt_predeps_CXX
20865
20866 # Dependencies to place after the objects being linked to create a
20867 # shared library.
20868 postdeps=$lt_postdeps_CXX
20869
20870 # The library search path used internally by the compiler when linking
20871 # a shared library.
20872 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20873
20874 # Method to check whether dependent libraries are shared objects.
20875 deplibs_check_method=$lt_deplibs_check_method
20876
20877 # Command to use when deplibs_check_method == file_magic.
20878 file_magic_cmd=$lt_file_magic_cmd
20879
20880 # Flag that allows shared libraries with undefined symbols to be built.
20881 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20882
20883 # Flag that forces no undefined symbols.
20884 no_undefined_flag=$lt_no_undefined_flag_CXX
20885
20886 # Commands used to finish a libtool library installation in a directory.
20887 finish_cmds=$lt_finish_cmds
20888
20889 # Same as above, but a single script fragment to be evaled but not shown.
20890 finish_eval=$lt_finish_eval
20891
20892 # Take the output of nm and produce a listing of raw symbols and C names.
20893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20894
20895 # Transform the output of nm in a proper C declaration
20896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20897
20898 # Transform the output of nm in a C name address pair
20899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20900
20901 # This is the shared library runtime path variable.
20902 runpath_var=$runpath_var
20903
20904 # This is the shared library path variable.
20905 shlibpath_var=$shlibpath_var
20906
20907 # Is shlibpath searched before the hard-coded library search path?
20908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20909
20910 # How to hardcode a shared library path into an executable.
20911 hardcode_action=$hardcode_action_CXX
20912
20913 # Whether we should hardcode library paths into libraries.
20914 hardcode_into_libs=$hardcode_into_libs
20915
20916 # Flag to hardcode \$libdir into a binary during linking.
20917 # This must work even if \$libdir does not exist.
20918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20919
20920 # If ld is used when linking, flag to hardcode \$libdir into
20921 # a binary during linking. This must work even if \$libdir does
20922 # not exist.
20923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20924
20925 # Whether we need a single -rpath flag with a separated argument.
20926 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20927
20928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20929 # resulting binary.
20930 hardcode_direct=$hardcode_direct_CXX
20931
20932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20933 # resulting binary.
20934 hardcode_minus_L=$hardcode_minus_L_CXX
20935
20936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20937 # the resulting binary.
20938 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20939
20940 # Set to yes if building a shared library automatically hardcodes DIR into the library
20941 # and all subsequent libraries and executables linked against it.
20942 hardcode_automatic=$hardcode_automatic_CXX
20943
20944 # Variables whose values should be saved in libtool wrapper scripts and
20945 # restored at relink time.
20946 variables_saved_for_relink="$variables_saved_for_relink"
20947
20948 # Whether libtool must link a program against all its dependency libraries.
20949 link_all_deplibs=$link_all_deplibs_CXX
20950
20951 # Compile-time system search path for libraries
20952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20953
20954 # Run-time system search path for libraries
20955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20956
20957 # Fix the shell variable \$srcfile for the compiler.
20958 fix_srcfile_path="$fix_srcfile_path_CXX"
20959
20960 # Set to yes if exported symbols are required.
20961 always_export_symbols=$always_export_symbols_CXX
20962
20963 # The commands to list exported symbols.
20964 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20965
20966 # The commands to extract the exported symbol list from a shared archive.
20967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20968
20969 # Symbols that should not be listed in the preloaded symbols.
20970 exclude_expsyms=$lt_exclude_expsyms_CXX
20971
20972 # Symbols that must always be exported.
20973 include_expsyms=$lt_include_expsyms_CXX
20974
20975 # ### END LIBTOOL TAG CONFIG: $tagname
20976
20977 __EOF__
20978
20979
20980 else
20981   # If there is no Makefile yet, we rely on a make rule to execute
20982   # `config.status --recheck' to rerun these tests and create the
20983   # libtool script then.
20984   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20985   if test -f "$ltmain_in"; then
20986     test -f Makefile && make "$ltmain"
20987   fi
20988 fi
20989
20990
20991 ac_ext=c
20992 ac_cpp='$CPP $CPPFLAGS'
20993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20996
20997 CC=$lt_save_CC
20998 LDCXX=$LD
20999 LD=$lt_save_LD
21000 GCC=$lt_save_GCC
21001 with_gnu_ldcxx=$with_gnu_ld
21002 with_gnu_ld=$lt_save_with_gnu_ld
21003 lt_cv_path_LDCXX=$lt_cv_path_LD
21004 lt_cv_path_LD=$lt_save_path_LD
21005 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21006 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21007
21008         else
21009           tagname=""
21010         fi
21011         ;;
21012
21013       F77)
21014         if test -n "$F77" && test "X$F77" != "Xno"; then
21015
21016 ac_ext=f
21017 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21018 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21020
21021
21022 archive_cmds_need_lc_F77=no
21023 allow_undefined_flag_F77=
21024 always_export_symbols_F77=no
21025 archive_expsym_cmds_F77=
21026 export_dynamic_flag_spec_F77=
21027 hardcode_direct_F77=no
21028 hardcode_libdir_flag_spec_F77=
21029 hardcode_libdir_flag_spec_ld_F77=
21030 hardcode_libdir_separator_F77=
21031 hardcode_minus_L_F77=no
21032 hardcode_automatic_F77=no
21033 module_cmds_F77=
21034 module_expsym_cmds_F77=
21035 link_all_deplibs_F77=unknown
21036 old_archive_cmds_F77=$old_archive_cmds
21037 no_undefined_flag_F77=
21038 whole_archive_flag_spec_F77=
21039 enable_shared_with_static_runtimes_F77=no
21040
21041 # Source file extension for f77 test sources.
21042 ac_ext=f
21043
21044 # Object file extension for compiled f77 test sources.
21045 objext=o
21046 objext_F77=$objext
21047
21048 # Code to be used in simple compile tests
21049 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21050
21051 # Code to be used in simple link tests
21052 lt_simple_link_test_code="      program t\n      end\n"
21053
21054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21055
21056 # If no C compiler was specified, use CC.
21057 LTCC=${LTCC-"$CC"}
21058
21059 # If no C compiler flags were specified, use CFLAGS.
21060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21061
21062 # Allow CC to be a program name with arguments.
21063 compiler=$CC
21064
21065
21066 # save warnings/boilerplate of simple test code
21067 ac_outfile=conftest.$ac_objext
21068 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21070 _lt_compiler_boilerplate=`cat conftest.err`
21071 $rm conftest*
21072
21073 ac_outfile=conftest.$ac_objext
21074 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21076 _lt_linker_boilerplate=`cat conftest.err`
21077 $rm conftest*
21078
21079
21080 # Allow CC to be a program name with arguments.
21081 lt_save_CC="$CC"
21082 CC=${F77-"f77"}
21083 compiler=$CC
21084 compiler_F77=$CC
21085 for cc_temp in $compiler""; do
21086   case $cc_temp in
21087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21089     \-*) ;;
21090     *) break;;
21091   esac
21092 done
21093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21094
21095
21096 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21098 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21099 echo "${ECHO_T}$can_build_shared" >&6; }
21100
21101 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21103 test "$can_build_shared" = "no" && enable_shared=no
21104
21105 # On AIX, shared libraries and static libraries use the same namespace, and
21106 # are all built from PIC.
21107 case $host_os in
21108 aix3*)
21109   test "$enable_shared" = yes && enable_static=no
21110   if test -n "$RANLIB"; then
21111     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21112     postinstall_cmds='$RANLIB $lib'
21113   fi
21114   ;;
21115 aix4* | aix5*)
21116   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21117     test "$enable_shared" = yes && enable_static=no
21118   fi
21119   ;;
21120 esac
21121 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21122 echo "${ECHO_T}$enable_shared" >&6; }
21123
21124 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21125 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21126 # Make sure either enable_shared or enable_static is yes.
21127 test "$enable_shared" = yes || enable_static=yes
21128 { echo "$as_me:$LINENO: result: $enable_static" >&5
21129 echo "${ECHO_T}$enable_static" >&6; }
21130
21131 GCC_F77="$G77"
21132 LD_F77="$LD"
21133
21134 lt_prog_compiler_wl_F77=
21135 lt_prog_compiler_pic_F77=
21136 lt_prog_compiler_static_F77=
21137
21138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21140
21141   if test "$GCC" = yes; then
21142     lt_prog_compiler_wl_F77='-Wl,'
21143     lt_prog_compiler_static_F77='-static'
21144
21145     case $host_os in
21146       aix*)
21147       # All AIX code is PIC.
21148       if test "$host_cpu" = ia64; then
21149         # AIX 5 now supports IA64 processor
21150         lt_prog_compiler_static_F77='-Bstatic'
21151       fi
21152       ;;
21153
21154     amigaos*)
21155       # FIXME: we need at least 68020 code to build shared libraries, but
21156       # adding the `-m68020' flag to GCC prevents building anything better,
21157       # like `-m68040'.
21158       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21159       ;;
21160
21161     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21162       # PIC is the default for these OSes.
21163       ;;
21164
21165     mingw* | pw32* | os2*)
21166       # This hack is so that the source file can tell whether it is being
21167       # built for inclusion in a dll (and should export symbols for example).
21168       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21169       ;;
21170
21171     darwin* | rhapsody*)
21172       # PIC is the default on this platform
21173       # Common symbols not allowed in MH_DYLIB files
21174       lt_prog_compiler_pic_F77='-fno-common'
21175       ;;
21176
21177     interix3*)
21178       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21179       # Instead, we relocate shared libraries at runtime.
21180       ;;
21181
21182     msdosdjgpp*)
21183       # Just because we use GCC doesn't mean we suddenly get shared libraries
21184       # on systems that don't support them.
21185       lt_prog_compiler_can_build_shared_F77=no
21186       enable_shared=no
21187       ;;
21188
21189     sysv4*MP*)
21190       if test -d /usr/nec; then
21191         lt_prog_compiler_pic_F77=-Kconform_pic
21192       fi
21193       ;;
21194
21195     hpux*)
21196       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21197       # not for PA HP-UX.
21198       case $host_cpu in
21199       hppa*64*|ia64*)
21200         # +Z the default
21201         ;;
21202       *)
21203         lt_prog_compiler_pic_F77='-fPIC'
21204         ;;
21205       esac
21206       ;;
21207
21208     *)
21209       lt_prog_compiler_pic_F77='-fPIC'
21210       ;;
21211     esac
21212   else
21213     # PORTME Check for flag to pass linker flags through the system compiler.
21214     case $host_os in
21215     aix*)
21216       lt_prog_compiler_wl_F77='-Wl,'
21217       if test "$host_cpu" = ia64; then
21218         # AIX 5 now supports IA64 processor
21219         lt_prog_compiler_static_F77='-Bstatic'
21220       else
21221         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21222       fi
21223       ;;
21224       darwin*)
21225         # PIC is the default on this platform
21226         # Common symbols not allowed in MH_DYLIB files
21227        case $cc_basename in
21228          xlc*)
21229          lt_prog_compiler_pic_F77='-qnocommon'
21230          lt_prog_compiler_wl_F77='-Wl,'
21231          ;;
21232        esac
21233        ;;
21234
21235     mingw* | pw32* | os2*)
21236       # This hack is so that the source file can tell whether it is being
21237       # built for inclusion in a dll (and should export symbols for example).
21238       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21239       ;;
21240
21241     hpux9* | hpux10* | hpux11*)
21242       lt_prog_compiler_wl_F77='-Wl,'
21243       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21244       # not for PA HP-UX.
21245       case $host_cpu in
21246       hppa*64*|ia64*)
21247         # +Z the default
21248         ;;
21249       *)
21250         lt_prog_compiler_pic_F77='+Z'
21251         ;;
21252       esac
21253       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21254       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21255       ;;
21256
21257     irix5* | irix6* | nonstopux*)
21258       lt_prog_compiler_wl_F77='-Wl,'
21259       # PIC (with -KPIC) is the default.
21260       lt_prog_compiler_static_F77='-non_shared'
21261       ;;
21262
21263     newsos6)
21264       lt_prog_compiler_pic_F77='-KPIC'
21265       lt_prog_compiler_static_F77='-Bstatic'
21266       ;;
21267
21268     linux*)
21269       case $cc_basename in
21270       icc* | ecc*)
21271         lt_prog_compiler_wl_F77='-Wl,'
21272         lt_prog_compiler_pic_F77='-KPIC'
21273         lt_prog_compiler_static_F77='-static'
21274         ;;
21275       pgcc* | pgf77* | pgf90* | pgf95*)
21276         # Portland Group compilers (*not* the Pentium gcc compiler,
21277         # which looks to be a dead project)
21278         lt_prog_compiler_wl_F77='-Wl,'
21279         lt_prog_compiler_pic_F77='-fpic'
21280         lt_prog_compiler_static_F77='-Bstatic'
21281         ;;
21282       ccc*)
21283         lt_prog_compiler_wl_F77='-Wl,'
21284         # All Alpha code is PIC.
21285         lt_prog_compiler_static_F77='-non_shared'
21286         ;;
21287       esac
21288       ;;
21289
21290     osf3* | osf4* | osf5*)
21291       lt_prog_compiler_wl_F77='-Wl,'
21292       # All OSF/1 code is PIC.
21293       lt_prog_compiler_static_F77='-non_shared'
21294       ;;
21295
21296     solaris*)
21297       lt_prog_compiler_pic_F77='-KPIC'
21298       lt_prog_compiler_static_F77='-Bstatic'
21299       case $cc_basename in
21300       f77* | f90* | f95*)
21301         lt_prog_compiler_wl_F77='-Qoption ld ';;
21302       *)
21303         lt_prog_compiler_wl_F77='-Wl,';;
21304       esac
21305       ;;
21306
21307     sunos4*)
21308       lt_prog_compiler_wl_F77='-Qoption ld '
21309       lt_prog_compiler_pic_F77='-PIC'
21310       lt_prog_compiler_static_F77='-Bstatic'
21311       ;;
21312
21313     sysv4 | sysv4.2uw2* | sysv4.3*)
21314       lt_prog_compiler_wl_F77='-Wl,'
21315       lt_prog_compiler_pic_F77='-KPIC'
21316       lt_prog_compiler_static_F77='-Bstatic'
21317       ;;
21318
21319     sysv4*MP*)
21320       if test -d /usr/nec ;then
21321         lt_prog_compiler_pic_F77='-Kconform_pic'
21322         lt_prog_compiler_static_F77='-Bstatic'
21323       fi
21324       ;;
21325
21326     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21327       lt_prog_compiler_wl_F77='-Wl,'
21328       lt_prog_compiler_pic_F77='-KPIC'
21329       lt_prog_compiler_static_F77='-Bstatic'
21330       ;;
21331
21332     unicos*)
21333       lt_prog_compiler_wl_F77='-Wl,'
21334       lt_prog_compiler_can_build_shared_F77=no
21335       ;;
21336
21337     uts4*)
21338       lt_prog_compiler_pic_F77='-pic'
21339       lt_prog_compiler_static_F77='-Bstatic'
21340       ;;
21341
21342     *)
21343       lt_prog_compiler_can_build_shared_F77=no
21344       ;;
21345     esac
21346   fi
21347
21348 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21349 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21350
21351 #
21352 # Check to make sure the PIC flag actually works.
21353 #
21354 if test -n "$lt_prog_compiler_pic_F77"; then
21355
21356 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21357 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21358 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21359   echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361   lt_prog_compiler_pic_works_F77=no
21362   ac_outfile=conftest.$ac_objext
21363    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21364    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21365    # Insert the option either (1) after the last *FLAGS variable, or
21366    # (2) before a word containing "conftest.", or (3) at the end.
21367    # Note that $ac_compile itself does not contain backslashes and begins
21368    # with a dollar sign (not a hyphen), so the echo should work correctly.
21369    # The option is referenced via a variable to avoid confusing sed.
21370    lt_compile=`echo "$ac_compile" | $SED \
21371    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21373    -e 's:$: $lt_compiler_flag:'`
21374    (eval echo "\"\$as_me:21374: $lt_compile\"" >&5)
21375    (eval "$lt_compile" 2>conftest.err)
21376    ac_status=$?
21377    cat conftest.err >&5
21378    echo "$as_me:21378: \$? = $ac_status" >&5
21379    if (exit $ac_status) && test -s "$ac_outfile"; then
21380      # The compiler can only warn and ignore the option if not recognized
21381      # So say no if there are warnings other than the usual output.
21382      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21383      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21384      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21385        lt_prog_compiler_pic_works_F77=yes
21386      fi
21387    fi
21388    $rm conftest*
21389
21390 fi
21391 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21392 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21393
21394 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21395     case $lt_prog_compiler_pic_F77 in
21396      "" | " "*) ;;
21397      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21398      esac
21399 else
21400     lt_prog_compiler_pic_F77=
21401      lt_prog_compiler_can_build_shared_F77=no
21402 fi
21403
21404 fi
21405 case $host_os in
21406   # For platforms which do not support PIC, -DPIC is meaningless:
21407   *djgpp*)
21408     lt_prog_compiler_pic_F77=
21409     ;;
21410   *)
21411     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21412     ;;
21413 esac
21414
21415 #
21416 # Check to make sure the static flag actually works.
21417 #
21418 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21419 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21420 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21421 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21422   echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424   lt_prog_compiler_static_works_F77=no
21425    save_LDFLAGS="$LDFLAGS"
21426    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21427    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21428    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21429      # The linker can only warn and ignore the option if not recognized
21430      # So say no if there are warnings
21431      if test -s conftest.err; then
21432        # Append any errors to the config.log.
21433        cat conftest.err 1>&5
21434        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21435        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21436        if diff conftest.exp conftest.er2 >/dev/null; then
21437          lt_prog_compiler_static_works_F77=yes
21438        fi
21439      else
21440        lt_prog_compiler_static_works_F77=yes
21441      fi
21442    fi
21443    $rm conftest*
21444    LDFLAGS="$save_LDFLAGS"
21445
21446 fi
21447 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21448 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21449
21450 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21451     :
21452 else
21453     lt_prog_compiler_static_F77=
21454 fi
21455
21456
21457 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21458 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21459 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   lt_cv_prog_compiler_c_o_F77=no
21463    $rm -r conftest 2>/dev/null
21464    mkdir conftest
21465    cd conftest
21466    mkdir out
21467    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468
21469    lt_compiler_flag="-o out/conftest2.$ac_objext"
21470    # Insert the option either (1) after the last *FLAGS variable, or
21471    # (2) before a word containing "conftest.", or (3) at the end.
21472    # Note that $ac_compile itself does not contain backslashes and begins
21473    # with a dollar sign (not a hyphen), so the echo should work correctly.
21474    lt_compile=`echo "$ac_compile" | $SED \
21475    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477    -e 's:$: $lt_compiler_flag:'`
21478    (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
21479    (eval "$lt_compile" 2>out/conftest.err)
21480    ac_status=$?
21481    cat out/conftest.err >&5
21482    echo "$as_me:21482: \$? = $ac_status" >&5
21483    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21484    then
21485      # The compiler can only warn and ignore the option if not recognized
21486      # So say no if there are warnings
21487      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21488      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21489      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21490        lt_cv_prog_compiler_c_o_F77=yes
21491      fi
21492    fi
21493    chmod u+w . 2>&5
21494    $rm conftest*
21495    # SGI C++ compiler will create directory out/ii_files/ for
21496    # template instantiation
21497    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21498    $rm out/* && rmdir out
21499    cd ..
21500    rmdir conftest
21501    $rm conftest*
21502
21503 fi
21504 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21505 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21506
21507
21508 hard_links="nottested"
21509 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21510   # do not overwrite the value of need_locks provided by the user
21511   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21512 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21513   hard_links=yes
21514   $rm conftest*
21515   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21516   touch conftest.a
21517   ln conftest.a conftest.b 2>&5 || hard_links=no
21518   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21519   { echo "$as_me:$LINENO: result: $hard_links" >&5
21520 echo "${ECHO_T}$hard_links" >&6; }
21521   if test "$hard_links" = no; then
21522     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21523 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21524     need_locks=warn
21525   fi
21526 else
21527   need_locks=no
21528 fi
21529
21530 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21531 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21532
21533   runpath_var=
21534   allow_undefined_flag_F77=
21535   enable_shared_with_static_runtimes_F77=no
21536   archive_cmds_F77=
21537   archive_expsym_cmds_F77=
21538   old_archive_From_new_cmds_F77=
21539   old_archive_from_expsyms_cmds_F77=
21540   export_dynamic_flag_spec_F77=
21541   whole_archive_flag_spec_F77=
21542   thread_safe_flag_spec_F77=
21543   hardcode_libdir_flag_spec_F77=
21544   hardcode_libdir_flag_spec_ld_F77=
21545   hardcode_libdir_separator_F77=
21546   hardcode_direct_F77=no
21547   hardcode_minus_L_F77=no
21548   hardcode_shlibpath_var_F77=unsupported
21549   link_all_deplibs_F77=unknown
21550   hardcode_automatic_F77=no
21551   module_cmds_F77=
21552   module_expsym_cmds_F77=
21553   always_export_symbols_F77=no
21554   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21555   # include_expsyms should be a list of space-separated symbols to be *always*
21556   # included in the symbol list
21557   include_expsyms_F77=
21558   # exclude_expsyms can be an extended regexp of symbols to exclude
21559   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21560   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21561   # as well as any symbol that contains `d'.
21562   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21563   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21564   # platforms (ab)use it in PIC code, but their linkers get confused if
21565   # the symbol is explicitly referenced.  Since portable code cannot
21566   # rely on this symbol name, it's probably fine to never include it in
21567   # preloaded symbol tables.
21568   extract_expsyms_cmds=
21569   # Just being paranoid about ensuring that cc_basename is set.
21570   for cc_temp in $compiler""; do
21571   case $cc_temp in
21572     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21573     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21574     \-*) ;;
21575     *) break;;
21576   esac
21577 done
21578 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21579
21580   case $host_os in
21581   cygwin* | mingw* | pw32*)
21582     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21583     # When not using gcc, we currently assume that we are using
21584     # Microsoft Visual C++.
21585     if test "$GCC" != yes; then
21586       with_gnu_ld=no
21587     fi
21588     ;;
21589   interix*)
21590     # we just hope/assume this is gcc and not c89 (= MSVC++)
21591     with_gnu_ld=yes
21592     ;;
21593   openbsd*)
21594     with_gnu_ld=no
21595     ;;
21596   esac
21597
21598   ld_shlibs_F77=yes
21599   if test "$with_gnu_ld" = yes; then
21600     # If archive_cmds runs LD, not CC, wlarc should be empty
21601     wlarc='${wl}'
21602
21603     # Set some defaults for GNU ld with shared library support. These
21604     # are reset later if shared libraries are not supported. Putting them
21605     # here allows them to be overridden if necessary.
21606     runpath_var=LD_RUN_PATH
21607     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21608     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21609     # ancient GNU ld didn't support --whole-archive et. al.
21610     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21611         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21612       else
21613         whole_archive_flag_spec_F77=
21614     fi
21615     supports_anon_versioning=no
21616     case `$LD -v 2>/dev/null` in
21617       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21618       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21619       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21620       *\ 2.11.*) ;; # other 2.11 versions
21621       *) supports_anon_versioning=yes ;;
21622     esac
21623
21624     # See if GNU ld supports shared libraries.
21625     case $host_os in
21626     aix3* | aix4* | aix5*)
21627       # On AIX/PPC, the GNU linker is very broken
21628       if test "$host_cpu" != ia64; then
21629         ld_shlibs_F77=no
21630         cat <<EOF 1>&2
21631
21632 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21633 *** to be unable to reliably create shared libraries on AIX.
21634 *** Therefore, libtool is disabling shared libraries support.  If you
21635 *** really care for shared libraries, you may want to modify your PATH
21636 *** so that a non-GNU linker is found, and then restart.
21637
21638 EOF
21639       fi
21640       ;;
21641
21642     amigaos*)
21643       archive_cmds_F77='$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)'
21644       hardcode_libdir_flag_spec_F77='-L$libdir'
21645       hardcode_minus_L_F77=yes
21646
21647       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21648       # that the semantics of dynamic libraries on AmigaOS, at least up
21649       # to version 4, is to share data among multiple programs linked
21650       # with the same dynamic library.  Since this doesn't match the
21651       # behavior of shared libraries on other platforms, we can't use
21652       # them.
21653       ld_shlibs_F77=no
21654       ;;
21655
21656     beos*)
21657       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21658         allow_undefined_flag_F77=unsupported
21659         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21660         # support --undefined.  This deserves some investigation.  FIXME
21661         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21662       else
21663         ld_shlibs_F77=no
21664       fi
21665       ;;
21666
21667     cygwin* | mingw* | pw32*)
21668       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21669       # as there is no search path for DLLs.
21670       hardcode_libdir_flag_spec_F77='-L$libdir'
21671       allow_undefined_flag_F77=unsupported
21672       always_export_symbols_F77=no
21673       enable_shared_with_static_runtimes_F77=yes
21674       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21675
21676       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21677         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21678         # If the export-symbols file already is a .def file (1st line
21679         # is EXPORTS), use it as is; otherwise, prepend...
21680         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21681           cp $export_symbols $output_objdir/$soname.def;
21682         else
21683           echo EXPORTS > $output_objdir/$soname.def;
21684           cat $export_symbols >> $output_objdir/$soname.def;
21685         fi~
21686         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21687       else
21688         ld_shlibs_F77=no
21689       fi
21690       ;;
21691
21692     interix3*)
21693       hardcode_direct_F77=no
21694       hardcode_shlibpath_var_F77=no
21695       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21696       export_dynamic_flag_spec_F77='${wl}-E'
21697       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21698       # Instead, shared libraries are loaded at an image base (0x10000000 by
21699       # default) and relocated if they conflict, which is a slow very memory
21700       # consuming and fragmenting process.  To avoid this, we pick a random,
21701       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21702       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21703       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21704       archive_expsym_cmds_F77='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'
21705       ;;
21706
21707     linux*)
21708       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21709         tmp_addflag=
21710         case $cc_basename,$host_cpu in
21711         pgcc*)                          # Portland Group C compiler
21712           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21713           tmp_addflag=' $pic_flag'
21714           ;;
21715         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21716           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21717           tmp_addflag=' $pic_flag -Mnomain' ;;
21718         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21719           tmp_addflag=' -i_dynamic' ;;
21720         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21721           tmp_addflag=' -i_dynamic -nofor_main' ;;
21722         ifc* | ifort*)                  # Intel Fortran compiler
21723           tmp_addflag=' -nofor_main' ;;
21724         esac
21725         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21726
21727         if test $supports_anon_versioning = yes; then
21728           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21729   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21730   $echo "local: *; };" >> $output_objdir/$libname.ver~
21731           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21732         fi
21733       else
21734         ld_shlibs_F77=no
21735       fi
21736       ;;
21737
21738     netbsd*)
21739       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21740         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21741         wlarc=
21742       else
21743         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21744         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21745       fi
21746       ;;
21747
21748     solaris*)
21749       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21750         ld_shlibs_F77=no
21751         cat <<EOF 1>&2
21752
21753 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21754 *** create shared libraries on Solaris systems.  Therefore, libtool
21755 *** is disabling shared libraries support.  We urge you to upgrade GNU
21756 *** binutils to release 2.9.1 or newer.  Another option is to modify
21757 *** your PATH or compiler configuration so that the native linker is
21758 *** used, and then restart.
21759
21760 EOF
21761       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21764       else
21765         ld_shlibs_F77=no
21766       fi
21767       ;;
21768
21769     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21770       case `$LD -v 2>&1` in
21771         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21772         ld_shlibs_F77=no
21773         cat <<_LT_EOF 1>&2
21774
21775 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21776 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21777 *** is disabling shared libraries support.  We urge you to upgrade GNU
21778 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21779 *** your PATH or compiler configuration so that the native linker is
21780 *** used, and then restart.
21781
21782 _LT_EOF
21783         ;;
21784         *)
21785           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21786             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21787             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21788             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21789           else
21790             ld_shlibs_F77=no
21791           fi
21792         ;;
21793       esac
21794       ;;
21795
21796     sunos4*)
21797       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21798       wlarc=
21799       hardcode_direct_F77=yes
21800       hardcode_shlibpath_var_F77=no
21801       ;;
21802
21803     *)
21804       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21805         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21806         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21807       else
21808         ld_shlibs_F77=no
21809       fi
21810       ;;
21811     esac
21812
21813     if test "$ld_shlibs_F77" = no; then
21814       runpath_var=
21815       hardcode_libdir_flag_spec_F77=
21816       export_dynamic_flag_spec_F77=
21817       whole_archive_flag_spec_F77=
21818     fi
21819   else
21820     # PORTME fill in a description of your system's linker (not GNU ld)
21821     case $host_os in
21822     aix3*)
21823       allow_undefined_flag_F77=unsupported
21824       always_export_symbols_F77=yes
21825       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
21826       # Note: this linker hardcodes the directories in LIBPATH if there
21827       # are no directories specified by -L.
21828       hardcode_minus_L_F77=yes
21829       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21830         # Neither direct hardcoding nor static linking is supported with a
21831         # broken collect2.
21832         hardcode_direct_F77=unsupported
21833       fi
21834       ;;
21835
21836     aix4* | aix5*)
21837       if test "$host_cpu" = ia64; then
21838         # On IA64, the linker does run time linking by default, so we don't
21839         # have to do anything special.
21840         aix_use_runtimelinking=no
21841         exp_sym_flag='-Bexport'
21842         no_entry_flag=""
21843       else
21844         # If we're using GNU nm, then we don't want the "-C" option.
21845         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21846         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21847           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21848         else
21849           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21850         fi
21851         aix_use_runtimelinking=no
21852
21853         # Test if we are trying to use run time linking or normal
21854         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21855         # need to do runtime linking.
21856         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21857           for ld_flag in $LDFLAGS; do
21858           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21859             aix_use_runtimelinking=yes
21860             break
21861           fi
21862           done
21863           ;;
21864         esac
21865
21866         exp_sym_flag='-bexport'
21867         no_entry_flag='-bnoentry'
21868       fi
21869
21870       # When large executables or shared objects are built, AIX ld can
21871       # have problems creating the table of contents.  If linking a library
21872       # or program results in "error TOC overflow" add -mminimal-toc to
21873       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21874       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21875
21876       archive_cmds_F77=''
21877       hardcode_direct_F77=yes
21878       hardcode_libdir_separator_F77=':'
21879       link_all_deplibs_F77=yes
21880
21881       if test "$GCC" = yes; then
21882         case $host_os in aix4.[012]|aix4.[012].*)
21883         # We only want to do this on AIX 4.2 and lower, the check
21884         # below for broken collect2 doesn't work under 4.3+
21885           collect2name=`${CC} -print-prog-name=collect2`
21886           if test -f "$collect2name" && \
21887            strings "$collect2name" | grep resolve_lib_name >/dev/null
21888           then
21889           # We have reworked collect2
21890           hardcode_direct_F77=yes
21891           else
21892           # We have old collect2
21893           hardcode_direct_F77=unsupported
21894           # It fails to find uninstalled libraries when the uninstalled
21895           # path is not listed in the libpath.  Setting hardcode_minus_L
21896           # to unsupported forces relinking
21897           hardcode_minus_L_F77=yes
21898           hardcode_libdir_flag_spec_F77='-L$libdir'
21899           hardcode_libdir_separator_F77=
21900           fi
21901           ;;
21902         esac
21903         shared_flag='-shared'
21904         if test "$aix_use_runtimelinking" = yes; then
21905           shared_flag="$shared_flag "'${wl}-G'
21906         fi
21907       else
21908         # not using gcc
21909         if test "$host_cpu" = ia64; then
21910         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21911         # chokes on -Wl,-G. The following line is correct:
21912           shared_flag='-G'
21913         else
21914           if test "$aix_use_runtimelinking" = yes; then
21915             shared_flag='${wl}-G'
21916           else
21917             shared_flag='${wl}-bM:SRE'
21918           fi
21919         fi
21920       fi
21921
21922       # It seems that -bexpall does not export symbols beginning with
21923       # underscore (_), so it is better to generate a list of symbols to export.
21924       always_export_symbols_F77=yes
21925       if test "$aix_use_runtimelinking" = yes; then
21926         # Warning - without using the other runtime loading flags (-brtl),
21927         # -berok will link without error, but may produce a broken library.
21928         allow_undefined_flag_F77='-berok'
21929        # Determine the default libpath from the value encoded in an empty executable.
21930        cat >conftest.$ac_ext <<_ACEOF
21931       program main
21932
21933       end
21934 _ACEOF
21935 rm -f conftest.$ac_objext conftest$ac_exeext
21936 if { (ac_try="$ac_link"
21937 case "(($ac_try" in
21938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939   *) ac_try_echo=$ac_try;;
21940 esac
21941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942   (eval "$ac_link") 2>conftest.er1
21943   ac_status=$?
21944   grep -v '^ *+' conftest.er1 >conftest.err
21945   rm -f conftest.er1
21946   cat conftest.err >&5
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); } &&
21949          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21950   { (case "(($ac_try" in
21951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952   *) ac_try_echo=$ac_try;;
21953 esac
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955   (eval "$ac_try") 2>&5
21956   ac_status=$?
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   (exit $ac_status); }; } &&
21959          { ac_try='test -s conftest$ac_exeext'
21960   { (case "(($ac_try" in
21961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962   *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965   (eval "$ac_try") 2>&5
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); }; }; then
21969
21970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21971 }'`
21972 # Check for a 64-bit object if we didn't find anything.
21973 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21974 }'`; fi
21975 else
21976   echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979
21980 fi
21981
21982 rm -f core conftest.err conftest.$ac_objext \
21983       conftest$ac_exeext conftest.$ac_ext
21984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21985
21986        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21987         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21988        else
21989         if test "$host_cpu" = ia64; then
21990           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21991           allow_undefined_flag_F77="-z nodefs"
21992           archive_expsym_cmds_F77="\$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"
21993         else
21994          # Determine the default libpath from the value encoded in an empty executable.
21995          cat >conftest.$ac_ext <<_ACEOF
21996       program main
21997
21998       end
21999 _ACEOF
22000 rm -f conftest.$ac_objext conftest$ac_exeext
22001 if { (ac_try="$ac_link"
22002 case "(($ac_try" in
22003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004   *) ac_try_echo=$ac_try;;
22005 esac
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007   (eval "$ac_link") 2>conftest.er1
22008   ac_status=$?
22009   grep -v '^ *+' conftest.er1 >conftest.err
22010   rm -f conftest.er1
22011   cat conftest.err >&5
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); } &&
22014          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22015   { (case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020   (eval "$ac_try") 2>&5
22021   ac_status=$?
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); }; } &&
22024          { ac_try='test -s conftest$ac_exeext'
22025   { (case "(($ac_try" in
22026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027   *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030   (eval "$ac_try") 2>&5
22031   ac_status=$?
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); }; }; then
22034
22035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22036 }'`
22037 # Check for a 64-bit object if we didn't find anything.
22038 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22039 }'`; fi
22040 else
22041   echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22043
22044
22045 fi
22046
22047 rm -f core conftest.err conftest.$ac_objext \
22048       conftest$ac_exeext conftest.$ac_ext
22049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22050
22051          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22052           # Warning - without using the other run time loading flags,
22053           # -berok will link without error, but may produce a broken library.
22054           no_undefined_flag_F77=' ${wl}-bernotok'
22055           allow_undefined_flag_F77=' ${wl}-berok'
22056           # Exported symbols can be pulled into shared objects from archives
22057           whole_archive_flag_spec_F77='$convenience'
22058           archive_cmds_need_lc_F77=yes
22059           # This is similar to how AIX traditionally builds its shared libraries.
22060           archive_expsym_cmds_F77="\$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'
22061         fi
22062       fi
22063       ;;
22064
22065     amigaos*)
22066       archive_cmds_F77='$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)'
22067       hardcode_libdir_flag_spec_F77='-L$libdir'
22068       hardcode_minus_L_F77=yes
22069       # see comment about different semantics on the GNU ld section
22070       ld_shlibs_F77=no
22071       ;;
22072
22073     bsdi[45]*)
22074       export_dynamic_flag_spec_F77=-rdynamic
22075       ;;
22076
22077     cygwin* | mingw* | pw32*)
22078       # When not using gcc, we currently assume that we are using
22079       # Microsoft Visual C++.
22080       # hardcode_libdir_flag_spec is actually meaningless, as there is
22081       # no search path for DLLs.
22082       hardcode_libdir_flag_spec_F77=' '
22083       allow_undefined_flag_F77=unsupported
22084       # Tell ltmain to make .lib files, not .a files.
22085       libext=lib
22086       # Tell ltmain to make .dll files, not .so files.
22087       shrext_cmds=".dll"
22088       # FIXME: Setting linknames here is a bad hack.
22089       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22090       # The linker will automatically build a .lib file if we build a DLL.
22091       old_archive_From_new_cmds_F77='true'
22092       # FIXME: Should let the user specify the lib program.
22093       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22094       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22095       enable_shared_with_static_runtimes_F77=yes
22096       ;;
22097
22098     darwin* | rhapsody*)
22099       case $host_os in
22100         rhapsody* | darwin1.[012])
22101          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22102          ;;
22103        *) # Darwin 1.3 on
22104          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22105            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22106          else
22107            case ${MACOSX_DEPLOYMENT_TARGET} in
22108              10.[012])
22109                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22110                ;;
22111              10.*)
22112                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22113                ;;
22114            esac
22115          fi
22116          ;;
22117       esac
22118       archive_cmds_need_lc_F77=no
22119       hardcode_direct_F77=no
22120       hardcode_automatic_F77=yes
22121       hardcode_shlibpath_var_F77=unsupported
22122       whole_archive_flag_spec_F77=''
22123       link_all_deplibs_F77=yes
22124     if test "$GCC" = yes ; then
22125         output_verbose_link_cmd='echo'
22126         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22127       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22128       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22129       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22130       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22131     else
22132       case $cc_basename in
22133         xlc*)
22134          output_verbose_link_cmd='echo'
22135          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22136          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22137           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22138          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22139           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22140           ;;
22141        *)
22142          ld_shlibs_F77=no
22143           ;;
22144       esac
22145     fi
22146       ;;
22147
22148     dgux*)
22149       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150       hardcode_libdir_flag_spec_F77='-L$libdir'
22151       hardcode_shlibpath_var_F77=no
22152       ;;
22153
22154     freebsd1*)
22155       ld_shlibs_F77=no
22156       ;;
22157
22158     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22159     # support.  Future versions do this automatically, but an explicit c++rt0.o
22160     # does not break anything, and helps significantly (at the cost of a little
22161     # extra space).
22162     freebsd2.2*)
22163       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22164       hardcode_libdir_flag_spec_F77='-R$libdir'
22165       hardcode_direct_F77=yes
22166       hardcode_shlibpath_var_F77=no
22167       ;;
22168
22169     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22170     freebsd2*)
22171       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22172       hardcode_direct_F77=yes
22173       hardcode_minus_L_F77=yes
22174       hardcode_shlibpath_var_F77=no
22175       ;;
22176
22177     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22178     freebsd* | kfreebsd*-gnu | dragonfly*)
22179       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22180       hardcode_libdir_flag_spec_F77='-R$libdir'
22181       hardcode_direct_F77=yes
22182       hardcode_shlibpath_var_F77=no
22183       ;;
22184
22185     hpux9*)
22186       if test "$GCC" = yes; then
22187         archive_cmds_F77='$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'
22188       else
22189         archive_cmds_F77='$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'
22190       fi
22191       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22192       hardcode_libdir_separator_F77=:
22193       hardcode_direct_F77=yes
22194
22195       # hardcode_minus_L: Not really in the search PATH,
22196       # but as the default location of the library.
22197       hardcode_minus_L_F77=yes
22198       export_dynamic_flag_spec_F77='${wl}-E'
22199       ;;
22200
22201     hpux10*)
22202       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22203         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22204       else
22205         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22206       fi
22207       if test "$with_gnu_ld" = no; then
22208         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22209         hardcode_libdir_separator_F77=:
22210
22211         hardcode_direct_F77=yes
22212         export_dynamic_flag_spec_F77='${wl}-E'
22213
22214         # hardcode_minus_L: Not really in the search PATH,
22215         # but as the default location of the library.
22216         hardcode_minus_L_F77=yes
22217       fi
22218       ;;
22219
22220     hpux11*)
22221       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22222         case $host_cpu in
22223         hppa*64*)
22224           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22225           ;;
22226         ia64*)
22227           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22228           ;;
22229         *)
22230           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22231           ;;
22232         esac
22233       else
22234         case $host_cpu in
22235         hppa*64*)
22236           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22237           ;;
22238         ia64*)
22239           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22240           ;;
22241         *)
22242           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22243           ;;
22244         esac
22245       fi
22246       if test "$with_gnu_ld" = no; then
22247         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22248         hardcode_libdir_separator_F77=:
22249
22250         case $host_cpu in
22251         hppa*64*|ia64*)
22252           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22253           hardcode_direct_F77=no
22254           hardcode_shlibpath_var_F77=no
22255           ;;
22256         *)
22257           hardcode_direct_F77=yes
22258           export_dynamic_flag_spec_F77='${wl}-E'
22259
22260           # hardcode_minus_L: Not really in the search PATH,
22261           # but as the default location of the library.
22262           hardcode_minus_L_F77=yes
22263           ;;
22264         esac
22265       fi
22266       ;;
22267
22268     irix5* | irix6* | nonstopux*)
22269       if test "$GCC" = yes; then
22270         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22271       else
22272         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22273         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22274       fi
22275       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22276       hardcode_libdir_separator_F77=:
22277       link_all_deplibs_F77=yes
22278       ;;
22279
22280     netbsd*)
22281       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22282         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22283       else
22284         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22285       fi
22286       hardcode_libdir_flag_spec_F77='-R$libdir'
22287       hardcode_direct_F77=yes
22288       hardcode_shlibpath_var_F77=no
22289       ;;
22290
22291     newsos6)
22292       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22293       hardcode_direct_F77=yes
22294       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22295       hardcode_libdir_separator_F77=:
22296       hardcode_shlibpath_var_F77=no
22297       ;;
22298
22299     openbsd*)
22300       hardcode_direct_F77=yes
22301       hardcode_shlibpath_var_F77=no
22302       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22303         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22304         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22305         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22306         export_dynamic_flag_spec_F77='${wl}-E'
22307       else
22308        case $host_os in
22309          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22310            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22311            hardcode_libdir_flag_spec_F77='-R$libdir'
22312            ;;
22313          *)
22314            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22315            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22316            ;;
22317        esac
22318       fi
22319       ;;
22320
22321     os2*)
22322       hardcode_libdir_flag_spec_F77='-L$libdir'
22323       hardcode_minus_L_F77=yes
22324       allow_undefined_flag_F77=unsupported
22325       archive_cmds_F77='$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'
22326       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22327       ;;
22328
22329     osf3*)
22330       if test "$GCC" = yes; then
22331         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22332         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22333       else
22334         allow_undefined_flag_F77=' -expect_unresolved \*'
22335         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22336       fi
22337       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22338       hardcode_libdir_separator_F77=:
22339       ;;
22340
22341     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22342       if test "$GCC" = yes; then
22343         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22344         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22345         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22346       else
22347         allow_undefined_flag_F77=' -expect_unresolved \*'
22348         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22349         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22350         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22351
22352         # Both c and cxx compiler support -rpath directly
22353         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22354       fi
22355       hardcode_libdir_separator_F77=:
22356       ;;
22357
22358     solaris*)
22359       no_undefined_flag_F77=' -z text'
22360       if test "$GCC" = yes; then
22361         wlarc='${wl}'
22362         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22363         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22364           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22365       else
22366         wlarc=''
22367         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22368         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22369         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22370       fi
22371       hardcode_libdir_flag_spec_F77='-R$libdir'
22372       hardcode_shlibpath_var_F77=no
22373       case $host_os in
22374       solaris2.[0-5] | solaris2.[0-5].*) ;;
22375       *)
22376         # The compiler driver will combine linker options so we
22377         # cannot just pass the convience library names through
22378         # without $wl, iff we do not link with $LD.
22379         # Luckily, gcc supports the same syntax we need for Sun Studio.
22380         # Supported since Solaris 2.6 (maybe 2.5.1?)
22381         case $wlarc in
22382         '')
22383           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22384         *)
22385           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22386         esac ;;
22387       esac
22388       link_all_deplibs_F77=yes
22389       ;;
22390
22391     sunos4*)
22392       if test "x$host_vendor" = xsequent; then
22393         # Use $CC to link under sequent, because it throws in some extra .o
22394         # files that make .init and .fini sections work.
22395         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22396       else
22397         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22398       fi
22399       hardcode_libdir_flag_spec_F77='-L$libdir'
22400       hardcode_direct_F77=yes
22401       hardcode_minus_L_F77=yes
22402       hardcode_shlibpath_var_F77=no
22403       ;;
22404
22405     sysv4)
22406       case $host_vendor in
22407         sni)
22408           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22409           hardcode_direct_F77=yes # is this really true???
22410         ;;
22411         siemens)
22412           ## LD is ld it makes a PLAMLIB
22413           ## CC just makes a GrossModule.
22414           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22415           reload_cmds_F77='$CC -r -o $output$reload_objs'
22416           hardcode_direct_F77=no
22417         ;;
22418         motorola)
22419           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22420           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22421         ;;
22422       esac
22423       runpath_var='LD_RUN_PATH'
22424       hardcode_shlibpath_var_F77=no
22425       ;;
22426
22427     sysv4.3*)
22428       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22429       hardcode_shlibpath_var_F77=no
22430       export_dynamic_flag_spec_F77='-Bexport'
22431       ;;
22432
22433     sysv4*MP*)
22434       if test -d /usr/nec; then
22435         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22436         hardcode_shlibpath_var_F77=no
22437         runpath_var=LD_RUN_PATH
22438         hardcode_runpath_var=yes
22439         ld_shlibs_F77=yes
22440       fi
22441       ;;
22442
22443     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22444       no_undefined_flag_F77='${wl}-z,text'
22445       archive_cmds_need_lc_F77=no
22446       hardcode_shlibpath_var_F77=no
22447       runpath_var='LD_RUN_PATH'
22448
22449       if test "$GCC" = yes; then
22450         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22451         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22452       else
22453         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22454         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22455       fi
22456       ;;
22457
22458     sysv5* | sco3.2v5* | sco5v6*)
22459       # Note: We can NOT use -z defs as we might desire, because we do not
22460       # link with -lc, and that would cause any symbols used from libc to
22461       # always be unresolved, which means just about no library would
22462       # ever link correctly.  If we're not using GNU ld we use -z text
22463       # though, which does catch some bad symbols but isn't as heavy-handed
22464       # as -z defs.
22465       no_undefined_flag_F77='${wl}-z,text'
22466       allow_undefined_flag_F77='${wl}-z,nodefs'
22467       archive_cmds_need_lc_F77=no
22468       hardcode_shlibpath_var_F77=no
22469       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22470       hardcode_libdir_separator_F77=':'
22471       link_all_deplibs_F77=yes
22472       export_dynamic_flag_spec_F77='${wl}-Bexport'
22473       runpath_var='LD_RUN_PATH'
22474
22475       if test "$GCC" = yes; then
22476         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22477         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22478       else
22479         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22480         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22481       fi
22482       ;;
22483
22484     uts4*)
22485       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22486       hardcode_libdir_flag_spec_F77='-L$libdir'
22487       hardcode_shlibpath_var_F77=no
22488       ;;
22489
22490     *)
22491       ld_shlibs_F77=no
22492       ;;
22493     esac
22494   fi
22495
22496 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22497 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22498 test "$ld_shlibs_F77" = no && can_build_shared=no
22499
22500 #
22501 # Do we need to explicitly link libc?
22502 #
22503 case "x$archive_cmds_need_lc_F77" in
22504 x|xyes)
22505   # Assume -lc should be added
22506   archive_cmds_need_lc_F77=yes
22507
22508   if test "$enable_shared" = yes && test "$GCC" = yes; then
22509     case $archive_cmds_F77 in
22510     *'~'*)
22511       # FIXME: we may have to deal with multi-command sequences.
22512       ;;
22513     '$CC '*)
22514       # Test whether the compiler implicitly links with -lc since on some
22515       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22516       # to ld, don't add -lc before -lgcc.
22517       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22518 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22519       $rm conftest*
22520       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22521
22522       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523   (eval $ac_compile) 2>&5
22524   ac_status=$?
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); } 2>conftest.err; then
22527         soname=conftest
22528         lib=conftest
22529         libobjs=conftest.$ac_objext
22530         deplibs=
22531         wl=$lt_prog_compiler_wl_F77
22532         pic_flag=$lt_prog_compiler_pic_F77
22533         compiler_flags=-v
22534         linker_flags=-v
22535         verstring=
22536         output_objdir=.
22537         libname=conftest
22538         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22539         allow_undefined_flag_F77=
22540         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22541   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22542   ac_status=$?
22543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); }
22545         then
22546           archive_cmds_need_lc_F77=no
22547         else
22548           archive_cmds_need_lc_F77=yes
22549         fi
22550         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22551       else
22552         cat conftest.err 1>&5
22553       fi
22554       $rm conftest*
22555       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22556 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22557       ;;
22558     esac
22559   fi
22560   ;;
22561 esac
22562
22563 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22564 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22565 library_names_spec=
22566 libname_spec='lib$name'
22567 soname_spec=
22568 shrext_cmds=".so"
22569 postinstall_cmds=
22570 postuninstall_cmds=
22571 finish_cmds=
22572 finish_eval=
22573 shlibpath_var=
22574 shlibpath_overrides_runpath=unknown
22575 version_type=none
22576 dynamic_linker="$host_os ld.so"
22577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22578 if test "$GCC" = yes; then
22579   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22580   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22581     # if the path contains ";" then we assume it to be the separator
22582     # otherwise default to the standard path separator (i.e. ":") - it is
22583     # assumed that no part of a normal pathname contains ";" but that should
22584     # okay in the real world where ";" in dirpaths is itself problematic.
22585     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22586   else
22587     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22588   fi
22589 else
22590   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22591 fi
22592 need_lib_prefix=unknown
22593 hardcode_into_libs=no
22594
22595 # when you set need_version to no, make sure it does not cause -set_version
22596 # flags to be left without arguments
22597 need_version=unknown
22598
22599 case $host_os in
22600 aix3*)
22601   version_type=linux
22602   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22603   shlibpath_var=LIBPATH
22604
22605   # AIX 3 has no versioning support, so we append a major version to the name.
22606   soname_spec='${libname}${release}${shared_ext}$major'
22607   ;;
22608
22609 aix4* | aix5*)
22610   version_type=linux
22611   need_lib_prefix=no
22612   need_version=no
22613   hardcode_into_libs=yes
22614   if test "$host_cpu" = ia64; then
22615     # AIX 5 supports IA64
22616     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22617     shlibpath_var=LD_LIBRARY_PATH
22618   else
22619     # With GCC up to 2.95.x, collect2 would create an import file
22620     # for dependence libraries.  The import file would start with
22621     # the line `#! .'.  This would cause the generated library to
22622     # depend on `.', always an invalid library.  This was fixed in
22623     # development snapshots of GCC prior to 3.0.
22624     case $host_os in
22625       aix4 | aix4.[01] | aix4.[01].*)
22626       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22627            echo ' yes '
22628            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22629         :
22630       else
22631         can_build_shared=no
22632       fi
22633       ;;
22634     esac
22635     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22636     # soname into executable. Probably we can add versioning support to
22637     # collect2, so additional links can be useful in future.
22638     if test "$aix_use_runtimelinking" = yes; then
22639       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22640       # instead of lib<name>.a to let people know that these are not
22641       # typical AIX shared libraries.
22642       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22643     else
22644       # We preserve .a as extension for shared libraries through AIX4.2
22645       # and later when we are not doing run time linking.
22646       library_names_spec='${libname}${release}.a $libname.a'
22647       soname_spec='${libname}${release}${shared_ext}$major'
22648     fi
22649     shlibpath_var=LIBPATH
22650   fi
22651   ;;
22652
22653 amigaos*)
22654   library_names_spec='$libname.ixlibrary $libname.a'
22655   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22656   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'
22657   ;;
22658
22659 beos*)
22660   library_names_spec='${libname}${shared_ext}'
22661   dynamic_linker="$host_os ld.so"
22662   shlibpath_var=LIBRARY_PATH
22663   ;;
22664
22665 bsdi[45]*)
22666   version_type=linux
22667   need_version=no
22668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669   soname_spec='${libname}${release}${shared_ext}$major'
22670   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22671   shlibpath_var=LD_LIBRARY_PATH
22672   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22673   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22674   # the default ld.so.conf also contains /usr/contrib/lib and
22675   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22676   # libtool to hard-code these into programs
22677   ;;
22678
22679 cygwin* | mingw* | pw32*)
22680   version_type=windows
22681   shrext_cmds=".dll"
22682   need_version=no
22683   need_lib_prefix=no
22684
22685   case $GCC,$host_os in
22686   yes,cygwin* | yes,mingw* | yes,pw32*)
22687     library_names_spec='$libname.dll.a'
22688     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22689     postinstall_cmds='base_file=`basename \${file}`~
22690       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22691       dldir=$destdir/`dirname \$dlpath`~
22692       test -d \$dldir || mkdir -p \$dldir~
22693       $install_prog $dir/$dlname \$dldir/$dlname~
22694       chmod a+x \$dldir/$dlname'
22695     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22696       dlpath=$dir/\$dldll~
22697        $rm \$dlpath'
22698     shlibpath_overrides_runpath=yes
22699
22700     case $host_os in
22701     cygwin*)
22702       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22703       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22704       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22705       ;;
22706     mingw*)
22707       # MinGW DLLs use traditional 'lib' prefix
22708       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22709       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22710       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22711         # It is most probably a Windows format PATH printed by
22712         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22713         # path with ; separators, and with drive letters. We can handle the
22714         # drive letters (cygwin fileutils understands them), so leave them,
22715         # especially as we might pass files found there to a mingw objdump,
22716         # which wouldn't understand a cygwinified path. Ahh.
22717         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22718       else
22719         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22720       fi
22721       ;;
22722     pw32*)
22723       # pw32 DLLs use 'pw' prefix rather than 'lib'
22724       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22725       ;;
22726     esac
22727     ;;
22728
22729   *)
22730     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22731     ;;
22732   esac
22733   dynamic_linker='Win32 ld.exe'
22734   # FIXME: first we should search . and the directory the executable is in
22735   shlibpath_var=PATH
22736   ;;
22737
22738 darwin* | rhapsody*)
22739   dynamic_linker="$host_os dyld"
22740   version_type=darwin
22741   need_lib_prefix=no
22742   need_version=no
22743   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22744   soname_spec='${libname}${release}${major}$shared_ext'
22745   shlibpath_overrides_runpath=yes
22746   shlibpath_var=DYLD_LIBRARY_PATH
22747   shrext_cmds='.dylib'
22748   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22749   if test "$GCC" = yes; then
22750     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22751   else
22752     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22753   fi
22754   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22755   ;;
22756
22757 dgux*)
22758   version_type=linux
22759   need_lib_prefix=no
22760   need_version=no
22761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22762   soname_spec='${libname}${release}${shared_ext}$major'
22763   shlibpath_var=LD_LIBRARY_PATH
22764   ;;
22765
22766 freebsd1*)
22767   dynamic_linker=no
22768   ;;
22769
22770 kfreebsd*-gnu)
22771   version_type=linux
22772   need_lib_prefix=no
22773   need_version=no
22774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22775   soname_spec='${libname}${release}${shared_ext}$major'
22776   shlibpath_var=LD_LIBRARY_PATH
22777   shlibpath_overrides_runpath=no
22778   hardcode_into_libs=yes
22779   dynamic_linker='GNU ld.so'
22780   ;;
22781
22782 freebsd* | dragonfly*)
22783   # DragonFly does not have aout.  When/if they implement a new
22784   # versioning mechanism, adjust this.
22785   if test -x /usr/bin/objformat; then
22786     objformat=`/usr/bin/objformat`
22787   else
22788     case $host_os in
22789     freebsd[123]*) objformat=aout ;;
22790     *) objformat=elf ;;
22791     esac
22792   fi
22793   version_type=freebsd-$objformat
22794   case $version_type in
22795     freebsd-elf*)
22796       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22797       need_version=no
22798       need_lib_prefix=no
22799       ;;
22800     freebsd-*)
22801       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22802       need_version=yes
22803       ;;
22804   esac
22805   shlibpath_var=LD_LIBRARY_PATH
22806   case $host_os in
22807   freebsd2*)
22808     shlibpath_overrides_runpath=yes
22809     ;;
22810   freebsd3.[01]* | freebsdelf3.[01]*)
22811     shlibpath_overrides_runpath=yes
22812     hardcode_into_libs=yes
22813     ;;
22814   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22815   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22816     shlibpath_overrides_runpath=no
22817     hardcode_into_libs=yes
22818     ;;
22819   freebsd*) # from 4.6 on
22820     shlibpath_overrides_runpath=yes
22821     hardcode_into_libs=yes
22822     ;;
22823   esac
22824   ;;
22825
22826 gnu*)
22827   version_type=linux
22828   need_lib_prefix=no
22829   need_version=no
22830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22831   soname_spec='${libname}${release}${shared_ext}$major'
22832   shlibpath_var=LD_LIBRARY_PATH
22833   hardcode_into_libs=yes
22834   ;;
22835
22836 hpux9* | hpux10* | hpux11*)
22837   # Give a soname corresponding to the major version so that dld.sl refuses to
22838   # link against other versions.
22839   version_type=sunos
22840   need_lib_prefix=no
22841   need_version=no
22842   case $host_cpu in
22843   ia64*)
22844     shrext_cmds='.so'
22845     hardcode_into_libs=yes
22846     dynamic_linker="$host_os dld.so"
22847     shlibpath_var=LD_LIBRARY_PATH
22848     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850     soname_spec='${libname}${release}${shared_ext}$major'
22851     if test "X$HPUX_IA64_MODE" = X32; then
22852       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22853     else
22854       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22855     fi
22856     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22857     ;;
22858    hppa*64*)
22859      shrext_cmds='.sl'
22860      hardcode_into_libs=yes
22861      dynamic_linker="$host_os dld.sl"
22862      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22863      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22864      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865      soname_spec='${libname}${release}${shared_ext}$major'
22866      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22867      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22868      ;;
22869    *)
22870     shrext_cmds='.sl'
22871     dynamic_linker="$host_os dld.sl"
22872     shlibpath_var=SHLIB_PATH
22873     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875     soname_spec='${libname}${release}${shared_ext}$major'
22876     ;;
22877   esac
22878   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22879   postinstall_cmds='chmod 555 $lib'
22880   ;;
22881
22882 interix3*)
22883   version_type=linux
22884   need_lib_prefix=no
22885   need_version=no
22886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22887   soname_spec='${libname}${release}${shared_ext}$major'
22888   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22889   shlibpath_var=LD_LIBRARY_PATH
22890   shlibpath_overrides_runpath=no
22891   hardcode_into_libs=yes
22892   ;;
22893
22894 irix5* | irix6* | nonstopux*)
22895   case $host_os in
22896     nonstopux*) version_type=nonstopux ;;
22897     *)
22898         if test "$lt_cv_prog_gnu_ld" = yes; then
22899                 version_type=linux
22900         else
22901                 version_type=irix
22902         fi ;;
22903   esac
22904   need_lib_prefix=no
22905   need_version=no
22906   soname_spec='${libname}${release}${shared_ext}$major'
22907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22908   case $host_os in
22909   irix5* | nonstopux*)
22910     libsuff= shlibsuff=
22911     ;;
22912   *)
22913     case $LD in # libtool.m4 will add one of these switches to LD
22914     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22915       libsuff= shlibsuff= libmagic=32-bit;;
22916     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22917       libsuff=32 shlibsuff=N32 libmagic=N32;;
22918     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22919       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22920     *) libsuff= shlibsuff= libmagic=never-match;;
22921     esac
22922     ;;
22923   esac
22924   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22925   shlibpath_overrides_runpath=no
22926   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22927   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22928   hardcode_into_libs=yes
22929   ;;
22930
22931 # No shared lib support for Linux oldld, aout, or coff.
22932 linux*oldld* | linux*aout* | linux*coff*)
22933   dynamic_linker=no
22934   ;;
22935
22936 # This must be Linux ELF.
22937 linux*)
22938   version_type=linux
22939   need_lib_prefix=no
22940   need_version=no
22941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22942   soname_spec='${libname}${release}${shared_ext}$major'
22943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22944   shlibpath_var=LD_LIBRARY_PATH
22945   shlibpath_overrides_runpath=no
22946   # This implies no fast_install, which is unacceptable.
22947   # Some rework will be needed to allow for fast_install
22948   # before this can be enabled.
22949   hardcode_into_libs=yes
22950
22951   # Append ld.so.conf contents to the search path
22952   if test -f /etc/ld.so.conf; then
22953     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22954     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22955   fi
22956
22957   # We used to test for /lib/ld.so.1 and disable shared libraries on
22958   # powerpc, because MkLinux only supported shared libraries with the
22959   # GNU dynamic linker.  Since this was broken with cross compilers,
22960   # most powerpc-linux boxes support dynamic linking these days and
22961   # people can always --disable-shared, the test was removed, and we
22962   # assume the GNU/Linux dynamic linker is in use.
22963   dynamic_linker='GNU/Linux ld.so'
22964   ;;
22965
22966 knetbsd*-gnu)
22967   version_type=linux
22968   need_lib_prefix=no
22969   need_version=no
22970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22971   soname_spec='${libname}${release}${shared_ext}$major'
22972   shlibpath_var=LD_LIBRARY_PATH
22973   shlibpath_overrides_runpath=no
22974   hardcode_into_libs=yes
22975   dynamic_linker='GNU ld.so'
22976   ;;
22977
22978 netbsd*)
22979   version_type=sunos
22980   need_lib_prefix=no
22981   need_version=no
22982   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22984     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22985     dynamic_linker='NetBSD (a.out) ld.so'
22986   else
22987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22988     soname_spec='${libname}${release}${shared_ext}$major'
22989     dynamic_linker='NetBSD ld.elf_so'
22990   fi
22991   shlibpath_var=LD_LIBRARY_PATH
22992   shlibpath_overrides_runpath=yes
22993   hardcode_into_libs=yes
22994   ;;
22995
22996 newsos6)
22997   version_type=linux
22998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22999   shlibpath_var=LD_LIBRARY_PATH
23000   shlibpath_overrides_runpath=yes
23001   ;;
23002
23003 nto-qnx*)
23004   version_type=linux
23005   need_lib_prefix=no
23006   need_version=no
23007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008   soname_spec='${libname}${release}${shared_ext}$major'
23009   shlibpath_var=LD_LIBRARY_PATH
23010   shlibpath_overrides_runpath=yes
23011   ;;
23012
23013 openbsd*)
23014   version_type=sunos
23015   sys_lib_dlsearch_path_spec="/usr/lib"
23016   need_lib_prefix=no
23017   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23018   case $host_os in
23019     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23020     *)                         need_version=no  ;;
23021   esac
23022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23023   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23024   shlibpath_var=LD_LIBRARY_PATH
23025   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23026     case $host_os in
23027       openbsd2.[89] | openbsd2.[89].*)
23028         shlibpath_overrides_runpath=no
23029         ;;
23030       *)
23031         shlibpath_overrides_runpath=yes
23032         ;;
23033       esac
23034   else
23035     shlibpath_overrides_runpath=yes
23036   fi
23037   ;;
23038
23039 os2*)
23040   libname_spec='$name'
23041   shrext_cmds=".dll"
23042   need_lib_prefix=no
23043   library_names_spec='$libname${shared_ext} $libname.a'
23044   dynamic_linker='OS/2 ld.exe'
23045   shlibpath_var=LIBPATH
23046   ;;
23047
23048 osf3* | osf4* | osf5*)
23049   version_type=osf
23050   need_lib_prefix=no
23051   need_version=no
23052   soname_spec='${libname}${release}${shared_ext}$major'
23053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23054   shlibpath_var=LD_LIBRARY_PATH
23055   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23056   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23057   ;;
23058
23059 solaris*)
23060   version_type=linux
23061   need_lib_prefix=no
23062   need_version=no
23063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064   soname_spec='${libname}${release}${shared_ext}$major'
23065   shlibpath_var=LD_LIBRARY_PATH
23066   shlibpath_overrides_runpath=yes
23067   hardcode_into_libs=yes
23068   # ldd complains unless libraries are executable
23069   postinstall_cmds='chmod +x $lib'
23070   ;;
23071
23072 sunos4*)
23073   version_type=sunos
23074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23075   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23076   shlibpath_var=LD_LIBRARY_PATH
23077   shlibpath_overrides_runpath=yes
23078   if test "$with_gnu_ld" = yes; then
23079     need_lib_prefix=no
23080   fi
23081   need_version=yes
23082   ;;
23083
23084 sysv4 | sysv4.3*)
23085   version_type=linux
23086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23087   soname_spec='${libname}${release}${shared_ext}$major'
23088   shlibpath_var=LD_LIBRARY_PATH
23089   case $host_vendor in
23090     sni)
23091       shlibpath_overrides_runpath=no
23092       need_lib_prefix=no
23093       export_dynamic_flag_spec='${wl}-Blargedynsym'
23094       runpath_var=LD_RUN_PATH
23095       ;;
23096     siemens)
23097       need_lib_prefix=no
23098       ;;
23099     motorola)
23100       need_lib_prefix=no
23101       need_version=no
23102       shlibpath_overrides_runpath=no
23103       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23104       ;;
23105   esac
23106   ;;
23107
23108 sysv4*MP*)
23109   if test -d /usr/nec ;then
23110     version_type=linux
23111     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23112     soname_spec='$libname${shared_ext}.$major'
23113     shlibpath_var=LD_LIBRARY_PATH
23114   fi
23115   ;;
23116
23117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23118   version_type=freebsd-elf
23119   need_lib_prefix=no
23120   need_version=no
23121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23122   soname_spec='${libname}${release}${shared_ext}$major'
23123   shlibpath_var=LD_LIBRARY_PATH
23124   hardcode_into_libs=yes
23125   if test "$with_gnu_ld" = yes; then
23126     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23127     shlibpath_overrides_runpath=no
23128   else
23129     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23130     shlibpath_overrides_runpath=yes
23131     case $host_os in
23132       sco3.2v5*)
23133         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23134         ;;
23135     esac
23136   fi
23137   sys_lib_dlsearch_path_spec='/usr/lib'
23138   ;;
23139
23140 uts4*)
23141   version_type=linux
23142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23143   soname_spec='${libname}${release}${shared_ext}$major'
23144   shlibpath_var=LD_LIBRARY_PATH
23145   ;;
23146
23147 *)
23148   dynamic_linker=no
23149   ;;
23150 esac
23151 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23152 echo "${ECHO_T}$dynamic_linker" >&6; }
23153 test "$dynamic_linker" = no && can_build_shared=no
23154
23155 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23156 if test "$GCC" = yes; then
23157   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23158 fi
23159
23160 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23161 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23162 hardcode_action_F77=
23163 if test -n "$hardcode_libdir_flag_spec_F77" || \
23164    test -n "$runpath_var_F77" || \
23165    test "X$hardcode_automatic_F77" = "Xyes" ; then
23166
23167   # We can hardcode non-existant directories.
23168   if test "$hardcode_direct_F77" != no &&
23169      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23170      # have to relink, otherwise we might link with an installed library
23171      # when we should be linking with a yet-to-be-installed one
23172      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23173      test "$hardcode_minus_L_F77" != no; then
23174     # Linking always hardcodes the temporary library directory.
23175     hardcode_action_F77=relink
23176   else
23177     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23178     hardcode_action_F77=immediate
23179   fi
23180 else
23181   # We cannot hardcode anything, or else we can only hardcode existing
23182   # directories.
23183   hardcode_action_F77=unsupported
23184 fi
23185 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23186 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23187
23188 if test "$hardcode_action_F77" = relink; then
23189   # Fast installation is not supported
23190   enable_fast_install=no
23191 elif test "$shlibpath_overrides_runpath" = yes ||
23192      test "$enable_shared" = no; then
23193   # Fast installation is not necessary
23194   enable_fast_install=needless
23195 fi
23196
23197
23198 # The else clause should only fire when bootstrapping the
23199 # libtool distribution, otherwise you forgot to ship ltmain.sh
23200 # with your package, and you will get complaints that there are
23201 # no rules to generate ltmain.sh.
23202 if test -f "$ltmain"; then
23203   # See if we are running on zsh, and set the options which allow our commands through
23204   # without removal of \ escapes.
23205   if test -n "${ZSH_VERSION+set}" ; then
23206     setopt NO_GLOB_SUBST
23207   fi
23208   # Now quote all the things that may contain metacharacters while being
23209   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23210   # variables and quote the copies for generation of the libtool script.
23211   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23212     SED SHELL STRIP \
23213     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23214     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23215     deplibs_check_method reload_flag reload_cmds need_locks \
23216     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23217     lt_cv_sys_global_symbol_to_c_name_address \
23218     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23219     old_postinstall_cmds old_postuninstall_cmds \
23220     compiler_F77 \
23221     CC_F77 \
23222     LD_F77 \
23223     lt_prog_compiler_wl_F77 \
23224     lt_prog_compiler_pic_F77 \
23225     lt_prog_compiler_static_F77 \
23226     lt_prog_compiler_no_builtin_flag_F77 \
23227     export_dynamic_flag_spec_F77 \
23228     thread_safe_flag_spec_F77 \
23229     whole_archive_flag_spec_F77 \
23230     enable_shared_with_static_runtimes_F77 \
23231     old_archive_cmds_F77 \
23232     old_archive_from_new_cmds_F77 \
23233     predep_objects_F77 \
23234     postdep_objects_F77 \
23235     predeps_F77 \
23236     postdeps_F77 \
23237     compiler_lib_search_path_F77 \
23238     archive_cmds_F77 \
23239     archive_expsym_cmds_F77 \
23240     postinstall_cmds_F77 \
23241     postuninstall_cmds_F77 \
23242     old_archive_from_expsyms_cmds_F77 \
23243     allow_undefined_flag_F77 \
23244     no_undefined_flag_F77 \
23245     export_symbols_cmds_F77 \
23246     hardcode_libdir_flag_spec_F77 \
23247     hardcode_libdir_flag_spec_ld_F77 \
23248     hardcode_libdir_separator_F77 \
23249     hardcode_automatic_F77 \
23250     module_cmds_F77 \
23251     module_expsym_cmds_F77 \
23252     lt_cv_prog_compiler_c_o_F77 \
23253     exclude_expsyms_F77 \
23254     include_expsyms_F77; do
23255
23256     case $var in
23257     old_archive_cmds_F77 | \
23258     old_archive_from_new_cmds_F77 | \
23259     archive_cmds_F77 | \
23260     archive_expsym_cmds_F77 | \
23261     module_cmds_F77 | \
23262     module_expsym_cmds_F77 | \
23263     old_archive_from_expsyms_cmds_F77 | \
23264     export_symbols_cmds_F77 | \
23265     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23266     postinstall_cmds | postuninstall_cmds | \
23267     old_postinstall_cmds | old_postuninstall_cmds | \
23268     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23269       # Double-quote double-evaled strings.
23270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23271       ;;
23272     *)
23273       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23274       ;;
23275     esac
23276   done
23277
23278   case $lt_echo in
23279   *'\$0 --fallback-echo"')
23280     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23281     ;;
23282   esac
23283
23284 cfgfile="$ofile"
23285
23286   cat <<__EOF__ >> "$cfgfile"
23287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23288
23289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23290
23291 # Shell to use when invoking shell scripts.
23292 SHELL=$lt_SHELL
23293
23294 # Whether or not to build shared libraries.
23295 build_libtool_libs=$enable_shared
23296
23297 # Whether or not to build static libraries.
23298 build_old_libs=$enable_static
23299
23300 # Whether or not to add -lc for building shared libraries.
23301 build_libtool_need_lc=$archive_cmds_need_lc_F77
23302
23303 # Whether or not to disallow shared libs when runtime libs are static
23304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23305
23306 # Whether or not to optimize for fast installation.
23307 fast_install=$enable_fast_install
23308
23309 # The host system.
23310 host_alias=$host_alias
23311 host=$host
23312 host_os=$host_os
23313
23314 # The build system.
23315 build_alias=$build_alias
23316 build=$build
23317 build_os=$build_os
23318
23319 # An echo program that does not interpret backslashes.
23320 echo=$lt_echo
23321
23322 # The archiver.
23323 AR=$lt_AR
23324 AR_FLAGS=$lt_AR_FLAGS
23325
23326 # A C compiler.
23327 LTCC=$lt_LTCC
23328
23329 # LTCC compiler flags.
23330 LTCFLAGS=$lt_LTCFLAGS
23331
23332 # A language-specific compiler.
23333 CC=$lt_compiler_F77
23334
23335 # Is the compiler the GNU C compiler?
23336 with_gcc=$GCC_F77
23337
23338 # An ERE matcher.
23339 EGREP=$lt_EGREP
23340
23341 # The linker used to build libraries.
23342 LD=$lt_LD_F77
23343
23344 # Whether we need hard or soft links.
23345 LN_S=$lt_LN_S
23346
23347 # A BSD-compatible nm program.
23348 NM=$lt_NM
23349
23350 # A symbol stripping program
23351 STRIP=$lt_STRIP
23352
23353 # Used to examine libraries when file_magic_cmd begins "file"
23354 MAGIC_CMD=$MAGIC_CMD
23355
23356 # Used on cygwin: DLL creation program.
23357 DLLTOOL="$DLLTOOL"
23358
23359 # Used on cygwin: object dumper.
23360 OBJDUMP="$OBJDUMP"
23361
23362 # Used on cygwin: assembler.
23363 AS="$AS"
23364
23365 # The name of the directory that contains temporary libtool files.
23366 objdir=$objdir
23367
23368 # How to create reloadable object files.
23369 reload_flag=$lt_reload_flag
23370 reload_cmds=$lt_reload_cmds
23371
23372 # How to pass a linker flag through the compiler.
23373 wl=$lt_lt_prog_compiler_wl_F77
23374
23375 # Object file suffix (normally "o").
23376 objext="$ac_objext"
23377
23378 # Old archive suffix (normally "a").
23379 libext="$libext"
23380
23381 # Shared library suffix (normally ".so").
23382 shrext_cmds='$shrext_cmds'
23383
23384 # Executable file suffix (normally "").
23385 exeext="$exeext"
23386
23387 # Additional compiler flags for building library objects.
23388 pic_flag=$lt_lt_prog_compiler_pic_F77
23389 pic_mode=$pic_mode
23390
23391 # What is the maximum length of a command?
23392 max_cmd_len=$lt_cv_sys_max_cmd_len
23393
23394 # Does compiler simultaneously support -c and -o options?
23395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23396
23397 # Must we lock files when doing compilation?
23398 need_locks=$lt_need_locks
23399
23400 # Do we need the lib prefix for modules?
23401 need_lib_prefix=$need_lib_prefix
23402
23403 # Do we need a version for libraries?
23404 need_version=$need_version
23405
23406 # Whether dlopen is supported.
23407 dlopen_support=$enable_dlopen
23408
23409 # Whether dlopen of programs is supported.
23410 dlopen_self=$enable_dlopen_self
23411
23412 # Whether dlopen of statically linked programs is supported.
23413 dlopen_self_static=$enable_dlopen_self_static
23414
23415 # Compiler flag to prevent dynamic linking.
23416 link_static_flag=$lt_lt_prog_compiler_static_F77
23417
23418 # Compiler flag to turn off builtin functions.
23419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23420
23421 # Compiler flag to allow reflexive dlopens.
23422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23423
23424 # Compiler flag to generate shared objects directly from archives.
23425 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23426
23427 # Compiler flag to generate thread-safe objects.
23428 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23429
23430 # Library versioning type.
23431 version_type=$version_type
23432
23433 # Format of library name prefix.
23434 libname_spec=$lt_libname_spec
23435
23436 # List of archive names.  First name is the real one, the rest are links.
23437 # The last name is the one that the linker finds with -lNAME.
23438 library_names_spec=$lt_library_names_spec
23439
23440 # The coded name of the library, if different from the real name.
23441 soname_spec=$lt_soname_spec
23442
23443 # Commands used to build and install an old-style archive.
23444 RANLIB=$lt_RANLIB
23445 old_archive_cmds=$lt_old_archive_cmds_F77
23446 old_postinstall_cmds=$lt_old_postinstall_cmds
23447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23448
23449 # Create an old-style archive from a shared archive.
23450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23451
23452 # Create a temporary old-style archive to link instead of a shared archive.
23453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23454
23455 # Commands used to build and install a shared archive.
23456 archive_cmds=$lt_archive_cmds_F77
23457 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23458 postinstall_cmds=$lt_postinstall_cmds
23459 postuninstall_cmds=$lt_postuninstall_cmds
23460
23461 # Commands used to build a loadable module (assumed same as above if empty)
23462 module_cmds=$lt_module_cmds_F77
23463 module_expsym_cmds=$lt_module_expsym_cmds_F77
23464
23465 # Commands to strip libraries.
23466 old_striplib=$lt_old_striplib
23467 striplib=$lt_striplib
23468
23469 # Dependencies to place before the objects being linked to create a
23470 # shared library.
23471 predep_objects=$lt_predep_objects_F77
23472
23473 # Dependencies to place after the objects being linked to create a
23474 # shared library.
23475 postdep_objects=$lt_postdep_objects_F77
23476
23477 # Dependencies to place before the objects being linked to create a
23478 # shared library.
23479 predeps=$lt_predeps_F77
23480
23481 # Dependencies to place after the objects being linked to create a
23482 # shared library.
23483 postdeps=$lt_postdeps_F77
23484
23485 # The library search path used internally by the compiler when linking
23486 # a shared library.
23487 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23488
23489 # Method to check whether dependent libraries are shared objects.
23490 deplibs_check_method=$lt_deplibs_check_method
23491
23492 # Command to use when deplibs_check_method == file_magic.
23493 file_magic_cmd=$lt_file_magic_cmd
23494
23495 # Flag that allows shared libraries with undefined symbols to be built.
23496 allow_undefined_flag=$lt_allow_undefined_flag_F77
23497
23498 # Flag that forces no undefined symbols.
23499 no_undefined_flag=$lt_no_undefined_flag_F77
23500
23501 # Commands used to finish a libtool library installation in a directory.
23502 finish_cmds=$lt_finish_cmds
23503
23504 # Same as above, but a single script fragment to be evaled but not shown.
23505 finish_eval=$lt_finish_eval
23506
23507 # Take the output of nm and produce a listing of raw symbols and C names.
23508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23509
23510 # Transform the output of nm in a proper C declaration
23511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23512
23513 # Transform the output of nm in a C name address pair
23514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23515
23516 # This is the shared library runtime path variable.
23517 runpath_var=$runpath_var
23518
23519 # This is the shared library path variable.
23520 shlibpath_var=$shlibpath_var
23521
23522 # Is shlibpath searched before the hard-coded library search path?
23523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23524
23525 # How to hardcode a shared library path into an executable.
23526 hardcode_action=$hardcode_action_F77
23527
23528 # Whether we should hardcode library paths into libraries.
23529 hardcode_into_libs=$hardcode_into_libs
23530
23531 # Flag to hardcode \$libdir into a binary during linking.
23532 # This must work even if \$libdir does not exist.
23533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23534
23535 # If ld is used when linking, flag to hardcode \$libdir into
23536 # a binary during linking. This must work even if \$libdir does
23537 # not exist.
23538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23539
23540 # Whether we need a single -rpath flag with a separated argument.
23541 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23542
23543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23544 # resulting binary.
23545 hardcode_direct=$hardcode_direct_F77
23546
23547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23548 # resulting binary.
23549 hardcode_minus_L=$hardcode_minus_L_F77
23550
23551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23552 # the resulting binary.
23553 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23554
23555 # Set to yes if building a shared library automatically hardcodes DIR into the library
23556 # and all subsequent libraries and executables linked against it.
23557 hardcode_automatic=$hardcode_automatic_F77
23558
23559 # Variables whose values should be saved in libtool wrapper scripts and
23560 # restored at relink time.
23561 variables_saved_for_relink="$variables_saved_for_relink"
23562
23563 # Whether libtool must link a program against all its dependency libraries.
23564 link_all_deplibs=$link_all_deplibs_F77
23565
23566 # Compile-time system search path for libraries
23567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23568
23569 # Run-time system search path for libraries
23570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23571
23572 # Fix the shell variable \$srcfile for the compiler.
23573 fix_srcfile_path="$fix_srcfile_path_F77"
23574
23575 # Set to yes if exported symbols are required.
23576 always_export_symbols=$always_export_symbols_F77
23577
23578 # The commands to list exported symbols.
23579 export_symbols_cmds=$lt_export_symbols_cmds_F77
23580
23581 # The commands to extract the exported symbol list from a shared archive.
23582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23583
23584 # Symbols that should not be listed in the preloaded symbols.
23585 exclude_expsyms=$lt_exclude_expsyms_F77
23586
23587 # Symbols that must always be exported.
23588 include_expsyms=$lt_include_expsyms_F77
23589
23590 # ### END LIBTOOL TAG CONFIG: $tagname
23591
23592 __EOF__
23593
23594
23595 else
23596   # If there is no Makefile yet, we rely on a make rule to execute
23597   # `config.status --recheck' to rerun these tests and create the
23598   # libtool script then.
23599   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23600   if test -f "$ltmain_in"; then
23601     test -f Makefile && make "$ltmain"
23602   fi
23603 fi
23604
23605
23606 ac_ext=c
23607 ac_cpp='$CPP $CPPFLAGS'
23608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23611
23612 CC="$lt_save_CC"
23613
23614         else
23615           tagname=""
23616         fi
23617         ;;
23618
23619       GCJ)
23620         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23621           ac_ext=c
23622 ac_cpp='$CPP $CPPFLAGS'
23623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23626
23627
23628 # Source file extension for Java test sources.
23629 ac_ext=java
23630
23631 # Object file extension for compiled Java test sources.
23632 objext=o
23633 objext_GCJ=$objext
23634
23635 # Code to be used in simple compile tests
23636 lt_simple_compile_test_code="class foo {}\n"
23637
23638 # Code to be used in simple link tests
23639 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23640
23641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23642
23643 # If no C compiler was specified, use CC.
23644 LTCC=${LTCC-"$CC"}
23645
23646 # If no C compiler flags were specified, use CFLAGS.
23647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23648
23649 # Allow CC to be a program name with arguments.
23650 compiler=$CC
23651
23652
23653 # save warnings/boilerplate of simple test code
23654 ac_outfile=conftest.$ac_objext
23655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23657 _lt_compiler_boilerplate=`cat conftest.err`
23658 $rm conftest*
23659
23660 ac_outfile=conftest.$ac_objext
23661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23663 _lt_linker_boilerplate=`cat conftest.err`
23664 $rm conftest*
23665
23666
23667 # Allow CC to be a program name with arguments.
23668 lt_save_CC="$CC"
23669 CC=${GCJ-"gcj"}
23670 compiler=$CC
23671 compiler_GCJ=$CC
23672 for cc_temp in $compiler""; do
23673   case $cc_temp in
23674     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23675     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23676     \-*) ;;
23677     *) break;;
23678   esac
23679 done
23680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23681
23682
23683 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23684 archive_cmds_need_lc_GCJ=no
23685
23686 old_archive_cmds_GCJ=$old_archive_cmds
23687
23688
23689 lt_prog_compiler_no_builtin_flag_GCJ=
23690
23691 if test "$GCC" = yes; then
23692   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23693
23694
23695 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23696 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23697 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23698   echo $ECHO_N "(cached) $ECHO_C" >&6
23699 else
23700   lt_cv_prog_compiler_rtti_exceptions=no
23701   ac_outfile=conftest.$ac_objext
23702    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23703    lt_compiler_flag="-fno-rtti -fno-exceptions"
23704    # Insert the option either (1) after the last *FLAGS variable, or
23705    # (2) before a word containing "conftest.", or (3) at the end.
23706    # Note that $ac_compile itself does not contain backslashes and begins
23707    # with a dollar sign (not a hyphen), so the echo should work correctly.
23708    # The option is referenced via a variable to avoid confusing sed.
23709    lt_compile=`echo "$ac_compile" | $SED \
23710    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23712    -e 's:$: $lt_compiler_flag:'`
23713    (eval echo "\"\$as_me:23713: $lt_compile\"" >&5)
23714    (eval "$lt_compile" 2>conftest.err)
23715    ac_status=$?
23716    cat conftest.err >&5
23717    echo "$as_me:23717: \$? = $ac_status" >&5
23718    if (exit $ac_status) && test -s "$ac_outfile"; then
23719      # The compiler can only warn and ignore the option if not recognized
23720      # So say no if there are warnings other than the usual output.
23721      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23722      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23723      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23724        lt_cv_prog_compiler_rtti_exceptions=yes
23725      fi
23726    fi
23727    $rm conftest*
23728
23729 fi
23730 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23731 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23732
23733 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23734     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23735 else
23736     :
23737 fi
23738
23739 fi
23740
23741 lt_prog_compiler_wl_GCJ=
23742 lt_prog_compiler_pic_GCJ=
23743 lt_prog_compiler_static_GCJ=
23744
23745 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23746 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23747
23748   if test "$GCC" = yes; then
23749     lt_prog_compiler_wl_GCJ='-Wl,'
23750     lt_prog_compiler_static_GCJ='-static'
23751
23752     case $host_os in
23753       aix*)
23754       # All AIX code is PIC.
23755       if test "$host_cpu" = ia64; then
23756         # AIX 5 now supports IA64 processor
23757         lt_prog_compiler_static_GCJ='-Bstatic'
23758       fi
23759       ;;
23760
23761     amigaos*)
23762       # FIXME: we need at least 68020 code to build shared libraries, but
23763       # adding the `-m68020' flag to GCC prevents building anything better,
23764       # like `-m68040'.
23765       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23766       ;;
23767
23768     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23769       # PIC is the default for these OSes.
23770       ;;
23771
23772     mingw* | pw32* | os2*)
23773       # This hack is so that the source file can tell whether it is being
23774       # built for inclusion in a dll (and should export symbols for example).
23775       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23776       ;;
23777
23778     darwin* | rhapsody*)
23779       # PIC is the default on this platform
23780       # Common symbols not allowed in MH_DYLIB files
23781       lt_prog_compiler_pic_GCJ='-fno-common'
23782       ;;
23783
23784     interix3*)
23785       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23786       # Instead, we relocate shared libraries at runtime.
23787       ;;
23788
23789     msdosdjgpp*)
23790       # Just because we use GCC doesn't mean we suddenly get shared libraries
23791       # on systems that don't support them.
23792       lt_prog_compiler_can_build_shared_GCJ=no
23793       enable_shared=no
23794       ;;
23795
23796     sysv4*MP*)
23797       if test -d /usr/nec; then
23798         lt_prog_compiler_pic_GCJ=-Kconform_pic
23799       fi
23800       ;;
23801
23802     hpux*)
23803       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23804       # not for PA HP-UX.
23805       case $host_cpu in
23806       hppa*64*|ia64*)
23807         # +Z the default
23808         ;;
23809       *)
23810         lt_prog_compiler_pic_GCJ='-fPIC'
23811         ;;
23812       esac
23813       ;;
23814
23815     *)
23816       lt_prog_compiler_pic_GCJ='-fPIC'
23817       ;;
23818     esac
23819   else
23820     # PORTME Check for flag to pass linker flags through the system compiler.
23821     case $host_os in
23822     aix*)
23823       lt_prog_compiler_wl_GCJ='-Wl,'
23824       if test "$host_cpu" = ia64; then
23825         # AIX 5 now supports IA64 processor
23826         lt_prog_compiler_static_GCJ='-Bstatic'
23827       else
23828         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23829       fi
23830       ;;
23831       darwin*)
23832         # PIC is the default on this platform
23833         # Common symbols not allowed in MH_DYLIB files
23834        case $cc_basename in
23835          xlc*)
23836          lt_prog_compiler_pic_GCJ='-qnocommon'
23837          lt_prog_compiler_wl_GCJ='-Wl,'
23838          ;;
23839        esac
23840        ;;
23841
23842     mingw* | pw32* | os2*)
23843       # This hack is so that the source file can tell whether it is being
23844       # built for inclusion in a dll (and should export symbols for example).
23845       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23846       ;;
23847
23848     hpux9* | hpux10* | hpux11*)
23849       lt_prog_compiler_wl_GCJ='-Wl,'
23850       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23851       # not for PA HP-UX.
23852       case $host_cpu in
23853       hppa*64*|ia64*)
23854         # +Z the default
23855         ;;
23856       *)
23857         lt_prog_compiler_pic_GCJ='+Z'
23858         ;;
23859       esac
23860       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23861       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23862       ;;
23863
23864     irix5* | irix6* | nonstopux*)
23865       lt_prog_compiler_wl_GCJ='-Wl,'
23866       # PIC (with -KPIC) is the default.
23867       lt_prog_compiler_static_GCJ='-non_shared'
23868       ;;
23869
23870     newsos6)
23871       lt_prog_compiler_pic_GCJ='-KPIC'
23872       lt_prog_compiler_static_GCJ='-Bstatic'
23873       ;;
23874
23875     linux*)
23876       case $cc_basename in
23877       icc* | ecc*)
23878         lt_prog_compiler_wl_GCJ='-Wl,'
23879         lt_prog_compiler_pic_GCJ='-KPIC'
23880         lt_prog_compiler_static_GCJ='-static'
23881         ;;
23882       pgcc* | pgf77* | pgf90* | pgf95*)
23883         # Portland Group compilers (*not* the Pentium gcc compiler,
23884         # which looks to be a dead project)
23885         lt_prog_compiler_wl_GCJ='-Wl,'
23886         lt_prog_compiler_pic_GCJ='-fpic'
23887         lt_prog_compiler_static_GCJ='-Bstatic'
23888         ;;
23889       ccc*)
23890         lt_prog_compiler_wl_GCJ='-Wl,'
23891         # All Alpha code is PIC.
23892         lt_prog_compiler_static_GCJ='-non_shared'
23893         ;;
23894       esac
23895       ;;
23896
23897     osf3* | osf4* | osf5*)
23898       lt_prog_compiler_wl_GCJ='-Wl,'
23899       # All OSF/1 code is PIC.
23900       lt_prog_compiler_static_GCJ='-non_shared'
23901       ;;
23902
23903     solaris*)
23904       lt_prog_compiler_pic_GCJ='-KPIC'
23905       lt_prog_compiler_static_GCJ='-Bstatic'
23906       case $cc_basename in
23907       f77* | f90* | f95*)
23908         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23909       *)
23910         lt_prog_compiler_wl_GCJ='-Wl,';;
23911       esac
23912       ;;
23913
23914     sunos4*)
23915       lt_prog_compiler_wl_GCJ='-Qoption ld '
23916       lt_prog_compiler_pic_GCJ='-PIC'
23917       lt_prog_compiler_static_GCJ='-Bstatic'
23918       ;;
23919
23920     sysv4 | sysv4.2uw2* | sysv4.3*)
23921       lt_prog_compiler_wl_GCJ='-Wl,'
23922       lt_prog_compiler_pic_GCJ='-KPIC'
23923       lt_prog_compiler_static_GCJ='-Bstatic'
23924       ;;
23925
23926     sysv4*MP*)
23927       if test -d /usr/nec ;then
23928         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23929         lt_prog_compiler_static_GCJ='-Bstatic'
23930       fi
23931       ;;
23932
23933     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23934       lt_prog_compiler_wl_GCJ='-Wl,'
23935       lt_prog_compiler_pic_GCJ='-KPIC'
23936       lt_prog_compiler_static_GCJ='-Bstatic'
23937       ;;
23938
23939     unicos*)
23940       lt_prog_compiler_wl_GCJ='-Wl,'
23941       lt_prog_compiler_can_build_shared_GCJ=no
23942       ;;
23943
23944     uts4*)
23945       lt_prog_compiler_pic_GCJ='-pic'
23946       lt_prog_compiler_static_GCJ='-Bstatic'
23947       ;;
23948
23949     *)
23950       lt_prog_compiler_can_build_shared_GCJ=no
23951       ;;
23952     esac
23953   fi
23954
23955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23956 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23957
23958 #
23959 # Check to make sure the PIC flag actually works.
23960 #
23961 if test -n "$lt_prog_compiler_pic_GCJ"; then
23962
23963 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23964 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23965 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23966   echo $ECHO_N "(cached) $ECHO_C" >&6
23967 else
23968   lt_prog_compiler_pic_works_GCJ=no
23969   ac_outfile=conftest.$ac_objext
23970    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23971    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23972    # Insert the option either (1) after the last *FLAGS variable, or
23973    # (2) before a word containing "conftest.", or (3) at the end.
23974    # Note that $ac_compile itself does not contain backslashes and begins
23975    # with a dollar sign (not a hyphen), so the echo should work correctly.
23976    # The option is referenced via a variable to avoid confusing sed.
23977    lt_compile=`echo "$ac_compile" | $SED \
23978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23980    -e 's:$: $lt_compiler_flag:'`
23981    (eval echo "\"\$as_me:23981: $lt_compile\"" >&5)
23982    (eval "$lt_compile" 2>conftest.err)
23983    ac_status=$?
23984    cat conftest.err >&5
23985    echo "$as_me:23985: \$? = $ac_status" >&5
23986    if (exit $ac_status) && test -s "$ac_outfile"; then
23987      # The compiler can only warn and ignore the option if not recognized
23988      # So say no if there are warnings other than the usual output.
23989      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23990      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23991      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23992        lt_prog_compiler_pic_works_GCJ=yes
23993      fi
23994    fi
23995    $rm conftest*
23996
23997 fi
23998 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23999 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24000
24001 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24002     case $lt_prog_compiler_pic_GCJ in
24003      "" | " "*) ;;
24004      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24005      esac
24006 else
24007     lt_prog_compiler_pic_GCJ=
24008      lt_prog_compiler_can_build_shared_GCJ=no
24009 fi
24010
24011 fi
24012 case $host_os in
24013   # For platforms which do not support PIC, -DPIC is meaningless:
24014   *djgpp*)
24015     lt_prog_compiler_pic_GCJ=
24016     ;;
24017   *)
24018     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24019     ;;
24020 esac
24021
24022 #
24023 # Check to make sure the static flag actually works.
24024 #
24025 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24026 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24027 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24028 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24029   echo $ECHO_N "(cached) $ECHO_C" >&6
24030 else
24031   lt_prog_compiler_static_works_GCJ=no
24032    save_LDFLAGS="$LDFLAGS"
24033    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24034    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24035    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24036      # The linker can only warn and ignore the option if not recognized
24037      # So say no if there are warnings
24038      if test -s conftest.err; then
24039        # Append any errors to the config.log.
24040        cat conftest.err 1>&5
24041        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24042        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24043        if diff conftest.exp conftest.er2 >/dev/null; then
24044          lt_prog_compiler_static_works_GCJ=yes
24045        fi
24046      else
24047        lt_prog_compiler_static_works_GCJ=yes
24048      fi
24049    fi
24050    $rm conftest*
24051    LDFLAGS="$save_LDFLAGS"
24052
24053 fi
24054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24055 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24056
24057 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24058     :
24059 else
24060     lt_prog_compiler_static_GCJ=
24061 fi
24062
24063
24064 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24065 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24066 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24067   echo $ECHO_N "(cached) $ECHO_C" >&6
24068 else
24069   lt_cv_prog_compiler_c_o_GCJ=no
24070    $rm -r conftest 2>/dev/null
24071    mkdir conftest
24072    cd conftest
24073    mkdir out
24074    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24075
24076    lt_compiler_flag="-o out/conftest2.$ac_objext"
24077    # Insert the option either (1) after the last *FLAGS variable, or
24078    # (2) before a word containing "conftest.", or (3) at the end.
24079    # Note that $ac_compile itself does not contain backslashes and begins
24080    # with a dollar sign (not a hyphen), so the echo should work correctly.
24081    lt_compile=`echo "$ac_compile" | $SED \
24082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24084    -e 's:$: $lt_compiler_flag:'`
24085    (eval echo "\"\$as_me:24085: $lt_compile\"" >&5)
24086    (eval "$lt_compile" 2>out/conftest.err)
24087    ac_status=$?
24088    cat out/conftest.err >&5
24089    echo "$as_me:24089: \$? = $ac_status" >&5
24090    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24091    then
24092      # The compiler can only warn and ignore the option if not recognized
24093      # So say no if there are warnings
24094      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24095      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24096      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24097        lt_cv_prog_compiler_c_o_GCJ=yes
24098      fi
24099    fi
24100    chmod u+w . 2>&5
24101    $rm conftest*
24102    # SGI C++ compiler will create directory out/ii_files/ for
24103    # template instantiation
24104    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24105    $rm out/* && rmdir out
24106    cd ..
24107    rmdir conftest
24108    $rm conftest*
24109
24110 fi
24111 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24112 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24113
24114
24115 hard_links="nottested"
24116 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24117   # do not overwrite the value of need_locks provided by the user
24118   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24119 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24120   hard_links=yes
24121   $rm conftest*
24122   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24123   touch conftest.a
24124   ln conftest.a conftest.b 2>&5 || hard_links=no
24125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24126   { echo "$as_me:$LINENO: result: $hard_links" >&5
24127 echo "${ECHO_T}$hard_links" >&6; }
24128   if test "$hard_links" = no; then
24129     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24130 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24131     need_locks=warn
24132   fi
24133 else
24134   need_locks=no
24135 fi
24136
24137 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24138 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24139
24140   runpath_var=
24141   allow_undefined_flag_GCJ=
24142   enable_shared_with_static_runtimes_GCJ=no
24143   archive_cmds_GCJ=
24144   archive_expsym_cmds_GCJ=
24145   old_archive_From_new_cmds_GCJ=
24146   old_archive_from_expsyms_cmds_GCJ=
24147   export_dynamic_flag_spec_GCJ=
24148   whole_archive_flag_spec_GCJ=
24149   thread_safe_flag_spec_GCJ=
24150   hardcode_libdir_flag_spec_GCJ=
24151   hardcode_libdir_flag_spec_ld_GCJ=
24152   hardcode_libdir_separator_GCJ=
24153   hardcode_direct_GCJ=no
24154   hardcode_minus_L_GCJ=no
24155   hardcode_shlibpath_var_GCJ=unsupported
24156   link_all_deplibs_GCJ=unknown
24157   hardcode_automatic_GCJ=no
24158   module_cmds_GCJ=
24159   module_expsym_cmds_GCJ=
24160   always_export_symbols_GCJ=no
24161   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24162   # include_expsyms should be a list of space-separated symbols to be *always*
24163   # included in the symbol list
24164   include_expsyms_GCJ=
24165   # exclude_expsyms can be an extended regexp of symbols to exclude
24166   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24167   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24168   # as well as any symbol that contains `d'.
24169   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24170   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24171   # platforms (ab)use it in PIC code, but their linkers get confused if
24172   # the symbol is explicitly referenced.  Since portable code cannot
24173   # rely on this symbol name, it's probably fine to never include it in
24174   # preloaded symbol tables.
24175   extract_expsyms_cmds=
24176   # Just being paranoid about ensuring that cc_basename is set.
24177   for cc_temp in $compiler""; do
24178   case $cc_temp in
24179     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24180     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24181     \-*) ;;
24182     *) break;;
24183   esac
24184 done
24185 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24186
24187   case $host_os in
24188   cygwin* | mingw* | pw32*)
24189     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24190     # When not using gcc, we currently assume that we are using
24191     # Microsoft Visual C++.
24192     if test "$GCC" != yes; then
24193       with_gnu_ld=no
24194     fi
24195     ;;
24196   interix*)
24197     # we just hope/assume this is gcc and not c89 (= MSVC++)
24198     with_gnu_ld=yes
24199     ;;
24200   openbsd*)
24201     with_gnu_ld=no
24202     ;;
24203   esac
24204
24205   ld_shlibs_GCJ=yes
24206   if test "$with_gnu_ld" = yes; then
24207     # If archive_cmds runs LD, not CC, wlarc should be empty
24208     wlarc='${wl}'
24209
24210     # Set some defaults for GNU ld with shared library support. These
24211     # are reset later if shared libraries are not supported. Putting them
24212     # here allows them to be overridden if necessary.
24213     runpath_var=LD_RUN_PATH
24214     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24215     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24216     # ancient GNU ld didn't support --whole-archive et. al.
24217     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24218         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24219       else
24220         whole_archive_flag_spec_GCJ=
24221     fi
24222     supports_anon_versioning=no
24223     case `$LD -v 2>/dev/null` in
24224       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24225       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24226       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24227       *\ 2.11.*) ;; # other 2.11 versions
24228       *) supports_anon_versioning=yes ;;
24229     esac
24230
24231     # See if GNU ld supports shared libraries.
24232     case $host_os in
24233     aix3* | aix4* | aix5*)
24234       # On AIX/PPC, the GNU linker is very broken
24235       if test "$host_cpu" != ia64; then
24236         ld_shlibs_GCJ=no
24237         cat <<EOF 1>&2
24238
24239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24240 *** to be unable to reliably create shared libraries on AIX.
24241 *** Therefore, libtool is disabling shared libraries support.  If you
24242 *** really care for shared libraries, you may want to modify your PATH
24243 *** so that a non-GNU linker is found, and then restart.
24244
24245 EOF
24246       fi
24247       ;;
24248
24249     amigaos*)
24250       archive_cmds_GCJ='$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)'
24251       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24252       hardcode_minus_L_GCJ=yes
24253
24254       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24255       # that the semantics of dynamic libraries on AmigaOS, at least up
24256       # to version 4, is to share data among multiple programs linked
24257       # with the same dynamic library.  Since this doesn't match the
24258       # behavior of shared libraries on other platforms, we can't use
24259       # them.
24260       ld_shlibs_GCJ=no
24261       ;;
24262
24263     beos*)
24264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24265         allow_undefined_flag_GCJ=unsupported
24266         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24267         # support --undefined.  This deserves some investigation.  FIXME
24268         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24269       else
24270         ld_shlibs_GCJ=no
24271       fi
24272       ;;
24273
24274     cygwin* | mingw* | pw32*)
24275       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24276       # as there is no search path for DLLs.
24277       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24278       allow_undefined_flag_GCJ=unsupported
24279       always_export_symbols_GCJ=no
24280       enable_shared_with_static_runtimes_GCJ=yes
24281       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24282
24283       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24284         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24285         # If the export-symbols file already is a .def file (1st line
24286         # is EXPORTS), use it as is; otherwise, prepend...
24287         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24288           cp $export_symbols $output_objdir/$soname.def;
24289         else
24290           echo EXPORTS > $output_objdir/$soname.def;
24291           cat $export_symbols >> $output_objdir/$soname.def;
24292         fi~
24293         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24294       else
24295         ld_shlibs_GCJ=no
24296       fi
24297       ;;
24298
24299     interix3*)
24300       hardcode_direct_GCJ=no
24301       hardcode_shlibpath_var_GCJ=no
24302       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24303       export_dynamic_flag_spec_GCJ='${wl}-E'
24304       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24305       # Instead, shared libraries are loaded at an image base (0x10000000 by
24306       # default) and relocated if they conflict, which is a slow very memory
24307       # consuming and fragmenting process.  To avoid this, we pick a random,
24308       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24309       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24310       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24311       archive_expsym_cmds_GCJ='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'
24312       ;;
24313
24314     linux*)
24315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24316         tmp_addflag=
24317         case $cc_basename,$host_cpu in
24318         pgcc*)                          # Portland Group C compiler
24319           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24320           tmp_addflag=' $pic_flag'
24321           ;;
24322         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24323           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24324           tmp_addflag=' $pic_flag -Mnomain' ;;
24325         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24326           tmp_addflag=' -i_dynamic' ;;
24327         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24328           tmp_addflag=' -i_dynamic -nofor_main' ;;
24329         ifc* | ifort*)                  # Intel Fortran compiler
24330           tmp_addflag=' -nofor_main' ;;
24331         esac
24332         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24333
24334         if test $supports_anon_versioning = yes; then
24335           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24336   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24337   $echo "local: *; };" >> $output_objdir/$libname.ver~
24338           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24339         fi
24340       else
24341         ld_shlibs_GCJ=no
24342       fi
24343       ;;
24344
24345     netbsd*)
24346       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24347         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24348         wlarc=
24349       else
24350         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24351         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24352       fi
24353       ;;
24354
24355     solaris*)
24356       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24357         ld_shlibs_GCJ=no
24358         cat <<EOF 1>&2
24359
24360 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24361 *** create shared libraries on Solaris systems.  Therefore, libtool
24362 *** is disabling shared libraries support.  We urge you to upgrade GNU
24363 *** binutils to release 2.9.1 or newer.  Another option is to modify
24364 *** your PATH or compiler configuration so that the native linker is
24365 *** used, and then restart.
24366
24367 EOF
24368       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24370         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24371       else
24372         ld_shlibs_GCJ=no
24373       fi
24374       ;;
24375
24376     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24377       case `$LD -v 2>&1` in
24378         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24379         ld_shlibs_GCJ=no
24380         cat <<_LT_EOF 1>&2
24381
24382 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24383 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24384 *** is disabling shared libraries support.  We urge you to upgrade GNU
24385 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24386 *** your PATH or compiler configuration so that the native linker is
24387 *** used, and then restart.
24388
24389 _LT_EOF
24390         ;;
24391         *)
24392           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24393             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24394             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24395             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24396           else
24397             ld_shlibs_GCJ=no
24398           fi
24399         ;;
24400       esac
24401       ;;
24402
24403     sunos4*)
24404       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24405       wlarc=
24406       hardcode_direct_GCJ=yes
24407       hardcode_shlibpath_var_GCJ=no
24408       ;;
24409
24410     *)
24411       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24412         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24413         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24414       else
24415         ld_shlibs_GCJ=no
24416       fi
24417       ;;
24418     esac
24419
24420     if test "$ld_shlibs_GCJ" = no; then
24421       runpath_var=
24422       hardcode_libdir_flag_spec_GCJ=
24423       export_dynamic_flag_spec_GCJ=
24424       whole_archive_flag_spec_GCJ=
24425     fi
24426   else
24427     # PORTME fill in a description of your system's linker (not GNU ld)
24428     case $host_os in
24429     aix3*)
24430       allow_undefined_flag_GCJ=unsupported
24431       always_export_symbols_GCJ=yes
24432       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24433       # Note: this linker hardcodes the directories in LIBPATH if there
24434       # are no directories specified by -L.
24435       hardcode_minus_L_GCJ=yes
24436       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24437         # Neither direct hardcoding nor static linking is supported with a
24438         # broken collect2.
24439         hardcode_direct_GCJ=unsupported
24440       fi
24441       ;;
24442
24443     aix4* | aix5*)
24444       if test "$host_cpu" = ia64; then
24445         # On IA64, the linker does run time linking by default, so we don't
24446         # have to do anything special.
24447         aix_use_runtimelinking=no
24448         exp_sym_flag='-Bexport'
24449         no_entry_flag=""
24450       else
24451         # If we're using GNU nm, then we don't want the "-C" option.
24452         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24453         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24454           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24455         else
24456           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24457         fi
24458         aix_use_runtimelinking=no
24459
24460         # Test if we are trying to use run time linking or normal
24461         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24462         # need to do runtime linking.
24463         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24464           for ld_flag in $LDFLAGS; do
24465           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24466             aix_use_runtimelinking=yes
24467             break
24468           fi
24469           done
24470           ;;
24471         esac
24472
24473         exp_sym_flag='-bexport'
24474         no_entry_flag='-bnoentry'
24475       fi
24476
24477       # When large executables or shared objects are built, AIX ld can
24478       # have problems creating the table of contents.  If linking a library
24479       # or program results in "error TOC overflow" add -mminimal-toc to
24480       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24481       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24482
24483       archive_cmds_GCJ=''
24484       hardcode_direct_GCJ=yes
24485       hardcode_libdir_separator_GCJ=':'
24486       link_all_deplibs_GCJ=yes
24487
24488       if test "$GCC" = yes; then
24489         case $host_os in aix4.[012]|aix4.[012].*)
24490         # We only want to do this on AIX 4.2 and lower, the check
24491         # below for broken collect2 doesn't work under 4.3+
24492           collect2name=`${CC} -print-prog-name=collect2`
24493           if test -f "$collect2name" && \
24494            strings "$collect2name" | grep resolve_lib_name >/dev/null
24495           then
24496           # We have reworked collect2
24497           hardcode_direct_GCJ=yes
24498           else
24499           # We have old collect2
24500           hardcode_direct_GCJ=unsupported
24501           # It fails to find uninstalled libraries when the uninstalled
24502           # path is not listed in the libpath.  Setting hardcode_minus_L
24503           # to unsupported forces relinking
24504           hardcode_minus_L_GCJ=yes
24505           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24506           hardcode_libdir_separator_GCJ=
24507           fi
24508           ;;
24509         esac
24510         shared_flag='-shared'
24511         if test "$aix_use_runtimelinking" = yes; then
24512           shared_flag="$shared_flag "'${wl}-G'
24513         fi
24514       else
24515         # not using gcc
24516         if test "$host_cpu" = ia64; then
24517         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24518         # chokes on -Wl,-G. The following line is correct:
24519           shared_flag='-G'
24520         else
24521           if test "$aix_use_runtimelinking" = yes; then
24522             shared_flag='${wl}-G'
24523           else
24524             shared_flag='${wl}-bM:SRE'
24525           fi
24526         fi
24527       fi
24528
24529       # It seems that -bexpall does not export symbols beginning with
24530       # underscore (_), so it is better to generate a list of symbols to export.
24531       always_export_symbols_GCJ=yes
24532       if test "$aix_use_runtimelinking" = yes; then
24533         # Warning - without using the other runtime loading flags (-brtl),
24534         # -berok will link without error, but may produce a broken library.
24535         allow_undefined_flag_GCJ='-berok'
24536        # Determine the default libpath from the value encoded in an empty executable.
24537        cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543
24544 int
24545 main ()
24546 {
24547
24548   ;
24549   return 0;
24550 }
24551 _ACEOF
24552 rm -f conftest.$ac_objext conftest$ac_exeext
24553 if { (ac_try="$ac_link"
24554 case "(($ac_try" in
24555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556   *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559   (eval "$ac_link") 2>conftest.er1
24560   ac_status=$?
24561   grep -v '^ *+' conftest.er1 >conftest.err
24562   rm -f conftest.er1
24563   cat conftest.err >&5
24564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); } &&
24566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24567   { (case "(($ac_try" in
24568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569   *) ac_try_echo=$ac_try;;
24570 esac
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572   (eval "$ac_try") 2>&5
24573   ac_status=$?
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); }; } &&
24576          { ac_try='test -s conftest$ac_exeext'
24577   { (case "(($ac_try" in
24578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579   *) ac_try_echo=$ac_try;;
24580 esac
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582   (eval "$ac_try") 2>&5
24583   ac_status=$?
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); }; }; then
24586
24587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24588 }'`
24589 # Check for a 64-bit object if we didn't find anything.
24590 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24591 }'`; fi
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596
24597 fi
24598
24599 rm -f core conftest.err conftest.$ac_objext \
24600       conftest$ac_exeext conftest.$ac_ext
24601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24602
24603        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24604         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24605        else
24606         if test "$host_cpu" = ia64; then
24607           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24608           allow_undefined_flag_GCJ="-z nodefs"
24609           archive_expsym_cmds_GCJ="\$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"
24610         else
24611          # Determine the default libpath from the value encoded in an empty executable.
24612          cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618
24619 int
24620 main ()
24621 {
24622
24623   ;
24624   return 0;
24625 }
24626 _ACEOF
24627 rm -f conftest.$ac_objext conftest$ac_exeext
24628 if { (ac_try="$ac_link"
24629 case "(($ac_try" in
24630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631   *) ac_try_echo=$ac_try;;
24632 esac
24633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24634   (eval "$ac_link") 2>conftest.er1
24635   ac_status=$?
24636   grep -v '^ *+' conftest.er1 >conftest.err
24637   rm -f conftest.er1
24638   cat conftest.err >&5
24639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640   (exit $ac_status); } &&
24641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24642   { (case "(($ac_try" in
24643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644   *) ac_try_echo=$ac_try;;
24645 esac
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647   (eval "$ac_try") 2>&5
24648   ac_status=$?
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); }; } &&
24651          { ac_try='test -s conftest$ac_exeext'
24652   { (case "(($ac_try" in
24653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654   *) ac_try_echo=$ac_try;;
24655 esac
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657   (eval "$ac_try") 2>&5
24658   ac_status=$?
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); }; }; then
24661
24662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24663 }'`
24664 # Check for a 64-bit object if we didn't find anything.
24665 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24666 }'`; fi
24667 else
24668   echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24670
24671
24672 fi
24673
24674 rm -f core conftest.err conftest.$ac_objext \
24675       conftest$ac_exeext conftest.$ac_ext
24676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24677
24678          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24679           # Warning - without using the other run time loading flags,
24680           # -berok will link without error, but may produce a broken library.
24681           no_undefined_flag_GCJ=' ${wl}-bernotok'
24682           allow_undefined_flag_GCJ=' ${wl}-berok'
24683           # Exported symbols can be pulled into shared objects from archives
24684           whole_archive_flag_spec_GCJ='$convenience'
24685           archive_cmds_need_lc_GCJ=yes
24686           # This is similar to how AIX traditionally builds its shared libraries.
24687           archive_expsym_cmds_GCJ="\$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'
24688         fi
24689       fi
24690       ;;
24691
24692     amigaos*)
24693       archive_cmds_GCJ='$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)'
24694       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24695       hardcode_minus_L_GCJ=yes
24696       # see comment about different semantics on the GNU ld section
24697       ld_shlibs_GCJ=no
24698       ;;
24699
24700     bsdi[45]*)
24701       export_dynamic_flag_spec_GCJ=-rdynamic
24702       ;;
24703
24704     cygwin* | mingw* | pw32*)
24705       # When not using gcc, we currently assume that we are using
24706       # Microsoft Visual C++.
24707       # hardcode_libdir_flag_spec is actually meaningless, as there is
24708       # no search path for DLLs.
24709       hardcode_libdir_flag_spec_GCJ=' '
24710       allow_undefined_flag_GCJ=unsupported
24711       # Tell ltmain to make .lib files, not .a files.
24712       libext=lib
24713       # Tell ltmain to make .dll files, not .so files.
24714       shrext_cmds=".dll"
24715       # FIXME: Setting linknames here is a bad hack.
24716       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24717       # The linker will automatically build a .lib file if we build a DLL.
24718       old_archive_From_new_cmds_GCJ='true'
24719       # FIXME: Should let the user specify the lib program.
24720       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24721       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24722       enable_shared_with_static_runtimes_GCJ=yes
24723       ;;
24724
24725     darwin* | rhapsody*)
24726       case $host_os in
24727         rhapsody* | darwin1.[012])
24728          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24729          ;;
24730        *) # Darwin 1.3 on
24731          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24732            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24733          else
24734            case ${MACOSX_DEPLOYMENT_TARGET} in
24735              10.[012])
24736                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24737                ;;
24738              10.*)
24739                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24740                ;;
24741            esac
24742          fi
24743          ;;
24744       esac
24745       archive_cmds_need_lc_GCJ=no
24746       hardcode_direct_GCJ=no
24747       hardcode_automatic_GCJ=yes
24748       hardcode_shlibpath_var_GCJ=unsupported
24749       whole_archive_flag_spec_GCJ=''
24750       link_all_deplibs_GCJ=yes
24751     if test "$GCC" = yes ; then
24752         output_verbose_link_cmd='echo'
24753         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24754       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24755       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24756       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24757       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24758     else
24759       case $cc_basename in
24760         xlc*)
24761          output_verbose_link_cmd='echo'
24762          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24763          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24764           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24765          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24766           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24767           ;;
24768        *)
24769          ld_shlibs_GCJ=no
24770           ;;
24771       esac
24772     fi
24773       ;;
24774
24775     dgux*)
24776       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24777       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24778       hardcode_shlibpath_var_GCJ=no
24779       ;;
24780
24781     freebsd1*)
24782       ld_shlibs_GCJ=no
24783       ;;
24784
24785     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24786     # support.  Future versions do this automatically, but an explicit c++rt0.o
24787     # does not break anything, and helps significantly (at the cost of a little
24788     # extra space).
24789     freebsd2.2*)
24790       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24791       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24792       hardcode_direct_GCJ=yes
24793       hardcode_shlibpath_var_GCJ=no
24794       ;;
24795
24796     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24797     freebsd2*)
24798       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24799       hardcode_direct_GCJ=yes
24800       hardcode_minus_L_GCJ=yes
24801       hardcode_shlibpath_var_GCJ=no
24802       ;;
24803
24804     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24805     freebsd* | kfreebsd*-gnu | dragonfly*)
24806       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24807       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24808       hardcode_direct_GCJ=yes
24809       hardcode_shlibpath_var_GCJ=no
24810       ;;
24811
24812     hpux9*)
24813       if test "$GCC" = yes; then
24814         archive_cmds_GCJ='$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'
24815       else
24816         archive_cmds_GCJ='$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'
24817       fi
24818       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24819       hardcode_libdir_separator_GCJ=:
24820       hardcode_direct_GCJ=yes
24821
24822       # hardcode_minus_L: Not really in the search PATH,
24823       # but as the default location of the library.
24824       hardcode_minus_L_GCJ=yes
24825       export_dynamic_flag_spec_GCJ='${wl}-E'
24826       ;;
24827
24828     hpux10*)
24829       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24830         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24831       else
24832         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24833       fi
24834       if test "$with_gnu_ld" = no; then
24835         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24836         hardcode_libdir_separator_GCJ=:
24837
24838         hardcode_direct_GCJ=yes
24839         export_dynamic_flag_spec_GCJ='${wl}-E'
24840
24841         # hardcode_minus_L: Not really in the search PATH,
24842         # but as the default location of the library.
24843         hardcode_minus_L_GCJ=yes
24844       fi
24845       ;;
24846
24847     hpux11*)
24848       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24849         case $host_cpu in
24850         hppa*64*)
24851           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24852           ;;
24853         ia64*)
24854           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24855           ;;
24856         *)
24857           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24858           ;;
24859         esac
24860       else
24861         case $host_cpu in
24862         hppa*64*)
24863           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24864           ;;
24865         ia64*)
24866           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24867           ;;
24868         *)
24869           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24870           ;;
24871         esac
24872       fi
24873       if test "$with_gnu_ld" = no; then
24874         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24875         hardcode_libdir_separator_GCJ=:
24876
24877         case $host_cpu in
24878         hppa*64*|ia64*)
24879           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24880           hardcode_direct_GCJ=no
24881           hardcode_shlibpath_var_GCJ=no
24882           ;;
24883         *)
24884           hardcode_direct_GCJ=yes
24885           export_dynamic_flag_spec_GCJ='${wl}-E'
24886
24887           # hardcode_minus_L: Not really in the search PATH,
24888           # but as the default location of the library.
24889           hardcode_minus_L_GCJ=yes
24890           ;;
24891         esac
24892       fi
24893       ;;
24894
24895     irix5* | irix6* | nonstopux*)
24896       if test "$GCC" = yes; then
24897         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24898       else
24899         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24900         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24901       fi
24902       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24903       hardcode_libdir_separator_GCJ=:
24904       link_all_deplibs_GCJ=yes
24905       ;;
24906
24907     netbsd*)
24908       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24909         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24910       else
24911         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24912       fi
24913       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24914       hardcode_direct_GCJ=yes
24915       hardcode_shlibpath_var_GCJ=no
24916       ;;
24917
24918     newsos6)
24919       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24920       hardcode_direct_GCJ=yes
24921       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24922       hardcode_libdir_separator_GCJ=:
24923       hardcode_shlibpath_var_GCJ=no
24924       ;;
24925
24926     openbsd*)
24927       hardcode_direct_GCJ=yes
24928       hardcode_shlibpath_var_GCJ=no
24929       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24930         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24931         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24932         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24933         export_dynamic_flag_spec_GCJ='${wl}-E'
24934       else
24935        case $host_os in
24936          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24937            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24938            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24939            ;;
24940          *)
24941            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24942            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24943            ;;
24944        esac
24945       fi
24946       ;;
24947
24948     os2*)
24949       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24950       hardcode_minus_L_GCJ=yes
24951       allow_undefined_flag_GCJ=unsupported
24952       archive_cmds_GCJ='$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'
24953       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24954       ;;
24955
24956     osf3*)
24957       if test "$GCC" = yes; then
24958         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24959         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24960       else
24961         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24962         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24963       fi
24964       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24965       hardcode_libdir_separator_GCJ=:
24966       ;;
24967
24968     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24969       if test "$GCC" = yes; then
24970         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24971         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24972         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24973       else
24974         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24975         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24976         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
24977         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
24978
24979         # Both c and cxx compiler support -rpath directly
24980         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24981       fi
24982       hardcode_libdir_separator_GCJ=:
24983       ;;
24984
24985     solaris*)
24986       no_undefined_flag_GCJ=' -z text'
24987       if test "$GCC" = yes; then
24988         wlarc='${wl}'
24989         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24990         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24991           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24992       else
24993         wlarc=''
24994         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24995         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24996         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24997       fi
24998       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24999       hardcode_shlibpath_var_GCJ=no
25000       case $host_os in
25001       solaris2.[0-5] | solaris2.[0-5].*) ;;
25002       *)
25003         # The compiler driver will combine linker options so we
25004         # cannot just pass the convience library names through
25005         # without $wl, iff we do not link with $LD.
25006         # Luckily, gcc supports the same syntax we need for Sun Studio.
25007         # Supported since Solaris 2.6 (maybe 2.5.1?)
25008         case $wlarc in
25009         '')
25010           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25011         *)
25012           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25013         esac ;;
25014       esac
25015       link_all_deplibs_GCJ=yes
25016       ;;
25017
25018     sunos4*)
25019       if test "x$host_vendor" = xsequent; then
25020         # Use $CC to link under sequent, because it throws in some extra .o
25021         # files that make .init and .fini sections work.
25022         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25023       else
25024         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25025       fi
25026       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25027       hardcode_direct_GCJ=yes
25028       hardcode_minus_L_GCJ=yes
25029       hardcode_shlibpath_var_GCJ=no
25030       ;;
25031
25032     sysv4)
25033       case $host_vendor in
25034         sni)
25035           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25036           hardcode_direct_GCJ=yes # is this really true???
25037         ;;
25038         siemens)
25039           ## LD is ld it makes a PLAMLIB
25040           ## CC just makes a GrossModule.
25041           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25042           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25043           hardcode_direct_GCJ=no
25044         ;;
25045         motorola)
25046           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25047           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25048         ;;
25049       esac
25050       runpath_var='LD_RUN_PATH'
25051       hardcode_shlibpath_var_GCJ=no
25052       ;;
25053
25054     sysv4.3*)
25055       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25056       hardcode_shlibpath_var_GCJ=no
25057       export_dynamic_flag_spec_GCJ='-Bexport'
25058       ;;
25059
25060     sysv4*MP*)
25061       if test -d /usr/nec; then
25062         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25063         hardcode_shlibpath_var_GCJ=no
25064         runpath_var=LD_RUN_PATH
25065         hardcode_runpath_var=yes
25066         ld_shlibs_GCJ=yes
25067       fi
25068       ;;
25069
25070     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25071       no_undefined_flag_GCJ='${wl}-z,text'
25072       archive_cmds_need_lc_GCJ=no
25073       hardcode_shlibpath_var_GCJ=no
25074       runpath_var='LD_RUN_PATH'
25075
25076       if test "$GCC" = yes; then
25077         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25078         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25079       else
25080         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25081         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25082       fi
25083       ;;
25084
25085     sysv5* | sco3.2v5* | sco5v6*)
25086       # Note: We can NOT use -z defs as we might desire, because we do not
25087       # link with -lc, and that would cause any symbols used from libc to
25088       # always be unresolved, which means just about no library would
25089       # ever link correctly.  If we're not using GNU ld we use -z text
25090       # though, which does catch some bad symbols but isn't as heavy-handed
25091       # as -z defs.
25092       no_undefined_flag_GCJ='${wl}-z,text'
25093       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25094       archive_cmds_need_lc_GCJ=no
25095       hardcode_shlibpath_var_GCJ=no
25096       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25097       hardcode_libdir_separator_GCJ=':'
25098       link_all_deplibs_GCJ=yes
25099       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25100       runpath_var='LD_RUN_PATH'
25101
25102       if test "$GCC" = yes; then
25103         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25104         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25105       else
25106         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25107         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25108       fi
25109       ;;
25110
25111     uts4*)
25112       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114       hardcode_shlibpath_var_GCJ=no
25115       ;;
25116
25117     *)
25118       ld_shlibs_GCJ=no
25119       ;;
25120     esac
25121   fi
25122
25123 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25124 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25125 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25126
25127 #
25128 # Do we need to explicitly link libc?
25129 #
25130 case "x$archive_cmds_need_lc_GCJ" in
25131 x|xyes)
25132   # Assume -lc should be added
25133   archive_cmds_need_lc_GCJ=yes
25134
25135   if test "$enable_shared" = yes && test "$GCC" = yes; then
25136     case $archive_cmds_GCJ in
25137     *'~'*)
25138       # FIXME: we may have to deal with multi-command sequences.
25139       ;;
25140     '$CC '*)
25141       # Test whether the compiler implicitly links with -lc since on some
25142       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25143       # to ld, don't add -lc before -lgcc.
25144       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25145 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25146       $rm conftest*
25147       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25148
25149       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25150   (eval $ac_compile) 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } 2>conftest.err; then
25154         soname=conftest
25155         lib=conftest
25156         libobjs=conftest.$ac_objext
25157         deplibs=
25158         wl=$lt_prog_compiler_wl_GCJ
25159         pic_flag=$lt_prog_compiler_pic_GCJ
25160         compiler_flags=-v
25161         linker_flags=-v
25162         verstring=
25163         output_objdir=.
25164         libname=conftest
25165         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25166         allow_undefined_flag_GCJ=
25167         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25168   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25169   ac_status=$?
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); }
25172         then
25173           archive_cmds_need_lc_GCJ=no
25174         else
25175           archive_cmds_need_lc_GCJ=yes
25176         fi
25177         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25178       else
25179         cat conftest.err 1>&5
25180       fi
25181       $rm conftest*
25182       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25183 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25184       ;;
25185     esac
25186   fi
25187   ;;
25188 esac
25189
25190 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25191 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25192 library_names_spec=
25193 libname_spec='lib$name'
25194 soname_spec=
25195 shrext_cmds=".so"
25196 postinstall_cmds=
25197 postuninstall_cmds=
25198 finish_cmds=
25199 finish_eval=
25200 shlibpath_var=
25201 shlibpath_overrides_runpath=unknown
25202 version_type=none
25203 dynamic_linker="$host_os ld.so"
25204 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25205 if test "$GCC" = yes; then
25206   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25207   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25208     # if the path contains ";" then we assume it to be the separator
25209     # otherwise default to the standard path separator (i.e. ":") - it is
25210     # assumed that no part of a normal pathname contains ";" but that should
25211     # okay in the real world where ";" in dirpaths is itself problematic.
25212     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25213   else
25214     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25215   fi
25216 else
25217   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25218 fi
25219 need_lib_prefix=unknown
25220 hardcode_into_libs=no
25221
25222 # when you set need_version to no, make sure it does not cause -set_version
25223 # flags to be left without arguments
25224 need_version=unknown
25225
25226 case $host_os in
25227 aix3*)
25228   version_type=linux
25229   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25230   shlibpath_var=LIBPATH
25231
25232   # AIX 3 has no versioning support, so we append a major version to the name.
25233   soname_spec='${libname}${release}${shared_ext}$major'
25234   ;;
25235
25236 aix4* | aix5*)
25237   version_type=linux
25238   need_lib_prefix=no
25239   need_version=no
25240   hardcode_into_libs=yes
25241   if test "$host_cpu" = ia64; then
25242     # AIX 5 supports IA64
25243     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25244     shlibpath_var=LD_LIBRARY_PATH
25245   else
25246     # With GCC up to 2.95.x, collect2 would create an import file
25247     # for dependence libraries.  The import file would start with
25248     # the line `#! .'.  This would cause the generated library to
25249     # depend on `.', always an invalid library.  This was fixed in
25250     # development snapshots of GCC prior to 3.0.
25251     case $host_os in
25252       aix4 | aix4.[01] | aix4.[01].*)
25253       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25254            echo ' yes '
25255            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25256         :
25257       else
25258         can_build_shared=no
25259       fi
25260       ;;
25261     esac
25262     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25263     # soname into executable. Probably we can add versioning support to
25264     # collect2, so additional links can be useful in future.
25265     if test "$aix_use_runtimelinking" = yes; then
25266       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25267       # instead of lib<name>.a to let people know that these are not
25268       # typical AIX shared libraries.
25269       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25270     else
25271       # We preserve .a as extension for shared libraries through AIX4.2
25272       # and later when we are not doing run time linking.
25273       library_names_spec='${libname}${release}.a $libname.a'
25274       soname_spec='${libname}${release}${shared_ext}$major'
25275     fi
25276     shlibpath_var=LIBPATH
25277   fi
25278   ;;
25279
25280 amigaos*)
25281   library_names_spec='$libname.ixlibrary $libname.a'
25282   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25283   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'
25284   ;;
25285
25286 beos*)
25287   library_names_spec='${libname}${shared_ext}'
25288   dynamic_linker="$host_os ld.so"
25289   shlibpath_var=LIBRARY_PATH
25290   ;;
25291
25292 bsdi[45]*)
25293   version_type=linux
25294   need_version=no
25295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25296   soname_spec='${libname}${release}${shared_ext}$major'
25297   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25298   shlibpath_var=LD_LIBRARY_PATH
25299   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25300   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25301   # the default ld.so.conf also contains /usr/contrib/lib and
25302   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25303   # libtool to hard-code these into programs
25304   ;;
25305
25306 cygwin* | mingw* | pw32*)
25307   version_type=windows
25308   shrext_cmds=".dll"
25309   need_version=no
25310   need_lib_prefix=no
25311
25312   case $GCC,$host_os in
25313   yes,cygwin* | yes,mingw* | yes,pw32*)
25314     library_names_spec='$libname.dll.a'
25315     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25316     postinstall_cmds='base_file=`basename \${file}`~
25317       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25318       dldir=$destdir/`dirname \$dlpath`~
25319       test -d \$dldir || mkdir -p \$dldir~
25320       $install_prog $dir/$dlname \$dldir/$dlname~
25321       chmod a+x \$dldir/$dlname'
25322     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25323       dlpath=$dir/\$dldll~
25324        $rm \$dlpath'
25325     shlibpath_overrides_runpath=yes
25326
25327     case $host_os in
25328     cygwin*)
25329       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25330       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25331       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25332       ;;
25333     mingw*)
25334       # MinGW DLLs use traditional 'lib' prefix
25335       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25336       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25337       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25338         # It is most probably a Windows format PATH printed by
25339         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25340         # path with ; separators, and with drive letters. We can handle the
25341         # drive letters (cygwin fileutils understands them), so leave them,
25342         # especially as we might pass files found there to a mingw objdump,
25343         # which wouldn't understand a cygwinified path. Ahh.
25344         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25345       else
25346         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25347       fi
25348       ;;
25349     pw32*)
25350       # pw32 DLLs use 'pw' prefix rather than 'lib'
25351       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25352       ;;
25353     esac
25354     ;;
25355
25356   *)
25357     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25358     ;;
25359   esac
25360   dynamic_linker='Win32 ld.exe'
25361   # FIXME: first we should search . and the directory the executable is in
25362   shlibpath_var=PATH
25363   ;;
25364
25365 darwin* | rhapsody*)
25366   dynamic_linker="$host_os dyld"
25367   version_type=darwin
25368   need_lib_prefix=no
25369   need_version=no
25370   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25371   soname_spec='${libname}${release}${major}$shared_ext'
25372   shlibpath_overrides_runpath=yes
25373   shlibpath_var=DYLD_LIBRARY_PATH
25374   shrext_cmds='.dylib'
25375   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25376   if test "$GCC" = yes; then
25377     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25378   else
25379     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25380   fi
25381   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25382   ;;
25383
25384 dgux*)
25385   version_type=linux
25386   need_lib_prefix=no
25387   need_version=no
25388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25389   soname_spec='${libname}${release}${shared_ext}$major'
25390   shlibpath_var=LD_LIBRARY_PATH
25391   ;;
25392
25393 freebsd1*)
25394   dynamic_linker=no
25395   ;;
25396
25397 kfreebsd*-gnu)
25398   version_type=linux
25399   need_lib_prefix=no
25400   need_version=no
25401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25402   soname_spec='${libname}${release}${shared_ext}$major'
25403   shlibpath_var=LD_LIBRARY_PATH
25404   shlibpath_overrides_runpath=no
25405   hardcode_into_libs=yes
25406   dynamic_linker='GNU ld.so'
25407   ;;
25408
25409 freebsd* | dragonfly*)
25410   # DragonFly does not have aout.  When/if they implement a new
25411   # versioning mechanism, adjust this.
25412   if test -x /usr/bin/objformat; then
25413     objformat=`/usr/bin/objformat`
25414   else
25415     case $host_os in
25416     freebsd[123]*) objformat=aout ;;
25417     *) objformat=elf ;;
25418     esac
25419   fi
25420   version_type=freebsd-$objformat
25421   case $version_type in
25422     freebsd-elf*)
25423       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25424       need_version=no
25425       need_lib_prefix=no
25426       ;;
25427     freebsd-*)
25428       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25429       need_version=yes
25430       ;;
25431   esac
25432   shlibpath_var=LD_LIBRARY_PATH
25433   case $host_os in
25434   freebsd2*)
25435     shlibpath_overrides_runpath=yes
25436     ;;
25437   freebsd3.[01]* | freebsdelf3.[01]*)
25438     shlibpath_overrides_runpath=yes
25439     hardcode_into_libs=yes
25440     ;;
25441   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25442   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25443     shlibpath_overrides_runpath=no
25444     hardcode_into_libs=yes
25445     ;;
25446   freebsd*) # from 4.6 on
25447     shlibpath_overrides_runpath=yes
25448     hardcode_into_libs=yes
25449     ;;
25450   esac
25451   ;;
25452
25453 gnu*)
25454   version_type=linux
25455   need_lib_prefix=no
25456   need_version=no
25457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25458   soname_spec='${libname}${release}${shared_ext}$major'
25459   shlibpath_var=LD_LIBRARY_PATH
25460   hardcode_into_libs=yes
25461   ;;
25462
25463 hpux9* | hpux10* | hpux11*)
25464   # Give a soname corresponding to the major version so that dld.sl refuses to
25465   # link against other versions.
25466   version_type=sunos
25467   need_lib_prefix=no
25468   need_version=no
25469   case $host_cpu in
25470   ia64*)
25471     shrext_cmds='.so'
25472     hardcode_into_libs=yes
25473     dynamic_linker="$host_os dld.so"
25474     shlibpath_var=LD_LIBRARY_PATH
25475     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477     soname_spec='${libname}${release}${shared_ext}$major'
25478     if test "X$HPUX_IA64_MODE" = X32; then
25479       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25480     else
25481       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25482     fi
25483     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25484     ;;
25485    hppa*64*)
25486      shrext_cmds='.sl'
25487      hardcode_into_libs=yes
25488      dynamic_linker="$host_os dld.sl"
25489      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25490      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25491      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25492      soname_spec='${libname}${release}${shared_ext}$major'
25493      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25494      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25495      ;;
25496    *)
25497     shrext_cmds='.sl'
25498     dynamic_linker="$host_os dld.sl"
25499     shlibpath_var=SHLIB_PATH
25500     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25502     soname_spec='${libname}${release}${shared_ext}$major'
25503     ;;
25504   esac
25505   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25506   postinstall_cmds='chmod 555 $lib'
25507   ;;
25508
25509 interix3*)
25510   version_type=linux
25511   need_lib_prefix=no
25512   need_version=no
25513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25514   soname_spec='${libname}${release}${shared_ext}$major'
25515   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25516   shlibpath_var=LD_LIBRARY_PATH
25517   shlibpath_overrides_runpath=no
25518   hardcode_into_libs=yes
25519   ;;
25520
25521 irix5* | irix6* | nonstopux*)
25522   case $host_os in
25523     nonstopux*) version_type=nonstopux ;;
25524     *)
25525         if test "$lt_cv_prog_gnu_ld" = yes; then
25526                 version_type=linux
25527         else
25528                 version_type=irix
25529         fi ;;
25530   esac
25531   need_lib_prefix=no
25532   need_version=no
25533   soname_spec='${libname}${release}${shared_ext}$major'
25534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25535   case $host_os in
25536   irix5* | nonstopux*)
25537     libsuff= shlibsuff=
25538     ;;
25539   *)
25540     case $LD in # libtool.m4 will add one of these switches to LD
25541     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25542       libsuff= shlibsuff= libmagic=32-bit;;
25543     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25544       libsuff=32 shlibsuff=N32 libmagic=N32;;
25545     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25546       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25547     *) libsuff= shlibsuff= libmagic=never-match;;
25548     esac
25549     ;;
25550   esac
25551   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25552   shlibpath_overrides_runpath=no
25553   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25554   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25555   hardcode_into_libs=yes
25556   ;;
25557
25558 # No shared lib support for Linux oldld, aout, or coff.
25559 linux*oldld* | linux*aout* | linux*coff*)
25560   dynamic_linker=no
25561   ;;
25562
25563 # This must be Linux ELF.
25564 linux*)
25565   version_type=linux
25566   need_lib_prefix=no
25567   need_version=no
25568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25569   soname_spec='${libname}${release}${shared_ext}$major'
25570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25571   shlibpath_var=LD_LIBRARY_PATH
25572   shlibpath_overrides_runpath=no
25573   # This implies no fast_install, which is unacceptable.
25574   # Some rework will be needed to allow for fast_install
25575   # before this can be enabled.
25576   hardcode_into_libs=yes
25577
25578   # Append ld.so.conf contents to the search path
25579   if test -f /etc/ld.so.conf; then
25580     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25581     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25582   fi
25583
25584   # We used to test for /lib/ld.so.1 and disable shared libraries on
25585   # powerpc, because MkLinux only supported shared libraries with the
25586   # GNU dynamic linker.  Since this was broken with cross compilers,
25587   # most powerpc-linux boxes support dynamic linking these days and
25588   # people can always --disable-shared, the test was removed, and we
25589   # assume the GNU/Linux dynamic linker is in use.
25590   dynamic_linker='GNU/Linux ld.so'
25591   ;;
25592
25593 knetbsd*-gnu)
25594   version_type=linux
25595   need_lib_prefix=no
25596   need_version=no
25597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25598   soname_spec='${libname}${release}${shared_ext}$major'
25599   shlibpath_var=LD_LIBRARY_PATH
25600   shlibpath_overrides_runpath=no
25601   hardcode_into_libs=yes
25602   dynamic_linker='GNU ld.so'
25603   ;;
25604
25605 netbsd*)
25606   version_type=sunos
25607   need_lib_prefix=no
25608   need_version=no
25609   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25611     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25612     dynamic_linker='NetBSD (a.out) ld.so'
25613   else
25614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25615     soname_spec='${libname}${release}${shared_ext}$major'
25616     dynamic_linker='NetBSD ld.elf_so'
25617   fi
25618   shlibpath_var=LD_LIBRARY_PATH
25619   shlibpath_overrides_runpath=yes
25620   hardcode_into_libs=yes
25621   ;;
25622
25623 newsos6)
25624   version_type=linux
25625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25626   shlibpath_var=LD_LIBRARY_PATH
25627   shlibpath_overrides_runpath=yes
25628   ;;
25629
25630 nto-qnx*)
25631   version_type=linux
25632   need_lib_prefix=no
25633   need_version=no
25634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635   soname_spec='${libname}${release}${shared_ext}$major'
25636   shlibpath_var=LD_LIBRARY_PATH
25637   shlibpath_overrides_runpath=yes
25638   ;;
25639
25640 openbsd*)
25641   version_type=sunos
25642   sys_lib_dlsearch_path_spec="/usr/lib"
25643   need_lib_prefix=no
25644   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25645   case $host_os in
25646     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25647     *)                         need_version=no  ;;
25648   esac
25649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25650   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25651   shlibpath_var=LD_LIBRARY_PATH
25652   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25653     case $host_os in
25654       openbsd2.[89] | openbsd2.[89].*)
25655         shlibpath_overrides_runpath=no
25656         ;;
25657       *)
25658         shlibpath_overrides_runpath=yes
25659         ;;
25660       esac
25661   else
25662     shlibpath_overrides_runpath=yes
25663   fi
25664   ;;
25665
25666 os2*)
25667   libname_spec='$name'
25668   shrext_cmds=".dll"
25669   need_lib_prefix=no
25670   library_names_spec='$libname${shared_ext} $libname.a'
25671   dynamic_linker='OS/2 ld.exe'
25672   shlibpath_var=LIBPATH
25673   ;;
25674
25675 osf3* | osf4* | osf5*)
25676   version_type=osf
25677   need_lib_prefix=no
25678   need_version=no
25679   soname_spec='${libname}${release}${shared_ext}$major'
25680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25681   shlibpath_var=LD_LIBRARY_PATH
25682   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25683   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25684   ;;
25685
25686 solaris*)
25687   version_type=linux
25688   need_lib_prefix=no
25689   need_version=no
25690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25691   soname_spec='${libname}${release}${shared_ext}$major'
25692   shlibpath_var=LD_LIBRARY_PATH
25693   shlibpath_overrides_runpath=yes
25694   hardcode_into_libs=yes
25695   # ldd complains unless libraries are executable
25696   postinstall_cmds='chmod +x $lib'
25697   ;;
25698
25699 sunos4*)
25700   version_type=sunos
25701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25702   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25703   shlibpath_var=LD_LIBRARY_PATH
25704   shlibpath_overrides_runpath=yes
25705   if test "$with_gnu_ld" = yes; then
25706     need_lib_prefix=no
25707   fi
25708   need_version=yes
25709   ;;
25710
25711 sysv4 | sysv4.3*)
25712   version_type=linux
25713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25714   soname_spec='${libname}${release}${shared_ext}$major'
25715   shlibpath_var=LD_LIBRARY_PATH
25716   case $host_vendor in
25717     sni)
25718       shlibpath_overrides_runpath=no
25719       need_lib_prefix=no
25720       export_dynamic_flag_spec='${wl}-Blargedynsym'
25721       runpath_var=LD_RUN_PATH
25722       ;;
25723     siemens)
25724       need_lib_prefix=no
25725       ;;
25726     motorola)
25727       need_lib_prefix=no
25728       need_version=no
25729       shlibpath_overrides_runpath=no
25730       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25731       ;;
25732   esac
25733   ;;
25734
25735 sysv4*MP*)
25736   if test -d /usr/nec ;then
25737     version_type=linux
25738     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25739     soname_spec='$libname${shared_ext}.$major'
25740     shlibpath_var=LD_LIBRARY_PATH
25741   fi
25742   ;;
25743
25744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25745   version_type=freebsd-elf
25746   need_lib_prefix=no
25747   need_version=no
25748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25749   soname_spec='${libname}${release}${shared_ext}$major'
25750   shlibpath_var=LD_LIBRARY_PATH
25751   hardcode_into_libs=yes
25752   if test "$with_gnu_ld" = yes; then
25753     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25754     shlibpath_overrides_runpath=no
25755   else
25756     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25757     shlibpath_overrides_runpath=yes
25758     case $host_os in
25759       sco3.2v5*)
25760         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25761         ;;
25762     esac
25763   fi
25764   sys_lib_dlsearch_path_spec='/usr/lib'
25765   ;;
25766
25767 uts4*)
25768   version_type=linux
25769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25770   soname_spec='${libname}${release}${shared_ext}$major'
25771   shlibpath_var=LD_LIBRARY_PATH
25772   ;;
25773
25774 *)
25775   dynamic_linker=no
25776   ;;
25777 esac
25778 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25779 echo "${ECHO_T}$dynamic_linker" >&6; }
25780 test "$dynamic_linker" = no && can_build_shared=no
25781
25782 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25783 if test "$GCC" = yes; then
25784   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25785 fi
25786
25787 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25789 hardcode_action_GCJ=
25790 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25791    test -n "$runpath_var_GCJ" || \
25792    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25793
25794   # We can hardcode non-existant directories.
25795   if test "$hardcode_direct_GCJ" != no &&
25796      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25797      # have to relink, otherwise we might link with an installed library
25798      # when we should be linking with a yet-to-be-installed one
25799      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25800      test "$hardcode_minus_L_GCJ" != no; then
25801     # Linking always hardcodes the temporary library directory.
25802     hardcode_action_GCJ=relink
25803   else
25804     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25805     hardcode_action_GCJ=immediate
25806   fi
25807 else
25808   # We cannot hardcode anything, or else we can only hardcode existing
25809   # directories.
25810   hardcode_action_GCJ=unsupported
25811 fi
25812 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25813 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25814
25815 if test "$hardcode_action_GCJ" = relink; then
25816   # Fast installation is not supported
25817   enable_fast_install=no
25818 elif test "$shlibpath_overrides_runpath" = yes ||
25819      test "$enable_shared" = no; then
25820   # Fast installation is not necessary
25821   enable_fast_install=needless
25822 fi
25823
25824
25825 # The else clause should only fire when bootstrapping the
25826 # libtool distribution, otherwise you forgot to ship ltmain.sh
25827 # with your package, and you will get complaints that there are
25828 # no rules to generate ltmain.sh.
25829 if test -f "$ltmain"; then
25830   # See if we are running on zsh, and set the options which allow our commands through
25831   # without removal of \ escapes.
25832   if test -n "${ZSH_VERSION+set}" ; then
25833     setopt NO_GLOB_SUBST
25834   fi
25835   # Now quote all the things that may contain metacharacters while being
25836   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25837   # variables and quote the copies for generation of the libtool script.
25838   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25839     SED SHELL STRIP \
25840     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25841     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25842     deplibs_check_method reload_flag reload_cmds need_locks \
25843     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25844     lt_cv_sys_global_symbol_to_c_name_address \
25845     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25846     old_postinstall_cmds old_postuninstall_cmds \
25847     compiler_GCJ \
25848     CC_GCJ \
25849     LD_GCJ \
25850     lt_prog_compiler_wl_GCJ \
25851     lt_prog_compiler_pic_GCJ \
25852     lt_prog_compiler_static_GCJ \
25853     lt_prog_compiler_no_builtin_flag_GCJ \
25854     export_dynamic_flag_spec_GCJ \
25855     thread_safe_flag_spec_GCJ \
25856     whole_archive_flag_spec_GCJ \
25857     enable_shared_with_static_runtimes_GCJ \
25858     old_archive_cmds_GCJ \
25859     old_archive_from_new_cmds_GCJ \
25860     predep_objects_GCJ \
25861     postdep_objects_GCJ \
25862     predeps_GCJ \
25863     postdeps_GCJ \
25864     compiler_lib_search_path_GCJ \
25865     archive_cmds_GCJ \
25866     archive_expsym_cmds_GCJ \
25867     postinstall_cmds_GCJ \
25868     postuninstall_cmds_GCJ \
25869     old_archive_from_expsyms_cmds_GCJ \
25870     allow_undefined_flag_GCJ \
25871     no_undefined_flag_GCJ \
25872     export_symbols_cmds_GCJ \
25873     hardcode_libdir_flag_spec_GCJ \
25874     hardcode_libdir_flag_spec_ld_GCJ \
25875     hardcode_libdir_separator_GCJ \
25876     hardcode_automatic_GCJ \
25877     module_cmds_GCJ \
25878     module_expsym_cmds_GCJ \
25879     lt_cv_prog_compiler_c_o_GCJ \
25880     exclude_expsyms_GCJ \
25881     include_expsyms_GCJ; do
25882
25883     case $var in
25884     old_archive_cmds_GCJ | \
25885     old_archive_from_new_cmds_GCJ | \
25886     archive_cmds_GCJ | \
25887     archive_expsym_cmds_GCJ | \
25888     module_cmds_GCJ | \
25889     module_expsym_cmds_GCJ | \
25890     old_archive_from_expsyms_cmds_GCJ | \
25891     export_symbols_cmds_GCJ | \
25892     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25893     postinstall_cmds | postuninstall_cmds | \
25894     old_postinstall_cmds | old_postuninstall_cmds | \
25895     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25896       # Double-quote double-evaled strings.
25897       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25898       ;;
25899     *)
25900       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25901       ;;
25902     esac
25903   done
25904
25905   case $lt_echo in
25906   *'\$0 --fallback-echo"')
25907     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25908     ;;
25909   esac
25910
25911 cfgfile="$ofile"
25912
25913   cat <<__EOF__ >> "$cfgfile"
25914 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25915
25916 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25917
25918 # Shell to use when invoking shell scripts.
25919 SHELL=$lt_SHELL
25920
25921 # Whether or not to build shared libraries.
25922 build_libtool_libs=$enable_shared
25923
25924 # Whether or not to build static libraries.
25925 build_old_libs=$enable_static
25926
25927 # Whether or not to add -lc for building shared libraries.
25928 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25929
25930 # Whether or not to disallow shared libs when runtime libs are static
25931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25932
25933 # Whether or not to optimize for fast installation.
25934 fast_install=$enable_fast_install
25935
25936 # The host system.
25937 host_alias=$host_alias
25938 host=$host
25939 host_os=$host_os
25940
25941 # The build system.
25942 build_alias=$build_alias
25943 build=$build
25944 build_os=$build_os
25945
25946 # An echo program that does not interpret backslashes.
25947 echo=$lt_echo
25948
25949 # The archiver.
25950 AR=$lt_AR
25951 AR_FLAGS=$lt_AR_FLAGS
25952
25953 # A C compiler.
25954 LTCC=$lt_LTCC
25955
25956 # LTCC compiler flags.
25957 LTCFLAGS=$lt_LTCFLAGS
25958
25959 # A language-specific compiler.
25960 CC=$lt_compiler_GCJ
25961
25962 # Is the compiler the GNU C compiler?
25963 with_gcc=$GCC_GCJ
25964
25965 # An ERE matcher.
25966 EGREP=$lt_EGREP
25967
25968 # The linker used to build libraries.
25969 LD=$lt_LD_GCJ
25970
25971 # Whether we need hard or soft links.
25972 LN_S=$lt_LN_S
25973
25974 # A BSD-compatible nm program.
25975 NM=$lt_NM
25976
25977 # A symbol stripping program
25978 STRIP=$lt_STRIP
25979
25980 # Used to examine libraries when file_magic_cmd begins "file"
25981 MAGIC_CMD=$MAGIC_CMD
25982
25983 # Used on cygwin: DLL creation program.
25984 DLLTOOL="$DLLTOOL"
25985
25986 # Used on cygwin: object dumper.
25987 OBJDUMP="$OBJDUMP"
25988
25989 # Used on cygwin: assembler.
25990 AS="$AS"
25991
25992 # The name of the directory that contains temporary libtool files.
25993 objdir=$objdir
25994
25995 # How to create reloadable object files.
25996 reload_flag=$lt_reload_flag
25997 reload_cmds=$lt_reload_cmds
25998
25999 # How to pass a linker flag through the compiler.
26000 wl=$lt_lt_prog_compiler_wl_GCJ
26001
26002 # Object file suffix (normally "o").
26003 objext="$ac_objext"
26004
26005 # Old archive suffix (normally "a").
26006 libext="$libext"
26007
26008 # Shared library suffix (normally ".so").
26009 shrext_cmds='$shrext_cmds'
26010
26011 # Executable file suffix (normally "").
26012 exeext="$exeext"
26013
26014 # Additional compiler flags for building library objects.
26015 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26016 pic_mode=$pic_mode
26017
26018 # What is the maximum length of a command?
26019 max_cmd_len=$lt_cv_sys_max_cmd_len
26020
26021 # Does compiler simultaneously support -c and -o options?
26022 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26023
26024 # Must we lock files when doing compilation?
26025 need_locks=$lt_need_locks
26026
26027 # Do we need the lib prefix for modules?
26028 need_lib_prefix=$need_lib_prefix
26029
26030 # Do we need a version for libraries?
26031 need_version=$need_version
26032
26033 # Whether dlopen is supported.
26034 dlopen_support=$enable_dlopen
26035
26036 # Whether dlopen of programs is supported.
26037 dlopen_self=$enable_dlopen_self
26038
26039 # Whether dlopen of statically linked programs is supported.
26040 dlopen_self_static=$enable_dlopen_self_static
26041
26042 # Compiler flag to prevent dynamic linking.
26043 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26044
26045 # Compiler flag to turn off builtin functions.
26046 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26047
26048 # Compiler flag to allow reflexive dlopens.
26049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26050
26051 # Compiler flag to generate shared objects directly from archives.
26052 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26053
26054 # Compiler flag to generate thread-safe objects.
26055 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26056
26057 # Library versioning type.
26058 version_type=$version_type
26059
26060 # Format of library name prefix.
26061 libname_spec=$lt_libname_spec
26062
26063 # List of archive names.  First name is the real one, the rest are links.
26064 # The last name is the one that the linker finds with -lNAME.
26065 library_names_spec=$lt_library_names_spec
26066
26067 # The coded name of the library, if different from the real name.
26068 soname_spec=$lt_soname_spec
26069
26070 # Commands used to build and install an old-style archive.
26071 RANLIB=$lt_RANLIB
26072 old_archive_cmds=$lt_old_archive_cmds_GCJ
26073 old_postinstall_cmds=$lt_old_postinstall_cmds
26074 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26075
26076 # Create an old-style archive from a shared archive.
26077 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26078
26079 # Create a temporary old-style archive to link instead of a shared archive.
26080 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26081
26082 # Commands used to build and install a shared archive.
26083 archive_cmds=$lt_archive_cmds_GCJ
26084 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26085 postinstall_cmds=$lt_postinstall_cmds
26086 postuninstall_cmds=$lt_postuninstall_cmds
26087
26088 # Commands used to build a loadable module (assumed same as above if empty)
26089 module_cmds=$lt_module_cmds_GCJ
26090 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26091
26092 # Commands to strip libraries.
26093 old_striplib=$lt_old_striplib
26094 striplib=$lt_striplib
26095
26096 # Dependencies to place before the objects being linked to create a
26097 # shared library.
26098 predep_objects=$lt_predep_objects_GCJ
26099
26100 # Dependencies to place after the objects being linked to create a
26101 # shared library.
26102 postdep_objects=$lt_postdep_objects_GCJ
26103
26104 # Dependencies to place before the objects being linked to create a
26105 # shared library.
26106 predeps=$lt_predeps_GCJ
26107
26108 # Dependencies to place after the objects being linked to create a
26109 # shared library.
26110 postdeps=$lt_postdeps_GCJ
26111
26112 # The library search path used internally by the compiler when linking
26113 # a shared library.
26114 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26115
26116 # Method to check whether dependent libraries are shared objects.
26117 deplibs_check_method=$lt_deplibs_check_method
26118
26119 # Command to use when deplibs_check_method == file_magic.
26120 file_magic_cmd=$lt_file_magic_cmd
26121
26122 # Flag that allows shared libraries with undefined symbols to be built.
26123 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26124
26125 # Flag that forces no undefined symbols.
26126 no_undefined_flag=$lt_no_undefined_flag_GCJ
26127
26128 # Commands used to finish a libtool library installation in a directory.
26129 finish_cmds=$lt_finish_cmds
26130
26131 # Same as above, but a single script fragment to be evaled but not shown.
26132 finish_eval=$lt_finish_eval
26133
26134 # Take the output of nm and produce a listing of raw symbols and C names.
26135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26136
26137 # Transform the output of nm in a proper C declaration
26138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26139
26140 # Transform the output of nm in a C name address pair
26141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26142
26143 # This is the shared library runtime path variable.
26144 runpath_var=$runpath_var
26145
26146 # This is the shared library path variable.
26147 shlibpath_var=$shlibpath_var
26148
26149 # Is shlibpath searched before the hard-coded library search path?
26150 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26151
26152 # How to hardcode a shared library path into an executable.
26153 hardcode_action=$hardcode_action_GCJ
26154
26155 # Whether we should hardcode library paths into libraries.
26156 hardcode_into_libs=$hardcode_into_libs
26157
26158 # Flag to hardcode \$libdir into a binary during linking.
26159 # This must work even if \$libdir does not exist.
26160 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26161
26162 # If ld is used when linking, flag to hardcode \$libdir into
26163 # a binary during linking. This must work even if \$libdir does
26164 # not exist.
26165 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26166
26167 # Whether we need a single -rpath flag with a separated argument.
26168 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26169
26170 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26171 # resulting binary.
26172 hardcode_direct=$hardcode_direct_GCJ
26173
26174 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26175 # resulting binary.
26176 hardcode_minus_L=$hardcode_minus_L_GCJ
26177
26178 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26179 # the resulting binary.
26180 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26181
26182 # Set to yes if building a shared library automatically hardcodes DIR into the library
26183 # and all subsequent libraries and executables linked against it.
26184 hardcode_automatic=$hardcode_automatic_GCJ
26185
26186 # Variables whose values should be saved in libtool wrapper scripts and
26187 # restored at relink time.
26188 variables_saved_for_relink="$variables_saved_for_relink"
26189
26190 # Whether libtool must link a program against all its dependency libraries.
26191 link_all_deplibs=$link_all_deplibs_GCJ
26192
26193 # Compile-time system search path for libraries
26194 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26195
26196 # Run-time system search path for libraries
26197 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26198
26199 # Fix the shell variable \$srcfile for the compiler.
26200 fix_srcfile_path="$fix_srcfile_path_GCJ"
26201
26202 # Set to yes if exported symbols are required.
26203 always_export_symbols=$always_export_symbols_GCJ
26204
26205 # The commands to list exported symbols.
26206 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26207
26208 # The commands to extract the exported symbol list from a shared archive.
26209 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26210
26211 # Symbols that should not be listed in the preloaded symbols.
26212 exclude_expsyms=$lt_exclude_expsyms_GCJ
26213
26214 # Symbols that must always be exported.
26215 include_expsyms=$lt_include_expsyms_GCJ
26216
26217 # ### END LIBTOOL TAG CONFIG: $tagname
26218
26219 __EOF__
26220
26221
26222 else
26223   # If there is no Makefile yet, we rely on a make rule to execute
26224   # `config.status --recheck' to rerun these tests and create the
26225   # libtool script then.
26226   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26227   if test -f "$ltmain_in"; then
26228     test -f Makefile && make "$ltmain"
26229   fi
26230 fi
26231
26232
26233 ac_ext=c
26234 ac_cpp='$CPP $CPPFLAGS'
26235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26238
26239 CC="$lt_save_CC"
26240
26241         else
26242           tagname=""
26243         fi
26244         ;;
26245
26246       RC)
26247         ac_ext=c
26248 ac_cpp='$CPP $CPPFLAGS'
26249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26252
26253
26254 # Source file extension for RC test sources.
26255 ac_ext=rc
26256
26257 # Object file extension for compiled RC test sources.
26258 objext=o
26259 objext_RC=$objext
26260
26261 # Code to be used in simple compile tests
26262 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26263
26264 # Code to be used in simple link tests
26265 lt_simple_link_test_code="$lt_simple_compile_test_code"
26266
26267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26268
26269 # If no C compiler was specified, use CC.
26270 LTCC=${LTCC-"$CC"}
26271
26272 # If no C compiler flags were specified, use CFLAGS.
26273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26274
26275 # Allow CC to be a program name with arguments.
26276 compiler=$CC
26277
26278
26279 # save warnings/boilerplate of simple test code
26280 ac_outfile=conftest.$ac_objext
26281 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26282 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26283 _lt_compiler_boilerplate=`cat conftest.err`
26284 $rm conftest*
26285
26286 ac_outfile=conftest.$ac_objext
26287 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26289 _lt_linker_boilerplate=`cat conftest.err`
26290 $rm conftest*
26291
26292
26293 # Allow CC to be a program name with arguments.
26294 lt_save_CC="$CC"
26295 CC=${RC-"windres"}
26296 compiler=$CC
26297 compiler_RC=$CC
26298 for cc_temp in $compiler""; do
26299   case $cc_temp in
26300     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26301     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26302     \-*) ;;
26303     *) break;;
26304   esac
26305 done
26306 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26307
26308 lt_cv_prog_compiler_c_o_RC=yes
26309
26310 # The else clause should only fire when bootstrapping the
26311 # libtool distribution, otherwise you forgot to ship ltmain.sh
26312 # with your package, and you will get complaints that there are
26313 # no rules to generate ltmain.sh.
26314 if test -f "$ltmain"; then
26315   # See if we are running on zsh, and set the options which allow our commands through
26316   # without removal of \ escapes.
26317   if test -n "${ZSH_VERSION+set}" ; then
26318     setopt NO_GLOB_SUBST
26319   fi
26320   # Now quote all the things that may contain metacharacters while being
26321   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26322   # variables and quote the copies for generation of the libtool script.
26323   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26324     SED SHELL STRIP \
26325     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26326     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26327     deplibs_check_method reload_flag reload_cmds need_locks \
26328     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26329     lt_cv_sys_global_symbol_to_c_name_address \
26330     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26331     old_postinstall_cmds old_postuninstall_cmds \
26332     compiler_RC \
26333     CC_RC \
26334     LD_RC \
26335     lt_prog_compiler_wl_RC \
26336     lt_prog_compiler_pic_RC \
26337     lt_prog_compiler_static_RC \
26338     lt_prog_compiler_no_builtin_flag_RC \
26339     export_dynamic_flag_spec_RC \
26340     thread_safe_flag_spec_RC \
26341     whole_archive_flag_spec_RC \
26342     enable_shared_with_static_runtimes_RC \
26343     old_archive_cmds_RC \
26344     old_archive_from_new_cmds_RC \
26345     predep_objects_RC \
26346     postdep_objects_RC \
26347     predeps_RC \
26348     postdeps_RC \
26349     compiler_lib_search_path_RC \
26350     archive_cmds_RC \
26351     archive_expsym_cmds_RC \
26352     postinstall_cmds_RC \
26353     postuninstall_cmds_RC \
26354     old_archive_from_expsyms_cmds_RC \
26355     allow_undefined_flag_RC \
26356     no_undefined_flag_RC \
26357     export_symbols_cmds_RC \
26358     hardcode_libdir_flag_spec_RC \
26359     hardcode_libdir_flag_spec_ld_RC \
26360     hardcode_libdir_separator_RC \
26361     hardcode_automatic_RC \
26362     module_cmds_RC \
26363     module_expsym_cmds_RC \
26364     lt_cv_prog_compiler_c_o_RC \
26365     exclude_expsyms_RC \
26366     include_expsyms_RC; do
26367
26368     case $var in
26369     old_archive_cmds_RC | \
26370     old_archive_from_new_cmds_RC | \
26371     archive_cmds_RC | \
26372     archive_expsym_cmds_RC | \
26373     module_cmds_RC | \
26374     module_expsym_cmds_RC | \
26375     old_archive_from_expsyms_cmds_RC | \
26376     export_symbols_cmds_RC | \
26377     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26378     postinstall_cmds | postuninstall_cmds | \
26379     old_postinstall_cmds | old_postuninstall_cmds | \
26380     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26381       # Double-quote double-evaled strings.
26382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26383       ;;
26384     *)
26385       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26386       ;;
26387     esac
26388   done
26389
26390   case $lt_echo in
26391   *'\$0 --fallback-echo"')
26392     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26393     ;;
26394   esac
26395
26396 cfgfile="$ofile"
26397
26398   cat <<__EOF__ >> "$cfgfile"
26399 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26400
26401 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26402
26403 # Shell to use when invoking shell scripts.
26404 SHELL=$lt_SHELL
26405
26406 # Whether or not to build shared libraries.
26407 build_libtool_libs=$enable_shared
26408
26409 # Whether or not to build static libraries.
26410 build_old_libs=$enable_static
26411
26412 # Whether or not to add -lc for building shared libraries.
26413 build_libtool_need_lc=$archive_cmds_need_lc_RC
26414
26415 # Whether or not to disallow shared libs when runtime libs are static
26416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26417
26418 # Whether or not to optimize for fast installation.
26419 fast_install=$enable_fast_install
26420
26421 # The host system.
26422 host_alias=$host_alias
26423 host=$host
26424 host_os=$host_os
26425
26426 # The build system.
26427 build_alias=$build_alias
26428 build=$build
26429 build_os=$build_os
26430
26431 # An echo program that does not interpret backslashes.
26432 echo=$lt_echo
26433
26434 # The archiver.
26435 AR=$lt_AR
26436 AR_FLAGS=$lt_AR_FLAGS
26437
26438 # A C compiler.
26439 LTCC=$lt_LTCC
26440
26441 # LTCC compiler flags.
26442 LTCFLAGS=$lt_LTCFLAGS
26443
26444 # A language-specific compiler.
26445 CC=$lt_compiler_RC
26446
26447 # Is the compiler the GNU C compiler?
26448 with_gcc=$GCC_RC
26449
26450 # An ERE matcher.
26451 EGREP=$lt_EGREP
26452
26453 # The linker used to build libraries.
26454 LD=$lt_LD_RC
26455
26456 # Whether we need hard or soft links.
26457 LN_S=$lt_LN_S
26458
26459 # A BSD-compatible nm program.
26460 NM=$lt_NM
26461
26462 # A symbol stripping program
26463 STRIP=$lt_STRIP
26464
26465 # Used to examine libraries when file_magic_cmd begins "file"
26466 MAGIC_CMD=$MAGIC_CMD
26467
26468 # Used on cygwin: DLL creation program.
26469 DLLTOOL="$DLLTOOL"
26470
26471 # Used on cygwin: object dumper.
26472 OBJDUMP="$OBJDUMP"
26473
26474 # Used on cygwin: assembler.
26475 AS="$AS"
26476
26477 # The name of the directory that contains temporary libtool files.
26478 objdir=$objdir
26479
26480 # How to create reloadable object files.
26481 reload_flag=$lt_reload_flag
26482 reload_cmds=$lt_reload_cmds
26483
26484 # How to pass a linker flag through the compiler.
26485 wl=$lt_lt_prog_compiler_wl_RC
26486
26487 # Object file suffix (normally "o").
26488 objext="$ac_objext"
26489
26490 # Old archive suffix (normally "a").
26491 libext="$libext"
26492
26493 # Shared library suffix (normally ".so").
26494 shrext_cmds='$shrext_cmds'
26495
26496 # Executable file suffix (normally "").
26497 exeext="$exeext"
26498
26499 # Additional compiler flags for building library objects.
26500 pic_flag=$lt_lt_prog_compiler_pic_RC
26501 pic_mode=$pic_mode
26502
26503 # What is the maximum length of a command?
26504 max_cmd_len=$lt_cv_sys_max_cmd_len
26505
26506 # Does compiler simultaneously support -c and -o options?
26507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26508
26509 # Must we lock files when doing compilation?
26510 need_locks=$lt_need_locks
26511
26512 # Do we need the lib prefix for modules?
26513 need_lib_prefix=$need_lib_prefix
26514
26515 # Do we need a version for libraries?
26516 need_version=$need_version
26517
26518 # Whether dlopen is supported.
26519 dlopen_support=$enable_dlopen
26520
26521 # Whether dlopen of programs is supported.
26522 dlopen_self=$enable_dlopen_self
26523
26524 # Whether dlopen of statically linked programs is supported.
26525 dlopen_self_static=$enable_dlopen_self_static
26526
26527 # Compiler flag to prevent dynamic linking.
26528 link_static_flag=$lt_lt_prog_compiler_static_RC
26529
26530 # Compiler flag to turn off builtin functions.
26531 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26532
26533 # Compiler flag to allow reflexive dlopens.
26534 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26535
26536 # Compiler flag to generate shared objects directly from archives.
26537 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26538
26539 # Compiler flag to generate thread-safe objects.
26540 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26541
26542 # Library versioning type.
26543 version_type=$version_type
26544
26545 # Format of library name prefix.
26546 libname_spec=$lt_libname_spec
26547
26548 # List of archive names.  First name is the real one, the rest are links.
26549 # The last name is the one that the linker finds with -lNAME.
26550 library_names_spec=$lt_library_names_spec
26551
26552 # The coded name of the library, if different from the real name.
26553 soname_spec=$lt_soname_spec
26554
26555 # Commands used to build and install an old-style archive.
26556 RANLIB=$lt_RANLIB
26557 old_archive_cmds=$lt_old_archive_cmds_RC
26558 old_postinstall_cmds=$lt_old_postinstall_cmds
26559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26560
26561 # Create an old-style archive from a shared archive.
26562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26563
26564 # Create a temporary old-style archive to link instead of a shared archive.
26565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26566
26567 # Commands used to build and install a shared archive.
26568 archive_cmds=$lt_archive_cmds_RC
26569 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26570 postinstall_cmds=$lt_postinstall_cmds
26571 postuninstall_cmds=$lt_postuninstall_cmds
26572
26573 # Commands used to build a loadable module (assumed same as above if empty)
26574 module_cmds=$lt_module_cmds_RC
26575 module_expsym_cmds=$lt_module_expsym_cmds_RC
26576
26577 # Commands to strip libraries.
26578 old_striplib=$lt_old_striplib
26579 striplib=$lt_striplib
26580
26581 # Dependencies to place before the objects being linked to create a
26582 # shared library.
26583 predep_objects=$lt_predep_objects_RC
26584
26585 # Dependencies to place after the objects being linked to create a
26586 # shared library.
26587 postdep_objects=$lt_postdep_objects_RC
26588
26589 # Dependencies to place before the objects being linked to create a
26590 # shared library.
26591 predeps=$lt_predeps_RC
26592
26593 # Dependencies to place after the objects being linked to create a
26594 # shared library.
26595 postdeps=$lt_postdeps_RC
26596
26597 # The library search path used internally by the compiler when linking
26598 # a shared library.
26599 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26600
26601 # Method to check whether dependent libraries are shared objects.
26602 deplibs_check_method=$lt_deplibs_check_method
26603
26604 # Command to use when deplibs_check_method == file_magic.
26605 file_magic_cmd=$lt_file_magic_cmd
26606
26607 # Flag that allows shared libraries with undefined symbols to be built.
26608 allow_undefined_flag=$lt_allow_undefined_flag_RC
26609
26610 # Flag that forces no undefined symbols.
26611 no_undefined_flag=$lt_no_undefined_flag_RC
26612
26613 # Commands used to finish a libtool library installation in a directory.
26614 finish_cmds=$lt_finish_cmds
26615
26616 # Same as above, but a single script fragment to be evaled but not shown.
26617 finish_eval=$lt_finish_eval
26618
26619 # Take the output of nm and produce a listing of raw symbols and C names.
26620 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26621
26622 # Transform the output of nm in a proper C declaration
26623 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26624
26625 # Transform the output of nm in a C name address pair
26626 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26627
26628 # This is the shared library runtime path variable.
26629 runpath_var=$runpath_var
26630
26631 # This is the shared library path variable.
26632 shlibpath_var=$shlibpath_var
26633
26634 # Is shlibpath searched before the hard-coded library search path?
26635 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26636
26637 # How to hardcode a shared library path into an executable.
26638 hardcode_action=$hardcode_action_RC
26639
26640 # Whether we should hardcode library paths into libraries.
26641 hardcode_into_libs=$hardcode_into_libs
26642
26643 # Flag to hardcode \$libdir into a binary during linking.
26644 # This must work even if \$libdir does not exist.
26645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26646
26647 # If ld is used when linking, flag to hardcode \$libdir into
26648 # a binary during linking. This must work even if \$libdir does
26649 # not exist.
26650 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26651
26652 # Whether we need a single -rpath flag with a separated argument.
26653 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26654
26655 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26656 # resulting binary.
26657 hardcode_direct=$hardcode_direct_RC
26658
26659 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26660 # resulting binary.
26661 hardcode_minus_L=$hardcode_minus_L_RC
26662
26663 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26664 # the resulting binary.
26665 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26666
26667 # Set to yes if building a shared library automatically hardcodes DIR into the library
26668 # and all subsequent libraries and executables linked against it.
26669 hardcode_automatic=$hardcode_automatic_RC
26670
26671 # Variables whose values should be saved in libtool wrapper scripts and
26672 # restored at relink time.
26673 variables_saved_for_relink="$variables_saved_for_relink"
26674
26675 # Whether libtool must link a program against all its dependency libraries.
26676 link_all_deplibs=$link_all_deplibs_RC
26677
26678 # Compile-time system search path for libraries
26679 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26680
26681 # Run-time system search path for libraries
26682 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26683
26684 # Fix the shell variable \$srcfile for the compiler.
26685 fix_srcfile_path="$fix_srcfile_path_RC"
26686
26687 # Set to yes if exported symbols are required.
26688 always_export_symbols=$always_export_symbols_RC
26689
26690 # The commands to list exported symbols.
26691 export_symbols_cmds=$lt_export_symbols_cmds_RC
26692
26693 # The commands to extract the exported symbol list from a shared archive.
26694 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26695
26696 # Symbols that should not be listed in the preloaded symbols.
26697 exclude_expsyms=$lt_exclude_expsyms_RC
26698
26699 # Symbols that must always be exported.
26700 include_expsyms=$lt_include_expsyms_RC
26701
26702 # ### END LIBTOOL TAG CONFIG: $tagname
26703
26704 __EOF__
26705
26706
26707 else
26708   # If there is no Makefile yet, we rely on a make rule to execute
26709   # `config.status --recheck' to rerun these tests and create the
26710   # libtool script then.
26711   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26712   if test -f "$ltmain_in"; then
26713     test -f Makefile && make "$ltmain"
26714   fi
26715 fi
26716
26717
26718 ac_ext=c
26719 ac_cpp='$CPP $CPPFLAGS'
26720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26723
26724 CC="$lt_save_CC"
26725
26726         ;;
26727
26728       *)
26729         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26730 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26731    { (exit 1); exit 1; }; }
26732         ;;
26733       esac
26734
26735       # Append the new tag name to the list of available tags.
26736       if test -n "$tagname" ; then
26737       available_tags="$available_tags $tagname"
26738     fi
26739     fi
26740   done
26741   IFS="$lt_save_ifs"
26742
26743   # Now substitute the updated list of available tags.
26744   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26745     mv "${ofile}T" "$ofile"
26746     chmod +x "$ofile"
26747   else
26748     rm -f "${ofile}T"
26749     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26750 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26751    { (exit 1); exit 1; }; }
26752   fi
26753 fi
26754
26755
26756
26757 # This can be used to rebuild libtool when needed
26758 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26759
26760 # Always use our own libtool.
26761 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26762
26763 # Prevent multiple expansion
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785 if test "$lt_cv_dlopen_self" = "yes" ; then
26786
26787 cat >>confdefs.h <<\_ACEOF
26788 #define CAN_DLOPEN_SELF 1
26789 _ACEOF
26790
26791 fi
26792
26793 if test "$WITH_LLVMGCCDIR" = "default" ; then
26794   LLVMGCC="llvm-gcc${EXEEXT}"
26795   LLVMGXX="llvm-g++${EXEEXT}"
26796   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26797 set dummy $LLVMGCC; ac_word=$2
26798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26800 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803   case $LLVMGCC in
26804   [\\/]* | ?:[\\/]*)
26805   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26806   ;;
26807   *)
26808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26809 for as_dir in $PATH
26810 do
26811   IFS=$as_save_IFS
26812   test -z "$as_dir" && as_dir=.
26813   for ac_exec_ext in '' $ac_executable_extensions; do
26814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26815     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26817     break 2
26818   fi
26819 done
26820 done
26821 IFS=$as_save_IFS
26822
26823   ;;
26824 esac
26825 fi
26826 LLVMGCC=$ac_cv_path_LLVMGCC
26827 if test -n "$LLVMGCC"; then
26828   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26829 echo "${ECHO_T}$LLVMGCC" >&6; }
26830 else
26831   { echo "$as_me:$LINENO: result: no" >&5
26832 echo "${ECHO_T}no" >&6; }
26833 fi
26834
26835
26836   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26837 set dummy $LLVMGXX; ac_word=$2
26838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26840 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26841   echo $ECHO_N "(cached) $ECHO_C" >&6
26842 else
26843   case $LLVMGXX in
26844   [\\/]* | ?:[\\/]*)
26845   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26846   ;;
26847   *)
26848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26849 for as_dir in $PATH
26850 do
26851   IFS=$as_save_IFS
26852   test -z "$as_dir" && as_dir=.
26853   for ac_exec_ext in '' $ac_executable_extensions; do
26854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26855     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26857     break 2
26858   fi
26859 done
26860 done
26861 IFS=$as_save_IFS
26862
26863   ;;
26864 esac
26865 fi
26866 LLVMGXX=$ac_cv_path_LLVMGXX
26867 if test -n "$LLVMGXX"; then
26868   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26869 echo "${ECHO_T}$LLVMGXX" >&6; }
26870 else
26871   { echo "$as_me:$LINENO: result: no" >&5
26872 echo "${ECHO_T}no" >&6; }
26873 fi
26874
26875
26876 else
26877   if test -z "$LLVMGCC"; then
26878     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26879   fi
26880   if test -z "$LLVMGXX"; then
26881     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26882   fi
26883   LLVMGCC=$LLVMGCC
26884
26885   LLVMGXX=$LLVMGXX
26886
26887 fi
26888
26889 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26890 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26891
26892 ICC=no
26893 IXX=no
26894 case $CC in
26895   icc*|icpc*)
26896     ICC=yes
26897     IXX=yes
26898     ;;
26899    *)
26900     ;;
26901 esac
26902
26903 if test "$GCC" != "yes" && test "$ICC" != "yes"
26904 then
26905   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26906 echo "$as_me: error: gcc|icc required but not found" >&2;}
26907    { (exit 1); exit 1; }; }
26908 fi
26909
26910 if test "$GXX" != "yes" && test "$IXX" != "yes"
26911 then
26912   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26913 echo "$as_me: error: g++|icc required but not found" >&2;}
26914    { (exit 1); exit 1; }; }
26915 fi
26916
26917 if test "$GCC" = "yes"
26918 then
26919   cat >conftest.$ac_ext <<_ACEOF
26920 #if !defined(__GNUC__) || __GNUC__ < 3
26921 #error Unsupported GCC version
26922 #endif
26923
26924 _ACEOF
26925 rm -f conftest.$ac_objext
26926 if { (ac_try="$ac_compile"
26927 case "(($ac_try" in
26928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929   *) ac_try_echo=$ac_try;;
26930 esac
26931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932   (eval "$ac_compile") 2>conftest.er1
26933   ac_status=$?
26934   grep -v '^ *+' conftest.er1 >conftest.err
26935   rm -f conftest.er1
26936   cat conftest.err >&5
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); } &&
26939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26940   { (case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945   (eval "$ac_try") 2>&5
26946   ac_status=$?
26947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948   (exit $ac_status); }; } &&
26949          { ac_try='test -s conftest.$ac_objext'
26950   { (case "(($ac_try" in
26951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952   *) ac_try_echo=$ac_try;;
26953 esac
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955   (eval "$ac_try") 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; }; then
26959   :
26960 else
26961   echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26963
26964         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26965 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26966    { (exit 1); exit 1; }; }
26967 fi
26968
26969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26970 fi
26971
26972 if test -z "$llvm_cv_gnu_make_command"
26973 then
26974   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26975 echo "$as_me: error: GNU Make required but not found" >&2;}
26976    { (exit 1); exit 1; }; }
26977 fi
26978
26979 { echo "$as_me:$LINENO: result: ok" >&5
26980 echo "${ECHO_T}ok" >&6; }
26981
26982
26983
26984 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26985 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26986 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26987   echo $ECHO_N "(cached) $ECHO_C" >&6
26988 else
26989   ac_check_lib_save_LIBS=$LIBS
26990 LIBS="-lelf  $LIBS"
26991 cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997
26998 /* Override any GCC internal prototype to avoid an error.
26999    Use char because int might match the return type of a GCC
27000    builtin and then its argument prototype would still apply.  */
27001 #ifdef __cplusplus
27002 extern "C"
27003 #endif
27004 char elf_begin ();
27005 int
27006 main ()
27007 {
27008 return elf_begin ();
27009   ;
27010   return 0;
27011 }
27012 _ACEOF
27013 rm -f conftest.$ac_objext conftest$ac_exeext
27014 if { (ac_try="$ac_link"
27015 case "(($ac_try" in
27016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017   *) ac_try_echo=$ac_try;;
27018 esac
27019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27020   (eval "$ac_link") 2>conftest.er1
27021   ac_status=$?
27022   grep -v '^ *+' conftest.er1 >conftest.err
27023   rm -f conftest.er1
27024   cat conftest.err >&5
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); } &&
27027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27028   { (case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033   (eval "$ac_try") 2>&5
27034   ac_status=$?
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); }; } &&
27037          { ac_try='test -s conftest$ac_exeext'
27038   { (case "(($ac_try" in
27039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040   *) ac_try_echo=$ac_try;;
27041 esac
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043   (eval "$ac_try") 2>&5
27044   ac_status=$?
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); }; }; then
27047   ac_cv_lib_elf_elf_begin=yes
27048 else
27049   echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27051
27052         ac_cv_lib_elf_elf_begin=no
27053 fi
27054
27055 rm -f core conftest.err conftest.$ac_objext \
27056       conftest$ac_exeext conftest.$ac_ext
27057 LIBS=$ac_check_lib_save_LIBS
27058 fi
27059 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27060 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27061 if test $ac_cv_lib_elf_elf_begin = yes; then
27062   cat >>confdefs.h <<_ACEOF
27063 #define HAVE_LIBELF 1
27064 _ACEOF
27065
27066   LIBS="-lelf $LIBS"
27067
27068 fi
27069
27070
27071 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27072 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27073 if test "${ac_cv_lib_m_sin+set}" = set; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076   ac_check_lib_save_LIBS=$LIBS
27077 LIBS="-lm  $LIBS"
27078 cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084
27085 /* Override any GCC internal prototype to avoid an error.
27086    Use char because int might match the return type of a GCC
27087    builtin and then its argument prototype would still apply.  */
27088 #ifdef __cplusplus
27089 extern "C"
27090 #endif
27091 char sin ();
27092 int
27093 main ()
27094 {
27095 return sin ();
27096   ;
27097   return 0;
27098 }
27099 _ACEOF
27100 rm -f conftest.$ac_objext conftest$ac_exeext
27101 if { (ac_try="$ac_link"
27102 case "(($ac_try" in
27103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104   *) ac_try_echo=$ac_try;;
27105 esac
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107   (eval "$ac_link") 2>conftest.er1
27108   ac_status=$?
27109   grep -v '^ *+' conftest.er1 >conftest.err
27110   rm -f conftest.er1
27111   cat conftest.err >&5
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } &&
27114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115   { (case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; } &&
27124          { ac_try='test -s conftest$ac_exeext'
27125   { (case "(($ac_try" in
27126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127   *) ac_try_echo=$ac_try;;
27128 esac
27129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130   (eval "$ac_try") 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; }; then
27134   ac_cv_lib_m_sin=yes
27135 else
27136   echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139         ac_cv_lib_m_sin=no
27140 fi
27141
27142 rm -f core conftest.err conftest.$ac_objext \
27143       conftest$ac_exeext conftest.$ac_ext
27144 LIBS=$ac_check_lib_save_LIBS
27145 fi
27146 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27147 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27148 if test $ac_cv_lib_m_sin = yes; then
27149   cat >>confdefs.h <<_ACEOF
27150 #define HAVE_LIBM 1
27151 _ACEOF
27152
27153   LIBS="-lm $LIBS"
27154
27155 fi
27156
27157 if test "$llvm_cv_os_type" = "MingW" ; then
27158
27159 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27160 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27161 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27162   echo $ECHO_N "(cached) $ECHO_C" >&6
27163 else
27164   ac_check_lib_save_LIBS=$LIBS
27165 LIBS="-limagehlp  $LIBS"
27166 cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h.  */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h.  */
27172
27173
27174 int
27175 main ()
27176 {
27177 return main ();
27178   ;
27179   return 0;
27180 }
27181 _ACEOF
27182 rm -f conftest.$ac_objext conftest$ac_exeext
27183 if { (ac_try="$ac_link"
27184 case "(($ac_try" in
27185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186   *) ac_try_echo=$ac_try;;
27187 esac
27188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189   (eval "$ac_link") 2>conftest.er1
27190   ac_status=$?
27191   grep -v '^ *+' conftest.er1 >conftest.err
27192   rm -f conftest.er1
27193   cat conftest.err >&5
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); } &&
27196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27197   { (case "(($ac_try" in
27198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199   *) ac_try_echo=$ac_try;;
27200 esac
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202   (eval "$ac_try") 2>&5
27203   ac_status=$?
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); }; } &&
27206          { ac_try='test -s conftest$ac_exeext'
27207   { (case "(($ac_try" in
27208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209   *) ac_try_echo=$ac_try;;
27210 esac
27211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212   (eval "$ac_try") 2>&5
27213   ac_status=$?
27214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215   (exit $ac_status); }; }; then
27216   ac_cv_lib_imagehlp_main=yes
27217 else
27218   echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27220
27221         ac_cv_lib_imagehlp_main=no
27222 fi
27223
27224 rm -f core conftest.err conftest.$ac_objext \
27225       conftest$ac_exeext conftest.$ac_ext
27226 LIBS=$ac_check_lib_save_LIBS
27227 fi
27228 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27229 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27230 if test $ac_cv_lib_imagehlp_main = yes; then
27231   cat >>confdefs.h <<_ACEOF
27232 #define HAVE_LIBIMAGEHLP 1
27233 _ACEOF
27234
27235   LIBS="-limagehlp $LIBS"
27236
27237 fi
27238
27239
27240 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27241 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27242 if test "${ac_cv_lib_psapi_main+set}" = set; then
27243   echo $ECHO_N "(cached) $ECHO_C" >&6
27244 else
27245   ac_check_lib_save_LIBS=$LIBS
27246 LIBS="-lpsapi  $LIBS"
27247 cat >conftest.$ac_ext <<_ACEOF
27248 /* confdefs.h.  */
27249 _ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h.  */
27253
27254
27255 int
27256 main ()
27257 {
27258 return main ();
27259   ;
27260   return 0;
27261 }
27262 _ACEOF
27263 rm -f conftest.$ac_objext conftest$ac_exeext
27264 if { (ac_try="$ac_link"
27265 case "(($ac_try" in
27266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267   *) ac_try_echo=$ac_try;;
27268 esac
27269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270   (eval "$ac_link") 2>conftest.er1
27271   ac_status=$?
27272   grep -v '^ *+' conftest.er1 >conftest.err
27273   rm -f conftest.er1
27274   cat conftest.err >&5
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); } &&
27277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27278   { (case "(($ac_try" in
27279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280   *) ac_try_echo=$ac_try;;
27281 esac
27282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283   (eval "$ac_try") 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; } &&
27287          { ac_try='test -s conftest$ac_exeext'
27288   { (case "(($ac_try" in
27289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290   *) ac_try_echo=$ac_try;;
27291 esac
27292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293   (eval "$ac_try") 2>&5
27294   ac_status=$?
27295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); }; }; then
27297   ac_cv_lib_psapi_main=yes
27298 else
27299   echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27301
27302         ac_cv_lib_psapi_main=no
27303 fi
27304
27305 rm -f core conftest.err conftest.$ac_objext \
27306       conftest$ac_exeext conftest.$ac_ext
27307 LIBS=$ac_check_lib_save_LIBS
27308 fi
27309 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27310 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27311 if test $ac_cv_lib_psapi_main = yes; then
27312   cat >>confdefs.h <<_ACEOF
27313 #define HAVE_LIBPSAPI 1
27314 _ACEOF
27315
27316   LIBS="-lpsapi $LIBS"
27317
27318 fi
27319
27320 fi
27321
27322 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27323 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27324 if test "${ac_cv_search_dlopen+set}" = set; then
27325   echo $ECHO_N "(cached) $ECHO_C" >&6
27326 else
27327   ac_func_search_save_LIBS=$LIBS
27328 cat >conftest.$ac_ext <<_ACEOF
27329 /* confdefs.h.  */
27330 _ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h.  */
27334
27335 /* Override any GCC internal prototype to avoid an error.
27336    Use char because int might match the return type of a GCC
27337    builtin and then its argument prototype would still apply.  */
27338 #ifdef __cplusplus
27339 extern "C"
27340 #endif
27341 char dlopen ();
27342 int
27343 main ()
27344 {
27345 return dlopen ();
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 for ac_lib in '' dl; do
27351   if test -z "$ac_lib"; then
27352     ac_res="none required"
27353   else
27354     ac_res=-l$ac_lib
27355     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27356   fi
27357   rm -f conftest.$ac_objext conftest$ac_exeext
27358 if { (ac_try="$ac_link"
27359 case "(($ac_try" in
27360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361   *) ac_try_echo=$ac_try;;
27362 esac
27363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364   (eval "$ac_link") 2>conftest.er1
27365   ac_status=$?
27366   grep -v '^ *+' conftest.er1 >conftest.err
27367   rm -f conftest.er1
27368   cat conftest.err >&5
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); } &&
27371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27372   { (case "(($ac_try" in
27373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374   *) ac_try_echo=$ac_try;;
27375 esac
27376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377   (eval "$ac_try") 2>&5
27378   ac_status=$?
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); }; } &&
27381          { ac_try='test -s conftest$ac_exeext'
27382   { (case "(($ac_try" in
27383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384   *) ac_try_echo=$ac_try;;
27385 esac
27386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387   (eval "$ac_try") 2>&5
27388   ac_status=$?
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); }; }; then
27391   ac_cv_search_dlopen=$ac_res
27392 else
27393   echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27395
27396
27397 fi
27398
27399 rm -f core conftest.err conftest.$ac_objext \
27400       conftest$ac_exeext
27401   if test "${ac_cv_search_dlopen+set}" = set; then
27402   break
27403 fi
27404 done
27405 if test "${ac_cv_search_dlopen+set}" = set; then
27406   :
27407 else
27408   ac_cv_search_dlopen=no
27409 fi
27410 rm conftest.$ac_ext
27411 LIBS=$ac_func_search_save_LIBS
27412 fi
27413 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27414 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27415 ac_res=$ac_cv_search_dlopen
27416 if test "$ac_res" != no; then
27417   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27418
27419 cat >>confdefs.h <<\_ACEOF
27420 #define HAVE_DLOPEN 1
27421 _ACEOF
27422
27423 else
27424   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27425 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27426 fi
27427
27428
27429 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27430 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27431 if test "${ac_cv_search_ffi_call+set}" = set; then
27432   echo $ECHO_N "(cached) $ECHO_C" >&6
27433 else
27434   ac_func_search_save_LIBS=$LIBS
27435 cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h.  */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h.  */
27441
27442 /* Override any GCC internal prototype to avoid an error.
27443    Use char because int might match the return type of a GCC
27444    builtin and then its argument prototype would still apply.  */
27445 #ifdef __cplusplus
27446 extern "C"
27447 #endif
27448 char ffi_call ();
27449 int
27450 main ()
27451 {
27452 return ffi_call ();
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 for ac_lib in '' ffi; do
27458   if test -z "$ac_lib"; then
27459     ac_res="none required"
27460   else
27461     ac_res=-l$ac_lib
27462     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27463   fi
27464   rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (ac_try="$ac_link"
27466 case "(($ac_try" in
27467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468   *) ac_try_echo=$ac_try;;
27469 esac
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471   (eval "$ac_link") 2>conftest.er1
27472   ac_status=$?
27473   grep -v '^ *+' conftest.er1 >conftest.err
27474   rm -f conftest.er1
27475   cat conftest.err >&5
27476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); } &&
27478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27479   { (case "(($ac_try" in
27480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481   *) ac_try_echo=$ac_try;;
27482 esac
27483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484   (eval "$ac_try") 2>&5
27485   ac_status=$?
27486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487   (exit $ac_status); }; } &&
27488          { ac_try='test -s conftest$ac_exeext'
27489   { (case "(($ac_try" in
27490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491   *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494   (eval "$ac_try") 2>&5
27495   ac_status=$?
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); }; }; then
27498   ac_cv_search_ffi_call=$ac_res
27499 else
27500   echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27502
27503
27504 fi
27505
27506 rm -f core conftest.err conftest.$ac_objext \
27507       conftest$ac_exeext
27508   if test "${ac_cv_search_ffi_call+set}" = set; then
27509   break
27510 fi
27511 done
27512 if test "${ac_cv_search_ffi_call+set}" = set; then
27513   :
27514 else
27515   ac_cv_search_ffi_call=no
27516 fi
27517 rm conftest.$ac_ext
27518 LIBS=$ac_func_search_save_LIBS
27519 fi
27520 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27521 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27522 ac_res=$ac_cv_search_ffi_call
27523 if test "$ac_res" != no; then
27524   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27525
27526 cat >>confdefs.h <<\_ACEOF
27527 #define HAVE_FFI_CALL 1
27528 _ACEOF
27529
27530 else
27531   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27532 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27533 fi
27534
27535
27536 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27537 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27538 if test "${ac_cv_search_mallinfo+set}" = set; then
27539   echo $ECHO_N "(cached) $ECHO_C" >&6
27540 else
27541   ac_func_search_save_LIBS=$LIBS
27542 cat >conftest.$ac_ext <<_ACEOF
27543 /* confdefs.h.  */
27544 _ACEOF
27545 cat confdefs.h >>conftest.$ac_ext
27546 cat >>conftest.$ac_ext <<_ACEOF
27547 /* end confdefs.h.  */
27548
27549 /* Override any GCC internal prototype to avoid an error.
27550    Use char because int might match the return type of a GCC
27551    builtin and then its argument prototype would still apply.  */
27552 #ifdef __cplusplus
27553 extern "C"
27554 #endif
27555 char mallinfo ();
27556 int
27557 main ()
27558 {
27559 return mallinfo ();
27560   ;
27561   return 0;
27562 }
27563 _ACEOF
27564 for ac_lib in '' malloc; do
27565   if test -z "$ac_lib"; then
27566     ac_res="none required"
27567   else
27568     ac_res=-l$ac_lib
27569     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27570   fi
27571   rm -f conftest.$ac_objext conftest$ac_exeext
27572 if { (ac_try="$ac_link"
27573 case "(($ac_try" in
27574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575   *) ac_try_echo=$ac_try;;
27576 esac
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578   (eval "$ac_link") 2>conftest.er1
27579   ac_status=$?
27580   grep -v '^ *+' conftest.er1 >conftest.err
27581   rm -f conftest.er1
27582   cat conftest.err >&5
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); } &&
27585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27586   { (case "(($ac_try" in
27587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588   *) ac_try_echo=$ac_try;;
27589 esac
27590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591   (eval "$ac_try") 2>&5
27592   ac_status=$?
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); }; } &&
27595          { ac_try='test -s conftest$ac_exeext'
27596   { (case "(($ac_try" in
27597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598   *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601   (eval "$ac_try") 2>&5
27602   ac_status=$?
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); }; }; then
27605   ac_cv_search_mallinfo=$ac_res
27606 else
27607   echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.$ac_ext >&5
27609
27610
27611 fi
27612
27613 rm -f core conftest.err conftest.$ac_objext \
27614       conftest$ac_exeext
27615   if test "${ac_cv_search_mallinfo+set}" = set; then
27616   break
27617 fi
27618 done
27619 if test "${ac_cv_search_mallinfo+set}" = set; then
27620   :
27621 else
27622   ac_cv_search_mallinfo=no
27623 fi
27624 rm conftest.$ac_ext
27625 LIBS=$ac_func_search_save_LIBS
27626 fi
27627 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27628 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27629 ac_res=$ac_cv_search_mallinfo
27630 if test "$ac_res" != no; then
27631   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27632
27633 cat >>confdefs.h <<\_ACEOF
27634 #define HAVE_MALLINFO 1
27635 _ACEOF
27636
27637 fi
27638
27639
27640 if test "$ENABLE_THREADS" -eq 1 ; then
27641
27642 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27643 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27644 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27645   echo $ECHO_N "(cached) $ECHO_C" >&6
27646 else
27647   ac_check_lib_save_LIBS=$LIBS
27648 LIBS="-lpthread  $LIBS"
27649 cat >conftest.$ac_ext <<_ACEOF
27650 /* confdefs.h.  */
27651 _ACEOF
27652 cat confdefs.h >>conftest.$ac_ext
27653 cat >>conftest.$ac_ext <<_ACEOF
27654 /* end confdefs.h.  */
27655
27656 /* Override any GCC internal prototype to avoid an error.
27657    Use char because int might match the return type of a GCC
27658    builtin and then its argument prototype would still apply.  */
27659 #ifdef __cplusplus
27660 extern "C"
27661 #endif
27662 char pthread_mutex_init ();
27663 int
27664 main ()
27665 {
27666 return pthread_mutex_init ();
27667   ;
27668   return 0;
27669 }
27670 _ACEOF
27671 rm -f conftest.$ac_objext conftest$ac_exeext
27672 if { (ac_try="$ac_link"
27673 case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_link") 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } &&
27685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27686   { (case "(($ac_try" in
27687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27688   *) ac_try_echo=$ac_try;;
27689 esac
27690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691   (eval "$ac_try") 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); }; } &&
27695          { ac_try='test -s conftest$ac_exeext'
27696   { (case "(($ac_try" in
27697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698   *) ac_try_echo=$ac_try;;
27699 esac
27700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701   (eval "$ac_try") 2>&5
27702   ac_status=$?
27703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); }; }; then
27705   ac_cv_lib_pthread_pthread_mutex_init=yes
27706 else
27707   echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27709
27710         ac_cv_lib_pthread_pthread_mutex_init=no
27711 fi
27712
27713 rm -f core conftest.err conftest.$ac_objext \
27714       conftest$ac_exeext conftest.$ac_ext
27715 LIBS=$ac_check_lib_save_LIBS
27716 fi
27717 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27718 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27719 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27720   cat >>confdefs.h <<_ACEOF
27721 #define HAVE_LIBPTHREAD 1
27722 _ACEOF
27723
27724   LIBS="-lpthread $LIBS"
27725
27726 fi
27727
27728   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27729 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27730 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27731   echo $ECHO_N "(cached) $ECHO_C" >&6
27732 else
27733   ac_func_search_save_LIBS=$LIBS
27734 cat >conftest.$ac_ext <<_ACEOF
27735 /* confdefs.h.  */
27736 _ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h.  */
27740
27741 /* Override any GCC internal prototype to avoid an error.
27742    Use char because int might match the return type of a GCC
27743    builtin and then its argument prototype would still apply.  */
27744 #ifdef __cplusplus
27745 extern "C"
27746 #endif
27747 char pthread_mutex_lock ();
27748 int
27749 main ()
27750 {
27751 return pthread_mutex_lock ();
27752   ;
27753   return 0;
27754 }
27755 _ACEOF
27756 for ac_lib in '' pthread; do
27757   if test -z "$ac_lib"; then
27758     ac_res="none required"
27759   else
27760     ac_res=-l$ac_lib
27761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27762   fi
27763   rm -f conftest.$ac_objext conftest$ac_exeext
27764 if { (ac_try="$ac_link"
27765 case "(($ac_try" in
27766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767   *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770   (eval "$ac_link") 2>conftest.er1
27771   ac_status=$?
27772   grep -v '^ *+' conftest.er1 >conftest.err
27773   rm -f conftest.er1
27774   cat conftest.err >&5
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); } &&
27777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27778   { (case "(($ac_try" in
27779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780   *) ac_try_echo=$ac_try;;
27781 esac
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783   (eval "$ac_try") 2>&5
27784   ac_status=$?
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); }; } &&
27787          { ac_try='test -s conftest$ac_exeext'
27788   { (case "(($ac_try" in
27789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790   *) ac_try_echo=$ac_try;;
27791 esac
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793   (eval "$ac_try") 2>&5
27794   ac_status=$?
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); }; }; then
27797   ac_cv_search_pthread_mutex_lock=$ac_res
27798 else
27799   echo "$as_me: failed program was:" >&5
27800 sed 's/^/| /' conftest.$ac_ext >&5
27801
27802
27803 fi
27804
27805 rm -f core conftest.err conftest.$ac_objext \
27806       conftest$ac_exeext
27807   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27808   break
27809 fi
27810 done
27811 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27812   :
27813 else
27814   ac_cv_search_pthread_mutex_lock=no
27815 fi
27816 rm conftest.$ac_ext
27817 LIBS=$ac_func_search_save_LIBS
27818 fi
27819 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27820 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27821 ac_res=$ac_cv_search_pthread_mutex_lock
27822 if test "$ac_res" != no; then
27823   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27824
27825 cat >>confdefs.h <<\_ACEOF
27826 #define HAVE_PTHREAD_MUTEX_LOCK 1
27827 _ACEOF
27828
27829 fi
27830
27831 fi
27832
27833
27834 # Check whether --with-udis86 was given.
27835 if test "${with_udis86+set}" = set; then
27836   withval=$with_udis86;
27837       USE_UDIS86=1
27838
27839       case "$withval" in
27840         /usr/lib|yes) ;;
27841         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27842       esac
27843
27844 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27845 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27846 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27847   echo $ECHO_N "(cached) $ECHO_C" >&6
27848 else
27849   ac_check_lib_save_LIBS=$LIBS
27850 LIBS="-ludis86  $LIBS"
27851 cat >conftest.$ac_ext <<_ACEOF
27852 /* confdefs.h.  */
27853 _ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h.  */
27857
27858 /* Override any GCC internal prototype to avoid an error.
27859    Use char because int might match the return type of a GCC
27860    builtin and then its argument prototype would still apply.  */
27861 #ifdef __cplusplus
27862 extern "C"
27863 #endif
27864 char ud_init ();
27865 int
27866 main ()
27867 {
27868 return ud_init ();
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (ac_try="$ac_link"
27875 case "(($ac_try" in
27876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877   *) ac_try_echo=$ac_try;;
27878 esac
27879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880   (eval "$ac_link") 2>conftest.er1
27881   ac_status=$?
27882   grep -v '^ *+' conftest.er1 >conftest.err
27883   rm -f conftest.er1
27884   cat conftest.err >&5
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); } &&
27887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27888   { (case "(($ac_try" in
27889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890   *) ac_try_echo=$ac_try;;
27891 esac
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893   (eval "$ac_try") 2>&5
27894   ac_status=$?
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); }; } &&
27897          { ac_try='test -s conftest$ac_exeext'
27898   { (case "(($ac_try" in
27899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900   *) ac_try_echo=$ac_try;;
27901 esac
27902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27903   (eval "$ac_try") 2>&5
27904   ac_status=$?
27905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906   (exit $ac_status); }; }; then
27907   ac_cv_lib_udis86_ud_init=yes
27908 else
27909   echo "$as_me: failed program was:" >&5
27910 sed 's/^/| /' conftest.$ac_ext >&5
27911
27912         ac_cv_lib_udis86_ud_init=no
27913 fi
27914
27915 rm -f core conftest.err conftest.$ac_objext \
27916       conftest$ac_exeext conftest.$ac_ext
27917 LIBS=$ac_check_lib_save_LIBS
27918 fi
27919 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27920 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27921 if test $ac_cv_lib_udis86_ud_init = yes; then
27922   cat >>confdefs.h <<_ACEOF
27923 #define HAVE_LIBUDIS86 1
27924 _ACEOF
27925
27926   LIBS="-ludis86 $LIBS"
27927
27928 else
27929
27930         echo "Error! You need to have libudis86 around."
27931         exit -1
27932
27933 fi
27934
27935
27936 else
27937   USE_UDIS86=0
27938
27939 fi
27940
27941
27942 cat >>confdefs.h <<_ACEOF
27943 #define USE_UDIS86 $USE_UDIS86
27944 _ACEOF
27945
27946
27947
27948
27949
27950
27951
27952
27953 ac_header_dirent=no
27954 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27955   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27956 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27957 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27959   echo $ECHO_N "(cached) $ECHO_C" >&6
27960 else
27961   cat >conftest.$ac_ext <<_ACEOF
27962 /* confdefs.h.  */
27963 _ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h.  */
27967 #include <sys/types.h>
27968 #include <$ac_hdr>
27969
27970 int
27971 main ()
27972 {
27973 if ((DIR *) 0)
27974 return 0;
27975   ;
27976   return 0;
27977 }
27978 _ACEOF
27979 rm -f conftest.$ac_objext
27980 if { (ac_try="$ac_compile"
27981 case "(($ac_try" in
27982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983   *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986   (eval "$ac_compile") 2>conftest.er1
27987   ac_status=$?
27988   grep -v '^ *+' conftest.er1 >conftest.err
27989   rm -f conftest.er1
27990   cat conftest.err >&5
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); } &&
27993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27994   { (case "(($ac_try" in
27995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996   *) ac_try_echo=$ac_try;;
27997 esac
27998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999   (eval "$ac_try") 2>&5
28000   ac_status=$?
28001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002   (exit $ac_status); }; } &&
28003          { ac_try='test -s conftest.$ac_objext'
28004   { (case "(($ac_try" in
28005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006   *) ac_try_echo=$ac_try;;
28007 esac
28008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009   (eval "$ac_try") 2>&5
28010   ac_status=$?
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); }; }; then
28013   eval "$as_ac_Header=yes"
28014 else
28015   echo "$as_me: failed program was:" >&5
28016 sed 's/^/| /' conftest.$ac_ext >&5
28017
28018         eval "$as_ac_Header=no"
28019 fi
28020
28021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28022 fi
28023 ac_res=`eval echo '${'$as_ac_Header'}'`
28024                { echo "$as_me:$LINENO: result: $ac_res" >&5
28025 echo "${ECHO_T}$ac_res" >&6; }
28026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28027   cat >>confdefs.h <<_ACEOF
28028 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28029 _ACEOF
28030
28031 ac_header_dirent=$ac_hdr; break
28032 fi
28033
28034 done
28035 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28036 if test $ac_header_dirent = dirent.h; then
28037   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28038 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28039 if test "${ac_cv_search_opendir+set}" = set; then
28040   echo $ECHO_N "(cached) $ECHO_C" >&6
28041 else
28042   ac_func_search_save_LIBS=$LIBS
28043 cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h.  */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h.  */
28049
28050 /* Override any GCC internal prototype to avoid an error.
28051    Use char because int might match the return type of a GCC
28052    builtin and then its argument prototype would still apply.  */
28053 #ifdef __cplusplus
28054 extern "C"
28055 #endif
28056 char opendir ();
28057 int
28058 main ()
28059 {
28060 return opendir ();
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 for ac_lib in '' dir; do
28066   if test -z "$ac_lib"; then
28067     ac_res="none required"
28068   else
28069     ac_res=-l$ac_lib
28070     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28071   fi
28072   rm -f conftest.$ac_objext conftest$ac_exeext
28073 if { (ac_try="$ac_link"
28074 case "(($ac_try" in
28075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076   *) ac_try_echo=$ac_try;;
28077 esac
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079   (eval "$ac_link") 2>conftest.er1
28080   ac_status=$?
28081   grep -v '^ *+' conftest.er1 >conftest.err
28082   rm -f conftest.er1
28083   cat conftest.err >&5
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); } &&
28086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087   { (case "(($ac_try" in
28088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089   *) ac_try_echo=$ac_try;;
28090 esac
28091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092   (eval "$ac_try") 2>&5
28093   ac_status=$?
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); }; } &&
28096          { ac_try='test -s conftest$ac_exeext'
28097   { (case "(($ac_try" in
28098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099   *) ac_try_echo=$ac_try;;
28100 esac
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102   (eval "$ac_try") 2>&5
28103   ac_status=$?
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); }; }; then
28106   ac_cv_search_opendir=$ac_res
28107 else
28108   echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28110
28111
28112 fi
28113
28114 rm -f core conftest.err conftest.$ac_objext \
28115       conftest$ac_exeext
28116   if test "${ac_cv_search_opendir+set}" = set; then
28117   break
28118 fi
28119 done
28120 if test "${ac_cv_search_opendir+set}" = set; then
28121   :
28122 else
28123   ac_cv_search_opendir=no
28124 fi
28125 rm conftest.$ac_ext
28126 LIBS=$ac_func_search_save_LIBS
28127 fi
28128 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28129 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28130 ac_res=$ac_cv_search_opendir
28131 if test "$ac_res" != no; then
28132   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28133
28134 fi
28135
28136 else
28137   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28138 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28139 if test "${ac_cv_search_opendir+set}" = set; then
28140   echo $ECHO_N "(cached) $ECHO_C" >&6
28141 else
28142   ac_func_search_save_LIBS=$LIBS
28143 cat >conftest.$ac_ext <<_ACEOF
28144 /* confdefs.h.  */
28145 _ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h.  */
28149
28150 /* Override any GCC internal prototype to avoid an error.
28151    Use char because int might match the return type of a GCC
28152    builtin and then its argument prototype would still apply.  */
28153 #ifdef __cplusplus
28154 extern "C"
28155 #endif
28156 char opendir ();
28157 int
28158 main ()
28159 {
28160 return opendir ();
28161   ;
28162   return 0;
28163 }
28164 _ACEOF
28165 for ac_lib in '' x; do
28166   if test -z "$ac_lib"; then
28167     ac_res="none required"
28168   else
28169     ac_res=-l$ac_lib
28170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28171   fi
28172   rm -f conftest.$ac_objext conftest$ac_exeext
28173 if { (ac_try="$ac_link"
28174 case "(($ac_try" in
28175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176   *) ac_try_echo=$ac_try;;
28177 esac
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179   (eval "$ac_link") 2>conftest.er1
28180   ac_status=$?
28181   grep -v '^ *+' conftest.er1 >conftest.err
28182   rm -f conftest.er1
28183   cat conftest.err >&5
28184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185   (exit $ac_status); } &&
28186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28187   { (case "(($ac_try" in
28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189   *) ac_try_echo=$ac_try;;
28190 esac
28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192   (eval "$ac_try") 2>&5
28193   ac_status=$?
28194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195   (exit $ac_status); }; } &&
28196          { ac_try='test -s conftest$ac_exeext'
28197   { (case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202   (eval "$ac_try") 2>&5
28203   ac_status=$?
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); }; }; then
28206   ac_cv_search_opendir=$ac_res
28207 else
28208   echo "$as_me: failed program was:" >&5
28209 sed 's/^/| /' conftest.$ac_ext >&5
28210
28211
28212 fi
28213
28214 rm -f core conftest.err conftest.$ac_objext \
28215       conftest$ac_exeext
28216   if test "${ac_cv_search_opendir+set}" = set; then
28217   break
28218 fi
28219 done
28220 if test "${ac_cv_search_opendir+set}" = set; then
28221   :
28222 else
28223   ac_cv_search_opendir=no
28224 fi
28225 rm conftest.$ac_ext
28226 LIBS=$ac_func_search_save_LIBS
28227 fi
28228 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28229 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28230 ac_res=$ac_cv_search_opendir
28231 if test "$ac_res" != no; then
28232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28233
28234 fi
28235
28236 fi
28237
28238 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28239 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28240 if test "${ac_cv_header_mmap_anon+set}" = set; then
28241   echo $ECHO_N "(cached) $ECHO_C" >&6
28242 else
28243    ac_ext=c
28244 ac_cpp='$CPP $CPPFLAGS'
28245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28248
28249   cat >conftest.$ac_ext <<_ACEOF
28250 /* confdefs.h.  */
28251 _ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h.  */
28255 #include <sys/mman.h>
28256 #include <unistd.h>
28257 #include <fcntl.h>
28258 int
28259 main ()
28260 {
28261 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28262   ;
28263   return 0;
28264 }
28265 _ACEOF
28266 rm -f conftest.$ac_objext
28267 if { (ac_try="$ac_compile"
28268 case "(($ac_try" in
28269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28270   *) ac_try_echo=$ac_try;;
28271 esac
28272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28273   (eval "$ac_compile") 2>conftest.er1
28274   ac_status=$?
28275   grep -v '^ *+' conftest.er1 >conftest.err
28276   rm -f conftest.er1
28277   cat conftest.err >&5
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); } &&
28280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28281   { (case "(($ac_try" in
28282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283   *) ac_try_echo=$ac_try;;
28284 esac
28285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286   (eval "$ac_try") 2>&5
28287   ac_status=$?
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); }; } &&
28290          { ac_try='test -s conftest.$ac_objext'
28291   { (case "(($ac_try" in
28292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293   *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296   (eval "$ac_try") 2>&5
28297   ac_status=$?
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); }; }; then
28300   ac_cv_header_mmap_anon=yes
28301 else
28302   echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305         ac_cv_header_mmap_anon=no
28306 fi
28307
28308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28309   ac_ext=c
28310 ac_cpp='$CPP $CPPFLAGS'
28311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28314
28315
28316 fi
28317 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28318 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28319 if test "$ac_cv_header_mmap_anon" = yes; then
28320
28321 cat >>confdefs.h <<\_ACEOF
28322 #define HAVE_MMAP_ANONYMOUS 1
28323 _ACEOF
28324
28325 fi
28326
28327 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28328 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28329 if test "${ac_cv_header_stat_broken+set}" = set; then
28330   echo $ECHO_N "(cached) $ECHO_C" >&6
28331 else
28332   cat >conftest.$ac_ext <<_ACEOF
28333 /* confdefs.h.  */
28334 _ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h.  */
28338 #include <sys/types.h>
28339 #include <sys/stat.h>
28340
28341 #if defined S_ISBLK && defined S_IFDIR
28342 # if S_ISBLK (S_IFDIR)
28343 You lose.
28344 # endif
28345 #endif
28346
28347 #if defined S_ISBLK && defined S_IFCHR
28348 # if S_ISBLK (S_IFCHR)
28349 You lose.
28350 # endif
28351 #endif
28352
28353 #if defined S_ISLNK && defined S_IFREG
28354 # if S_ISLNK (S_IFREG)
28355 You lose.
28356 # endif
28357 #endif
28358
28359 #if defined S_ISSOCK && defined S_IFREG
28360 # if S_ISSOCK (S_IFREG)
28361 You lose.
28362 # endif
28363 #endif
28364
28365 _ACEOF
28366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28367   $EGREP "You lose" >/dev/null 2>&1; then
28368   ac_cv_header_stat_broken=yes
28369 else
28370   ac_cv_header_stat_broken=no
28371 fi
28372 rm -f conftest*
28373
28374 fi
28375 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28376 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28377 if test $ac_cv_header_stat_broken = yes; then
28378
28379 cat >>confdefs.h <<\_ACEOF
28380 #define STAT_MACROS_BROKEN 1
28381 _ACEOF
28382
28383 fi
28384
28385 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28387 if test "${ac_cv_header_stdc+set}" = set; then
28388   echo $ECHO_N "(cached) $ECHO_C" >&6
28389 else
28390   cat >conftest.$ac_ext <<_ACEOF
28391 /* confdefs.h.  */
28392 _ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h.  */
28396 #include <stdlib.h>
28397 #include <stdarg.h>
28398 #include <string.h>
28399 #include <float.h>
28400
28401 int
28402 main ()
28403 {
28404
28405   ;
28406   return 0;
28407 }
28408 _ACEOF
28409 rm -f conftest.$ac_objext
28410 if { (ac_try="$ac_compile"
28411 case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416   (eval "$ac_compile") 2>conftest.er1
28417   ac_status=$?
28418   grep -v '^ *+' conftest.er1 >conftest.err
28419   rm -f conftest.er1
28420   cat conftest.err >&5
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); } &&
28423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28424   { (case "(($ac_try" in
28425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426   *) ac_try_echo=$ac_try;;
28427 esac
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429   (eval "$ac_try") 2>&5
28430   ac_status=$?
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); }; } &&
28433          { ac_try='test -s conftest.$ac_objext'
28434   { (case "(($ac_try" in
28435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436   *) ac_try_echo=$ac_try;;
28437 esac
28438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439   (eval "$ac_try") 2>&5
28440   ac_status=$?
28441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); }; }; then
28443   ac_cv_header_stdc=yes
28444 else
28445   echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.$ac_ext >&5
28447
28448         ac_cv_header_stdc=no
28449 fi
28450
28451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28452
28453 if test $ac_cv_header_stdc = yes; then
28454   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28455   cat >conftest.$ac_ext <<_ACEOF
28456 /* confdefs.h.  */
28457 _ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h.  */
28461 #include <string.h>
28462
28463 _ACEOF
28464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28465   $EGREP "memchr" >/dev/null 2>&1; then
28466   :
28467 else
28468   ac_cv_header_stdc=no
28469 fi
28470 rm -f conftest*
28471
28472 fi
28473
28474 if test $ac_cv_header_stdc = yes; then
28475   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28476   cat >conftest.$ac_ext <<_ACEOF
28477 /* confdefs.h.  */
28478 _ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h.  */
28482 #include <stdlib.h>
28483
28484 _ACEOF
28485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28486   $EGREP "free" >/dev/null 2>&1; then
28487   :
28488 else
28489   ac_cv_header_stdc=no
28490 fi
28491 rm -f conftest*
28492
28493 fi
28494
28495 if test $ac_cv_header_stdc = yes; then
28496   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28497   if test "$cross_compiling" = yes; then
28498   :
28499 else
28500   cat >conftest.$ac_ext <<_ACEOF
28501 /* confdefs.h.  */
28502 _ACEOF
28503 cat confdefs.h >>conftest.$ac_ext
28504 cat >>conftest.$ac_ext <<_ACEOF
28505 /* end confdefs.h.  */
28506 #include <ctype.h>
28507 #include <stdlib.h>
28508 #if ((' ' & 0x0FF) == 0x020)
28509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28511 #else
28512 # define ISLOWER(c) \
28513                    (('a' <= (c) && (c) <= 'i') \
28514                      || ('j' <= (c) && (c) <= 'r') \
28515                      || ('s' <= (c) && (c) <= 'z'))
28516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28517 #endif
28518
28519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28520 int
28521 main ()
28522 {
28523   int i;
28524   for (i = 0; i < 256; i++)
28525     if (XOR (islower (i), ISLOWER (i))
28526         || toupper (i) != TOUPPER (i))
28527       return 2;
28528   return 0;
28529 }
28530 _ACEOF
28531 rm -f conftest$ac_exeext
28532 if { (ac_try="$ac_link"
28533 case "(($ac_try" in
28534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535   *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538   (eval "$ac_link") 2>&5
28539   ac_status=$?
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28542   { (case "(($ac_try" in
28543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544   *) ac_try_echo=$ac_try;;
28545 esac
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547   (eval "$ac_try") 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; }; then
28551   :
28552 else
28553   echo "$as_me: program exited with status $ac_status" >&5
28554 echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28556
28557 ( exit $ac_status )
28558 ac_cv_header_stdc=no
28559 fi
28560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28561 fi
28562
28563
28564 fi
28565 fi
28566 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28567 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28568 if test $ac_cv_header_stdc = yes; then
28569
28570 cat >>confdefs.h <<\_ACEOF
28571 #define STDC_HEADERS 1
28572 _ACEOF
28573
28574 fi
28575
28576 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28577 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28578 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28579   echo $ECHO_N "(cached) $ECHO_C" >&6
28580 else
28581   cat >conftest.$ac_ext <<_ACEOF
28582 /* confdefs.h.  */
28583 _ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h.  */
28587 #include <sys/types.h>
28588 #include <sys/wait.h>
28589 #ifndef WEXITSTATUS
28590 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28591 #endif
28592 #ifndef WIFEXITED
28593 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28594 #endif
28595
28596 int
28597 main ()
28598 {
28599   int s;
28600   wait (&s);
28601   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28602   ;
28603   return 0;
28604 }
28605 _ACEOF
28606 rm -f conftest.$ac_objext
28607 if { (ac_try="$ac_compile"
28608 case "(($ac_try" in
28609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610   *) ac_try_echo=$ac_try;;
28611 esac
28612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613   (eval "$ac_compile") 2>conftest.er1
28614   ac_status=$?
28615   grep -v '^ *+' conftest.er1 >conftest.err
28616   rm -f conftest.er1
28617   cat conftest.err >&5
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } &&
28620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28621   { (case "(($ac_try" in
28622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623   *) ac_try_echo=$ac_try;;
28624 esac
28625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626   (eval "$ac_try") 2>&5
28627   ac_status=$?
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); }; } &&
28630          { ac_try='test -s conftest.$ac_objext'
28631   { (case "(($ac_try" in
28632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633   *) ac_try_echo=$ac_try;;
28634 esac
28635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636   (eval "$ac_try") 2>&5
28637   ac_status=$?
28638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639   (exit $ac_status); }; }; then
28640   ac_cv_header_sys_wait_h=yes
28641 else
28642   echo "$as_me: failed program was:" >&5
28643 sed 's/^/| /' conftest.$ac_ext >&5
28644
28645         ac_cv_header_sys_wait_h=no
28646 fi
28647
28648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28649 fi
28650 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28651 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28652 if test $ac_cv_header_sys_wait_h = yes; then
28653
28654 cat >>confdefs.h <<\_ACEOF
28655 #define HAVE_SYS_WAIT_H 1
28656 _ACEOF
28657
28658 fi
28659
28660 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28661 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28662 if test "${ac_cv_header_time+set}" = set; then
28663   echo $ECHO_N "(cached) $ECHO_C" >&6
28664 else
28665   cat >conftest.$ac_ext <<_ACEOF
28666 /* confdefs.h.  */
28667 _ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h.  */
28671 #include <sys/types.h>
28672 #include <sys/time.h>
28673 #include <time.h>
28674
28675 int
28676 main ()
28677 {
28678 if ((struct tm *) 0)
28679 return 0;
28680   ;
28681   return 0;
28682 }
28683 _ACEOF
28684 rm -f conftest.$ac_objext
28685 if { (ac_try="$ac_compile"
28686 case "(($ac_try" in
28687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688   *) ac_try_echo=$ac_try;;
28689 esac
28690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691   (eval "$ac_compile") 2>conftest.er1
28692   ac_status=$?
28693   grep -v '^ *+' conftest.er1 >conftest.err
28694   rm -f conftest.er1
28695   cat conftest.err >&5
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); } &&
28698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28699   { (case "(($ac_try" in
28700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701   *) ac_try_echo=$ac_try;;
28702 esac
28703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704   (eval "$ac_try") 2>&5
28705   ac_status=$?
28706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707   (exit $ac_status); }; } &&
28708          { ac_try='test -s conftest.$ac_objext'
28709   { (case "(($ac_try" in
28710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711   *) ac_try_echo=$ac_try;;
28712 esac
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714   (eval "$ac_try") 2>&5
28715   ac_status=$?
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); }; }; then
28718   ac_cv_header_time=yes
28719 else
28720   echo "$as_me: failed program was:" >&5
28721 sed 's/^/| /' conftest.$ac_ext >&5
28722
28723         ac_cv_header_time=no
28724 fi
28725
28726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28727 fi
28728 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28729 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28730 if test $ac_cv_header_time = yes; then
28731
28732 cat >>confdefs.h <<\_ACEOF
28733 #define TIME_WITH_SYS_TIME 1
28734 _ACEOF
28735
28736 fi
28737
28738
28739
28740
28741
28742
28743
28744
28745 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28746 do
28747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28749   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28752   echo $ECHO_N "(cached) $ECHO_C" >&6
28753 fi
28754 ac_res=`eval echo '${'$as_ac_Header'}'`
28755                { echo "$as_me:$LINENO: result: $ac_res" >&5
28756 echo "${ECHO_T}$ac_res" >&6; }
28757 else
28758   # Is the header compilable?
28759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28761 cat >conftest.$ac_ext <<_ACEOF
28762 /* confdefs.h.  */
28763 _ACEOF
28764 cat confdefs.h >>conftest.$ac_ext
28765 cat >>conftest.$ac_ext <<_ACEOF
28766 /* end confdefs.h.  */
28767 $ac_includes_default
28768 #include <$ac_header>
28769 _ACEOF
28770 rm -f conftest.$ac_objext
28771 if { (ac_try="$ac_compile"
28772 case "(($ac_try" in
28773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774   *) ac_try_echo=$ac_try;;
28775 esac
28776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28777   (eval "$ac_compile") 2>conftest.er1
28778   ac_status=$?
28779   grep -v '^ *+' conftest.er1 >conftest.err
28780   rm -f conftest.er1
28781   cat conftest.err >&5
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); } &&
28784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28785   { (case "(($ac_try" in
28786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787   *) ac_try_echo=$ac_try;;
28788 esac
28789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790   (eval "$ac_try") 2>&5
28791   ac_status=$?
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); }; } &&
28794          { ac_try='test -s conftest.$ac_objext'
28795   { (case "(($ac_try" in
28796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28797   *) ac_try_echo=$ac_try;;
28798 esac
28799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28800   (eval "$ac_try") 2>&5
28801   ac_status=$?
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); }; }; then
28804   ac_header_compiler=yes
28805 else
28806   echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28808
28809         ac_header_compiler=no
28810 fi
28811
28812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28814 echo "${ECHO_T}$ac_header_compiler" >&6; }
28815
28816 # Is the header present?
28817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28819 cat >conftest.$ac_ext <<_ACEOF
28820 /* confdefs.h.  */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h.  */
28825 #include <$ac_header>
28826 _ACEOF
28827 if { (ac_try="$ac_cpp conftest.$ac_ext"
28828 case "(($ac_try" in
28829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830   *) ac_try_echo=$ac_try;;
28831 esac
28832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28834   ac_status=$?
28835   grep -v '^ *+' conftest.er1 >conftest.err
28836   rm -f conftest.er1
28837   cat conftest.err >&5
28838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839   (exit $ac_status); } >/dev/null; then
28840   if test -s conftest.err; then
28841     ac_cpp_err=$ac_c_preproc_warn_flag
28842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28843   else
28844     ac_cpp_err=
28845   fi
28846 else
28847   ac_cpp_err=yes
28848 fi
28849 if test -z "$ac_cpp_err"; then
28850   ac_header_preproc=yes
28851 else
28852   echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28854
28855   ac_header_preproc=no
28856 fi
28857
28858 rm -f conftest.err conftest.$ac_ext
28859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28860 echo "${ECHO_T}$ac_header_preproc" >&6; }
28861
28862 # So?  What about this header?
28863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28864   yes:no: )
28865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28869     ac_header_preproc=yes
28870     ;;
28871   no:yes:* )
28872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28884     ( cat <<\_ASBOX
28885 ## ----------------------------------- ##
28886 ## Report this to llvmbugs@cs.uiuc.edu ##
28887 ## ----------------------------------- ##
28888 _ASBOX
28889      ) | sed "s/^/$as_me: WARNING:     /" >&2
28890     ;;
28891 esac
28892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28895   echo $ECHO_N "(cached) $ECHO_C" >&6
28896 else
28897   eval "$as_ac_Header=\$ac_header_preproc"
28898 fi
28899 ac_res=`eval echo '${'$as_ac_Header'}'`
28900                { echo "$as_me:$LINENO: result: $ac_res" >&5
28901 echo "${ECHO_T}$ac_res" >&6; }
28902
28903 fi
28904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28905   cat >>confdefs.h <<_ACEOF
28906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28907 _ACEOF
28908
28909 fi
28910
28911 done
28912
28913
28914
28915
28916
28917
28918
28919 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28920 do
28921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28923   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28926   echo $ECHO_N "(cached) $ECHO_C" >&6
28927 fi
28928 ac_res=`eval echo '${'$as_ac_Header'}'`
28929                { echo "$as_me:$LINENO: result: $ac_res" >&5
28930 echo "${ECHO_T}$ac_res" >&6; }
28931 else
28932   # Is the header compilable?
28933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28935 cat >conftest.$ac_ext <<_ACEOF
28936 /* confdefs.h.  */
28937 _ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h.  */
28941 $ac_includes_default
28942 #include <$ac_header>
28943 _ACEOF
28944 rm -f conftest.$ac_objext
28945 if { (ac_try="$ac_compile"
28946 case "(($ac_try" in
28947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948   *) ac_try_echo=$ac_try;;
28949 esac
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951   (eval "$ac_compile") 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } &&
28958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28959   { (case "(($ac_try" in
28960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961   *) ac_try_echo=$ac_try;;
28962 esac
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964   (eval "$ac_try") 2>&5
28965   ac_status=$?
28966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); }; } &&
28968          { ac_try='test -s conftest.$ac_objext'
28969   { (case "(($ac_try" in
28970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28971   *) ac_try_echo=$ac_try;;
28972 esac
28973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28974   (eval "$ac_try") 2>&5
28975   ac_status=$?
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); }; }; then
28978   ac_header_compiler=yes
28979 else
28980   echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28982
28983         ac_header_compiler=no
28984 fi
28985
28986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28988 echo "${ECHO_T}$ac_header_compiler" >&6; }
28989
28990 # Is the header present?
28991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28993 cat >conftest.$ac_ext <<_ACEOF
28994 /* confdefs.h.  */
28995 _ACEOF
28996 cat confdefs.h >>conftest.$ac_ext
28997 cat >>conftest.$ac_ext <<_ACEOF
28998 /* end confdefs.h.  */
28999 #include <$ac_header>
29000 _ACEOF
29001 if { (ac_try="$ac_cpp conftest.$ac_ext"
29002 case "(($ac_try" in
29003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004   *) ac_try_echo=$ac_try;;
29005 esac
29006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29008   ac_status=$?
29009   grep -v '^ *+' conftest.er1 >conftest.err
29010   rm -f conftest.er1
29011   cat conftest.err >&5
29012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013   (exit $ac_status); } >/dev/null; then
29014   if test -s conftest.err; then
29015     ac_cpp_err=$ac_c_preproc_warn_flag
29016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29017   else
29018     ac_cpp_err=
29019   fi
29020 else
29021   ac_cpp_err=yes
29022 fi
29023 if test -z "$ac_cpp_err"; then
29024   ac_header_preproc=yes
29025 else
29026   echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29028
29029   ac_header_preproc=no
29030 fi
29031
29032 rm -f conftest.err conftest.$ac_ext
29033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29034 echo "${ECHO_T}$ac_header_preproc" >&6; }
29035
29036 # So?  What about this header?
29037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29038   yes:no: )
29039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29043     ac_header_preproc=yes
29044     ;;
29045   no:yes:* )
29046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29058     ( cat <<\_ASBOX
29059 ## ----------------------------------- ##
29060 ## Report this to llvmbugs@cs.uiuc.edu ##
29061 ## ----------------------------------- ##
29062 _ASBOX
29063      ) | sed "s/^/$as_me: WARNING:     /" >&2
29064     ;;
29065 esac
29066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29069   echo $ECHO_N "(cached) $ECHO_C" >&6
29070 else
29071   eval "$as_ac_Header=\$ac_header_preproc"
29072 fi
29073 ac_res=`eval echo '${'$as_ac_Header'}'`
29074                { echo "$as_me:$LINENO: result: $ac_res" >&5
29075 echo "${ECHO_T}$ac_res" >&6; }
29076
29077 fi
29078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29079   cat >>confdefs.h <<_ACEOF
29080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29081 _ACEOF
29082
29083 fi
29084
29085 done
29086
29087
29088 for ac_header in windows.h
29089 do
29090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29092   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29095   echo $ECHO_N "(cached) $ECHO_C" >&6
29096 fi
29097 ac_res=`eval echo '${'$as_ac_Header'}'`
29098                { echo "$as_me:$LINENO: result: $ac_res" >&5
29099 echo "${ECHO_T}$ac_res" >&6; }
29100 else
29101   # Is the header compilable?
29102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29104 cat >conftest.$ac_ext <<_ACEOF
29105 /* confdefs.h.  */
29106 _ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h.  */
29110 $ac_includes_default
29111 #include <$ac_header>
29112 _ACEOF
29113 rm -f conftest.$ac_objext
29114 if { (ac_try="$ac_compile"
29115 case "(($ac_try" in
29116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29117   *) ac_try_echo=$ac_try;;
29118 esac
29119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29120   (eval "$ac_compile") 2>conftest.er1
29121   ac_status=$?
29122   grep -v '^ *+' conftest.er1 >conftest.err
29123   rm -f conftest.er1
29124   cat conftest.err >&5
29125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126   (exit $ac_status); } &&
29127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29128   { (case "(($ac_try" in
29129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130   *) ac_try_echo=$ac_try;;
29131 esac
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133   (eval "$ac_try") 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); }; } &&
29137          { ac_try='test -s conftest.$ac_objext'
29138   { (case "(($ac_try" in
29139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140   *) ac_try_echo=$ac_try;;
29141 esac
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143   (eval "$ac_try") 2>&5
29144   ac_status=$?
29145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146   (exit $ac_status); }; }; then
29147   ac_header_compiler=yes
29148 else
29149   echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29151
29152         ac_header_compiler=no
29153 fi
29154
29155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29157 echo "${ECHO_T}$ac_header_compiler" >&6; }
29158
29159 # Is the header present?
29160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29162 cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h.  */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h.  */
29168 #include <$ac_header>
29169 _ACEOF
29170 if { (ac_try="$ac_cpp conftest.$ac_ext"
29171 case "(($ac_try" in
29172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173   *) ac_try_echo=$ac_try;;
29174 esac
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29177   ac_status=$?
29178   grep -v '^ *+' conftest.er1 >conftest.err
29179   rm -f conftest.er1
29180   cat conftest.err >&5
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); } >/dev/null; then
29183   if test -s conftest.err; then
29184     ac_cpp_err=$ac_c_preproc_warn_flag
29185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29186   else
29187     ac_cpp_err=
29188   fi
29189 else
29190   ac_cpp_err=yes
29191 fi
29192 if test -z "$ac_cpp_err"; then
29193   ac_header_preproc=yes
29194 else
29195   echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29197
29198   ac_header_preproc=no
29199 fi
29200
29201 rm -f conftest.err conftest.$ac_ext
29202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29203 echo "${ECHO_T}$ac_header_preproc" >&6; }
29204
29205 # So?  What about this header?
29206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29207   yes:no: )
29208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29212     ac_header_preproc=yes
29213     ;;
29214   no:yes:* )
29215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29227     ( cat <<\_ASBOX
29228 ## ----------------------------------- ##
29229 ## Report this to llvmbugs@cs.uiuc.edu ##
29230 ## ----------------------------------- ##
29231 _ASBOX
29232      ) | sed "s/^/$as_me: WARNING:     /" >&2
29233     ;;
29234 esac
29235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29238   echo $ECHO_N "(cached) $ECHO_C" >&6
29239 else
29240   eval "$as_ac_Header=\$ac_header_preproc"
29241 fi
29242 ac_res=`eval echo '${'$as_ac_Header'}'`
29243                { echo "$as_me:$LINENO: result: $ac_res" >&5
29244 echo "${ECHO_T}$ac_res" >&6; }
29245
29246 fi
29247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29248   cat >>confdefs.h <<_ACEOF
29249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29250 _ACEOF
29251
29252 fi
29253
29254 done
29255
29256
29257
29258
29259
29260 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29261 do
29262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267   echo $ECHO_N "(cached) $ECHO_C" >&6
29268 fi
29269 ac_res=`eval echo '${'$as_ac_Header'}'`
29270                { echo "$as_me:$LINENO: result: $ac_res" >&5
29271 echo "${ECHO_T}$ac_res" >&6; }
29272 else
29273   # Is the header compilable?
29274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29276 cat >conftest.$ac_ext <<_ACEOF
29277 /* confdefs.h.  */
29278 _ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h.  */
29282 $ac_includes_default
29283 #include <$ac_header>
29284 _ACEOF
29285 rm -f conftest.$ac_objext
29286 if { (ac_try="$ac_compile"
29287 case "(($ac_try" in
29288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289   *) ac_try_echo=$ac_try;;
29290 esac
29291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292   (eval "$ac_compile") 2>conftest.er1
29293   ac_status=$?
29294   grep -v '^ *+' conftest.er1 >conftest.err
29295   rm -f conftest.er1
29296   cat conftest.err >&5
29297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298   (exit $ac_status); } &&
29299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29300   { (case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_try") 2>&5
29306   ac_status=$?
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); }; } &&
29309          { ac_try='test -s conftest.$ac_objext'
29310   { (case "(($ac_try" in
29311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312   *) ac_try_echo=$ac_try;;
29313 esac
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315   (eval "$ac_try") 2>&5
29316   ac_status=$?
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); }; }; then
29319   ac_header_compiler=yes
29320 else
29321   echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29323
29324         ac_header_compiler=no
29325 fi
29326
29327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29329 echo "${ECHO_T}$ac_header_compiler" >&6; }
29330
29331 # Is the header present?
29332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29334 cat >conftest.$ac_ext <<_ACEOF
29335 /* confdefs.h.  */
29336 _ACEOF
29337 cat confdefs.h >>conftest.$ac_ext
29338 cat >>conftest.$ac_ext <<_ACEOF
29339 /* end confdefs.h.  */
29340 #include <$ac_header>
29341 _ACEOF
29342 if { (ac_try="$ac_cpp conftest.$ac_ext"
29343 case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29349   ac_status=$?
29350   grep -v '^ *+' conftest.er1 >conftest.err
29351   rm -f conftest.er1
29352   cat conftest.err >&5
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); } >/dev/null; then
29355   if test -s conftest.err; then
29356     ac_cpp_err=$ac_c_preproc_warn_flag
29357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29358   else
29359     ac_cpp_err=
29360   fi
29361 else
29362   ac_cpp_err=yes
29363 fi
29364 if test -z "$ac_cpp_err"; then
29365   ac_header_preproc=yes
29366 else
29367   echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29369
29370   ac_header_preproc=no
29371 fi
29372
29373 rm -f conftest.err conftest.$ac_ext
29374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29375 echo "${ECHO_T}$ac_header_preproc" >&6; }
29376
29377 # So?  What about this header?
29378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29379   yes:no: )
29380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29384     ac_header_preproc=yes
29385     ;;
29386   no:yes:* )
29387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29399     ( cat <<\_ASBOX
29400 ## ----------------------------------- ##
29401 ## Report this to llvmbugs@cs.uiuc.edu ##
29402 ## ----------------------------------- ##
29403 _ASBOX
29404      ) | sed "s/^/$as_me: WARNING:     /" >&2
29405     ;;
29406 esac
29407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29410   echo $ECHO_N "(cached) $ECHO_C" >&6
29411 else
29412   eval "$as_ac_Header=\$ac_header_preproc"
29413 fi
29414 ac_res=`eval echo '${'$as_ac_Header'}'`
29415                { echo "$as_me:$LINENO: result: $ac_res" >&5
29416 echo "${ECHO_T}$ac_res" >&6; }
29417
29418 fi
29419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29420   cat >>confdefs.h <<_ACEOF
29421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29422 _ACEOF
29423
29424 fi
29425
29426 done
29427
29428
29429
29430
29431 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29432 do
29433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29435   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29438   echo $ECHO_N "(cached) $ECHO_C" >&6
29439 fi
29440 ac_res=`eval echo '${'$as_ac_Header'}'`
29441                { echo "$as_me:$LINENO: result: $ac_res" >&5
29442 echo "${ECHO_T}$ac_res" >&6; }
29443 else
29444   # Is the header compilable?
29445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29447 cat >conftest.$ac_ext <<_ACEOF
29448 /* confdefs.h.  */
29449 _ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h.  */
29453 $ac_includes_default
29454 #include <$ac_header>
29455 _ACEOF
29456 rm -f conftest.$ac_objext
29457 if { (ac_try="$ac_compile"
29458 case "(($ac_try" in
29459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29460   *) ac_try_echo=$ac_try;;
29461 esac
29462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29463   (eval "$ac_compile") 2>conftest.er1
29464   ac_status=$?
29465   grep -v '^ *+' conftest.er1 >conftest.err
29466   rm -f conftest.er1
29467   cat conftest.err >&5
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); } &&
29470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29471   { (case "(($ac_try" in
29472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29473   *) ac_try_echo=$ac_try;;
29474 esac
29475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29476   (eval "$ac_try") 2>&5
29477   ac_status=$?
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); }; } &&
29480          { ac_try='test -s conftest.$ac_objext'
29481   { (case "(($ac_try" in
29482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483   *) ac_try_echo=$ac_try;;
29484 esac
29485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486   (eval "$ac_try") 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; }; then
29490   ac_header_compiler=yes
29491 else
29492   echo "$as_me: failed program was:" >&5
29493 sed 's/^/| /' conftest.$ac_ext >&5
29494
29495         ac_header_compiler=no
29496 fi
29497
29498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29500 echo "${ECHO_T}$ac_header_compiler" >&6; }
29501
29502 # Is the header present?
29503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29505 cat >conftest.$ac_ext <<_ACEOF
29506 /* confdefs.h.  */
29507 _ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h.  */
29511 #include <$ac_header>
29512 _ACEOF
29513 if { (ac_try="$ac_cpp conftest.$ac_ext"
29514 case "(($ac_try" in
29515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516   *) ac_try_echo=$ac_try;;
29517 esac
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } >/dev/null; then
29526   if test -s conftest.err; then
29527     ac_cpp_err=$ac_c_preproc_warn_flag
29528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29529   else
29530     ac_cpp_err=
29531   fi
29532 else
29533   ac_cpp_err=yes
29534 fi
29535 if test -z "$ac_cpp_err"; then
29536   ac_header_preproc=yes
29537 else
29538   echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29540
29541   ac_header_preproc=no
29542 fi
29543
29544 rm -f conftest.err conftest.$ac_ext
29545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29546 echo "${ECHO_T}$ac_header_preproc" >&6; }
29547
29548 # So?  What about this header?
29549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29550   yes:no: )
29551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29555     ac_header_preproc=yes
29556     ;;
29557   no:yes:* )
29558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29570     ( cat <<\_ASBOX
29571 ## ----------------------------------- ##
29572 ## Report this to llvmbugs@cs.uiuc.edu ##
29573 ## ----------------------------------- ##
29574 _ASBOX
29575      ) | sed "s/^/$as_me: WARNING:     /" >&2
29576     ;;
29577 esac
29578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29581   echo $ECHO_N "(cached) $ECHO_C" >&6
29582 else
29583   eval "$as_ac_Header=\$ac_header_preproc"
29584 fi
29585 ac_res=`eval echo '${'$as_ac_Header'}'`
29586                { echo "$as_me:$LINENO: result: $ac_res" >&5
29587 echo "${ECHO_T}$ac_res" >&6; }
29588
29589 fi
29590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29591   cat >>confdefs.h <<_ACEOF
29592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29593 _ACEOF
29594
29595 fi
29596
29597 done
29598
29599 if test "$ENABLE_THREADS" -eq 1 ; then
29600
29601 for ac_header in pthread.h
29602 do
29603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29605   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29608   echo $ECHO_N "(cached) $ECHO_C" >&6
29609 fi
29610 ac_res=`eval echo '${'$as_ac_Header'}'`
29611                { echo "$as_me:$LINENO: result: $ac_res" >&5
29612 echo "${ECHO_T}$ac_res" >&6; }
29613 else
29614   # Is the header compilable?
29615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29617 cat >conftest.$ac_ext <<_ACEOF
29618 /* confdefs.h.  */
29619 _ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h.  */
29623 $ac_includes_default
29624 #include <$ac_header>
29625 _ACEOF
29626 rm -f conftest.$ac_objext
29627 if { (ac_try="$ac_compile"
29628 case "(($ac_try" in
29629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630   *) ac_try_echo=$ac_try;;
29631 esac
29632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633   (eval "$ac_compile") 2>conftest.er1
29634   ac_status=$?
29635   grep -v '^ *+' conftest.er1 >conftest.err
29636   rm -f conftest.er1
29637   cat conftest.err >&5
29638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639   (exit $ac_status); } &&
29640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29641   { (case "(($ac_try" in
29642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643   *) ac_try_echo=$ac_try;;
29644 esac
29645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646   (eval "$ac_try") 2>&5
29647   ac_status=$?
29648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649   (exit $ac_status); }; } &&
29650          { ac_try='test -s conftest.$ac_objext'
29651   { (case "(($ac_try" in
29652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653   *) ac_try_echo=$ac_try;;
29654 esac
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656   (eval "$ac_try") 2>&5
29657   ac_status=$?
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); }; }; then
29660   ac_header_compiler=yes
29661 else
29662   echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29664
29665         ac_header_compiler=no
29666 fi
29667
29668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29670 echo "${ECHO_T}$ac_header_compiler" >&6; }
29671
29672 # Is the header present?
29673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29675 cat >conftest.$ac_ext <<_ACEOF
29676 /* confdefs.h.  */
29677 _ACEOF
29678 cat confdefs.h >>conftest.$ac_ext
29679 cat >>conftest.$ac_ext <<_ACEOF
29680 /* end confdefs.h.  */
29681 #include <$ac_header>
29682 _ACEOF
29683 if { (ac_try="$ac_cpp conftest.$ac_ext"
29684 case "(($ac_try" in
29685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686   *) ac_try_echo=$ac_try;;
29687 esac
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29690   ac_status=$?
29691   grep -v '^ *+' conftest.er1 >conftest.err
29692   rm -f conftest.er1
29693   cat conftest.err >&5
29694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695   (exit $ac_status); } >/dev/null; then
29696   if test -s conftest.err; then
29697     ac_cpp_err=$ac_c_preproc_warn_flag
29698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29699   else
29700     ac_cpp_err=
29701   fi
29702 else
29703   ac_cpp_err=yes
29704 fi
29705 if test -z "$ac_cpp_err"; then
29706   ac_header_preproc=yes
29707 else
29708   echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29710
29711   ac_header_preproc=no
29712 fi
29713
29714 rm -f conftest.err conftest.$ac_ext
29715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29716 echo "${ECHO_T}$ac_header_preproc" >&6; }
29717
29718 # So?  What about this header?
29719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29720   yes:no: )
29721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29725     ac_header_preproc=yes
29726     ;;
29727   no:yes:* )
29728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29740     ( cat <<\_ASBOX
29741 ## ----------------------------------- ##
29742 ## Report this to llvmbugs@cs.uiuc.edu ##
29743 ## ----------------------------------- ##
29744 _ASBOX
29745      ) | sed "s/^/$as_me: WARNING:     /" >&2
29746     ;;
29747 esac
29748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29751   echo $ECHO_N "(cached) $ECHO_C" >&6
29752 else
29753   eval "$as_ac_Header=\$ac_header_preproc"
29754 fi
29755 ac_res=`eval echo '${'$as_ac_Header'}'`
29756                { echo "$as_me:$LINENO: result: $ac_res" >&5
29757 echo "${ECHO_T}$ac_res" >&6; }
29758
29759 fi
29760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29761   cat >>confdefs.h <<_ACEOF
29762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29763 _ACEOF
29764  HAVE_PTHREAD=1
29765
29766 else
29767   HAVE_PTHREAD=0
29768
29769 fi
29770
29771 done
29772
29773 else
29774   HAVE_PTHREAD=0
29775
29776 fi
29777
29778
29779
29780 for ac_header in ffi.h ffi/ffi.h
29781 do
29782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29787   echo $ECHO_N "(cached) $ECHO_C" >&6
29788 fi
29789 ac_res=`eval echo '${'$as_ac_Header'}'`
29790                { echo "$as_me:$LINENO: result: $ac_res" >&5
29791 echo "${ECHO_T}$ac_res" >&6; }
29792 else
29793   # Is the header compilable?
29794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29796 cat >conftest.$ac_ext <<_ACEOF
29797 /* confdefs.h.  */
29798 _ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h.  */
29802 $ac_includes_default
29803 #include <$ac_header>
29804 _ACEOF
29805 rm -f conftest.$ac_objext
29806 if { (ac_try="$ac_compile"
29807 case "(($ac_try" in
29808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809   *) ac_try_echo=$ac_try;;
29810 esac
29811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812   (eval "$ac_compile") 2>conftest.er1
29813   ac_status=$?
29814   grep -v '^ *+' conftest.er1 >conftest.err
29815   rm -f conftest.er1
29816   cat conftest.err >&5
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); } &&
29819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29820   { (case "(($ac_try" in
29821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822   *) ac_try_echo=$ac_try;;
29823 esac
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825   (eval "$ac_try") 2>&5
29826   ac_status=$?
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); }; } &&
29829          { ac_try='test -s conftest.$ac_objext'
29830   { (case "(($ac_try" in
29831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832   *) ac_try_echo=$ac_try;;
29833 esac
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835   (eval "$ac_try") 2>&5
29836   ac_status=$?
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); }; }; then
29839   ac_header_compiler=yes
29840 else
29841   echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844         ac_header_compiler=no
29845 fi
29846
29847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29849 echo "${ECHO_T}$ac_header_compiler" >&6; }
29850
29851 # Is the header present?
29852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29854 cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860 #include <$ac_header>
29861 _ACEOF
29862 if { (ac_try="$ac_cpp conftest.$ac_ext"
29863 case "(($ac_try" in
29864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865   *) ac_try_echo=$ac_try;;
29866 esac
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29869   ac_status=$?
29870   grep -v '^ *+' conftest.er1 >conftest.err
29871   rm -f conftest.er1
29872   cat conftest.err >&5
29873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); } >/dev/null; then
29875   if test -s conftest.err; then
29876     ac_cpp_err=$ac_c_preproc_warn_flag
29877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29878   else
29879     ac_cpp_err=
29880   fi
29881 else
29882   ac_cpp_err=yes
29883 fi
29884 if test -z "$ac_cpp_err"; then
29885   ac_header_preproc=yes
29886 else
29887   echo "$as_me: failed program was:" >&5
29888 sed 's/^/| /' conftest.$ac_ext >&5
29889
29890   ac_header_preproc=no
29891 fi
29892
29893 rm -f conftest.err conftest.$ac_ext
29894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29895 echo "${ECHO_T}$ac_header_preproc" >&6; }
29896
29897 # So?  What about this header?
29898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29899   yes:no: )
29900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29904     ac_header_preproc=yes
29905     ;;
29906   no:yes:* )
29907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29919     ( cat <<\_ASBOX
29920 ## ----------------------------------- ##
29921 ## Report this to llvmbugs@cs.uiuc.edu ##
29922 ## ----------------------------------- ##
29923 _ASBOX
29924      ) | sed "s/^/$as_me: WARNING:     /" >&2
29925     ;;
29926 esac
29927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29930   echo $ECHO_N "(cached) $ECHO_C" >&6
29931 else
29932   eval "$as_ac_Header=\$ac_header_preproc"
29933 fi
29934 ac_res=`eval echo '${'$as_ac_Header'}'`
29935                { echo "$as_me:$LINENO: result: $ac_res" >&5
29936 echo "${ECHO_T}$ac_res" >&6; }
29937
29938 fi
29939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29940   cat >>confdefs.h <<_ACEOF
29941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29942 _ACEOF
29943
29944 fi
29945
29946 done
29947
29948
29949
29950
29951   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29952 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29953 if test "${ac_cv_huge_val_sanity+set}" = set; then
29954   echo $ECHO_N "(cached) $ECHO_C" >&6
29955 else
29956
29957     ac_ext=cpp
29958 ac_cpp='$CXXCPP $CPPFLAGS'
29959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29962
29963     CXXFLAGS=-pedantic
29964     if test "$cross_compiling" = yes; then
29965   ac_cv_huge_val_sanity=yes
29966 else
29967   cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973 #include <math.h>
29974 int
29975 main ()
29976 {
29977 double x = HUGE_VAL; return x != x;
29978   ;
29979   return 0;
29980 }
29981 _ACEOF
29982 rm -f conftest$ac_exeext
29983 if { (ac_try="$ac_link"
29984 case "(($ac_try" in
29985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986   *) ac_try_echo=$ac_try;;
29987 esac
29988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989   (eval "$ac_link") 2>&5
29990   ac_status=$?
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29993   { (case "(($ac_try" in
29994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995   *) ac_try_echo=$ac_try;;
29996 esac
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998   (eval "$ac_try") 2>&5
29999   ac_status=$?
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); }; }; then
30002   ac_cv_huge_val_sanity=yes
30003 else
30004   echo "$as_me: program exited with status $ac_status" >&5
30005 echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30007
30008 ( exit $ac_status )
30009 ac_cv_huge_val_sanity=no
30010 fi
30011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30012 fi
30013
30014
30015     ac_ext=c
30016 ac_cpp='$CPP $CPPFLAGS'
30017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30020
30021
30022 fi
30023 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30024 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30025   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30026
30027
30028 { echo "$as_me:$LINENO: checking for pid_t" >&5
30029 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30030 if test "${ac_cv_type_pid_t+set}" = set; then
30031   echo $ECHO_N "(cached) $ECHO_C" >&6
30032 else
30033   cat >conftest.$ac_ext <<_ACEOF
30034 /* confdefs.h.  */
30035 _ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h.  */
30039 $ac_includes_default
30040 typedef pid_t ac__type_new_;
30041 int
30042 main ()
30043 {
30044 if ((ac__type_new_ *) 0)
30045   return 0;
30046 if (sizeof (ac__type_new_))
30047   return 0;
30048   ;
30049   return 0;
30050 }
30051 _ACEOF
30052 rm -f conftest.$ac_objext
30053 if { (ac_try="$ac_compile"
30054 case "(($ac_try" in
30055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056   *) ac_try_echo=$ac_try;;
30057 esac
30058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059   (eval "$ac_compile") 2>conftest.er1
30060   ac_status=$?
30061   grep -v '^ *+' conftest.er1 >conftest.err
30062   rm -f conftest.er1
30063   cat conftest.err >&5
30064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065   (exit $ac_status); } &&
30066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30067   { (case "(($ac_try" in
30068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069   *) ac_try_echo=$ac_try;;
30070 esac
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072   (eval "$ac_try") 2>&5
30073   ac_status=$?
30074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075   (exit $ac_status); }; } &&
30076          { ac_try='test -s conftest.$ac_objext'
30077   { (case "(($ac_try" in
30078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30079   *) ac_try_echo=$ac_try;;
30080 esac
30081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30082   (eval "$ac_try") 2>&5
30083   ac_status=$?
30084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085   (exit $ac_status); }; }; then
30086   ac_cv_type_pid_t=yes
30087 else
30088   echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090
30091         ac_cv_type_pid_t=no
30092 fi
30093
30094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30095 fi
30096 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30097 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30098 if test $ac_cv_type_pid_t = yes; then
30099   :
30100 else
30101
30102 cat >>confdefs.h <<_ACEOF
30103 #define pid_t int
30104 _ACEOF
30105
30106 fi
30107
30108 { echo "$as_me:$LINENO: checking for size_t" >&5
30109 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30110 if test "${ac_cv_type_size_t+set}" = set; then
30111   echo $ECHO_N "(cached) $ECHO_C" >&6
30112 else
30113   cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119 $ac_includes_default
30120 typedef size_t ac__type_new_;
30121 int
30122 main ()
30123 {
30124 if ((ac__type_new_ *) 0)
30125   return 0;
30126 if (sizeof (ac__type_new_))
30127   return 0;
30128   ;
30129   return 0;
30130 }
30131 _ACEOF
30132 rm -f conftest.$ac_objext
30133 if { (ac_try="$ac_compile"
30134 case "(($ac_try" in
30135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136   *) ac_try_echo=$ac_try;;
30137 esac
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139   (eval "$ac_compile") 2>conftest.er1
30140   ac_status=$?
30141   grep -v '^ *+' conftest.er1 >conftest.err
30142   rm -f conftest.er1
30143   cat conftest.err >&5
30144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145   (exit $ac_status); } &&
30146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30147   { (case "(($ac_try" in
30148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149   *) ac_try_echo=$ac_try;;
30150 esac
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152   (eval "$ac_try") 2>&5
30153   ac_status=$?
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); }; } &&
30156          { ac_try='test -s conftest.$ac_objext'
30157   { (case "(($ac_try" in
30158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159   *) ac_try_echo=$ac_try;;
30160 esac
30161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162   (eval "$ac_try") 2>&5
30163   ac_status=$?
30164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165   (exit $ac_status); }; }; then
30166   ac_cv_type_size_t=yes
30167 else
30168   echo "$as_me: failed program was:" >&5
30169 sed 's/^/| /' conftest.$ac_ext >&5
30170
30171         ac_cv_type_size_t=no
30172 fi
30173
30174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30175 fi
30176 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30177 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30178 if test $ac_cv_type_size_t = yes; then
30179   :
30180 else
30181
30182 cat >>confdefs.h <<_ACEOF
30183 #define size_t unsigned int
30184 _ACEOF
30185
30186 fi
30187
30188 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30189 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30190 if test "${ac_cv_type_signal+set}" = set; then
30191   echo $ECHO_N "(cached) $ECHO_C" >&6
30192 else
30193   cat >conftest.$ac_ext <<_ACEOF
30194 /* confdefs.h.  */
30195 _ACEOF
30196 cat confdefs.h >>conftest.$ac_ext
30197 cat >>conftest.$ac_ext <<_ACEOF
30198 /* end confdefs.h.  */
30199 #include <sys/types.h>
30200 #include <signal.h>
30201
30202 int
30203 main ()
30204 {
30205 return *(signal (0, 0)) (0) == 1;
30206   ;
30207   return 0;
30208 }
30209 _ACEOF
30210 rm -f conftest.$ac_objext
30211 if { (ac_try="$ac_compile"
30212 case "(($ac_try" in
30213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214   *) ac_try_echo=$ac_try;;
30215 esac
30216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217   (eval "$ac_compile") 2>conftest.er1
30218   ac_status=$?
30219   grep -v '^ *+' conftest.er1 >conftest.err
30220   rm -f conftest.er1
30221   cat conftest.err >&5
30222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223   (exit $ac_status); } &&
30224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30225   { (case "(($ac_try" in
30226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227   *) ac_try_echo=$ac_try;;
30228 esac
30229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230   (eval "$ac_try") 2>&5
30231   ac_status=$?
30232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233   (exit $ac_status); }; } &&
30234          { ac_try='test -s conftest.$ac_objext'
30235   { (case "(($ac_try" in
30236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30237   *) ac_try_echo=$ac_try;;
30238 esac
30239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240   (eval "$ac_try") 2>&5
30241   ac_status=$?
30242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); }; }; then
30244   ac_cv_type_signal=int
30245 else
30246   echo "$as_me: failed program was:" >&5
30247 sed 's/^/| /' conftest.$ac_ext >&5
30248
30249         ac_cv_type_signal=void
30250 fi
30251
30252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30253 fi
30254 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30255 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30256
30257 cat >>confdefs.h <<_ACEOF
30258 #define RETSIGTYPE $ac_cv_type_signal
30259 _ACEOF
30260
30261
30262 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30263 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30264 if test "${ac_cv_struct_tm+set}" = set; then
30265   echo $ECHO_N "(cached) $ECHO_C" >&6
30266 else
30267   cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273 #include <sys/types.h>
30274 #include <time.h>
30275
30276 int
30277 main ()
30278 {
30279 struct tm *tp; tp->tm_sec;
30280   ;
30281   return 0;
30282 }
30283 _ACEOF
30284 rm -f conftest.$ac_objext
30285 if { (ac_try="$ac_compile"
30286 case "(($ac_try" in
30287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288   *) ac_try_echo=$ac_try;;
30289 esac
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291   (eval "$ac_compile") 2>conftest.er1
30292   ac_status=$?
30293   grep -v '^ *+' conftest.er1 >conftest.err
30294   rm -f conftest.er1
30295   cat conftest.err >&5
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); } &&
30298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30299   { (case "(($ac_try" in
30300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301   *) ac_try_echo=$ac_try;;
30302 esac
30303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304   (eval "$ac_try") 2>&5
30305   ac_status=$?
30306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); }; } &&
30308          { ac_try='test -s conftest.$ac_objext'
30309   { (case "(($ac_try" in
30310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311   *) ac_try_echo=$ac_try;;
30312 esac
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314   (eval "$ac_try") 2>&5
30315   ac_status=$?
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); }; }; then
30318   ac_cv_struct_tm=time.h
30319 else
30320   echo "$as_me: failed program was:" >&5
30321 sed 's/^/| /' conftest.$ac_ext >&5
30322
30323         ac_cv_struct_tm=sys/time.h
30324 fi
30325
30326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30327 fi
30328 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30329 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30330 if test $ac_cv_struct_tm = sys/time.h; then
30331
30332 cat >>confdefs.h <<\_ACEOF
30333 #define TM_IN_SYS_TIME 1
30334 _ACEOF
30335
30336 fi
30337
30338 { echo "$as_me:$LINENO: checking for int64_t" >&5
30339 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30340 if test "${ac_cv_type_int64_t+set}" = set; then
30341   echo $ECHO_N "(cached) $ECHO_C" >&6
30342 else
30343   cat >conftest.$ac_ext <<_ACEOF
30344 /* confdefs.h.  */
30345 _ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h.  */
30349 $ac_includes_default
30350 typedef int64_t ac__type_new_;
30351 int
30352 main ()
30353 {
30354 if ((ac__type_new_ *) 0)
30355   return 0;
30356 if (sizeof (ac__type_new_))
30357   return 0;
30358   ;
30359   return 0;
30360 }
30361 _ACEOF
30362 rm -f conftest.$ac_objext
30363 if { (ac_try="$ac_compile"
30364 case "(($ac_try" in
30365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366   *) ac_try_echo=$ac_try;;
30367 esac
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369   (eval "$ac_compile") 2>conftest.er1
30370   ac_status=$?
30371   grep -v '^ *+' conftest.er1 >conftest.err
30372   rm -f conftest.er1
30373   cat conftest.err >&5
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); } &&
30376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30377   { (case "(($ac_try" in
30378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379   *) ac_try_echo=$ac_try;;
30380 esac
30381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382   (eval "$ac_try") 2>&5
30383   ac_status=$?
30384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385   (exit $ac_status); }; } &&
30386          { ac_try='test -s conftest.$ac_objext'
30387   { (case "(($ac_try" in
30388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389   *) ac_try_echo=$ac_try;;
30390 esac
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392   (eval "$ac_try") 2>&5
30393   ac_status=$?
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); }; }; then
30396   ac_cv_type_int64_t=yes
30397 else
30398   echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.$ac_ext >&5
30400
30401         ac_cv_type_int64_t=no
30402 fi
30403
30404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30405 fi
30406 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30407 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30408 if test $ac_cv_type_int64_t = yes; then
30409
30410 cat >>confdefs.h <<_ACEOF
30411 #define HAVE_INT64_T 1
30412 _ACEOF
30413
30414
30415 else
30416   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30417 echo "$as_me: error: Type int64_t required but not found" >&2;}
30418    { (exit 1); exit 1; }; }
30419 fi
30420
30421 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30422 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30423 if test "${ac_cv_type_uint64_t+set}" = set; then
30424   echo $ECHO_N "(cached) $ECHO_C" >&6
30425 else
30426   cat >conftest.$ac_ext <<_ACEOF
30427 /* confdefs.h.  */
30428 _ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h.  */
30432 $ac_includes_default
30433 typedef uint64_t ac__type_new_;
30434 int
30435 main ()
30436 {
30437 if ((ac__type_new_ *) 0)
30438   return 0;
30439 if (sizeof (ac__type_new_))
30440   return 0;
30441   ;
30442   return 0;
30443 }
30444 _ACEOF
30445 rm -f conftest.$ac_objext
30446 if { (ac_try="$ac_compile"
30447 case "(($ac_try" in
30448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449   *) ac_try_echo=$ac_try;;
30450 esac
30451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452   (eval "$ac_compile") 2>conftest.er1
30453   ac_status=$?
30454   grep -v '^ *+' conftest.er1 >conftest.err
30455   rm -f conftest.er1
30456   cat conftest.err >&5
30457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458   (exit $ac_status); } &&
30459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30460   { (case "(($ac_try" in
30461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462   *) ac_try_echo=$ac_try;;
30463 esac
30464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465   (eval "$ac_try") 2>&5
30466   ac_status=$?
30467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468   (exit $ac_status); }; } &&
30469          { ac_try='test -s conftest.$ac_objext'
30470   { (case "(($ac_try" in
30471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472   *) ac_try_echo=$ac_try;;
30473 esac
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475   (eval "$ac_try") 2>&5
30476   ac_status=$?
30477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); }; }; then
30479   ac_cv_type_uint64_t=yes
30480 else
30481   echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30483
30484         ac_cv_type_uint64_t=no
30485 fi
30486
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30488 fi
30489 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30490 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30491 if test $ac_cv_type_uint64_t = yes; then
30492
30493 cat >>confdefs.h <<_ACEOF
30494 #define HAVE_UINT64_T 1
30495 _ACEOF
30496
30497
30498 else
30499   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30500 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30501 if test "${ac_cv_type_u_int64_t+set}" = set; then
30502   echo $ECHO_N "(cached) $ECHO_C" >&6
30503 else
30504   cat >conftest.$ac_ext <<_ACEOF
30505 /* confdefs.h.  */
30506 _ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h.  */
30510 $ac_includes_default
30511 typedef u_int64_t ac__type_new_;
30512 int
30513 main ()
30514 {
30515 if ((ac__type_new_ *) 0)
30516   return 0;
30517 if (sizeof (ac__type_new_))
30518   return 0;
30519   ;
30520   return 0;
30521 }
30522 _ACEOF
30523 rm -f conftest.$ac_objext
30524 if { (ac_try="$ac_compile"
30525 case "(($ac_try" in
30526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527   *) ac_try_echo=$ac_try;;
30528 esac
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530   (eval "$ac_compile") 2>conftest.er1
30531   ac_status=$?
30532   grep -v '^ *+' conftest.er1 >conftest.err
30533   rm -f conftest.er1
30534   cat conftest.err >&5
30535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536   (exit $ac_status); } &&
30537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30538   { (case "(($ac_try" in
30539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540   *) ac_try_echo=$ac_try;;
30541 esac
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543   (eval "$ac_try") 2>&5
30544   ac_status=$?
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); }; } &&
30547          { ac_try='test -s conftest.$ac_objext'
30548   { (case "(($ac_try" in
30549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550   *) ac_try_echo=$ac_try;;
30551 esac
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553   (eval "$ac_try") 2>&5
30554   ac_status=$?
30555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556   (exit $ac_status); }; }; then
30557   ac_cv_type_u_int64_t=yes
30558 else
30559   echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30561
30562         ac_cv_type_u_int64_t=no
30563 fi
30564
30565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30566 fi
30567 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30568 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30569 if test $ac_cv_type_u_int64_t = yes; then
30570
30571 cat >>confdefs.h <<_ACEOF
30572 #define HAVE_U_INT64_T 1
30573 _ACEOF
30574
30575
30576 else
30577   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30578 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30579    { (exit 1); exit 1; }; }
30580 fi
30581
30582 fi
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30594 do
30595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30599   echo $ECHO_N "(cached) $ECHO_C" >&6
30600 else
30601   cat >conftest.$ac_ext <<_ACEOF
30602 /* confdefs.h.  */
30603 _ACEOF
30604 cat confdefs.h >>conftest.$ac_ext
30605 cat >>conftest.$ac_ext <<_ACEOF
30606 /* end confdefs.h.  */
30607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30609 #define $ac_func innocuous_$ac_func
30610
30611 /* System header to define __stub macros and hopefully few prototypes,
30612     which can conflict with char $ac_func (); below.
30613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30614     <limits.h> exists even on freestanding compilers.  */
30615
30616 #ifdef __STDC__
30617 # include <limits.h>
30618 #else
30619 # include <assert.h>
30620 #endif
30621
30622 #undef $ac_func
30623
30624 /* Override any GCC internal prototype to avoid an error.
30625    Use char because int might match the return type of a GCC
30626    builtin and then its argument prototype would still apply.  */
30627 #ifdef __cplusplus
30628 extern "C"
30629 #endif
30630 char $ac_func ();
30631 /* The GNU C library defines this for functions which it implements
30632     to always fail with ENOSYS.  Some functions are actually named
30633     something starting with __ and the normal name is an alias.  */
30634 #if defined __stub_$ac_func || defined __stub___$ac_func
30635 choke me
30636 #endif
30637
30638 int
30639 main ()
30640 {
30641 return $ac_func ();
30642   ;
30643   return 0;
30644 }
30645 _ACEOF
30646 rm -f conftest.$ac_objext conftest$ac_exeext
30647 if { (ac_try="$ac_link"
30648 case "(($ac_try" in
30649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30650   *) ac_try_echo=$ac_try;;
30651 esac
30652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30653   (eval "$ac_link") 2>conftest.er1
30654   ac_status=$?
30655   grep -v '^ *+' conftest.er1 >conftest.err
30656   rm -f conftest.er1
30657   cat conftest.err >&5
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); } &&
30660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30661   { (case "(($ac_try" in
30662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663   *) ac_try_echo=$ac_try;;
30664 esac
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666   (eval "$ac_try") 2>&5
30667   ac_status=$?
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); }; } &&
30670          { ac_try='test -s conftest$ac_exeext'
30671   { (case "(($ac_try" in
30672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673   *) ac_try_echo=$ac_try;;
30674 esac
30675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676   (eval "$ac_try") 2>&5
30677   ac_status=$?
30678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679   (exit $ac_status); }; }; then
30680   eval "$as_ac_var=yes"
30681 else
30682   echo "$as_me: failed program was:" >&5
30683 sed 's/^/| /' conftest.$ac_ext >&5
30684
30685         eval "$as_ac_var=no"
30686 fi
30687
30688 rm -f core conftest.err conftest.$ac_objext \
30689       conftest$ac_exeext conftest.$ac_ext
30690 fi
30691 ac_res=`eval echo '${'$as_ac_var'}'`
30692                { echo "$as_me:$LINENO: result: $ac_res" >&5
30693 echo "${ECHO_T}$ac_res" >&6; }
30694 if test `eval echo '${'$as_ac_var'}'` = yes; then
30695   cat >>confdefs.h <<_ACEOF
30696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30697 _ACEOF
30698
30699 fi
30700 done
30701
30702
30703
30704
30705
30706 for ac_func in powf fmodf strtof round
30707 do
30708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30712   echo $ECHO_N "(cached) $ECHO_C" >&6
30713 else
30714   cat >conftest.$ac_ext <<_ACEOF
30715 /* confdefs.h.  */
30716 _ACEOF
30717 cat confdefs.h >>conftest.$ac_ext
30718 cat >>conftest.$ac_ext <<_ACEOF
30719 /* end confdefs.h.  */
30720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30722 #define $ac_func innocuous_$ac_func
30723
30724 /* System header to define __stub macros and hopefully few prototypes,
30725     which can conflict with char $ac_func (); below.
30726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30727     <limits.h> exists even on freestanding compilers.  */
30728
30729 #ifdef __STDC__
30730 # include <limits.h>
30731 #else
30732 # include <assert.h>
30733 #endif
30734
30735 #undef $ac_func
30736
30737 /* Override any GCC internal prototype to avoid an error.
30738    Use char because int might match the return type of a GCC
30739    builtin and then its argument prototype would still apply.  */
30740 #ifdef __cplusplus
30741 extern "C"
30742 #endif
30743 char $ac_func ();
30744 /* The GNU C library defines this for functions which it implements
30745     to always fail with ENOSYS.  Some functions are actually named
30746     something starting with __ and the normal name is an alias.  */
30747 #if defined __stub_$ac_func || defined __stub___$ac_func
30748 choke me
30749 #endif
30750
30751 int
30752 main ()
30753 {
30754 return $ac_func ();
30755   ;
30756   return 0;
30757 }
30758 _ACEOF
30759 rm -f conftest.$ac_objext conftest$ac_exeext
30760 if { (ac_try="$ac_link"
30761 case "(($ac_try" in
30762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30763   *) ac_try_echo=$ac_try;;
30764 esac
30765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30766   (eval "$ac_link") 2>conftest.er1
30767   ac_status=$?
30768   grep -v '^ *+' conftest.er1 >conftest.err
30769   rm -f conftest.er1
30770   cat conftest.err >&5
30771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772   (exit $ac_status); } &&
30773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30774   { (case "(($ac_try" in
30775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776   *) ac_try_echo=$ac_try;;
30777 esac
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779   (eval "$ac_try") 2>&5
30780   ac_status=$?
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); }; } &&
30783          { ac_try='test -s conftest$ac_exeext'
30784   { (case "(($ac_try" in
30785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786   *) ac_try_echo=$ac_try;;
30787 esac
30788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789   (eval "$ac_try") 2>&5
30790   ac_status=$?
30791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792   (exit $ac_status); }; }; then
30793   eval "$as_ac_var=yes"
30794 else
30795   echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30797
30798         eval "$as_ac_var=no"
30799 fi
30800
30801 rm -f core conftest.err conftest.$ac_objext \
30802       conftest$ac_exeext conftest.$ac_ext
30803 fi
30804 ac_res=`eval echo '${'$as_ac_var'}'`
30805                { echo "$as_me:$LINENO: result: $ac_res" >&5
30806 echo "${ECHO_T}$ac_res" >&6; }
30807 if test `eval echo '${'$as_ac_var'}'` = yes; then
30808   cat >>confdefs.h <<_ACEOF
30809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30810 _ACEOF
30811
30812 fi
30813 done
30814
30815
30816
30817
30818
30819
30820 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30821 do
30822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826   echo $ECHO_N "(cached) $ECHO_C" >&6
30827 else
30828   cat >conftest.$ac_ext <<_ACEOF
30829 /* confdefs.h.  */
30830 _ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h.  */
30834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30836 #define $ac_func innocuous_$ac_func
30837
30838 /* System header to define __stub macros and hopefully few prototypes,
30839     which can conflict with char $ac_func (); below.
30840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841     <limits.h> exists even on freestanding compilers.  */
30842
30843 #ifdef __STDC__
30844 # include <limits.h>
30845 #else
30846 # include <assert.h>
30847 #endif
30848
30849 #undef $ac_func
30850
30851 /* Override any GCC internal prototype to avoid an error.
30852    Use char because int might match the return type of a GCC
30853    builtin and then its argument prototype would still apply.  */
30854 #ifdef __cplusplus
30855 extern "C"
30856 #endif
30857 char $ac_func ();
30858 /* The GNU C library defines this for functions which it implements
30859     to always fail with ENOSYS.  Some functions are actually named
30860     something starting with __ and the normal name is an alias.  */
30861 #if defined __stub_$ac_func || defined __stub___$ac_func
30862 choke me
30863 #endif
30864
30865 int
30866 main ()
30867 {
30868 return $ac_func ();
30869   ;
30870   return 0;
30871 }
30872 _ACEOF
30873 rm -f conftest.$ac_objext conftest$ac_exeext
30874 if { (ac_try="$ac_link"
30875 case "(($ac_try" in
30876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877   *) ac_try_echo=$ac_try;;
30878 esac
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880   (eval "$ac_link") 2>conftest.er1
30881   ac_status=$?
30882   grep -v '^ *+' conftest.er1 >conftest.err
30883   rm -f conftest.er1
30884   cat conftest.err >&5
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); } &&
30887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888   { (case "(($ac_try" in
30889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890   *) ac_try_echo=$ac_try;;
30891 esac
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893   (eval "$ac_try") 2>&5
30894   ac_status=$?
30895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896   (exit $ac_status); }; } &&
30897          { ac_try='test -s conftest$ac_exeext'
30898   { (case "(($ac_try" in
30899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900   *) ac_try_echo=$ac_try;;
30901 esac
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903   (eval "$ac_try") 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; }; then
30907   eval "$as_ac_var=yes"
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912         eval "$as_ac_var=no"
30913 fi
30914
30915 rm -f core conftest.err conftest.$ac_objext \
30916       conftest$ac_exeext conftest.$ac_ext
30917 fi
30918 ac_res=`eval echo '${'$as_ac_var'}'`
30919                { echo "$as_me:$LINENO: result: $ac_res" >&5
30920 echo "${ECHO_T}$ac_res" >&6; }
30921 if test `eval echo '${'$as_ac_var'}'` = yes; then
30922   cat >>confdefs.h <<_ACEOF
30923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30924 _ACEOF
30925
30926 fi
30927 done
30928
30929
30930
30931
30932 for ac_func in isatty mkdtemp mkstemp
30933 do
30934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30938   echo $ECHO_N "(cached) $ECHO_C" >&6
30939 else
30940   cat >conftest.$ac_ext <<_ACEOF
30941 /* confdefs.h.  */
30942 _ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h.  */
30946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30948 #define $ac_func innocuous_$ac_func
30949
30950 /* System header to define __stub macros and hopefully few prototypes,
30951     which can conflict with char $ac_func (); below.
30952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30953     <limits.h> exists even on freestanding compilers.  */
30954
30955 #ifdef __STDC__
30956 # include <limits.h>
30957 #else
30958 # include <assert.h>
30959 #endif
30960
30961 #undef $ac_func
30962
30963 /* Override any GCC internal prototype to avoid an error.
30964    Use char because int might match the return type of a GCC
30965    builtin and then its argument prototype would still apply.  */
30966 #ifdef __cplusplus
30967 extern "C"
30968 #endif
30969 char $ac_func ();
30970 /* The GNU C library defines this for functions which it implements
30971     to always fail with ENOSYS.  Some functions are actually named
30972     something starting with __ and the normal name is an alias.  */
30973 #if defined __stub_$ac_func || defined __stub___$ac_func
30974 choke me
30975 #endif
30976
30977 int
30978 main ()
30979 {
30980 return $ac_func ();
30981   ;
30982   return 0;
30983 }
30984 _ACEOF
30985 rm -f conftest.$ac_objext conftest$ac_exeext
30986 if { (ac_try="$ac_link"
30987 case "(($ac_try" in
30988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30989   *) ac_try_echo=$ac_try;;
30990 esac
30991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30992   (eval "$ac_link") 2>conftest.er1
30993   ac_status=$?
30994   grep -v '^ *+' conftest.er1 >conftest.err
30995   rm -f conftest.er1
30996   cat conftest.err >&5
30997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998   (exit $ac_status); } &&
30999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31000   { (case "(($ac_try" in
31001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31002   *) ac_try_echo=$ac_try;;
31003 esac
31004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31005   (eval "$ac_try") 2>&5
31006   ac_status=$?
31007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008   (exit $ac_status); }; } &&
31009          { ac_try='test -s conftest$ac_exeext'
31010   { (case "(($ac_try" in
31011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31012   *) ac_try_echo=$ac_try;;
31013 esac
31014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015   (eval "$ac_try") 2>&5
31016   ac_status=$?
31017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018   (exit $ac_status); }; }; then
31019   eval "$as_ac_var=yes"
31020 else
31021   echo "$as_me: failed program was:" >&5
31022 sed 's/^/| /' conftest.$ac_ext >&5
31023
31024         eval "$as_ac_var=no"
31025 fi
31026
31027 rm -f core conftest.err conftest.$ac_objext \
31028       conftest$ac_exeext conftest.$ac_ext
31029 fi
31030 ac_res=`eval echo '${'$as_ac_var'}'`
31031                { echo "$as_me:$LINENO: result: $ac_res" >&5
31032 echo "${ECHO_T}$ac_res" >&6; }
31033 if test `eval echo '${'$as_ac_var'}'` = yes; then
31034   cat >>confdefs.h <<_ACEOF
31035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31036 _ACEOF
31037
31038 fi
31039 done
31040
31041
31042
31043
31044
31045
31046
31047
31048 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31049 do
31050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31054   echo $ECHO_N "(cached) $ECHO_C" >&6
31055 else
31056   cat >conftest.$ac_ext <<_ACEOF
31057 /* confdefs.h.  */
31058 _ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h.  */
31062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31064 #define $ac_func innocuous_$ac_func
31065
31066 /* System header to define __stub macros and hopefully few prototypes,
31067     which can conflict with char $ac_func (); below.
31068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31069     <limits.h> exists even on freestanding compilers.  */
31070
31071 #ifdef __STDC__
31072 # include <limits.h>
31073 #else
31074 # include <assert.h>
31075 #endif
31076
31077 #undef $ac_func
31078
31079 /* Override any GCC internal prototype to avoid an error.
31080    Use char because int might match the return type of a GCC
31081    builtin and then its argument prototype would still apply.  */
31082 #ifdef __cplusplus
31083 extern "C"
31084 #endif
31085 char $ac_func ();
31086 /* The GNU C library defines this for functions which it implements
31087     to always fail with ENOSYS.  Some functions are actually named
31088     something starting with __ and the normal name is an alias.  */
31089 #if defined __stub_$ac_func || defined __stub___$ac_func
31090 choke me
31091 #endif
31092
31093 int
31094 main ()
31095 {
31096 return $ac_func ();
31097   ;
31098   return 0;
31099 }
31100 _ACEOF
31101 rm -f conftest.$ac_objext conftest$ac_exeext
31102 if { (ac_try="$ac_link"
31103 case "(($ac_try" in
31104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105   *) ac_try_echo=$ac_try;;
31106 esac
31107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108   (eval "$ac_link") 2>conftest.er1
31109   ac_status=$?
31110   grep -v '^ *+' conftest.er1 >conftest.err
31111   rm -f conftest.er1
31112   cat conftest.err >&5
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); } &&
31115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31116   { (case "(($ac_try" in
31117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118   *) ac_try_echo=$ac_try;;
31119 esac
31120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121   (eval "$ac_try") 2>&5
31122   ac_status=$?
31123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124   (exit $ac_status); }; } &&
31125          { ac_try='test -s conftest$ac_exeext'
31126   { (case "(($ac_try" in
31127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128   *) ac_try_echo=$ac_try;;
31129 esac
31130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31131   (eval "$ac_try") 2>&5
31132   ac_status=$?
31133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); }; }; then
31135   eval "$as_ac_var=yes"
31136 else
31137   echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31139
31140         eval "$as_ac_var=no"
31141 fi
31142
31143 rm -f core conftest.err conftest.$ac_objext \
31144       conftest$ac_exeext conftest.$ac_ext
31145 fi
31146 ac_res=`eval echo '${'$as_ac_var'}'`
31147                { echo "$as_me:$LINENO: result: $ac_res" >&5
31148 echo "${ECHO_T}$ac_res" >&6; }
31149 if test `eval echo '${'$as_ac_var'}'` = yes; then
31150   cat >>confdefs.h <<_ACEOF
31151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31152 _ACEOF
31153
31154 fi
31155 done
31156
31157
31158
31159
31160
31161 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31162 do
31163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31167   echo $ECHO_N "(cached) $ECHO_C" >&6
31168 else
31169   cat >conftest.$ac_ext <<_ACEOF
31170 /* confdefs.h.  */
31171 _ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h.  */
31175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31177 #define $ac_func innocuous_$ac_func
31178
31179 /* System header to define __stub macros and hopefully few prototypes,
31180     which can conflict with char $ac_func (); below.
31181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31182     <limits.h> exists even on freestanding compilers.  */
31183
31184 #ifdef __STDC__
31185 # include <limits.h>
31186 #else
31187 # include <assert.h>
31188 #endif
31189
31190 #undef $ac_func
31191
31192 /* Override any GCC internal prototype to avoid an error.
31193    Use char because int might match the return type of a GCC
31194    builtin and then its argument prototype would still apply.  */
31195 #ifdef __cplusplus
31196 extern "C"
31197 #endif
31198 char $ac_func ();
31199 /* The GNU C library defines this for functions which it implements
31200     to always fail with ENOSYS.  Some functions are actually named
31201     something starting with __ and the normal name is an alias.  */
31202 #if defined __stub_$ac_func || defined __stub___$ac_func
31203 choke me
31204 #endif
31205
31206 int
31207 main ()
31208 {
31209 return $ac_func ();
31210   ;
31211   return 0;
31212 }
31213 _ACEOF
31214 rm -f conftest.$ac_objext conftest$ac_exeext
31215 if { (ac_try="$ac_link"
31216 case "(($ac_try" in
31217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31218   *) ac_try_echo=$ac_try;;
31219 esac
31220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31221   (eval "$ac_link") 2>conftest.er1
31222   ac_status=$?
31223   grep -v '^ *+' conftest.er1 >conftest.err
31224   rm -f conftest.er1
31225   cat conftest.err >&5
31226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227   (exit $ac_status); } &&
31228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31229   { (case "(($ac_try" in
31230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231   *) ac_try_echo=$ac_try;;
31232 esac
31233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234   (eval "$ac_try") 2>&5
31235   ac_status=$?
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); }; } &&
31238          { ac_try='test -s conftest$ac_exeext'
31239   { (case "(($ac_try" in
31240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241   *) ac_try_echo=$ac_try;;
31242 esac
31243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244   (eval "$ac_try") 2>&5
31245   ac_status=$?
31246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247   (exit $ac_status); }; }; then
31248   eval "$as_ac_var=yes"
31249 else
31250   echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31252
31253         eval "$as_ac_var=no"
31254 fi
31255
31256 rm -f core conftest.err conftest.$ac_objext \
31257       conftest$ac_exeext conftest.$ac_ext
31258 fi
31259 ac_res=`eval echo '${'$as_ac_var'}'`
31260                { echo "$as_me:$LINENO: result: $ac_res" >&5
31261 echo "${ECHO_T}$ac_res" >&6; }
31262 if test `eval echo '${'$as_ac_var'}'` = yes; then
31263   cat >>confdefs.h <<_ACEOF
31264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31265 _ACEOF
31266
31267 fi
31268 done
31269
31270
31271
31272
31273
31274 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31275 do
31276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31280   echo $ECHO_N "(cached) $ECHO_C" >&6
31281 else
31282   cat >conftest.$ac_ext <<_ACEOF
31283 /* confdefs.h.  */
31284 _ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h.  */
31288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31290 #define $ac_func innocuous_$ac_func
31291
31292 /* System header to define __stub macros and hopefully few prototypes,
31293     which can conflict with char $ac_func (); below.
31294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31295     <limits.h> exists even on freestanding compilers.  */
31296
31297 #ifdef __STDC__
31298 # include <limits.h>
31299 #else
31300 # include <assert.h>
31301 #endif
31302
31303 #undef $ac_func
31304
31305 /* Override any GCC internal prototype to avoid an error.
31306    Use char because int might match the return type of a GCC
31307    builtin and then its argument prototype would still apply.  */
31308 #ifdef __cplusplus
31309 extern "C"
31310 #endif
31311 char $ac_func ();
31312 /* The GNU C library defines this for functions which it implements
31313     to always fail with ENOSYS.  Some functions are actually named
31314     something starting with __ and the normal name is an alias.  */
31315 #if defined __stub_$ac_func || defined __stub___$ac_func
31316 choke me
31317 #endif
31318
31319 int
31320 main ()
31321 {
31322 return $ac_func ();
31323   ;
31324   return 0;
31325 }
31326 _ACEOF
31327 rm -f conftest.$ac_objext conftest$ac_exeext
31328 if { (ac_try="$ac_link"
31329 case "(($ac_try" in
31330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31331   *) ac_try_echo=$ac_try;;
31332 esac
31333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31334   (eval "$ac_link") 2>conftest.er1
31335   ac_status=$?
31336   grep -v '^ *+' conftest.er1 >conftest.err
31337   rm -f conftest.er1
31338   cat conftest.err >&5
31339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340   (exit $ac_status); } &&
31341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31342   { (case "(($ac_try" in
31343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344   *) ac_try_echo=$ac_try;;
31345 esac
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347   (eval "$ac_try") 2>&5
31348   ac_status=$?
31349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350   (exit $ac_status); }; } &&
31351          { ac_try='test -s conftest$ac_exeext'
31352   { (case "(($ac_try" in
31353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31354   *) ac_try_echo=$ac_try;;
31355 esac
31356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31357   (eval "$ac_try") 2>&5
31358   ac_status=$?
31359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360   (exit $ac_status); }; }; then
31361   eval "$as_ac_var=yes"
31362 else
31363   echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31365
31366         eval "$as_ac_var=no"
31367 fi
31368
31369 rm -f core conftest.err conftest.$ac_objext \
31370       conftest$ac_exeext conftest.$ac_ext
31371 fi
31372 ac_res=`eval echo '${'$as_ac_var'}'`
31373                { echo "$as_me:$LINENO: result: $ac_res" >&5
31374 echo "${ECHO_T}$ac_res" >&6; }
31375 if test `eval echo '${'$as_ac_var'}'` = yes; then
31376   cat >>confdefs.h <<_ACEOF
31377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31378 _ACEOF
31379
31380 fi
31381 done
31382
31383 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31384 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31385 if test "${llvm_cv_c_printf_a+set}" = set; then
31386   echo $ECHO_N "(cached) $ECHO_C" >&6
31387 else
31388   ac_ext=c
31389 ac_cpp='$CPP $CPPFLAGS'
31390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31393
31394  if test "$cross_compiling" = yes; then
31395   llvmac_cv_c_printf_a=no
31396 else
31397   cat >conftest.$ac_ext <<_ACEOF
31398
31399   /* confdefs.h.  */
31400 _ACEOF
31401 cat confdefs.h >>conftest.$ac_ext
31402 cat >>conftest.$ac_ext <<_ACEOF
31403 /* end confdefs.h.  */
31404
31405 #include <stdio.h>
31406 #include <stdlib.h>
31407
31408 int
31409 main ()
31410 {
31411
31412 volatile double A, B;
31413 char Buffer[100];
31414 A = 1;
31415 A /= 10.0;
31416 sprintf(Buffer, "%a", A);
31417 B = atof(Buffer);
31418 if (A != B)
31419   return (1);
31420 if (A != 0x1.999999999999ap-4)
31421   return (1);
31422 return (0);
31423   ;
31424   return 0;
31425 }
31426 _ACEOF
31427 rm -f conftest$ac_exeext
31428 if { (ac_try="$ac_link"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434   (eval "$ac_link") 2>&5
31435   ac_status=$?
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31438   { (case "(($ac_try" in
31439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440   *) ac_try_echo=$ac_try;;
31441 esac
31442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443   (eval "$ac_try") 2>&5
31444   ac_status=$?
31445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446   (exit $ac_status); }; }; then
31447   llvm_cv_c_printf_a=yes
31448 else
31449   echo "$as_me: program exited with status $ac_status" >&5
31450 echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31452
31453 ( exit $ac_status )
31454 llvmac_cv_c_printf_a=no
31455 fi
31456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31457 fi
31458
31459
31460  ac_ext=c
31461 ac_cpp='$CPP $CPPFLAGS'
31462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31465
31466 fi
31467 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31468 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31469  if test "$llvm_cv_c_printf_a" = "yes"; then
31470
31471 cat >>confdefs.h <<\_ACEOF
31472 #define HAVE_PRINTF_A 1
31473 _ACEOF
31474
31475  fi
31476
31477 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31478 # for constant arguments.  Useless!
31479 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31480 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31481 if test "${ac_cv_working_alloca_h+set}" = set; then
31482   echo $ECHO_N "(cached) $ECHO_C" >&6
31483 else
31484   cat >conftest.$ac_ext <<_ACEOF
31485 /* confdefs.h.  */
31486 _ACEOF
31487 cat confdefs.h >>conftest.$ac_ext
31488 cat >>conftest.$ac_ext <<_ACEOF
31489 /* end confdefs.h.  */
31490 #include <alloca.h>
31491 int
31492 main ()
31493 {
31494 char *p = (char *) alloca (2 * sizeof (int));
31495                           if (p) return 0;
31496   ;
31497   return 0;
31498 }
31499 _ACEOF
31500 rm -f conftest.$ac_objext conftest$ac_exeext
31501 if { (ac_try="$ac_link"
31502 case "(($ac_try" in
31503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31504   *) ac_try_echo=$ac_try;;
31505 esac
31506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31507   (eval "$ac_link") 2>conftest.er1
31508   ac_status=$?
31509   grep -v '^ *+' conftest.er1 >conftest.err
31510   rm -f conftest.er1
31511   cat conftest.err >&5
31512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513   (exit $ac_status); } &&
31514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31515   { (case "(($ac_try" in
31516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517   *) ac_try_echo=$ac_try;;
31518 esac
31519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520   (eval "$ac_try") 2>&5
31521   ac_status=$?
31522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); }; } &&
31524          { ac_try='test -s conftest$ac_exeext'
31525   { (case "(($ac_try" in
31526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31527   *) ac_try_echo=$ac_try;;
31528 esac
31529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530   (eval "$ac_try") 2>&5
31531   ac_status=$?
31532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533   (exit $ac_status); }; }; then
31534   ac_cv_working_alloca_h=yes
31535 else
31536   echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31538
31539         ac_cv_working_alloca_h=no
31540 fi
31541
31542 rm -f core conftest.err conftest.$ac_objext \
31543       conftest$ac_exeext conftest.$ac_ext
31544 fi
31545 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31546 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31547 if test $ac_cv_working_alloca_h = yes; then
31548
31549 cat >>confdefs.h <<\_ACEOF
31550 #define HAVE_ALLOCA_H 1
31551 _ACEOF
31552
31553 fi
31554
31555 { echo "$as_me:$LINENO: checking for alloca" >&5
31556 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31557 if test "${ac_cv_func_alloca_works+set}" = set; then
31558   echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560   cat >conftest.$ac_ext <<_ACEOF
31561 /* confdefs.h.  */
31562 _ACEOF
31563 cat confdefs.h >>conftest.$ac_ext
31564 cat >>conftest.$ac_ext <<_ACEOF
31565 /* end confdefs.h.  */
31566 #ifdef __GNUC__
31567 # define alloca __builtin_alloca
31568 #else
31569 # ifdef _MSC_VER
31570 #  include <malloc.h>
31571 #  define alloca _alloca
31572 # else
31573 #  if HAVE_ALLOCA_H
31574 #   include <alloca.h>
31575 #  else
31576 #   ifdef _AIX
31577  #pragma alloca
31578 #   else
31579 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31580 char *alloca ();
31581 #    endif
31582 #   endif
31583 #  endif
31584 # endif
31585 #endif
31586
31587 int
31588 main ()
31589 {
31590 char *p = (char *) alloca (1);
31591                                     if (p) return 0;
31592   ;
31593   return 0;
31594 }
31595 _ACEOF
31596 rm -f conftest.$ac_objext conftest$ac_exeext
31597 if { (ac_try="$ac_link"
31598 case "(($ac_try" in
31599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600   *) ac_try_echo=$ac_try;;
31601 esac
31602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603   (eval "$ac_link") 2>conftest.er1
31604   ac_status=$?
31605   grep -v '^ *+' conftest.er1 >conftest.err
31606   rm -f conftest.er1
31607   cat conftest.err >&5
31608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31609   (exit $ac_status); } &&
31610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31611   { (case "(($ac_try" in
31612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613   *) ac_try_echo=$ac_try;;
31614 esac
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616   (eval "$ac_try") 2>&5
31617   ac_status=$?
31618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619   (exit $ac_status); }; } &&
31620          { ac_try='test -s conftest$ac_exeext'
31621   { (case "(($ac_try" in
31622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31623   *) ac_try_echo=$ac_try;;
31624 esac
31625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31626   (eval "$ac_try") 2>&5
31627   ac_status=$?
31628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629   (exit $ac_status); }; }; then
31630   ac_cv_func_alloca_works=yes
31631 else
31632   echo "$as_me: failed program was:" >&5
31633 sed 's/^/| /' conftest.$ac_ext >&5
31634
31635         ac_cv_func_alloca_works=no
31636 fi
31637
31638 rm -f core conftest.err conftest.$ac_objext \
31639       conftest$ac_exeext conftest.$ac_ext
31640 fi
31641 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31642 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31643
31644 if test $ac_cv_func_alloca_works = yes; then
31645
31646 cat >>confdefs.h <<\_ACEOF
31647 #define HAVE_ALLOCA 1
31648 _ACEOF
31649
31650 else
31651   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31652 # that cause trouble.  Some versions do not even contain alloca or
31653 # contain a buggy version.  If you still want to use their alloca,
31654 # use ar to extract alloca.o from them instead of compiling alloca.c.
31655
31656 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31657
31658 cat >>confdefs.h <<\_ACEOF
31659 #define C_ALLOCA 1
31660 _ACEOF
31661
31662
31663 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31664 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31665 if test "${ac_cv_os_cray+set}" = set; then
31666   echo $ECHO_N "(cached) $ECHO_C" >&6
31667 else
31668   cat >conftest.$ac_ext <<_ACEOF
31669 /* confdefs.h.  */
31670 _ACEOF
31671 cat confdefs.h >>conftest.$ac_ext
31672 cat >>conftest.$ac_ext <<_ACEOF
31673 /* end confdefs.h.  */
31674 #if defined CRAY && ! defined CRAY2
31675 webecray
31676 #else
31677 wenotbecray
31678 #endif
31679
31680 _ACEOF
31681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31682   $EGREP "webecray" >/dev/null 2>&1; then
31683   ac_cv_os_cray=yes
31684 else
31685   ac_cv_os_cray=no
31686 fi
31687 rm -f conftest*
31688
31689 fi
31690 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31691 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31692 if test $ac_cv_os_cray = yes; then
31693   for ac_func in _getb67 GETB67 getb67; do
31694     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31698   echo $ECHO_N "(cached) $ECHO_C" >&6
31699 else
31700   cat >conftest.$ac_ext <<_ACEOF
31701 /* confdefs.h.  */
31702 _ACEOF
31703 cat confdefs.h >>conftest.$ac_ext
31704 cat >>conftest.$ac_ext <<_ACEOF
31705 /* end confdefs.h.  */
31706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31708 #define $ac_func innocuous_$ac_func
31709
31710 /* System header to define __stub macros and hopefully few prototypes,
31711     which can conflict with char $ac_func (); below.
31712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31713     <limits.h> exists even on freestanding compilers.  */
31714
31715 #ifdef __STDC__
31716 # include <limits.h>
31717 #else
31718 # include <assert.h>
31719 #endif
31720
31721 #undef $ac_func
31722
31723 /* Override any GCC internal prototype to avoid an error.
31724    Use char because int might match the return type of a GCC
31725    builtin and then its argument prototype would still apply.  */
31726 #ifdef __cplusplus
31727 extern "C"
31728 #endif
31729 char $ac_func ();
31730 /* The GNU C library defines this for functions which it implements
31731     to always fail with ENOSYS.  Some functions are actually named
31732     something starting with __ and the normal name is an alias.  */
31733 #if defined __stub_$ac_func || defined __stub___$ac_func
31734 choke me
31735 #endif
31736
31737 int
31738 main ()
31739 {
31740 return $ac_func ();
31741   ;
31742   return 0;
31743 }
31744 _ACEOF
31745 rm -f conftest.$ac_objext conftest$ac_exeext
31746 if { (ac_try="$ac_link"
31747 case "(($ac_try" in
31748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749   *) ac_try_echo=$ac_try;;
31750 esac
31751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752   (eval "$ac_link") 2>conftest.er1
31753   ac_status=$?
31754   grep -v '^ *+' conftest.er1 >conftest.err
31755   rm -f conftest.er1
31756   cat conftest.err >&5
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); } &&
31759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31760   { (case "(($ac_try" in
31761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762   *) ac_try_echo=$ac_try;;
31763 esac
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765   (eval "$ac_try") 2>&5
31766   ac_status=$?
31767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768   (exit $ac_status); }; } &&
31769          { ac_try='test -s conftest$ac_exeext'
31770   { (case "(($ac_try" in
31771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772   *) ac_try_echo=$ac_try;;
31773 esac
31774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775   (eval "$ac_try") 2>&5
31776   ac_status=$?
31777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); }; }; then
31779   eval "$as_ac_var=yes"
31780 else
31781   echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31783
31784         eval "$as_ac_var=no"
31785 fi
31786
31787 rm -f core conftest.err conftest.$ac_objext \
31788       conftest$ac_exeext conftest.$ac_ext
31789 fi
31790 ac_res=`eval echo '${'$as_ac_var'}'`
31791                { echo "$as_me:$LINENO: result: $ac_res" >&5
31792 echo "${ECHO_T}$ac_res" >&6; }
31793 if test `eval echo '${'$as_ac_var'}'` = yes; then
31794
31795 cat >>confdefs.h <<_ACEOF
31796 #define CRAY_STACKSEG_END $ac_func
31797 _ACEOF
31798
31799     break
31800 fi
31801
31802   done
31803 fi
31804
31805 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31806 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31807 if test "${ac_cv_c_stack_direction+set}" = set; then
31808   echo $ECHO_N "(cached) $ECHO_C" >&6
31809 else
31810   if test "$cross_compiling" = yes; then
31811   ac_cv_c_stack_direction=0
31812 else
31813   cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819 $ac_includes_default
31820 int
31821 find_stack_direction ()
31822 {
31823   static char *addr = 0;
31824   auto char dummy;
31825   if (addr == 0)
31826     {
31827       addr = &dummy;
31828       return find_stack_direction ();
31829     }
31830   else
31831     return (&dummy > addr) ? 1 : -1;
31832 }
31833
31834 int
31835 main ()
31836 {
31837   return find_stack_direction () < 0;
31838 }
31839 _ACEOF
31840 rm -f conftest$ac_exeext
31841 if { (ac_try="$ac_link"
31842 case "(($ac_try" in
31843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844   *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847   (eval "$ac_link") 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31851   { (case "(($ac_try" in
31852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853   *) ac_try_echo=$ac_try;;
31854 esac
31855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856   (eval "$ac_try") 2>&5
31857   ac_status=$?
31858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859   (exit $ac_status); }; }; then
31860   ac_cv_c_stack_direction=1
31861 else
31862   echo "$as_me: program exited with status $ac_status" >&5
31863 echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.$ac_ext >&5
31865
31866 ( exit $ac_status )
31867 ac_cv_c_stack_direction=-1
31868 fi
31869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31870 fi
31871
31872
31873 fi
31874 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31875 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31876
31877 cat >>confdefs.h <<_ACEOF
31878 #define STACK_DIRECTION $ac_cv_c_stack_direction
31879 _ACEOF
31880
31881
31882 fi
31883
31884
31885 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31886 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31887 if test "${ac_cv_func_rand48+set}" = set; then
31888   echo $ECHO_N "(cached) $ECHO_C" >&6
31889 else
31890   ac_ext=cpp
31891 ac_cpp='$CXXCPP $CPPFLAGS'
31892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31895
31896    cat >conftest.$ac_ext <<_ACEOF
31897 /* confdefs.h.  */
31898 _ACEOF
31899 cat confdefs.h >>conftest.$ac_ext
31900 cat >>conftest.$ac_ext <<_ACEOF
31901 /* end confdefs.h.  */
31902 #include <stdlib.h>
31903 int
31904 main ()
31905 {
31906 srand48(0);lrand48();drand48();
31907   ;
31908   return 0;
31909 }
31910 _ACEOF
31911 rm -f conftest.$ac_objext
31912 if { (ac_try="$ac_compile"
31913 case "(($ac_try" in
31914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915   *) ac_try_echo=$ac_try;;
31916 esac
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918   (eval "$ac_compile") 2>conftest.er1
31919   ac_status=$?
31920   grep -v '^ *+' conftest.er1 >conftest.err
31921   rm -f conftest.er1
31922   cat conftest.err >&5
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); } &&
31925          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31926   { (case "(($ac_try" in
31927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928   *) ac_try_echo=$ac_try;;
31929 esac
31930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931   (eval "$ac_try") 2>&5
31932   ac_status=$?
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); }; } &&
31935          { ac_try='test -s conftest.$ac_objext'
31936   { (case "(($ac_try" in
31937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938   *) ac_try_echo=$ac_try;;
31939 esac
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941   (eval "$ac_try") 2>&5
31942   ac_status=$?
31943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944   (exit $ac_status); }; }; then
31945   ac_cv_func_rand48=yes
31946 else
31947   echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31949
31950         ac_cv_func_rand48=no
31951 fi
31952
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954   ac_ext=c
31955 ac_cpp='$CPP $CPPFLAGS'
31956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31959
31960 fi
31961 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31962 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31963
31964 if test "$ac_cv_func_rand48" = "yes" ; then
31965
31966 cat >>confdefs.h <<\_ACEOF
31967 #define HAVE_RAND48 1
31968 _ACEOF
31969
31970 fi
31971
31972
31973 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31974 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31975 if test "${ac_cv_cxx_namespaces+set}" = set; then
31976   echo $ECHO_N "(cached) $ECHO_C" >&6
31977 else
31978   ac_ext=cpp
31979 ac_cpp='$CXXCPP $CPPFLAGS'
31980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31983
31984  cat >conftest.$ac_ext <<_ACEOF
31985 /* confdefs.h.  */
31986 _ACEOF
31987 cat confdefs.h >>conftest.$ac_ext
31988 cat >>conftest.$ac_ext <<_ACEOF
31989 /* end confdefs.h.  */
31990 namespace Outer { namespace Inner { int i = 0; }}
31991 int
31992 main ()
31993 {
31994 using namespace Outer::Inner; return i;
31995   ;
31996   return 0;
31997 }
31998 _ACEOF
31999 rm -f conftest.$ac_objext
32000 if { (ac_try="$ac_compile"
32001 case "(($ac_try" in
32002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003   *) ac_try_echo=$ac_try;;
32004 esac
32005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006   (eval "$ac_compile") 2>conftest.er1
32007   ac_status=$?
32008   grep -v '^ *+' conftest.er1 >conftest.err
32009   rm -f conftest.er1
32010   cat conftest.err >&5
32011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012   (exit $ac_status); } &&
32013          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32014   { (case "(($ac_try" in
32015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016   *) ac_try_echo=$ac_try;;
32017 esac
32018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019   (eval "$ac_try") 2>&5
32020   ac_status=$?
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); }; } &&
32023          { ac_try='test -s conftest.$ac_objext'
32024   { (case "(($ac_try" in
32025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026   *) ac_try_echo=$ac_try;;
32027 esac
32028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029   (eval "$ac_try") 2>&5
32030   ac_status=$?
32031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); }; }; then
32033   ac_cv_cxx_namespaces=yes
32034 else
32035   echo "$as_me: failed program was:" >&5
32036 sed 's/^/| /' conftest.$ac_ext >&5
32037
32038         ac_cv_cxx_namespaces=no
32039 fi
32040
32041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32042  ac_ext=c
32043 ac_cpp='$CPP $CPPFLAGS'
32044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32047
32048
32049 fi
32050 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32051 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32052 if test "$ac_cv_cxx_namespaces" = yes; then
32053
32054 cat >>confdefs.h <<\_ACEOF
32055 #define HAVE_NAMESPACES
32056 _ACEOF
32057
32058 fi
32059
32060 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32061 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32062 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32063   echo $ECHO_N "(cached) $ECHO_C" >&6
32064 else
32065
32066   ac_ext=cpp
32067 ac_cpp='$CXXCPP $CPPFLAGS'
32068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32071
32072   cat >conftest.$ac_ext <<_ACEOF
32073 /* confdefs.h.  */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h.  */
32078 #include <iterator>
32079 #ifdef HAVE_NAMESPACES
32080 using namespace std;
32081 #endif
32082 int
32083 main ()
32084 {
32085 iterator<int,int,int> t; return 0;
32086   ;
32087   return 0;
32088 }
32089 _ACEOF
32090 rm -f conftest.$ac_objext
32091 if { (ac_try="$ac_compile"
32092 case "(($ac_try" in
32093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094   *) ac_try_echo=$ac_try;;
32095 esac
32096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097   (eval "$ac_compile") 2>conftest.er1
32098   ac_status=$?
32099   grep -v '^ *+' conftest.er1 >conftest.err
32100   rm -f conftest.er1
32101   cat conftest.err >&5
32102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103   (exit $ac_status); } &&
32104          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32105   { (case "(($ac_try" in
32106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107   *) ac_try_echo=$ac_try;;
32108 esac
32109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110   (eval "$ac_try") 2>&5
32111   ac_status=$?
32112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113   (exit $ac_status); }; } &&
32114          { ac_try='test -s conftest.$ac_objext'
32115   { (case "(($ac_try" in
32116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117   *) ac_try_echo=$ac_try;;
32118 esac
32119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120   (eval "$ac_try") 2>&5
32121   ac_status=$?
32122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123   (exit $ac_status); }; }; then
32124   ac_cv_cxx_have_std_iterator=yes
32125 else
32126   echo "$as_me: failed program was:" >&5
32127 sed 's/^/| /' conftest.$ac_ext >&5
32128
32129         ac_cv_cxx_have_std_iterator=no
32130 fi
32131
32132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32133   ac_ext=c
32134 ac_cpp='$CPP $CPPFLAGS'
32135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32138
32139
32140 fi
32141 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32142 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32143 if test "$ac_cv_cxx_have_std_iterator" = yes
32144 then
32145
32146 cat >>confdefs.h <<\_ACEOF
32147 #define HAVE_STD_ITERATOR 1
32148 _ACEOF
32149
32150 else
32151
32152 cat >>confdefs.h <<\_ACEOF
32153 #define HAVE_STD_ITERATOR 0
32154 _ACEOF
32155
32156 fi
32157
32158 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32159 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32160 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32161   echo $ECHO_N "(cached) $ECHO_C" >&6
32162 else
32163
32164   ac_ext=cpp
32165 ac_cpp='$CXXCPP $CPPFLAGS'
32166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169
32170   cat >conftest.$ac_ext <<_ACEOF
32171 /* confdefs.h.  */
32172 _ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h.  */
32176 #include <iterator>
32177 #ifdef HAVE_NAMESPACES
32178 using namespace std;
32179 #endif
32180 int
32181 main ()
32182 {
32183 bidirectional_iterator<int,int> t; return 0;
32184   ;
32185   return 0;
32186 }
32187 _ACEOF
32188 rm -f conftest.$ac_objext
32189 if { (ac_try="$ac_compile"
32190 case "(($ac_try" in
32191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192   *) ac_try_echo=$ac_try;;
32193 esac
32194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195   (eval "$ac_compile") 2>conftest.er1
32196   ac_status=$?
32197   grep -v '^ *+' conftest.er1 >conftest.err
32198   rm -f conftest.er1
32199   cat conftest.err >&5
32200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201   (exit $ac_status); } &&
32202          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32203   { (case "(($ac_try" in
32204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205   *) ac_try_echo=$ac_try;;
32206 esac
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208   (eval "$ac_try") 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; } &&
32212          { ac_try='test -s conftest.$ac_objext'
32213   { (case "(($ac_try" in
32214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215   *) ac_try_echo=$ac_try;;
32216 esac
32217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218   (eval "$ac_try") 2>&5
32219   ac_status=$?
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); }; }; then
32222   ac_cv_cxx_have_bi_iterator=yes
32223 else
32224   echo "$as_me: failed program was:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32226
32227         ac_cv_cxx_have_bi_iterator=no
32228 fi
32229
32230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32231   ac_ext=c
32232 ac_cpp='$CPP $CPPFLAGS'
32233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32236
32237
32238 fi
32239 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32240 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32241 if test "$ac_cv_cxx_have_bi_iterator" = yes
32242 then
32243
32244 cat >>confdefs.h <<\_ACEOF
32245 #define HAVE_BI_ITERATOR 1
32246 _ACEOF
32247
32248 else
32249
32250 cat >>confdefs.h <<\_ACEOF
32251 #define HAVE_BI_ITERATOR 0
32252 _ACEOF
32253
32254 fi
32255
32256 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32257 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32258 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32259   echo $ECHO_N "(cached) $ECHO_C" >&6
32260 else
32261
32262   ac_ext=cpp
32263 ac_cpp='$CXXCPP $CPPFLAGS'
32264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32267
32268   cat >conftest.$ac_ext <<_ACEOF
32269 /* confdefs.h.  */
32270 _ACEOF
32271 cat confdefs.h >>conftest.$ac_ext
32272 cat >>conftest.$ac_ext <<_ACEOF
32273 /* end confdefs.h.  */
32274 #include <iterator>
32275 #ifdef HAVE_NAMESPACES
32276 using namespace std;
32277 #endif
32278 int
32279 main ()
32280 {
32281 forward_iterator<int,int> t; return 0;
32282   ;
32283   return 0;
32284 }
32285 _ACEOF
32286 rm -f conftest.$ac_objext
32287 if { (ac_try="$ac_compile"
32288 case "(($ac_try" in
32289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290   *) ac_try_echo=$ac_try;;
32291 esac
32292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293   (eval "$ac_compile") 2>conftest.er1
32294   ac_status=$?
32295   grep -v '^ *+' conftest.er1 >conftest.err
32296   rm -f conftest.er1
32297   cat conftest.err >&5
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); } &&
32300          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32301   { (case "(($ac_try" in
32302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303   *) ac_try_echo=$ac_try;;
32304 esac
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306   (eval "$ac_try") 2>&5
32307   ac_status=$?
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); }; } &&
32310          { ac_try='test -s conftest.$ac_objext'
32311   { (case "(($ac_try" in
32312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313   *) ac_try_echo=$ac_try;;
32314 esac
32315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316   (eval "$ac_try") 2>&5
32317   ac_status=$?
32318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319   (exit $ac_status); }; }; then
32320   ac_cv_cxx_have_fwd_iterator=yes
32321 else
32322   echo "$as_me: failed program was:" >&5
32323 sed 's/^/| /' conftest.$ac_ext >&5
32324
32325         ac_cv_cxx_have_fwd_iterator=no
32326 fi
32327
32328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32329   ac_ext=c
32330 ac_cpp='$CPP $CPPFLAGS'
32331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32334
32335
32336 fi
32337 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32338 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32339 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32340 then
32341
32342 cat >>confdefs.h <<\_ACEOF
32343 #define HAVE_FWD_ITERATOR 1
32344 _ACEOF
32345
32346 else
32347
32348 cat >>confdefs.h <<\_ACEOF
32349 #define HAVE_FWD_ITERATOR 0
32350 _ACEOF
32351
32352 fi
32353
32354
32355 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32356 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32357 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32358   echo $ECHO_N "(cached) $ECHO_C" >&6
32359 else
32360   ac_ext=cpp
32361 ac_cpp='$CXXCPP $CPPFLAGS'
32362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32365
32366    cat >conftest.$ac_ext <<_ACEOF
32367 /* confdefs.h.  */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h.  */
32372 #include <math.h>
32373 int
32374 main ()
32375 {
32376 float f; isnan(f);
32377   ;
32378   return 0;
32379 }
32380 _ACEOF
32381 rm -f conftest.$ac_objext
32382 if { (ac_try="$ac_compile"
32383 case "(($ac_try" in
32384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385   *) ac_try_echo=$ac_try;;
32386 esac
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388   (eval "$ac_compile") 2>conftest.er1
32389   ac_status=$?
32390   grep -v '^ *+' conftest.er1 >conftest.err
32391   rm -f conftest.er1
32392   cat conftest.err >&5
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); } &&
32395          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32396   { (case "(($ac_try" in
32397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398   *) ac_try_echo=$ac_try;;
32399 esac
32400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401   (eval "$ac_try") 2>&5
32402   ac_status=$?
32403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404   (exit $ac_status); }; } &&
32405          { ac_try='test -s conftest.$ac_objext'
32406   { (case "(($ac_try" in
32407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408   *) ac_try_echo=$ac_try;;
32409 esac
32410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411   (eval "$ac_try") 2>&5
32412   ac_status=$?
32413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414   (exit $ac_status); }; }; then
32415   ac_cv_func_isnan_in_math_h=yes
32416 else
32417   echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32419
32420         ac_cv_func_isnan_in_math_h=no
32421 fi
32422
32423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32424   ac_ext=c
32425 ac_cpp='$CPP $CPPFLAGS'
32426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32429
32430 fi
32431 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32432 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32433
32434
32435 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32436
32437 cat >>confdefs.h <<\_ACEOF
32438 #define HAVE_ISNAN_IN_MATH_H 1
32439 _ACEOF
32440
32441 fi
32442
32443 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32444 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32445 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32446   echo $ECHO_N "(cached) $ECHO_C" >&6
32447 else
32448   ac_ext=cpp
32449 ac_cpp='$CXXCPP $CPPFLAGS'
32450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32453
32454    cat >conftest.$ac_ext <<_ACEOF
32455 /* confdefs.h.  */
32456 _ACEOF
32457 cat confdefs.h >>conftest.$ac_ext
32458 cat >>conftest.$ac_ext <<_ACEOF
32459 /* end confdefs.h.  */
32460 #include <cmath>
32461 int
32462 main ()
32463 {
32464 float f; isnan(f);
32465   ;
32466   return 0;
32467 }
32468 _ACEOF
32469 rm -f conftest.$ac_objext
32470 if { (ac_try="$ac_compile"
32471 case "(($ac_try" in
32472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473   *) ac_try_echo=$ac_try;;
32474 esac
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476   (eval "$ac_compile") 2>conftest.er1
32477   ac_status=$?
32478   grep -v '^ *+' conftest.er1 >conftest.err
32479   rm -f conftest.er1
32480   cat conftest.err >&5
32481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482   (exit $ac_status); } &&
32483          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32484   { (case "(($ac_try" in
32485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32486   *) ac_try_echo=$ac_try;;
32487 esac
32488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32489   (eval "$ac_try") 2>&5
32490   ac_status=$?
32491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492   (exit $ac_status); }; } &&
32493          { ac_try='test -s conftest.$ac_objext'
32494   { (case "(($ac_try" in
32495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496   *) ac_try_echo=$ac_try;;
32497 esac
32498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499   (eval "$ac_try") 2>&5
32500   ac_status=$?
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); }; }; then
32503   ac_cv_func_isnan_in_cmath=yes
32504 else
32505   echo "$as_me: failed program was:" >&5
32506 sed 's/^/| /' conftest.$ac_ext >&5
32507
32508         ac_cv_func_isnan_in_cmath=no
32509 fi
32510
32511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32512   ac_ext=c
32513 ac_cpp='$CPP $CPPFLAGS'
32514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32517
32518 fi
32519 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32520 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32521
32522 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32523
32524 cat >>confdefs.h <<\_ACEOF
32525 #define HAVE_ISNAN_IN_CMATH 1
32526 _ACEOF
32527
32528 fi
32529
32530 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32531 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32532 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32533   echo $ECHO_N "(cached) $ECHO_C" >&6
32534 else
32535   ac_ext=cpp
32536 ac_cpp='$CXXCPP $CPPFLAGS'
32537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32540
32541    cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547 #include <cmath>
32548 int
32549 main ()
32550 {
32551 float f; std::isnan(f);
32552   ;
32553   return 0;
32554 }
32555 _ACEOF
32556 rm -f conftest.$ac_objext
32557 if { (ac_try="$ac_compile"
32558 case "(($ac_try" in
32559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560   *) ac_try_echo=$ac_try;;
32561 esac
32562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563   (eval "$ac_compile") 2>conftest.er1
32564   ac_status=$?
32565   grep -v '^ *+' conftest.er1 >conftest.err
32566   rm -f conftest.er1
32567   cat conftest.err >&5
32568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569   (exit $ac_status); } &&
32570          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32571   { (case "(($ac_try" in
32572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573   *) ac_try_echo=$ac_try;;
32574 esac
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576   (eval "$ac_try") 2>&5
32577   ac_status=$?
32578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579   (exit $ac_status); }; } &&
32580          { ac_try='test -s conftest.$ac_objext'
32581   { (case "(($ac_try" in
32582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583   *) ac_try_echo=$ac_try;;
32584 esac
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586   (eval "$ac_try") 2>&5
32587   ac_status=$?
32588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589   (exit $ac_status); }; }; then
32590   ac_cv_func_std_isnan_in_cmath=yes
32591 else
32592   echo "$as_me: failed program was:" >&5
32593 sed 's/^/| /' conftest.$ac_ext >&5
32594
32595         ac_cv_func_std_isnan_in_cmath=no
32596 fi
32597
32598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599   ac_ext=c
32600 ac_cpp='$CPP $CPPFLAGS'
32601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32604
32605 fi
32606 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32607 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32608
32609 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32610
32611 cat >>confdefs.h <<\_ACEOF
32612 #define HAVE_STD_ISNAN_IN_CMATH 1
32613 _ACEOF
32614
32615 fi
32616
32617
32618 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32619 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32620 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32621   echo $ECHO_N "(cached) $ECHO_C" >&6
32622 else
32623   ac_ext=cpp
32624 ac_cpp='$CXXCPP $CPPFLAGS'
32625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32628
32629    cat >conftest.$ac_ext <<_ACEOF
32630 /* confdefs.h.  */
32631 _ACEOF
32632 cat confdefs.h >>conftest.$ac_ext
32633 cat >>conftest.$ac_ext <<_ACEOF
32634 /* end confdefs.h.  */
32635 #include <math.h>
32636 int
32637 main ()
32638 {
32639 float f; isinf(f);
32640   ;
32641   return 0;
32642 }
32643 _ACEOF
32644 rm -f conftest.$ac_objext
32645 if { (ac_try="$ac_compile"
32646 case "(($ac_try" in
32647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648   *) ac_try_echo=$ac_try;;
32649 esac
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651   (eval "$ac_compile") 2>conftest.er1
32652   ac_status=$?
32653   grep -v '^ *+' conftest.er1 >conftest.err
32654   rm -f conftest.er1
32655   cat conftest.err >&5
32656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657   (exit $ac_status); } &&
32658          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32659   { (case "(($ac_try" in
32660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661   *) ac_try_echo=$ac_try;;
32662 esac
32663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664   (eval "$ac_try") 2>&5
32665   ac_status=$?
32666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667   (exit $ac_status); }; } &&
32668          { ac_try='test -s conftest.$ac_objext'
32669   { (case "(($ac_try" in
32670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671   *) ac_try_echo=$ac_try;;
32672 esac
32673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674   (eval "$ac_try") 2>&5
32675   ac_status=$?
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); }; }; then
32678   ac_cv_func_isinf_in_math_h=yes
32679 else
32680   echo "$as_me: failed program was:" >&5
32681 sed 's/^/| /' conftest.$ac_ext >&5
32682
32683         ac_cv_func_isinf_in_math_h=no
32684 fi
32685
32686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32687   ac_ext=c
32688 ac_cpp='$CPP $CPPFLAGS'
32689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32692
32693 fi
32694 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32695 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32696
32697 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32698
32699 cat >>confdefs.h <<\_ACEOF
32700 #define HAVE_ISINF_IN_MATH_H 1
32701 _ACEOF
32702
32703 fi
32704
32705 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32706 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32707 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32708   echo $ECHO_N "(cached) $ECHO_C" >&6
32709 else
32710   ac_ext=cpp
32711 ac_cpp='$CXXCPP $CPPFLAGS'
32712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32715
32716    cat >conftest.$ac_ext <<_ACEOF
32717 /* confdefs.h.  */
32718 _ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h.  */
32722 #include <cmath>
32723 int
32724 main ()
32725 {
32726 float f; isinf(f);
32727   ;
32728   return 0;
32729 }
32730 _ACEOF
32731 rm -f conftest.$ac_objext
32732 if { (ac_try="$ac_compile"
32733 case "(($ac_try" in
32734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735   *) ac_try_echo=$ac_try;;
32736 esac
32737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738   (eval "$ac_compile") 2>conftest.er1
32739   ac_status=$?
32740   grep -v '^ *+' conftest.er1 >conftest.err
32741   rm -f conftest.er1
32742   cat conftest.err >&5
32743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744   (exit $ac_status); } &&
32745          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32746   { (case "(($ac_try" in
32747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748   *) ac_try_echo=$ac_try;;
32749 esac
32750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751   (eval "$ac_try") 2>&5
32752   ac_status=$?
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); }; } &&
32755          { ac_try='test -s conftest.$ac_objext'
32756   { (case "(($ac_try" in
32757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758   *) ac_try_echo=$ac_try;;
32759 esac
32760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761   (eval "$ac_try") 2>&5
32762   ac_status=$?
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); }; }; then
32765   ac_cv_func_isinf_in_cmath=yes
32766 else
32767   echo "$as_me: failed program was:" >&5
32768 sed 's/^/| /' conftest.$ac_ext >&5
32769
32770         ac_cv_func_isinf_in_cmath=no
32771 fi
32772
32773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32774   ac_ext=c
32775 ac_cpp='$CPP $CPPFLAGS'
32776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32779
32780 fi
32781 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32782 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32783
32784 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32785
32786 cat >>confdefs.h <<\_ACEOF
32787 #define HAVE_ISINF_IN_CMATH 1
32788 _ACEOF
32789
32790 fi
32791
32792 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32793 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32794 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32795   echo $ECHO_N "(cached) $ECHO_C" >&6
32796 else
32797   ac_ext=cpp
32798 ac_cpp='$CXXCPP $CPPFLAGS'
32799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32802
32803    cat >conftest.$ac_ext <<_ACEOF
32804 /* confdefs.h.  */
32805 _ACEOF
32806 cat confdefs.h >>conftest.$ac_ext
32807 cat >>conftest.$ac_ext <<_ACEOF
32808 /* end confdefs.h.  */
32809 #include <cmath>
32810 int
32811 main ()
32812 {
32813 float f; std::isinf(f)}
32814   ;
32815   return 0;
32816 }
32817 _ACEOF
32818 rm -f conftest.$ac_objext
32819 if { (ac_try="$ac_compile"
32820 case "(($ac_try" in
32821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822   *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825   (eval "$ac_compile") 2>conftest.er1
32826   ac_status=$?
32827   grep -v '^ *+' conftest.er1 >conftest.err
32828   rm -f conftest.er1
32829   cat conftest.err >&5
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); } &&
32832          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32833   { (case "(($ac_try" in
32834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835   *) ac_try_echo=$ac_try;;
32836 esac
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838   (eval "$ac_try") 2>&5
32839   ac_status=$?
32840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841   (exit $ac_status); }; } &&
32842          { ac_try='test -s conftest.$ac_objext'
32843   { (case "(($ac_try" in
32844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845   *) ac_try_echo=$ac_try;;
32846 esac
32847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848   (eval "$ac_try") 2>&5
32849   ac_status=$?
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); }; }; then
32852   ac_cv_func_std_isinf_in_cmath=yes
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857         ac_cv_func_std_isinf_in_cmath=no
32858 fi
32859
32860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32861   ac_ext=c
32862 ac_cpp='$CPP $CPPFLAGS'
32863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32866
32867 fi
32868 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32869 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32870
32871 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32872
32873 cat >>confdefs.h <<\_ACEOF
32874 #define HAVE_STD_ISINF_IN_CMATH 1
32875 _ACEOF
32876
32877 fi
32878
32879 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32880 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32881 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32882   echo $ECHO_N "(cached) $ECHO_C" >&6
32883 else
32884   ac_ext=cpp
32885 ac_cpp='$CXXCPP $CPPFLAGS'
32886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32889
32890    cat >conftest.$ac_ext <<_ACEOF
32891 /* confdefs.h.  */
32892 _ACEOF
32893 cat confdefs.h >>conftest.$ac_ext
32894 cat >>conftest.$ac_ext <<_ACEOF
32895 /* end confdefs.h.  */
32896 #include <ieeefp.h>
32897 int
32898 main ()
32899 {
32900 float f; finite(f);
32901   ;
32902   return 0;
32903 }
32904 _ACEOF
32905 rm -f conftest.$ac_objext
32906 if { (ac_try="$ac_compile"
32907 case "(($ac_try" in
32908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32909   *) ac_try_echo=$ac_try;;
32910 esac
32911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32912   (eval "$ac_compile") 2>conftest.er1
32913   ac_status=$?
32914   grep -v '^ *+' conftest.er1 >conftest.err
32915   rm -f conftest.er1
32916   cat conftest.err >&5
32917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918   (exit $ac_status); } &&
32919          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32920   { (case "(($ac_try" in
32921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32922   *) ac_try_echo=$ac_try;;
32923 esac
32924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32925   (eval "$ac_try") 2>&5
32926   ac_status=$?
32927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928   (exit $ac_status); }; } &&
32929          { ac_try='test -s conftest.$ac_objext'
32930   { (case "(($ac_try" in
32931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932   *) ac_try_echo=$ac_try;;
32933 esac
32934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935   (eval "$ac_try") 2>&5
32936   ac_status=$?
32937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938   (exit $ac_status); }; }; then
32939   ac_cv_func_finite_in_ieeefp_h=yes
32940 else
32941   echo "$as_me: failed program was:" >&5
32942 sed 's/^/| /' conftest.$ac_ext >&5
32943
32944         ac_cv_func_finite_in_ieeefp_h=no
32945 fi
32946
32947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32948   ac_ext=c
32949 ac_cpp='$CPP $CPPFLAGS'
32950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32953
32954 fi
32955 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32956 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32957
32958 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32959
32960 cat >>confdefs.h <<\_ACEOF
32961 #define HAVE_FINITE_IN_IEEEFP_H 1
32962 _ACEOF
32963
32964 fi
32965
32966
32967
32968 if test "$llvm_cv_platform_type" = "Unix" ; then
32969
32970
32971 for ac_header in stdlib.h unistd.h
32972 do
32973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32975   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32978   echo $ECHO_N "(cached) $ECHO_C" >&6
32979 fi
32980 ac_res=`eval echo '${'$as_ac_Header'}'`
32981                { echo "$as_me:$LINENO: result: $ac_res" >&5
32982 echo "${ECHO_T}$ac_res" >&6; }
32983 else
32984   # Is the header compilable?
32985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32987 cat >conftest.$ac_ext <<_ACEOF
32988 /* confdefs.h.  */
32989 _ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h.  */
32993 $ac_includes_default
32994 #include <$ac_header>
32995 _ACEOF
32996 rm -f conftest.$ac_objext
32997 if { (ac_try="$ac_compile"
32998 case "(($ac_try" in
32999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000   *) ac_try_echo=$ac_try;;
33001 esac
33002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003   (eval "$ac_compile") 2>conftest.er1
33004   ac_status=$?
33005   grep -v '^ *+' conftest.er1 >conftest.err
33006   rm -f conftest.er1
33007   cat conftest.err >&5
33008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009   (exit $ac_status); } &&
33010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33011   { (case "(($ac_try" in
33012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013   *) ac_try_echo=$ac_try;;
33014 esac
33015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016   (eval "$ac_try") 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); }; } &&
33020          { ac_try='test -s conftest.$ac_objext'
33021   { (case "(($ac_try" in
33022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023   *) ac_try_echo=$ac_try;;
33024 esac
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026   (eval "$ac_try") 2>&5
33027   ac_status=$?
33028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029   (exit $ac_status); }; }; then
33030   ac_header_compiler=yes
33031 else
33032   echo "$as_me: failed program was:" >&5
33033 sed 's/^/| /' conftest.$ac_ext >&5
33034
33035         ac_header_compiler=no
33036 fi
33037
33038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33040 echo "${ECHO_T}$ac_header_compiler" >&6; }
33041
33042 # Is the header present?
33043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33045 cat >conftest.$ac_ext <<_ACEOF
33046 /* confdefs.h.  */
33047 _ACEOF
33048 cat confdefs.h >>conftest.$ac_ext
33049 cat >>conftest.$ac_ext <<_ACEOF
33050 /* end confdefs.h.  */
33051 #include <$ac_header>
33052 _ACEOF
33053 if { (ac_try="$ac_cpp conftest.$ac_ext"
33054 case "(($ac_try" in
33055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056   *) ac_try_echo=$ac_try;;
33057 esac
33058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33060   ac_status=$?
33061   grep -v '^ *+' conftest.er1 >conftest.err
33062   rm -f conftest.er1
33063   cat conftest.err >&5
33064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065   (exit $ac_status); } >/dev/null; then
33066   if test -s conftest.err; then
33067     ac_cpp_err=$ac_c_preproc_warn_flag
33068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33069   else
33070     ac_cpp_err=
33071   fi
33072 else
33073   ac_cpp_err=yes
33074 fi
33075 if test -z "$ac_cpp_err"; then
33076   ac_header_preproc=yes
33077 else
33078   echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33080
33081   ac_header_preproc=no
33082 fi
33083
33084 rm -f conftest.err conftest.$ac_ext
33085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33086 echo "${ECHO_T}$ac_header_preproc" >&6; }
33087
33088 # So?  What about this header?
33089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33090   yes:no: )
33091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33095     ac_header_preproc=yes
33096     ;;
33097   no:yes:* )
33098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33110     ( cat <<\_ASBOX
33111 ## ----------------------------------- ##
33112 ## Report this to llvmbugs@cs.uiuc.edu ##
33113 ## ----------------------------------- ##
33114 _ASBOX
33115      ) | sed "s/^/$as_me: WARNING:     /" >&2
33116     ;;
33117 esac
33118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33121   echo $ECHO_N "(cached) $ECHO_C" >&6
33122 else
33123   eval "$as_ac_Header=\$ac_header_preproc"
33124 fi
33125 ac_res=`eval echo '${'$as_ac_Header'}'`
33126                { echo "$as_me:$LINENO: result: $ac_res" >&5
33127 echo "${ECHO_T}$ac_res" >&6; }
33128
33129 fi
33130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33131   cat >>confdefs.h <<_ACEOF
33132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33133 _ACEOF
33134
33135 fi
33136
33137 done
33138
33139
33140 for ac_func in getpagesize
33141 do
33142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33146   echo $ECHO_N "(cached) $ECHO_C" >&6
33147 else
33148   cat >conftest.$ac_ext <<_ACEOF
33149 /* confdefs.h.  */
33150 _ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h.  */
33154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33156 #define $ac_func innocuous_$ac_func
33157
33158 /* System header to define __stub macros and hopefully few prototypes,
33159     which can conflict with char $ac_func (); below.
33160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33161     <limits.h> exists even on freestanding compilers.  */
33162
33163 #ifdef __STDC__
33164 # include <limits.h>
33165 #else
33166 # include <assert.h>
33167 #endif
33168
33169 #undef $ac_func
33170
33171 /* Override any GCC internal prototype to avoid an error.
33172    Use char because int might match the return type of a GCC
33173    builtin and then its argument prototype would still apply.  */
33174 #ifdef __cplusplus
33175 extern "C"
33176 #endif
33177 char $ac_func ();
33178 /* The GNU C library defines this for functions which it implements
33179     to always fail with ENOSYS.  Some functions are actually named
33180     something starting with __ and the normal name is an alias.  */
33181 #if defined __stub_$ac_func || defined __stub___$ac_func
33182 choke me
33183 #endif
33184
33185 int
33186 main ()
33187 {
33188 return $ac_func ();
33189   ;
33190   return 0;
33191 }
33192 _ACEOF
33193 rm -f conftest.$ac_objext conftest$ac_exeext
33194 if { (ac_try="$ac_link"
33195 case "(($ac_try" in
33196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197   *) ac_try_echo=$ac_try;;
33198 esac
33199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200   (eval "$ac_link") 2>conftest.er1
33201   ac_status=$?
33202   grep -v '^ *+' conftest.er1 >conftest.err
33203   rm -f conftest.er1
33204   cat conftest.err >&5
33205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206   (exit $ac_status); } &&
33207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33208   { (case "(($ac_try" in
33209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33210   *) ac_try_echo=$ac_try;;
33211 esac
33212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33213   (eval "$ac_try") 2>&5
33214   ac_status=$?
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); }; } &&
33217          { ac_try='test -s conftest$ac_exeext'
33218   { (case "(($ac_try" in
33219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220   *) ac_try_echo=$ac_try;;
33221 esac
33222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223   (eval "$ac_try") 2>&5
33224   ac_status=$?
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); }; }; then
33227   eval "$as_ac_var=yes"
33228 else
33229   echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33231
33232         eval "$as_ac_var=no"
33233 fi
33234
33235 rm -f core conftest.err conftest.$ac_objext \
33236       conftest$ac_exeext conftest.$ac_ext
33237 fi
33238 ac_res=`eval echo '${'$as_ac_var'}'`
33239                { echo "$as_me:$LINENO: result: $ac_res" >&5
33240 echo "${ECHO_T}$ac_res" >&6; }
33241 if test `eval echo '${'$as_ac_var'}'` = yes; then
33242   cat >>confdefs.h <<_ACEOF
33243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33244 _ACEOF
33245
33246 fi
33247 done
33248
33249 { echo "$as_me:$LINENO: checking for working mmap" >&5
33250 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33251 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33252   echo $ECHO_N "(cached) $ECHO_C" >&6
33253 else
33254   if test "$cross_compiling" = yes; then
33255   ac_cv_func_mmap_fixed_mapped=no
33256 else
33257   cat >conftest.$ac_ext <<_ACEOF
33258 /* confdefs.h.  */
33259 _ACEOF
33260 cat confdefs.h >>conftest.$ac_ext
33261 cat >>conftest.$ac_ext <<_ACEOF
33262 /* end confdefs.h.  */
33263 $ac_includes_default
33264 /* malloc might have been renamed as rpl_malloc. */
33265 #undef malloc
33266
33267 /* Thanks to Mike Haertel and Jim Avera for this test.
33268    Here is a matrix of mmap possibilities:
33269         mmap private not fixed
33270         mmap private fixed at somewhere currently unmapped
33271         mmap private fixed at somewhere already mapped
33272         mmap shared not fixed
33273         mmap shared fixed at somewhere currently unmapped
33274         mmap shared fixed at somewhere already mapped
33275    For private mappings, we should verify that changes cannot be read()
33276    back from the file, nor mmap's back from the file at a different
33277    address.  (There have been systems where private was not correctly
33278    implemented like the infamous i386 svr4.0, and systems where the
33279    VM page cache was not coherent with the file system buffer cache
33280    like early versions of FreeBSD and possibly contemporary NetBSD.)
33281    For shared mappings, we should conversely verify that changes get
33282    propagated back to all the places they're supposed to be.
33283
33284    Grep wants private fixed already mapped.
33285    The main things grep needs to know about mmap are:
33286    * does it exist and is it safe to write into the mmap'd area
33287    * how to use it (BSD variants)  */
33288
33289 #include <fcntl.h>
33290 #include <sys/mman.h>
33291
33292 #if !STDC_HEADERS && !HAVE_STDLIB_H
33293 char *malloc ();
33294 #endif
33295
33296 /* This mess was copied from the GNU getpagesize.h.  */
33297 #if !HAVE_GETPAGESIZE
33298 /* Assume that all systems that can run configure have sys/param.h.  */
33299 # if !HAVE_SYS_PARAM_H
33300 #  define HAVE_SYS_PARAM_H 1
33301 # endif
33302
33303 # ifdef _SC_PAGESIZE
33304 #  define getpagesize() sysconf(_SC_PAGESIZE)
33305 # else /* no _SC_PAGESIZE */
33306 #  if HAVE_SYS_PARAM_H
33307 #   include <sys/param.h>
33308 #   ifdef EXEC_PAGESIZE
33309 #    define getpagesize() EXEC_PAGESIZE
33310 #   else /* no EXEC_PAGESIZE */
33311 #    ifdef NBPG
33312 #     define getpagesize() NBPG * CLSIZE
33313 #     ifndef CLSIZE
33314 #      define CLSIZE 1
33315 #     endif /* no CLSIZE */
33316 #    else /* no NBPG */
33317 #     ifdef NBPC
33318 #      define getpagesize() NBPC
33319 #     else /* no NBPC */
33320 #      ifdef PAGESIZE
33321 #       define getpagesize() PAGESIZE
33322 #      endif /* PAGESIZE */
33323 #     endif /* no NBPC */
33324 #    endif /* no NBPG */
33325 #   endif /* no EXEC_PAGESIZE */
33326 #  else /* no HAVE_SYS_PARAM_H */
33327 #   define getpagesize() 8192   /* punt totally */
33328 #  endif /* no HAVE_SYS_PARAM_H */
33329 # endif /* no _SC_PAGESIZE */
33330
33331 #endif /* no HAVE_GETPAGESIZE */
33332
33333 int
33334 main ()
33335 {
33336   char *data, *data2, *data3;
33337   int i, pagesize;
33338   int fd;
33339
33340   pagesize = getpagesize ();
33341
33342   /* First, make a file with some known garbage in it. */
33343   data = (char *) malloc (pagesize);
33344   if (!data)
33345     return 1;
33346   for (i = 0; i < pagesize; ++i)
33347     *(data + i) = rand ();
33348   umask (0);
33349   fd = creat ("conftest.mmap", 0600);
33350   if (fd < 0)
33351     return 1;
33352   if (write (fd, data, pagesize) != pagesize)
33353     return 1;
33354   close (fd);
33355
33356   /* Next, try to mmap the file at a fixed address which already has
33357      something else allocated at it.  If we can, also make sure that
33358      we see the same garbage.  */
33359   fd = open ("conftest.mmap", O_RDWR);
33360   if (fd < 0)
33361     return 1;
33362   data2 = (char *) malloc (2 * pagesize);
33363   if (!data2)
33364     return 1;
33365   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33366   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33367                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33368     return 1;
33369   for (i = 0; i < pagesize; ++i)
33370     if (*(data + i) != *(data2 + i))
33371       return 1;
33372
33373   /* Finally, make sure that changes to the mapped area do not
33374      percolate back to the file as seen by read().  (This is a bug on
33375      some variants of i386 svr4.0.)  */
33376   for (i = 0; i < pagesize; ++i)
33377     *(data2 + i) = *(data2 + i) + 1;
33378   data3 = (char *) malloc (pagesize);
33379   if (!data3)
33380     return 1;
33381   if (read (fd, data3, pagesize) != pagesize)
33382     return 1;
33383   for (i = 0; i < pagesize; ++i)
33384     if (*(data + i) != *(data3 + i))
33385       return 1;
33386   close (fd);
33387   return 0;
33388 }
33389 _ACEOF
33390 rm -f conftest$ac_exeext
33391 if { (ac_try="$ac_link"
33392 case "(($ac_try" in
33393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394   *) ac_try_echo=$ac_try;;
33395 esac
33396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397   (eval "$ac_link") 2>&5
33398   ac_status=$?
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33401   { (case "(($ac_try" in
33402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403   *) ac_try_echo=$ac_try;;
33404 esac
33405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406   (eval "$ac_try") 2>&5
33407   ac_status=$?
33408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409   (exit $ac_status); }; }; then
33410   ac_cv_func_mmap_fixed_mapped=yes
33411 else
33412   echo "$as_me: program exited with status $ac_status" >&5
33413 echo "$as_me: failed program was:" >&5
33414 sed 's/^/| /' conftest.$ac_ext >&5
33415
33416 ( exit $ac_status )
33417 ac_cv_func_mmap_fixed_mapped=no
33418 fi
33419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33420 fi
33421
33422
33423 fi
33424 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33425 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33426 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33427
33428 cat >>confdefs.h <<\_ACEOF
33429 #define HAVE_MMAP 1
33430 _ACEOF
33431
33432 fi
33433 rm -f conftest.mmap
33434
33435   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33436 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33437 if test "${ac_cv_func_mmap_file+set}" = set; then
33438   echo $ECHO_N "(cached) $ECHO_C" >&6
33439 else
33440    ac_ext=c
33441 ac_cpp='$CPP $CPPFLAGS'
33442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33445
33446   if test "$cross_compiling" = yes; then
33447   ac_cv_func_mmap_file=no
33448 else
33449   cat >conftest.$ac_ext <<_ACEOF
33450
33451     /* confdefs.h.  */
33452 _ACEOF
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h.  */
33456
33457 #include <sys/types.h>
33458 #include <sys/mman.h>
33459 #include <fcntl.h>
33460
33461 int
33462 main ()
33463 {
33464
33465   int fd;
33466   fd = creat ("foo",0777);
33467   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33468   unlink ("foo");
33469   return (fd != (int) MAP_FAILED);
33470   ;
33471   return 0;
33472 }
33473 _ACEOF
33474 rm -f conftest$ac_exeext
33475 if { (ac_try="$ac_link"
33476 case "(($ac_try" in
33477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478   *) ac_try_echo=$ac_try;;
33479 esac
33480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481   (eval "$ac_link") 2>&5
33482   ac_status=$?
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33485   { (case "(($ac_try" in
33486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487   *) ac_try_echo=$ac_try;;
33488 esac
33489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490   (eval "$ac_try") 2>&5
33491   ac_status=$?
33492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493   (exit $ac_status); }; }; then
33494   ac_cv_func_mmap_file=yes
33495 else
33496   echo "$as_me: program exited with status $ac_status" >&5
33497 echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.$ac_ext >&5
33499
33500 ( exit $ac_status )
33501 ac_cv_func_mmap_file=no
33502 fi
33503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33504 fi
33505
33506
33507   ac_ext=c
33508 ac_cpp='$CPP $CPPFLAGS'
33509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33512
33513
33514 fi
33515 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33516 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33517 if test "$ac_cv_func_mmap_file" = yes; then
33518
33519 cat >>confdefs.h <<\_ACEOF
33520 #define HAVE_MMAP_FILE
33521 _ACEOF
33522
33523    MMAP_FILE=yes
33524
33525 fi
33526
33527   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33528 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33529 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33530   echo $ECHO_N "(cached) $ECHO_C" >&6
33531 else
33532   if test "$llvm_cv_os_type" = "Interix" ; then
33533    ac_cv_need_dev_zero_for_mmap=yes
33534  else
33535    ac_cv_need_dev_zero_for_mmap=no
33536  fi
33537
33538 fi
33539 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33540 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33541 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33542
33543 cat >>confdefs.h <<\_ACEOF
33544 #define NEED_DEV_ZERO_FOR_MMAP 1
33545 _ACEOF
33546
33547 fi
33548
33549   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33550   then
33551     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33552 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33553   fi
33554   if test "$ac_cv_func_mmap_file" = "no"
33555   then
33556     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33557 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33558   fi
33559 fi
33560
33561
33562
33563 for ac_func in __dso_handle
33564 do
33565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33569   echo $ECHO_N "(cached) $ECHO_C" >&6
33570 else
33571   cat >conftest.$ac_ext <<_ACEOF
33572 /* confdefs.h.  */
33573 _ACEOF
33574 cat confdefs.h >>conftest.$ac_ext
33575 cat >>conftest.$ac_ext <<_ACEOF
33576 /* end confdefs.h.  */
33577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33579 #define $ac_func innocuous_$ac_func
33580
33581 /* System header to define __stub macros and hopefully few prototypes,
33582     which can conflict with char $ac_func (); below.
33583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584     <limits.h> exists even on freestanding compilers.  */
33585
33586 #ifdef __STDC__
33587 # include <limits.h>
33588 #else
33589 # include <assert.h>
33590 #endif
33591
33592 #undef $ac_func
33593
33594 /* Override any GCC internal prototype to avoid an error.
33595    Use char because int might match the return type of a GCC
33596    builtin and then its argument prototype would still apply.  */
33597 #ifdef __cplusplus
33598 extern "C"
33599 #endif
33600 char $ac_func ();
33601 /* The GNU C library defines this for functions which it implements
33602     to always fail with ENOSYS.  Some functions are actually named
33603     something starting with __ and the normal name is an alias.  */
33604 #if defined __stub_$ac_func || defined __stub___$ac_func
33605 choke me
33606 #endif
33607
33608 int
33609 main ()
33610 {
33611 return $ac_func ();
33612   ;
33613   return 0;
33614 }
33615 _ACEOF
33616 rm -f conftest.$ac_objext conftest$ac_exeext
33617 if { (ac_try="$ac_link"
33618 case "(($ac_try" in
33619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620   *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623   (eval "$ac_link") 2>conftest.er1
33624   ac_status=$?
33625   grep -v '^ *+' conftest.er1 >conftest.err
33626   rm -f conftest.er1
33627   cat conftest.err >&5
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); } &&
33630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33631   { (case "(($ac_try" in
33632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633   *) ac_try_echo=$ac_try;;
33634 esac
33635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636   (eval "$ac_try") 2>&5
33637   ac_status=$?
33638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639   (exit $ac_status); }; } &&
33640          { ac_try='test -s conftest$ac_exeext'
33641   { (case "(($ac_try" in
33642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643   *) ac_try_echo=$ac_try;;
33644 esac
33645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646   (eval "$ac_try") 2>&5
33647   ac_status=$?
33648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649   (exit $ac_status); }; }; then
33650   eval "$as_ac_var=yes"
33651 else
33652   echo "$as_me: failed program was:" >&5
33653 sed 's/^/| /' conftest.$ac_ext >&5
33654
33655         eval "$as_ac_var=no"
33656 fi
33657
33658 rm -f core conftest.err conftest.$ac_objext \
33659       conftest$ac_exeext conftest.$ac_ext
33660 fi
33661 ac_res=`eval echo '${'$as_ac_var'}'`
33662                { echo "$as_me:$LINENO: result: $ac_res" >&5
33663 echo "${ECHO_T}$ac_res" >&6; }
33664 if test `eval echo '${'$as_ac_var'}'` = yes; then
33665   cat >>confdefs.h <<_ACEOF
33666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33667 _ACEOF
33668
33669 fi
33670 done
33671
33672
33673 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33674 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33675 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33676   echo $ECHO_N "(cached) $ECHO_C" >&6
33677 else
33678   llvm_cv_llvmgcc_sanity="no"
33679 if test -x "$LLVMGCC" ; then
33680   cp /dev/null conftest.c
33681   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33682       grep 'target datalayout =' > /dev/null 2>&1
33683   if test $? -eq 0 ; then
33684     llvm_cv_llvmgcc_sanity="yes"
33685   fi
33686   rm conftest.c
33687 fi
33688 fi
33689 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33690 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33691
33692 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33693   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33694 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33695   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33696   LLVMCC1=$llvmcc1path
33697
33698   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33699   LLVMCC1PLUS=$llvmcc1pluspath
33700
33701   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33702   LLVMGCCDIR=$llvmgccdir
33703
33704   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33705   LLVMGCCLIBEXEC=$llvmgcclibexec
33706
33707   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33708   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33709   LLVMGCC_VERSION=$llvmgccversion
33710
33711   LLVMGCC_MAJVERS=$llvmgccmajvers
33712
33713   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33714   LLVMGCC_LANGS=$llvmgcclangs
33715
33716   { echo "$as_me:$LINENO: result: ok" >&5
33717 echo "${ECHO_T}ok" >&6; }
33718 fi
33719
33720 SHLIBEXT=$libltdl_cv_shlibext
33721
33722
33723 # Translate the various configuration directories and other basic
33724 # information into substitutions that will end up in Makefile.config.in
33725 # that these configured values can be used by the makefiles
33726 if test "${prefix}" = "NONE" ; then
33727   prefix="/usr/local"
33728 fi
33729 eval LLVM_PREFIX="${prefix}";
33730 eval LLVM_BINDIR="${prefix}/bin";
33731 eval LLVM_LIBDIR="${prefix}/lib";
33732 eval LLVM_DATADIR="${prefix}/share/llvm";
33733 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33734 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33735 eval LLVM_INCLUDEDIR="${prefix}/include";
33736 eval LLVM_INFODIR="${prefix}/info";
33737 eval LLVM_MANDIR="${prefix}/man";
33738 LLVM_CONFIGTIME=`date`
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750 # Place the various directores into the config.h file as #defines so that we
33751 # can know about the installation paths within LLVM.
33752
33753 cat >>confdefs.h <<_ACEOF
33754 #define LLVM_PREFIX "$LLVM_PREFIX"
33755 _ACEOF
33756
33757
33758 cat >>confdefs.h <<_ACEOF
33759 #define LLVM_BINDIR "$LLVM_BINDIR"
33760 _ACEOF
33761
33762
33763 cat >>confdefs.h <<_ACEOF
33764 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33765 _ACEOF
33766
33767
33768 cat >>confdefs.h <<_ACEOF
33769 #define LLVM_DATADIR "$LLVM_DATADIR"
33770 _ACEOF
33771
33772
33773 cat >>confdefs.h <<_ACEOF
33774 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33775 _ACEOF
33776
33777
33778 cat >>confdefs.h <<_ACEOF
33779 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33780 _ACEOF
33781
33782
33783 cat >>confdefs.h <<_ACEOF
33784 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33785 _ACEOF
33786
33787
33788 cat >>confdefs.h <<_ACEOF
33789 #define LLVM_INFODIR "$LLVM_INFODIR"
33790 _ACEOF
33791
33792
33793 cat >>confdefs.h <<_ACEOF
33794 #define LLVM_MANDIR "$LLVM_MANDIR"
33795 _ACEOF
33796
33797
33798 cat >>confdefs.h <<_ACEOF
33799 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33800 _ACEOF
33801
33802
33803 cat >>confdefs.h <<_ACEOF
33804 #define LLVM_HOSTTRIPLE "$host"
33805 _ACEOF
33806
33807
33808 # Determine which bindings to build.
33809 if test "$BINDINGS_TO_BUILD" = auto ; then
33810   BINDINGS_TO_BUILD=""
33811   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33812     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33813   fi
33814 fi
33815 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33816
33817
33818 # This isn't really configurey, but it avoids having to repeat the list in
33819 # other files.
33820 ALL_BINDINGS=ocaml
33821
33822
33823 # Do any work necessary to ensure that bindings have what they need.
33824 binding_prereqs_failed=0
33825 for a_binding in $BINDINGS_TO_BUILD ; do
33826   case "$a_binding" in
33827   ocaml)
33828     if test "x$OCAMLC" = x ; then
33829       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33830 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33831       binding_prereqs_failed=1
33832     fi
33833     if test "x$OCAMLDEP" = x ; then
33834       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33835 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33836       binding_prereqs_failed=1
33837     fi
33838     if test "x$OCAMLOPT" = x ; then
33839       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33840 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33841           fi
33842     if test "x$with_ocaml_libdir" != xauto ; then
33843       OCAML_LIBDIR=$with_ocaml_libdir
33844
33845     else
33846       ocaml_stdlib="`"$OCAMLC" -where`"
33847       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33848       then
33849         # ocaml stdlib is beneath our prefix; use stdlib
33850         OCAML_LIBDIR=$ocaml_stdlib
33851
33852       else
33853         # ocaml stdlib is outside our prefix; use libdir/ocaml
33854         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33855
33856       fi
33857     fi
33858     ;;
33859   esac
33860 done
33861 if test "$binding_prereqs_failed" = 1 ; then
33862   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33863 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33864    { (exit 1); exit 1; }; }
33865 fi
33866
33867 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33868 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33869 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33870   echo $ECHO_N "(cached) $ECHO_C" >&6
33871 else
33872    ac_ext=cpp
33873 ac_cpp='$CXXCPP $CPPFLAGS'
33874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33877
33878   oldcxxflags="$CXXFLAGS"
33879   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33880   cat >conftest.$ac_ext <<_ACEOF
33881 /* confdefs.h.  */
33882 _ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h.  */
33886
33887 int
33888 main ()
33889 {
33890
33891   ;
33892   return 0;
33893 }
33894 _ACEOF
33895 rm -f conftest.$ac_objext
33896 if { (ac_try="$ac_compile"
33897 case "(($ac_try" in
33898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899   *) ac_try_echo=$ac_try;;
33900 esac
33901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902   (eval "$ac_compile") 2>conftest.er1
33903   ac_status=$?
33904   grep -v '^ *+' conftest.er1 >conftest.err
33905   rm -f conftest.er1
33906   cat conftest.err >&5
33907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908   (exit $ac_status); } &&
33909          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33910   { (case "(($ac_try" in
33911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33912   *) ac_try_echo=$ac_try;;
33913 esac
33914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33915   (eval "$ac_try") 2>&5
33916   ac_status=$?
33917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918   (exit $ac_status); }; } &&
33919          { ac_try='test -s conftest.$ac_objext'
33920   { (case "(($ac_try" in
33921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922   *) ac_try_echo=$ac_try;;
33923 esac
33924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925   (eval "$ac_try") 2>&5
33926   ac_status=$?
33927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928   (exit $ac_status); }; }; then
33929   llvm_cv_cxx_visibility_inlines_hidden=yes
33930 else
33931   echo "$as_me: failed program was:" >&5
33932 sed 's/^/| /' conftest.$ac_ext >&5
33933
33934         llvm_cv_cxx_visibility_inlines_hidden=no
33935 fi
33936
33937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33938   CXXFLAGS="$oldcxxflags"
33939   ac_ext=c
33940 ac_cpp='$CPP $CPPFLAGS'
33941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33944
33945
33946 fi
33947 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33948 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33949 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33950   ENABLE_VISIBILITY_INLINES_HIDDEN=1
33951
33952 else
33953   ENABLE_VISIBILITY_INLINES_HIDDEN=0
33954
33955 fi
33956
33957
33958 if test "$llvm_cv_link_use_r" = "yes" ; then
33959   RPATH="-Wl,-R"
33960 else
33961   RPATH="-Wl,-rpath"
33962 fi
33963
33964
33965 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33966   RDYNAMIC="-Wl,-export-dynamic"
33967 else
33968   RDYNAMIC=""
33969 fi
33970
33971
33972
33973 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33974
33975 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33976
33977 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
33978
33979
33980 ac_config_files="$ac_config_files Makefile.config"
33981
33982
33983 ac_config_files="$ac_config_files llvm.spec"
33984
33985
33986 ac_config_files="$ac_config_files docs/doxygen.cfg"
33987
33988
33989 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33990
33991
33992 ac_config_commands="$ac_config_commands setup"
33993
33994 ac_config_commands="$ac_config_commands Makefile"
33995
33996
33997 ac_config_commands="$ac_config_commands Makefile.common"
33998
33999
34000 ac_config_commands="$ac_config_commands examples/Makefile"
34001
34002
34003 ac_config_commands="$ac_config_commands lib/Makefile"
34004
34005
34006 ac_config_commands="$ac_config_commands runtime/Makefile"
34007
34008
34009 ac_config_commands="$ac_config_commands test/Makefile"
34010
34011
34012 ac_config_commands="$ac_config_commands test/Makefile.tests"
34013
34014
34015 ac_config_commands="$ac_config_commands unittests/Makefile"
34016
34017
34018 ac_config_commands="$ac_config_commands tools/Makefile"
34019
34020
34021 ac_config_commands="$ac_config_commands utils/Makefile"
34022
34023
34024 ac_config_commands="$ac_config_commands projects/Makefile"
34025
34026
34027 ac_config_commands="$ac_config_commands bindings/Makefile"
34028
34029
34030 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34031
34032
34033
34034 cat >confcache <<\_ACEOF
34035 # This file is a shell script that caches the results of configure
34036 # tests run on this system so they can be shared between configure
34037 # scripts and configure runs, see configure's option --config-cache.
34038 # It is not useful on other systems.  If it contains results you don't
34039 # want to keep, you may remove or edit it.
34040 #
34041 # config.status only pays attention to the cache file if you give it
34042 # the --recheck option to rerun configure.
34043 #
34044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34046 # following values.
34047
34048 _ACEOF
34049
34050 # The following way of writing the cache mishandles newlines in values,
34051 # but we know of no workaround that is simple, portable, and efficient.
34052 # So, we kill variables containing newlines.
34053 # Ultrix sh set writes to stderr and can't be redirected directly,
34054 # and sets the high bit in the cache file unless we assign to the vars.
34055 (
34056   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34057     eval ac_val=\$$ac_var
34058     case $ac_val in #(
34059     *${as_nl}*)
34060       case $ac_var in #(
34061       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34062 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34063       esac
34064       case $ac_var in #(
34065       _ | IFS | as_nl) ;; #(
34066       *) $as_unset $ac_var ;;
34067       esac ;;
34068     esac
34069   done
34070
34071   (set) 2>&1 |
34072     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34073     *${as_nl}ac_space=\ *)
34074       # `set' does not quote correctly, so add quotes (double-quote
34075       # substitution turns \\\\ into \\, and sed turns \\ into \).
34076       sed -n \
34077         "s/'/'\\\\''/g;
34078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34079       ;; #(
34080     *)
34081       # `set' quotes correctly as required by POSIX, so do not add quotes.
34082       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34083       ;;
34084     esac |
34085     sort
34086 ) |
34087   sed '
34088      /^ac_cv_env_/b end
34089      t clear
34090      :clear
34091      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34092      t end
34093      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34094      :end' >>confcache
34095 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34096   if test -w "$cache_file"; then
34097     test "x$cache_file" != "x/dev/null" &&
34098       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34099 echo "$as_me: updating cache $cache_file" >&6;}
34100     cat confcache >$cache_file
34101   else
34102     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34103 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34104   fi
34105 fi
34106 rm -f confcache
34107
34108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34109 # Let make expand exec_prefix.
34110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34111
34112 DEFS=-DHAVE_CONFIG_H
34113
34114 ac_libobjs=
34115 ac_ltlibobjs=
34116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34117   # 1. Remove the extension, and $U if already installed.
34118   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34119   ac_i=`echo "$ac_i" | sed "$ac_script"`
34120   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34121   #    will be set to the directory where LIBOBJS objects are built.
34122   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34123   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34124 done
34125 LIBOBJS=$ac_libobjs
34126
34127 LTLIBOBJS=$ac_ltlibobjs
34128
34129
34130 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34131   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34132 Usually this means the macro was only invoked conditionally." >&5
34133 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34134 Usually this means the macro was only invoked conditionally." >&2;}
34135    { (exit 1); exit 1; }; }
34136 fi
34137 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34138   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34139 Usually this means the macro was only invoked conditionally." >&5
34140 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34141 Usually this means the macro was only invoked conditionally." >&2;}
34142    { (exit 1); exit 1; }; }
34143 fi
34144
34145 : ${CONFIG_STATUS=./config.status}
34146 ac_clean_files_save=$ac_clean_files
34147 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34148 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34149 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34150 cat >$CONFIG_STATUS <<_ACEOF
34151 #! $SHELL
34152 # Generated by $as_me.
34153 # Run this file to recreate the current configuration.
34154 # Compiler output produced by configure, useful for debugging
34155 # configure, is in config.log if it exists.
34156
34157 debug=false
34158 ac_cs_recheck=false
34159 ac_cs_silent=false
34160 SHELL=\${CONFIG_SHELL-$SHELL}
34161 _ACEOF
34162
34163 cat >>$CONFIG_STATUS <<\_ACEOF
34164 ## --------------------- ##
34165 ## M4sh Initialization.  ##
34166 ## --------------------- ##
34167
34168 # Be Bourne compatible
34169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34170   emulate sh
34171   NULLCMD=:
34172   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34173   # is contrary to our usage.  Disable this feature.
34174   alias -g '${1+"$@"}'='"$@"'
34175   setopt NO_GLOB_SUBST
34176 else
34177   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34178 fi
34179 BIN_SH=xpg4; export BIN_SH # for Tru64
34180 DUALCASE=1; export DUALCASE # for MKS sh
34181
34182
34183 # PATH needs CR
34184 # Avoid depending upon Character Ranges.
34185 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34186 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34187 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34188 as_cr_digits='0123456789'
34189 as_cr_alnum=$as_cr_Letters$as_cr_digits
34190
34191 # The user is always right.
34192 if test "${PATH_SEPARATOR+set}" != set; then
34193   echo "#! /bin/sh" >conf$$.sh
34194   echo  "exit 0"   >>conf$$.sh
34195   chmod +x conf$$.sh
34196   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34197     PATH_SEPARATOR=';'
34198   else
34199     PATH_SEPARATOR=:
34200   fi
34201   rm -f conf$$.sh
34202 fi
34203
34204 # Support unset when possible.
34205 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34206   as_unset=unset
34207 else
34208   as_unset=false
34209 fi
34210
34211
34212 # IFS
34213 # We need space, tab and new line, in precisely that order.  Quoting is
34214 # there to prevent editors from complaining about space-tab.
34215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34216 # splitting by setting IFS to empty value.)
34217 as_nl='
34218 '
34219 IFS=" ""        $as_nl"
34220
34221 # Find who we are.  Look in the path if we contain no directory separator.
34222 case $0 in
34223   *[\\/]* ) as_myself=$0 ;;
34224   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34225 for as_dir in $PATH
34226 do
34227   IFS=$as_save_IFS
34228   test -z "$as_dir" && as_dir=.
34229   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34230 done
34231 IFS=$as_save_IFS
34232
34233      ;;
34234 esac
34235 # We did not find ourselves, most probably we were run as `sh COMMAND'
34236 # in which case we are not to be found in the path.
34237 if test "x$as_myself" = x; then
34238   as_myself=$0
34239 fi
34240 if test ! -f "$as_myself"; then
34241   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34242   { (exit 1); exit 1; }
34243 fi
34244
34245 # Work around bugs in pre-3.0 UWIN ksh.
34246 for as_var in ENV MAIL MAILPATH
34247 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34248 done
34249 PS1='$ '
34250 PS2='> '
34251 PS4='+ '
34252
34253 # NLS nuisances.
34254 for as_var in \
34255   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34256   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34257   LC_TELEPHONE LC_TIME
34258 do
34259   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34260     eval $as_var=C; export $as_var
34261   else
34262     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34263   fi
34264 done
34265
34266 # Required to use basename.
34267 if expr a : '\(a\)' >/dev/null 2>&1 &&
34268    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34269   as_expr=expr
34270 else
34271   as_expr=false
34272 fi
34273
34274 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34275   as_basename=basename
34276 else
34277   as_basename=false
34278 fi
34279
34280
34281 # Name of the executable.
34282 as_me=`$as_basename -- "$0" ||
34283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34284          X"$0" : 'X\(//\)$' \| \
34285          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34286 echo X/"$0" |
34287     sed '/^.*\/\([^/][^/]*\)\/*$/{
34288             s//\1/
34289             q
34290           }
34291           /^X\/\(\/\/\)$/{
34292             s//\1/
34293             q
34294           }
34295           /^X\/\(\/\).*/{
34296             s//\1/
34297             q
34298           }
34299           s/.*/./; q'`
34300
34301 # CDPATH.
34302 $as_unset CDPATH
34303
34304
34305
34306   as_lineno_1=$LINENO
34307   as_lineno_2=$LINENO
34308   test "x$as_lineno_1" != "x$as_lineno_2" &&
34309   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34310
34311   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34312   # uniformly replaced by the line number.  The first 'sed' inserts a
34313   # line-number line after each line using $LINENO; the second 'sed'
34314   # does the real work.  The second script uses 'N' to pair each
34315   # line-number line with the line containing $LINENO, and appends
34316   # trailing '-' during substitution so that $LINENO is not a special
34317   # case at line end.
34318   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34319   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34320   # E. McMahon (1931-1989) for sed's syntax.  :-)
34321   sed -n '
34322     p
34323     /[$]LINENO/=
34324   ' <$as_myself |
34325     sed '
34326       s/[$]LINENO.*/&-/
34327       t lineno
34328       b
34329       :lineno
34330       N
34331       :loop
34332       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34333       t loop
34334       s/-\n.*//
34335     ' >$as_me.lineno &&
34336   chmod +x "$as_me.lineno" ||
34337     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34338    { (exit 1); exit 1; }; }
34339
34340   # Don't try to exec as it changes $[0], causing all sort of problems
34341   # (the dirname of $[0] is not the place where we might find the
34342   # original and so on.  Autoconf is especially sensitive to this).
34343   . "./$as_me.lineno"
34344   # Exit status is that of the last command.
34345   exit
34346 }
34347
34348
34349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34350   as_dirname=dirname
34351 else
34352   as_dirname=false
34353 fi
34354
34355 ECHO_C= ECHO_N= ECHO_T=
34356 case `echo -n x` in
34357 -n*)
34358   case `echo 'x\c'` in
34359   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34360   *)   ECHO_C='\c';;
34361   esac;;
34362 *)
34363   ECHO_N='-n';;
34364 esac
34365
34366 if expr a : '\(a\)' >/dev/null 2>&1 &&
34367    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34368   as_expr=expr
34369 else
34370   as_expr=false
34371 fi
34372
34373 rm -f conf$$ conf$$.exe conf$$.file
34374 if test -d conf$$.dir; then
34375   rm -f conf$$.dir/conf$$.file
34376 else
34377   rm -f conf$$.dir
34378   mkdir conf$$.dir
34379 fi
34380 echo >conf$$.file
34381 if ln -s conf$$.file conf$$ 2>/dev/null; then
34382   as_ln_s='ln -s'
34383   # ... but there are two gotchas:
34384   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34385   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34386   # In both cases, we have to default to `cp -p'.
34387   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34388     as_ln_s='cp -p'
34389 elif ln conf$$.file conf$$ 2>/dev/null; then
34390   as_ln_s=ln
34391 else
34392   as_ln_s='cp -p'
34393 fi
34394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34395 rmdir conf$$.dir 2>/dev/null
34396
34397 if mkdir -p . 2>/dev/null; then
34398   as_mkdir_p=:
34399 else
34400   test -d ./-p && rmdir ./-p
34401   as_mkdir_p=false
34402 fi
34403
34404 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34405 # systems may use methods other than mode bits to determine executability.
34406 cat >conf$$.file <<_ASEOF
34407 #! /bin/sh
34408 exit 0
34409 _ASEOF
34410 chmod +x conf$$.file
34411 if test -x conf$$.file >/dev/null 2>&1; then
34412   as_executable_p="test -x"
34413 else
34414   as_executable_p=:
34415 fi
34416 rm -f conf$$.file
34417
34418 # Sed expression to map a string onto a valid CPP name.
34419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34420
34421 # Sed expression to map a string onto a valid variable name.
34422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34423
34424
34425 exec 6>&1
34426
34427 # Save the log message, to keep $[0] and so on meaningful, and to
34428 # report actual input values of CONFIG_FILES etc. instead of their
34429 # values after options handling.
34430 ac_log="
34431 This file was extended by llvm $as_me 2.6svn, which was
34432 generated by GNU Autoconf 2.60.  Invocation command line was
34433
34434   CONFIG_FILES    = $CONFIG_FILES
34435   CONFIG_HEADERS  = $CONFIG_HEADERS
34436   CONFIG_LINKS    = $CONFIG_LINKS
34437   CONFIG_COMMANDS = $CONFIG_COMMANDS
34438   $ $0 $@
34439
34440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34441 "
34442
34443 _ACEOF
34444
34445 cat >>$CONFIG_STATUS <<_ACEOF
34446 # Files that config.status was made for.
34447 config_files="$ac_config_files"
34448 config_headers="$ac_config_headers"
34449 config_commands="$ac_config_commands"
34450
34451 _ACEOF
34452
34453 cat >>$CONFIG_STATUS <<\_ACEOF
34454 ac_cs_usage="\
34455 \`$as_me' instantiates files from templates according to the
34456 current configuration.
34457
34458 Usage: $0 [OPTIONS] [FILE]...
34459
34460   -h, --help       print this help, then exit
34461   -V, --version    print version number, then exit
34462   -q, --quiet      do not print progress messages
34463   -d, --debug      don't remove temporary files
34464       --recheck    update $as_me by reconfiguring in the same conditions
34465   --file=FILE[:TEMPLATE]
34466                    instantiate the configuration file FILE
34467   --header=FILE[:TEMPLATE]
34468                    instantiate the configuration header FILE
34469
34470 Configuration files:
34471 $config_files
34472
34473 Configuration headers:
34474 $config_headers
34475
34476 Configuration commands:
34477 $config_commands
34478
34479 Report bugs to <bug-autoconf@gnu.org>."
34480
34481 _ACEOF
34482 cat >>$CONFIG_STATUS <<_ACEOF
34483 ac_cs_version="\\
34484 llvm config.status 2.6svn
34485 configured by $0, generated by GNU Autoconf 2.60,
34486   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34487
34488 Copyright (C) 2006 Free Software Foundation, Inc.
34489 This config.status script is free software; the Free Software Foundation
34490 gives unlimited permission to copy, distribute and modify it."
34491
34492 ac_pwd='$ac_pwd'
34493 srcdir='$srcdir'
34494 INSTALL='$INSTALL'
34495 _ACEOF
34496
34497 cat >>$CONFIG_STATUS <<\_ACEOF
34498 # If no file are specified by the user, then we need to provide default
34499 # value.  By we need to know if files were specified by the user.
34500 ac_need_defaults=:
34501 while test $# != 0
34502 do
34503   case $1 in
34504   --*=*)
34505     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34506     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34507     ac_shift=:
34508     ;;
34509   *)
34510     ac_option=$1
34511     ac_optarg=$2
34512     ac_shift=shift
34513     ;;
34514   esac
34515
34516   case $ac_option in
34517   # Handling of the options.
34518   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34519     ac_cs_recheck=: ;;
34520   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34521     echo "$ac_cs_version"; exit ;;
34522   --debug | --debu | --deb | --de | --d | -d )
34523     debug=: ;;
34524   --file | --fil | --fi | --f )
34525     $ac_shift
34526     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34527     ac_need_defaults=false;;
34528   --header | --heade | --head | --hea )
34529     $ac_shift
34530     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34531     ac_need_defaults=false;;
34532   --he | --h)
34533     # Conflict between --help and --header
34534     { echo "$as_me: error: ambiguous option: $1
34535 Try \`$0 --help' for more information." >&2
34536    { (exit 1); exit 1; }; };;
34537   --help | --hel | -h )
34538     echo "$ac_cs_usage"; exit ;;
34539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34540   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34541     ac_cs_silent=: ;;
34542
34543   # This is an error.
34544   -*) { echo "$as_me: error: unrecognized option: $1
34545 Try \`$0 --help' for more information." >&2
34546    { (exit 1); exit 1; }; } ;;
34547
34548   *) ac_config_targets="$ac_config_targets $1"
34549      ac_need_defaults=false ;;
34550
34551   esac
34552   shift
34553 done
34554
34555 ac_configure_extra_args=
34556
34557 if $ac_cs_silent; then
34558   exec 6>/dev/null
34559   ac_configure_extra_args="$ac_configure_extra_args --silent"
34560 fi
34561
34562 _ACEOF
34563 cat >>$CONFIG_STATUS <<_ACEOF
34564 if \$ac_cs_recheck; then
34565   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34566   CONFIG_SHELL=$SHELL
34567   export CONFIG_SHELL
34568   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34569 fi
34570
34571 _ACEOF
34572 cat >>$CONFIG_STATUS <<\_ACEOF
34573 exec 5>>config.log
34574 {
34575   echo
34576   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34577 ## Running $as_me. ##
34578 _ASBOX
34579   echo "$ac_log"
34580 } >&5
34581
34582 _ACEOF
34583 cat >>$CONFIG_STATUS <<_ACEOF
34584 #
34585 # INIT-COMMANDS
34586 #
34587 llvm_src="${srcdir}"
34588
34589 _ACEOF
34590
34591 cat >>$CONFIG_STATUS <<\_ACEOF
34592
34593 # Handling of arguments.
34594 for ac_config_target in $ac_config_targets
34595 do
34596   case $ac_config_target in
34597     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34598     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34599     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34600     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34601     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34602     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34603     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34604     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34605     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34606     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34607     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34608     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34609     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34610     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34611     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34612     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34613     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34614     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34615     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34616     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34617     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34618
34619   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34620 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34621    { (exit 1); exit 1; }; };;
34622   esac
34623 done
34624
34625
34626 # If the user did not use the arguments to specify the items to instantiate,
34627 # then the envvar interface is used.  Set only those that are not.
34628 # We use the long form for the default assignment because of an extremely
34629 # bizarre bug on SunOS 4.1.3.
34630 if $ac_need_defaults; then
34631   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34632   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34633   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34634 fi
34635
34636 # Have a temporary directory for convenience.  Make it in the build tree
34637 # simply because there is no reason against having it here, and in addition,
34638 # creating and moving files from /tmp can sometimes cause problems.
34639 # Hook for its removal unless debugging.
34640 # Note that there is a small window in which the directory will not be cleaned:
34641 # after its creation but before its name has been assigned to `$tmp'.
34642 $debug ||
34643 {
34644   tmp=
34645   trap 'exit_status=$?
34646   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34647 ' 0
34648   trap '{ (exit 1); exit 1; }' 1 2 13 15
34649 }
34650 # Create a (secure) tmp directory for tmp files.
34651
34652 {
34653   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34654   test -n "$tmp" && test -d "$tmp"
34655 }  ||
34656 {
34657   tmp=./conf$$-$RANDOM
34658   (umask 077 && mkdir "$tmp")
34659 } ||
34660 {
34661    echo "$me: cannot create a temporary directory in ." >&2
34662    { (exit 1); exit 1; }
34663 }
34664
34665 #
34666 # Set up the sed scripts for CONFIG_FILES section.
34667 #
34668
34669 # No need to generate the scripts if there are no CONFIG_FILES.
34670 # This happens for instance when ./config.status config.h
34671 if test -n "$CONFIG_FILES"; then
34672
34673 _ACEOF
34674
34675
34676
34677 ac_delim='%!_!# '
34678 for ac_last_try in false false false false false :; do
34679   cat >conf$$subs.sed <<_ACEOF
34680 SHELL!$SHELL$ac_delim
34681 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34682 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34683 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34684 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34685 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34686 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34687 exec_prefix!$exec_prefix$ac_delim
34688 prefix!$prefix$ac_delim
34689 program_transform_name!$program_transform_name$ac_delim
34690 bindir!$bindir$ac_delim
34691 sbindir!$sbindir$ac_delim
34692 libexecdir!$libexecdir$ac_delim
34693 datarootdir!$datarootdir$ac_delim
34694 datadir!$datadir$ac_delim
34695 sysconfdir!$sysconfdir$ac_delim
34696 sharedstatedir!$sharedstatedir$ac_delim
34697 localstatedir!$localstatedir$ac_delim
34698 includedir!$includedir$ac_delim
34699 oldincludedir!$oldincludedir$ac_delim
34700 docdir!$docdir$ac_delim
34701 infodir!$infodir$ac_delim
34702 htmldir!$htmldir$ac_delim
34703 dvidir!$dvidir$ac_delim
34704 pdfdir!$pdfdir$ac_delim
34705 psdir!$psdir$ac_delim
34706 libdir!$libdir$ac_delim
34707 localedir!$localedir$ac_delim
34708 mandir!$mandir$ac_delim
34709 DEFS!$DEFS$ac_delim
34710 ECHO_C!$ECHO_C$ac_delim
34711 ECHO_N!$ECHO_N$ac_delim
34712 ECHO_T!$ECHO_T$ac_delim
34713 LIBS!$LIBS$ac_delim
34714 build_alias!$build_alias$ac_delim
34715 host_alias!$host_alias$ac_delim
34716 target_alias!$target_alias$ac_delim
34717 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34718 subdirs!$subdirs$ac_delim
34719 build!$build$ac_delim
34720 build_cpu!$build_cpu$ac_delim
34721 build_vendor!$build_vendor$ac_delim
34722 build_os!$build_os$ac_delim
34723 host!$host$ac_delim
34724 host_cpu!$host_cpu$ac_delim
34725 host_vendor!$host_vendor$ac_delim
34726 host_os!$host_os$ac_delim
34727 target!$target$ac_delim
34728 target_cpu!$target_cpu$ac_delim
34729 target_vendor!$target_vendor$ac_delim
34730 target_os!$target_os$ac_delim
34731 OS!$OS$ac_delim
34732 LINKALL!$LINKALL$ac_delim
34733 NOLINKALL!$NOLINKALL$ac_delim
34734 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34735 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34736 ARCH!$ARCH$ac_delim
34737 ENDIAN!$ENDIAN$ac_delim
34738 CC!$CC$ac_delim
34739 CFLAGS!$CFLAGS$ac_delim
34740 LDFLAGS!$LDFLAGS$ac_delim
34741 CPPFLAGS!$CPPFLAGS$ac_delim
34742 ac_ct_CC!$ac_ct_CC$ac_delim
34743 EXEEXT!$EXEEXT$ac_delim
34744 OBJEXT!$OBJEXT$ac_delim
34745 CPP!$CPP$ac_delim
34746 GREP!$GREP$ac_delim
34747 EGREP!$EGREP$ac_delim
34748 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34749 BUILD_CC!$BUILD_CC$ac_delim
34750 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34751 BUILD_CXX!$BUILD_CXX$ac_delim
34752 CVSBUILD!$CVSBUILD$ac_delim
34753 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34754 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34755 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34756 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34757 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34758 JIT!$JIT$ac_delim
34759 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34760 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34761 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34762 ENABLE_PIC!$ENABLE_PIC$ac_delim
34763 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34764 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34765 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34766 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34767 CXX!$CXX$ac_delim
34768 CXXFLAGS!$CXXFLAGS$ac_delim
34769 ac_ct_CXX!$ac_ct_CXX$ac_delim
34770 NM!$NM$ac_delim
34771 ifGNUmake!$ifGNUmake$ac_delim
34772 LN_S!$LN_S$ac_delim
34773 CMP!$CMP$ac_delim
34774 CP!$CP$ac_delim
34775 DATE!$DATE$ac_delim
34776 FIND!$FIND$ac_delim
34777 _ACEOF
34778
34779   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34780     break
34781   elif $ac_last_try; then
34782     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34783 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34784    { (exit 1); exit 1; }; }
34785   else
34786     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34787   fi
34788 done
34789
34790 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34791 if test -n "$ac_eof"; then
34792   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34793   ac_eof=`expr $ac_eof + 1`
34794 fi
34795
34796 cat >>$CONFIG_STATUS <<_ACEOF
34797 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34799 _ACEOF
34800 sed '
34801 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34802 s/^/s,@/; s/!/@,|#_!!_#|/
34803 :n
34804 t n
34805 s/'"$ac_delim"'$/,g/; t
34806 s/$/\\/; p
34807 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34808 ' >>$CONFIG_STATUS <conf$$subs.sed
34809 rm -f conf$$subs.sed
34810 cat >>$CONFIG_STATUS <<_ACEOF
34811 CEOF$ac_eof
34812 _ACEOF
34813
34814
34815 ac_delim='%!_!# '
34816 for ac_last_try in false false false false false :; do
34817   cat >conf$$subs.sed <<_ACEOF
34818 MKDIR!$MKDIR$ac_delim
34819 MV!$MV$ac_delim
34820 RANLIB!$RANLIB$ac_delim
34821 RM!$RM$ac_delim
34822 SED!$SED$ac_delim
34823 TAR!$TAR$ac_delim
34824 BINPWD!$BINPWD$ac_delim
34825 GRAPHVIZ!$GRAPHVIZ$ac_delim
34826 DOT!$DOT$ac_delim
34827 GV!$GV$ac_delim
34828 DOTTY!$DOTTY$ac_delim
34829 PERL!$PERL$ac_delim
34830 HAVE_PERL!$HAVE_PERL$ac_delim
34831 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34832 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34833 INSTALL_DATA!$INSTALL_DATA$ac_delim
34834 BZIP2!$BZIP2$ac_delim
34835 DOXYGEN!$DOXYGEN$ac_delim
34836 GROFF!$GROFF$ac_delim
34837 GZIP!$GZIP$ac_delim
34838 POD2HTML!$POD2HTML$ac_delim
34839 POD2MAN!$POD2MAN$ac_delim
34840 RUNTEST!$RUNTEST$ac_delim
34841 TCLSH!$TCLSH$ac_delim
34842 ZIP!$ZIP$ac_delim
34843 OCAMLC!$OCAMLC$ac_delim
34844 OCAMLOPT!$OCAMLOPT$ac_delim
34845 OCAMLDEP!$OCAMLDEP$ac_delim
34846 OCAMLDOC!$OCAMLDOC$ac_delim
34847 GAS!$GAS$ac_delim
34848 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34849 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34850 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34851 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34852 LIBADD_DL!$LIBADD_DL$ac_delim
34853 ECHO!$ECHO$ac_delim
34854 AR!$AR$ac_delim
34855 STRIP!$STRIP$ac_delim
34856 CXXCPP!$CXXCPP$ac_delim
34857 F77!$F77$ac_delim
34858 FFLAGS!$FFLAGS$ac_delim
34859 ac_ct_F77!$ac_ct_F77$ac_delim
34860 LIBTOOL!$LIBTOOL$ac_delim
34861 LLVMGCC!$LLVMGCC$ac_delim
34862 LLVMGXX!$LLVMGXX$ac_delim
34863 USE_UDIS86!$USE_UDIS86$ac_delim
34864 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34865 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34866 ALLOCA!$ALLOCA$ac_delim
34867 MMAP_FILE!$MMAP_FILE$ac_delim
34868 LLVMCC1!$LLVMCC1$ac_delim
34869 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34870 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34871 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34872 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34873 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34874 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34875 SHLIBEXT!$SHLIBEXT$ac_delim
34876 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34877 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34878 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34879 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34880 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34881 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34882 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34883 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34884 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34885 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34886 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34887 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34888 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34889 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34890 RPATH!$RPATH$ac_delim
34891 RDYNAMIC!$RDYNAMIC$ac_delim
34892 LIBOBJS!$LIBOBJS$ac_delim
34893 LTLIBOBJS!$LTLIBOBJS$ac_delim
34894 _ACEOF
34895
34896   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
34897     break
34898   elif $ac_last_try; then
34899     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34901    { (exit 1); exit 1; }; }
34902   else
34903     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34904   fi
34905 done
34906
34907 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34908 if test -n "$ac_eof"; then
34909   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34910   ac_eof=`expr $ac_eof + 1`
34911 fi
34912
34913 cat >>$CONFIG_STATUS <<_ACEOF
34914 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34916 _ACEOF
34917 sed '
34918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34919 s/^/s,@/; s/!/@,|#_!!_#|/
34920 :n
34921 t n
34922 s/'"$ac_delim"'$/,g/; t
34923 s/$/\\/; p
34924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34925 ' >>$CONFIG_STATUS <conf$$subs.sed
34926 rm -f conf$$subs.sed
34927 cat >>$CONFIG_STATUS <<_ACEOF
34928 :end
34929 s/|#_!!_#|//g
34930 CEOF$ac_eof
34931 _ACEOF
34932
34933
34934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34936 # trailing colons and then remove the whole line if VPATH becomes empty
34937 # (actually we leave an empty line to preserve line numbers).
34938 if test "x$srcdir" = x.; then
34939   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34940 s/:*\$(srcdir):*/:/
34941 s/:*\${srcdir}:*/:/
34942 s/:*@srcdir@:*/:/
34943 s/^\([^=]*=[     ]*\):*/\1/
34944 s/:*$//
34945 s/^[^=]*=[       ]*$//
34946 }'
34947 fi
34948
34949 cat >>$CONFIG_STATUS <<\_ACEOF
34950 fi # test -n "$CONFIG_FILES"
34951
34952
34953 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34954 do
34955   case $ac_tag in
34956   :[FHLC]) ac_mode=$ac_tag; continue;;
34957   esac
34958   case $ac_mode$ac_tag in
34959   :[FHL]*:*);;
34960   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34961 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34962    { (exit 1); exit 1; }; };;
34963   :[FH]-) ac_tag=-:-;;
34964   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34965   esac
34966   ac_save_IFS=$IFS
34967   IFS=:
34968   set x $ac_tag
34969   IFS=$ac_save_IFS
34970   shift
34971   ac_file=$1
34972   shift
34973
34974   case $ac_mode in
34975   :L) ac_source=$1;;
34976   :[FH])
34977     ac_file_inputs=
34978     for ac_f
34979     do
34980       case $ac_f in
34981       -) ac_f="$tmp/stdin";;
34982       *) # Look for the file first in the build tree, then in the source tree
34983          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34984          # because $ac_f cannot contain `:'.
34985          test -f "$ac_f" ||
34986            case $ac_f in
34987            [\\/$]*) false;;
34988            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34989            esac ||
34990            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34991 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34992    { (exit 1); exit 1; }; };;
34993       esac
34994       ac_file_inputs="$ac_file_inputs $ac_f"
34995     done
34996
34997     # Let's still pretend it is `configure' which instantiates (i.e., don't
34998     # use $as_me), people would be surprised to read:
34999     #    /* config.h.  Generated by config.status.  */
35000     configure_input="Generated from "`IFS=:
35001           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35002     if test x"$ac_file" != x-; then
35003       configure_input="$ac_file.  $configure_input"
35004       { echo "$as_me:$LINENO: creating $ac_file" >&5
35005 echo "$as_me: creating $ac_file" >&6;}
35006     fi
35007
35008     case $ac_tag in
35009     *:-:* | *:-) cat >"$tmp/stdin";;
35010     esac
35011     ;;
35012   esac
35013
35014   ac_dir=`$as_dirname -- "$ac_file" ||
35015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35016          X"$ac_file" : 'X\(//\)[^/]' \| \
35017          X"$ac_file" : 'X\(//\)$' \| \
35018          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35019 echo X"$ac_file" |
35020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35021             s//\1/
35022             q
35023           }
35024           /^X\(\/\/\)[^/].*/{
35025             s//\1/
35026             q
35027           }
35028           /^X\(\/\/\)$/{
35029             s//\1/
35030             q
35031           }
35032           /^X\(\/\).*/{
35033             s//\1/
35034             q
35035           }
35036           s/.*/./; q'`
35037   { as_dir="$ac_dir"
35038   case $as_dir in #(
35039   -*) as_dir=./$as_dir;;
35040   esac
35041   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35042     as_dirs=
35043     while :; do
35044       case $as_dir in #(
35045       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35046       *) as_qdir=$as_dir;;
35047       esac
35048       as_dirs="'$as_qdir' $as_dirs"
35049       as_dir=`$as_dirname -- "$as_dir" ||
35050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35051          X"$as_dir" : 'X\(//\)[^/]' \| \
35052          X"$as_dir" : 'X\(//\)$' \| \
35053          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35054 echo X"$as_dir" |
35055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35056             s//\1/
35057             q
35058           }
35059           /^X\(\/\/\)[^/].*/{
35060             s//\1/
35061             q
35062           }
35063           /^X\(\/\/\)$/{
35064             s//\1/
35065             q
35066           }
35067           /^X\(\/\).*/{
35068             s//\1/
35069             q
35070           }
35071           s/.*/./; q'`
35072       test -d "$as_dir" && break
35073     done
35074     test -z "$as_dirs" || eval "mkdir $as_dirs"
35075   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35076 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35077    { (exit 1); exit 1; }; }; }
35078   ac_builddir=.
35079
35080 case "$ac_dir" in
35081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35082 *)
35083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35084   # A ".." for each directory in $ac_dir_suffix.
35085   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35086   case $ac_top_builddir_sub in
35087   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35088   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35089   esac ;;
35090 esac
35091 ac_abs_top_builddir=$ac_pwd
35092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35093 # for backward compatibility:
35094 ac_top_builddir=$ac_top_build_prefix
35095
35096 case $srcdir in
35097   .)  # We are building in place.
35098     ac_srcdir=.
35099     ac_top_srcdir=$ac_top_builddir_sub
35100     ac_abs_top_srcdir=$ac_pwd ;;
35101   [\\/]* | ?:[\\/]* )  # Absolute name.
35102     ac_srcdir=$srcdir$ac_dir_suffix;
35103     ac_top_srcdir=$srcdir
35104     ac_abs_top_srcdir=$srcdir ;;
35105   *) # Relative name.
35106     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35107     ac_top_srcdir=$ac_top_build_prefix$srcdir
35108     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35109 esac
35110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35111
35112
35113   case $ac_mode in
35114   :F)
35115   #
35116   # CONFIG_FILE
35117   #
35118
35119   case $INSTALL in
35120   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35121   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35122   esac
35123 _ACEOF
35124
35125 cat >>$CONFIG_STATUS <<\_ACEOF
35126 # If the template does not know about datarootdir, expand it.
35127 # FIXME: This hack should be removed a few years after 2.60.
35128 ac_datarootdir_hack=; ac_datarootdir_seen=
35129
35130 case `sed -n '/datarootdir/ {
35131   p
35132   q
35133 }
35134 /@datadir@/p
35135 /@docdir@/p
35136 /@infodir@/p
35137 /@localedir@/p
35138 /@mandir@/p
35139 ' $ac_file_inputs` in
35140 *datarootdir*) ac_datarootdir_seen=yes;;
35141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35142   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35143 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35144 _ACEOF
35145 cat >>$CONFIG_STATUS <<_ACEOF
35146   ac_datarootdir_hack='
35147   s&@datadir@&$datadir&g
35148   s&@docdir@&$docdir&g
35149   s&@infodir@&$infodir&g
35150   s&@localedir@&$localedir&g
35151   s&@mandir@&$mandir&g
35152     s&\\\${datarootdir}&$datarootdir&g' ;;
35153 esac
35154 _ACEOF
35155
35156 # Neutralize VPATH when `$srcdir' = `.'.
35157 # Shell code in configure.ac might set extrasub.
35158 # FIXME: do we really want to maintain this feature?
35159 cat >>$CONFIG_STATUS <<_ACEOF
35160   sed "$ac_vpsub
35161 $extrasub
35162 _ACEOF
35163 cat >>$CONFIG_STATUS <<\_ACEOF
35164 :t
35165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35166 s&@configure_input@&$configure_input&;t t
35167 s&@top_builddir@&$ac_top_builddir_sub&;t t
35168 s&@srcdir@&$ac_srcdir&;t t
35169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35170 s&@top_srcdir@&$ac_top_srcdir&;t t
35171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35172 s&@builddir@&$ac_builddir&;t t
35173 s&@abs_builddir@&$ac_abs_builddir&;t t
35174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35175 s&@INSTALL@&$ac_INSTALL&;t t
35176 $ac_datarootdir_hack
35177 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35178
35179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35180   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35181   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35182   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35183 which seems to be undefined.  Please make sure it is defined." >&5
35184 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35185 which seems to be undefined.  Please make sure it is defined." >&2;}
35186
35187   rm -f "$tmp/stdin"
35188   case $ac_file in
35189   -) cat "$tmp/out"; rm -f "$tmp/out";;
35190   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35191   esac
35192  ;;
35193   :H)
35194   #
35195   # CONFIG_HEADER
35196   #
35197 _ACEOF
35198
35199 # Transform confdefs.h into a sed script `conftest.defines', that
35200 # substitutes the proper values into config.h.in to produce config.h.
35201 rm -f conftest.defines conftest.tail
35202 # First, append a space to every undef/define line, to ease matching.
35203 echo 's/$/ /' >conftest.defines
35204 # Then, protect against being on the right side of a sed subst, or in
35205 # an unquoted here document, in config.status.  If some macros were
35206 # called several times there might be several #defines for the same
35207 # symbol, which is useless.  But do not sort them, since the last
35208 # AC_DEFINE must be honored.
35209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35210 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35211 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35212 # PARAMS is the parameter list in the macro definition--in most cases, it's
35213 # just an empty string.
35214 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35215 ac_dB='\\)[      (].*,\\1define\\2'
35216 ac_dC=' '
35217 ac_dD=' ,'
35218
35219 uniq confdefs.h |
35220   sed -n '
35221         t rset
35222         :rset
35223         s/^[     ]*#[    ]*define[       ][      ]*//
35224         t ok
35225         d
35226         :ok
35227         s/[\\&,]/\\&/g
35228         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35229         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35230   ' >>conftest.defines
35231
35232 # Remove the space that was appended to ease matching.
35233 # Then replace #undef with comments.  This is necessary, for
35234 # example, in the case of _POSIX_SOURCE, which is predefined and required
35235 # on some systems where configure will not decide to define it.
35236 # (The regexp can be short, since the line contains either #define or #undef.)
35237 echo 's/ $//
35238 s,^[     #]*u.*,/* & */,' >>conftest.defines
35239
35240 # Break up conftest.defines:
35241 ac_max_sed_lines=50
35242
35243 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35244 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35245 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35246 # et cetera.
35247 ac_in='$ac_file_inputs'
35248 ac_out='"$tmp/out1"'
35249 ac_nxt='"$tmp/out2"'
35250
35251 while :
35252 do
35253   # Write a here document:
35254     cat >>$CONFIG_STATUS <<_ACEOF
35255     # First, check the format of the line:
35256     cat >"\$tmp/defines.sed" <<\\CEOF
35257 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35258 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35259 b
35260 :def
35261 _ACEOF
35262   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35263   echo 'CEOF
35264     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35265   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35266   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35267   grep . conftest.tail >/dev/null || break
35268   rm -f conftest.defines
35269   mv conftest.tail conftest.defines
35270 done
35271 rm -f conftest.defines conftest.tail
35272
35273 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35274 cat >>$CONFIG_STATUS <<\_ACEOF
35275   if test x"$ac_file" != x-; then
35276     echo "/* $configure_input  */" >"$tmp/config.h"
35277     cat "$ac_result" >>"$tmp/config.h"
35278     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35279       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35280 echo "$as_me: $ac_file is unchanged" >&6;}
35281     else
35282       rm -f $ac_file
35283       mv "$tmp/config.h" $ac_file
35284     fi
35285   else
35286     echo "/* $configure_input  */"
35287     cat "$ac_result"
35288   fi
35289   rm -f "$tmp/out12"
35290  ;;
35291
35292   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35293 echo "$as_me: executing $ac_file commands" >&6;}
35294  ;;
35295   esac
35296
35297
35298   case $ac_file$ac_mode in
35299     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35300    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35301     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35302    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35303     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35304    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35305     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35306    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35307     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35308    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35309     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35310    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35311     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35312    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35313     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35314    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35315     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35316    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35317     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35318    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35319     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35320    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35321     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35322    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35323     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35324    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35325
35326   esac
35327 done # for ac_tag
35328
35329
35330 { (exit 0); exit 0; }
35331 _ACEOF
35332 chmod +x $CONFIG_STATUS
35333 ac_clean_files=$ac_clean_files_save
35334
35335
35336 # configure is writing to config.log, and then calls config.status.
35337 # config.status does its own redirection, appending to config.log.
35338 # Unfortunately, on DOS this fails, as config.log is still kept open
35339 # by configure, so config.status won't be able to write to it; its
35340 # output is simply discarded.  So we exec the FD to /dev/null,
35341 # effectively closing config.log, so it can be properly (re)opened and
35342 # appended to by config.status.  When coming back to configure, we
35343 # need to make the FD available again.
35344 if test "$no_create" != yes; then
35345   ac_cs_success=:
35346   ac_config_status_args=
35347   test "$silent" = yes &&
35348     ac_config_status_args="$ac_config_status_args --quiet"
35349   exec 5>/dev/null
35350   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35351   exec 5>>config.log
35352   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35353   # would make configure fail if this is the last instruction.
35354   $ac_cs_success || { (exit 1); exit 1; }
35355 fi
35356
35357 #
35358 # CONFIG_SUBDIRS section.
35359 #
35360 if test "$no_recursion" != yes; then
35361
35362   # Remove --cache-file and --srcdir arguments so they do not pile up.
35363   ac_sub_configure_args=
35364   ac_prev=
35365   eval "set x $ac_configure_args"
35366   shift
35367   for ac_arg
35368   do
35369     if test -n "$ac_prev"; then
35370       ac_prev=
35371       continue
35372     fi
35373     case $ac_arg in
35374     -cache-file | --cache-file | --cache-fil | --cache-fi \
35375     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35376       ac_prev=cache_file ;;
35377     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35378     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35379     | --c=*)
35380       ;;
35381     --config-cache | -C)
35382       ;;
35383     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35384       ac_prev=srcdir ;;
35385     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35386       ;;
35387     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35388       ac_prev=prefix ;;
35389     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35390       ;;
35391     *)
35392       case $ac_arg in
35393       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35394       esac
35395       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35396     esac
35397   done
35398
35399   # Always prepend --prefix to ensure using the same prefix
35400   # in subdir configurations.
35401   ac_arg="--prefix=$prefix"
35402   case $ac_arg in
35403   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35404   esac
35405   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35406
35407   ac_popdir=`pwd`
35408   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35409
35410     # Do not complain, so a configure script can configure whichever
35411     # parts of a large source tree are present.
35412     test -d "$srcdir/$ac_dir" || continue
35413
35414     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35415     echo "$as_me:$LINENO: $ac_msg" >&5
35416     echo "$ac_msg" >&6
35417     { as_dir="$ac_dir"
35418   case $as_dir in #(
35419   -*) as_dir=./$as_dir;;
35420   esac
35421   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35422     as_dirs=
35423     while :; do
35424       case $as_dir in #(
35425       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35426       *) as_qdir=$as_dir;;
35427       esac
35428       as_dirs="'$as_qdir' $as_dirs"
35429       as_dir=`$as_dirname -- "$as_dir" ||
35430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35431          X"$as_dir" : 'X\(//\)[^/]' \| \
35432          X"$as_dir" : 'X\(//\)$' \| \
35433          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35434 echo X"$as_dir" |
35435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35436             s//\1/
35437             q
35438           }
35439           /^X\(\/\/\)[^/].*/{
35440             s//\1/
35441             q
35442           }
35443           /^X\(\/\/\)$/{
35444             s//\1/
35445             q
35446           }
35447           /^X\(\/\).*/{
35448             s//\1/
35449             q
35450           }
35451           s/.*/./; q'`
35452       test -d "$as_dir" && break
35453     done
35454     test -z "$as_dirs" || eval "mkdir $as_dirs"
35455   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35456 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35457    { (exit 1); exit 1; }; }; }
35458     ac_builddir=.
35459
35460 case "$ac_dir" in
35461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35462 *)
35463   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35464   # A ".." for each directory in $ac_dir_suffix.
35465   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35466   case $ac_top_builddir_sub in
35467   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35468   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35469   esac ;;
35470 esac
35471 ac_abs_top_builddir=$ac_pwd
35472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35473 # for backward compatibility:
35474 ac_top_builddir=$ac_top_build_prefix
35475
35476 case $srcdir in
35477   .)  # We are building in place.
35478     ac_srcdir=.
35479     ac_top_srcdir=$ac_top_builddir_sub
35480     ac_abs_top_srcdir=$ac_pwd ;;
35481   [\\/]* | ?:[\\/]* )  # Absolute name.
35482     ac_srcdir=$srcdir$ac_dir_suffix;
35483     ac_top_srcdir=$srcdir
35484     ac_abs_top_srcdir=$srcdir ;;
35485   *) # Relative name.
35486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35487     ac_top_srcdir=$ac_top_build_prefix$srcdir
35488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35489 esac
35490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35491
35492
35493     cd "$ac_dir"
35494
35495     # Check for guested configure; otherwise get Cygnus style configure.
35496     if test -f "$ac_srcdir/configure.gnu"; then
35497       ac_sub_configure=$ac_srcdir/configure.gnu
35498     elif test -f "$ac_srcdir/configure"; then
35499       ac_sub_configure=$ac_srcdir/configure
35500     elif test -f "$ac_srcdir/configure.in"; then
35501       # This should be Cygnus configure.
35502       ac_sub_configure=$ac_aux_dir/configure
35503     else
35504       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35505 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35506       ac_sub_configure=
35507     fi
35508
35509     # The recursion is here.
35510     if test -n "$ac_sub_configure"; then
35511       # Make the cache file name correct relative to the subdirectory.
35512       case $cache_file in
35513       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35514       *) # Relative name.
35515         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35516       esac
35517
35518       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35519 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35520       # The eval makes quoting arguments work.
35521       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35522            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35523         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35524 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35525    { (exit 1); exit 1; }; }
35526     fi
35527
35528     cd "$ac_popdir"
35529   done
35530 fi
35531