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 HAVE_FFI
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 BINDINGS_TO_BUILD
926 ALL_BINDINGS
927 OCAML_LIBDIR
928 ENABLE_VISIBILITY_INLINES_HIDDEN
929 RPATH
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"; 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
8086
8087 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8089 if test "${ac_cv_c_const+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 int
8100 main ()
8101 {
8102 /* FIXME: Include the comments suggested by Paul. */
8103 #ifndef __cplusplus
8104   /* Ultrix mips cc rejects this.  */
8105   typedef int charset[2];
8106   const charset x;
8107   /* SunOS 4.1.1 cc rejects this.  */
8108   char const *const *ccp;
8109   char **p;
8110   /* NEC SVR4.0.2 mips cc rejects this.  */
8111   struct point {int x, y;};
8112   static struct point const zero = {0,0};
8113   /* AIX XL C 1.02.0.0 rejects this.
8114      It does not let you subtract one const X* pointer from another in
8115      an arm of an if-expression whose if-part is not a constant
8116      expression */
8117   const char *g = "string";
8118   ccp = &g + (g ? g-g : 0);
8119   /* HPUX 7.0 cc rejects these. */
8120   ++ccp;
8121   p = (char**) ccp;
8122   ccp = (char const *const *) p;
8123   { /* SCO 3.2v4 cc rejects this.  */
8124     char *t;
8125     char const *s = 0 ? (char *) 0 : (char const *) 0;
8126
8127     *t++ = 0;
8128     if (s) return 0;
8129   }
8130   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8131     int x[] = {25, 17};
8132     const int *foo = &x[0];
8133     ++foo;
8134   }
8135   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8136     typedef const int *iptr;
8137     iptr p = 0;
8138     ++p;
8139   }
8140   { /* AIX XL C 1.02.0.0 rejects this saying
8141        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8142     struct s { int j; const int *ap[3]; };
8143     struct s *b; b->j = 5;
8144   }
8145   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8146     const int foo = 10;
8147     if (!foo) return 0;
8148   }
8149   return !x[0] && !zero.x;
8150 #endif
8151
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_compile") 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } &&
8170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171   { (case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176   (eval "$ac_try") 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); }; } &&
8180          { ac_try='test -s conftest.$ac_objext'
8181   { (case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_cv_c_const=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195         ac_cv_c_const=no
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8201 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8202 if test $ac_cv_c_const = no; then
8203
8204 cat >>confdefs.h <<\_ACEOF
8205 #define const
8206 _ACEOF
8207
8208 fi
8209
8210
8211
8212
8213
8214
8215 ac_header_dirent=no
8216 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8217   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8218 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8219 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229 #include <sys/types.h>
8230 #include <$ac_hdr>
8231
8232 int
8233 main ()
8234 {
8235 if ((DIR *) 0)
8236 return 0;
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_compile") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; } &&
8265          { ac_try='test -s conftest.$ac_objext'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   eval "$as_ac_Header=yes"
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280         eval "$as_ac_Header=no"
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 ac_res=`eval echo '${'$as_ac_Header'}'`
8286                { echo "$as_me:$LINENO: result: $ac_res" >&5
8287 echo "${ECHO_T}$ac_res" >&6; }
8288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8289   cat >>confdefs.h <<_ACEOF
8290 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8291 _ACEOF
8292
8293 ac_header_dirent=$ac_hdr; break
8294 fi
8295
8296 done
8297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8298 if test $ac_header_dirent = dirent.h; then
8299   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8301 if test "${ac_cv_search_opendir+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   ac_func_search_save_LIBS=$LIBS
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311
8312 /* Override any GCC internal prototype to avoid an error.
8313    Use char because int might match the return type of a GCC
8314    builtin and then its argument prototype would still apply.  */
8315 #ifdef __cplusplus
8316 extern "C"
8317 #endif
8318 char opendir ();
8319 int
8320 main ()
8321 {
8322 return opendir ();
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 for ac_lib in '' dir; do
8328   if test -z "$ac_lib"; then
8329     ac_res="none required"
8330   else
8331     ac_res=-l$ac_lib
8332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8333   fi
8334   rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8336 case "(($ac_try" in
8337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338   *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341   (eval "$ac_link") 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349   { (case "(($ac_try" in
8350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351   *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354   (eval "$ac_try") 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; } &&
8358          { ac_try='test -s conftest$ac_exeext'
8359   { (case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_try") 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; }; then
8368   ac_cv_search_opendir=$ac_res
8369 else
8370   echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8372
8373
8374 fi
8375
8376 rm -f core conftest.err conftest.$ac_objext \
8377       conftest$ac_exeext
8378   if test "${ac_cv_search_opendir+set}" = set; then
8379   break
8380 fi
8381 done
8382 if test "${ac_cv_search_opendir+set}" = set; then
8383   :
8384 else
8385   ac_cv_search_opendir=no
8386 fi
8387 rm conftest.$ac_ext
8388 LIBS=$ac_func_search_save_LIBS
8389 fi
8390 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8391 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8392 ac_res=$ac_cv_search_opendir
8393 if test "$ac_res" != no; then
8394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8395
8396 fi
8397
8398 else
8399   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8401 if test "${ac_cv_search_opendir+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   ac_func_search_save_LIBS=$LIBS
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411
8412 /* Override any GCC internal prototype to avoid an error.
8413    Use char because int might match the return type of a GCC
8414    builtin and then its argument prototype would still apply.  */
8415 #ifdef __cplusplus
8416 extern "C"
8417 #endif
8418 char opendir ();
8419 int
8420 main ()
8421 {
8422 return opendir ();
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 for ac_lib in '' x; do
8428   if test -z "$ac_lib"; then
8429     ac_res="none required"
8430   else
8431     ac_res=-l$ac_lib
8432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8433   fi
8434   rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (ac_try="$ac_link"
8436 case "(($ac_try" in
8437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438   *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441   (eval "$ac_link") 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8449   { (case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_try") 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest$ac_exeext'
8459   { (case "(($ac_try" in
8460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461   *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464   (eval "$ac_try") 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   ac_cv_search_opendir=$ac_res
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473
8474 fi
8475
8476 rm -f core conftest.err conftest.$ac_objext \
8477       conftest$ac_exeext
8478   if test "${ac_cv_search_opendir+set}" = set; then
8479   break
8480 fi
8481 done
8482 if test "${ac_cv_search_opendir+set}" = set; then
8483   :
8484 else
8485   ac_cv_search_opendir=no
8486 fi
8487 rm conftest.$ac_ext
8488 LIBS=$ac_func_search_save_LIBS
8489 fi
8490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8492 ac_res=$ac_cv_search_opendir
8493 if test "$ac_res" != no; then
8494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8495
8496 fi
8497
8498 fi
8499
8500
8501 for ac_header in dlfcn.h
8502 do
8503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 fi
8510 ac_res=`eval echo '${'$as_ac_Header'}'`
8511                { echo "$as_me:$LINENO: result: $ac_res" >&5
8512 echo "${ECHO_T}$ac_res" >&6; }
8513 else
8514   # Is the header compilable?
8515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 $ac_includes_default
8524 #include <$ac_header>
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_compiler=yes
8561 else
8562   echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565         ac_header_compiler=no
8566 fi
8567
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8570 echo "${ECHO_T}$ac_header_compiler" >&6; }
8571
8572 # Is the header present?
8573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581 #include <$ac_header>
8582 _ACEOF
8583 if { (ac_try="$ac_cpp conftest.$ac_ext"
8584 case "(($ac_try" in
8585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586   *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8590   ac_status=$?
8591   grep -v '^ *+' conftest.er1 >conftest.err
8592   rm -f conftest.er1
8593   cat conftest.err >&5
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } >/dev/null; then
8596   if test -s conftest.err; then
8597     ac_cpp_err=$ac_c_preproc_warn_flag
8598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8599   else
8600     ac_cpp_err=
8601   fi
8602 else
8603   ac_cpp_err=yes
8604 fi
8605 if test -z "$ac_cpp_err"; then
8606   ac_header_preproc=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611   ac_header_preproc=no
8612 fi
8613
8614 rm -f conftest.err conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8616 echo "${ECHO_T}$ac_header_preproc" >&6; }
8617
8618 # So?  What about this header?
8619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8620   yes:no: )
8621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8625     ac_header_preproc=yes
8626     ;;
8627   no:yes:* )
8628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8640     ( cat <<\_ASBOX
8641 ## ----------------------------------- ##
8642 ## Report this to llvmbugs@cs.uiuc.edu ##
8643 ## ----------------------------------- ##
8644 _ASBOX
8645      ) | sed "s/^/$as_me: WARNING:     /" >&2
8646     ;;
8647 esac
8648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653   eval "$as_ac_Header=\$ac_header_preproc"
8654 fi
8655 ac_res=`eval echo '${'$as_ac_Header'}'`
8656                { echo "$as_me:$LINENO: result: $ac_res" >&5
8657 echo "${ECHO_T}$ac_res" >&6; }
8658
8659 fi
8660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8661   cat >>confdefs.h <<_ACEOF
8662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8663 _ACEOF
8664
8665 fi
8666
8667 done
8668
8669 # Check whether --enable-ltdl-install was given.
8670 if test "${enable_ltdl_install+set}" = set; then
8671   enableval=$enable_ltdl_install;
8672 fi
8673
8674
8675
8676
8677 if test x"${enable_ltdl_install-no}" != xno; then
8678   INSTALL_LTDL_TRUE=
8679   INSTALL_LTDL_FALSE='#'
8680 else
8681   INSTALL_LTDL_TRUE='#'
8682   INSTALL_LTDL_FALSE=
8683 fi
8684
8685
8686
8687 if test x"${enable_ltdl_convenience-no}" != xno; then
8688   CONVENIENCE_LTDL_TRUE=
8689   CONVENIENCE_LTDL_FALSE='#'
8690 else
8691   CONVENIENCE_LTDL_TRUE='#'
8692   CONVENIENCE_LTDL_FALSE=
8693 fi
8694
8695
8696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8698 library_names_spec=
8699 libname_spec='lib$name'
8700 soname_spec=
8701 shrext_cmds=".so"
8702 postinstall_cmds=
8703 postuninstall_cmds=
8704 finish_cmds=
8705 finish_eval=
8706 shlibpath_var=
8707 shlibpath_overrides_runpath=unknown
8708 version_type=none
8709 dynamic_linker="$host_os ld.so"
8710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8711 if test "$GCC" = yes; then
8712   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8714     # if the path contains ";" then we assume it to be the separator
8715     # otherwise default to the standard path separator (i.e. ":") - it is
8716     # assumed that no part of a normal pathname contains ";" but that should
8717     # okay in the real world where ";" in dirpaths is itself problematic.
8718     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8719   else
8720     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8721   fi
8722 else
8723   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8724 fi
8725 need_lib_prefix=unknown
8726 hardcode_into_libs=no
8727
8728 # when you set need_version to no, make sure it does not cause -set_version
8729 # flags to be left without arguments
8730 need_version=unknown
8731
8732 case $host_os in
8733 aix3*)
8734   version_type=linux
8735   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8736   shlibpath_var=LIBPATH
8737
8738   # AIX 3 has no versioning support, so we append a major version to the name.
8739   soname_spec='${libname}${release}${shared_ext}$major'
8740   ;;
8741
8742 aix4* | aix5*)
8743   version_type=linux
8744   need_lib_prefix=no
8745   need_version=no
8746   hardcode_into_libs=yes
8747   if test "$host_cpu" = ia64; then
8748     # AIX 5 supports IA64
8749     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8750     shlibpath_var=LD_LIBRARY_PATH
8751   else
8752     # With GCC up to 2.95.x, collect2 would create an import file
8753     # for dependence libraries.  The import file would start with
8754     # the line `#! .'.  This would cause the generated library to
8755     # depend on `.', always an invalid library.  This was fixed in
8756     # development snapshots of GCC prior to 3.0.
8757     case $host_os in
8758       aix4 | aix4.[01] | aix4.[01].*)
8759       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8760            echo ' yes '
8761            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8762         :
8763       else
8764         can_build_shared=no
8765       fi
8766       ;;
8767     esac
8768     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8769     # soname into executable. Probably we can add versioning support to
8770     # collect2, so additional links can be useful in future.
8771     if test "$aix_use_runtimelinking" = yes; then
8772       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8773       # instead of lib<name>.a to let people know that these are not
8774       # typical AIX shared libraries.
8775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8776     else
8777       # We preserve .a as extension for shared libraries through AIX4.2
8778       # and later when we are not doing run time linking.
8779       library_names_spec='${libname}${release}.a $libname.a'
8780       soname_spec='${libname}${release}${shared_ext}$major'
8781     fi
8782     shlibpath_var=LIBPATH
8783   fi
8784   ;;
8785
8786 amigaos*)
8787   library_names_spec='$libname.ixlibrary $libname.a'
8788   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8789   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'
8790   ;;
8791
8792 beos*)
8793   library_names_spec='${libname}${shared_ext}'
8794   dynamic_linker="$host_os ld.so"
8795   shlibpath_var=LIBRARY_PATH
8796   ;;
8797
8798 bsdi[45]*)
8799   version_type=linux
8800   need_version=no
8801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802   soname_spec='${libname}${release}${shared_ext}$major'
8803   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8804   shlibpath_var=LD_LIBRARY_PATH
8805   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8806   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8807   # the default ld.so.conf also contains /usr/contrib/lib and
8808   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8809   # libtool to hard-code these into programs
8810   ;;
8811
8812 cygwin* | mingw* | pw32*)
8813   version_type=windows
8814   shrext_cmds=".dll"
8815   need_version=no
8816   need_lib_prefix=no
8817
8818   case $GCC,$host_os in
8819   yes,cygwin* | yes,mingw* | yes,pw32*)
8820     library_names_spec='$libname.dll.a'
8821     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8822     postinstall_cmds='base_file=`basename \${file}`~
8823       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8824       dldir=$destdir/`dirname \$dlpath`~
8825       test -d \$dldir || mkdir -p \$dldir~
8826       $install_prog $dir/$dlname \$dldir/$dlname~
8827       chmod a+x \$dldir/$dlname'
8828     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8829       dlpath=$dir/\$dldll~
8830        $rm \$dlpath'
8831     shlibpath_overrides_runpath=yes
8832
8833     case $host_os in
8834     cygwin*)
8835       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8836       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8837       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8838       ;;
8839     mingw*)
8840       # MinGW DLLs use traditional 'lib' prefix
8841       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8843       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8844         # It is most probably a Windows format PATH printed by
8845         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8846         # path with ; separators, and with drive letters. We can handle the
8847         # drive letters (cygwin fileutils understands them), so leave them,
8848         # especially as we might pass files found there to a mingw objdump,
8849         # which wouldn't understand a cygwinified path. Ahh.
8850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851       else
8852         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8853       fi
8854       ;;
8855     pw32*)
8856       # pw32 DLLs use 'pw' prefix rather than 'lib'
8857       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8858       ;;
8859     esac
8860     ;;
8861
8862   *)
8863     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8864     ;;
8865   esac
8866   dynamic_linker='Win32 ld.exe'
8867   # FIXME: first we should search . and the directory the executable is in
8868   shlibpath_var=PATH
8869   ;;
8870
8871 darwin* | rhapsody*)
8872   dynamic_linker="$host_os dyld"
8873   version_type=darwin
8874   need_lib_prefix=no
8875   need_version=no
8876   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8877   soname_spec='${libname}${release}${major}$shared_ext'
8878   shlibpath_overrides_runpath=yes
8879   shlibpath_var=DYLD_LIBRARY_PATH
8880   shrext_cmds='.dylib'
8881   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8882   if test "$GCC" = yes; then
8883     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"`
8884   else
8885     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8886   fi
8887   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8888   ;;
8889
8890 dgux*)
8891   version_type=linux
8892   need_lib_prefix=no
8893   need_version=no
8894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8895   soname_spec='${libname}${release}${shared_ext}$major'
8896   shlibpath_var=LD_LIBRARY_PATH
8897   ;;
8898
8899 freebsd1*)
8900   dynamic_linker=no
8901   ;;
8902
8903 kfreebsd*-gnu)
8904   version_type=linux
8905   need_lib_prefix=no
8906   need_version=no
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908   soname_spec='${libname}${release}${shared_ext}$major'
8909   shlibpath_var=LD_LIBRARY_PATH
8910   shlibpath_overrides_runpath=no
8911   hardcode_into_libs=yes
8912   dynamic_linker='GNU ld.so'
8913   ;;
8914
8915 freebsd* | dragonfly*)
8916   # DragonFly does not have aout.  When/if they implement a new
8917   # versioning mechanism, adjust this.
8918   if test -x /usr/bin/objformat; then
8919     objformat=`/usr/bin/objformat`
8920   else
8921     case $host_os in
8922     freebsd[123]*) objformat=aout ;;
8923     *) objformat=elf ;;
8924     esac
8925   fi
8926   version_type=freebsd-$objformat
8927   case $version_type in
8928     freebsd-elf*)
8929       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8930       need_version=no
8931       need_lib_prefix=no
8932       ;;
8933     freebsd-*)
8934       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8935       need_version=yes
8936       ;;
8937   esac
8938   shlibpath_var=LD_LIBRARY_PATH
8939   case $host_os in
8940   freebsd2*)
8941     shlibpath_overrides_runpath=yes
8942     ;;
8943   freebsd3.[01]* | freebsdelf3.[01]*)
8944     shlibpath_overrides_runpath=yes
8945     hardcode_into_libs=yes
8946     ;;
8947   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8948   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8949     shlibpath_overrides_runpath=no
8950     hardcode_into_libs=yes
8951     ;;
8952   freebsd*) # from 4.6 on
8953     shlibpath_overrides_runpath=yes
8954     hardcode_into_libs=yes
8955     ;;
8956   esac
8957   ;;
8958
8959 gnu*)
8960   version_type=linux
8961   need_lib_prefix=no
8962   need_version=no
8963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8964   soname_spec='${libname}${release}${shared_ext}$major'
8965   shlibpath_var=LD_LIBRARY_PATH
8966   hardcode_into_libs=yes
8967   ;;
8968
8969 hpux9* | hpux10* | hpux11*)
8970   # Give a soname corresponding to the major version so that dld.sl refuses to
8971   # link against other versions.
8972   version_type=sunos
8973   need_lib_prefix=no
8974   need_version=no
8975   case $host_cpu in
8976   ia64*)
8977     shrext_cmds='.so'
8978     hardcode_into_libs=yes
8979     dynamic_linker="$host_os dld.so"
8980     shlibpath_var=LD_LIBRARY_PATH
8981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8983     soname_spec='${libname}${release}${shared_ext}$major'
8984     if test "X$HPUX_IA64_MODE" = X32; then
8985       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8986     else
8987       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8988     fi
8989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8990     ;;
8991    hppa*64*)
8992      shrext_cmds='.sl'
8993      hardcode_into_libs=yes
8994      dynamic_linker="$host_os dld.sl"
8995      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8996      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998      soname_spec='${libname}${release}${shared_ext}$major'
8999      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9000      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9001      ;;
9002    *)
9003     shrext_cmds='.sl'
9004     dynamic_linker="$host_os dld.sl"
9005     shlibpath_var=SHLIB_PATH
9006     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008     soname_spec='${libname}${release}${shared_ext}$major'
9009     ;;
9010   esac
9011   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9012   postinstall_cmds='chmod 555 $lib'
9013   ;;
9014
9015 interix3*)
9016   version_type=linux
9017   need_lib_prefix=no
9018   need_version=no
9019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020   soname_spec='${libname}${release}${shared_ext}$major'
9021   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9022   shlibpath_var=LD_LIBRARY_PATH
9023   shlibpath_overrides_runpath=no
9024   hardcode_into_libs=yes
9025   ;;
9026
9027 irix5* | irix6* | nonstopux*)
9028   case $host_os in
9029     nonstopux*) version_type=nonstopux ;;
9030     *)
9031         if test "$lt_cv_prog_gnu_ld" = yes; then
9032                 version_type=linux
9033         else
9034                 version_type=irix
9035         fi ;;
9036   esac
9037   need_lib_prefix=no
9038   need_version=no
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9041   case $host_os in
9042   irix5* | nonstopux*)
9043     libsuff= shlibsuff=
9044     ;;
9045   *)
9046     case $LD in # libtool.m4 will add one of these switches to LD
9047     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9048       libsuff= shlibsuff= libmagic=32-bit;;
9049     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9050       libsuff=32 shlibsuff=N32 libmagic=N32;;
9051     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9052       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9053     *) libsuff= shlibsuff= libmagic=never-match;;
9054     esac
9055     ;;
9056   esac
9057   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9058   shlibpath_overrides_runpath=no
9059   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9060   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9061   hardcode_into_libs=yes
9062   ;;
9063
9064 # No shared lib support for Linux oldld, aout, or coff.
9065 linux*oldld* | linux*aout* | linux*coff*)
9066   dynamic_linker=no
9067   ;;
9068
9069 # This must be Linux ELF.
9070 linux*)
9071   version_type=linux
9072   need_lib_prefix=no
9073   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9077   shlibpath_var=LD_LIBRARY_PATH
9078   shlibpath_overrides_runpath=no
9079   # This implies no fast_install, which is unacceptable.
9080   # Some rework will be needed to allow for fast_install
9081   # before this can be enabled.
9082   hardcode_into_libs=yes
9083
9084   # Append ld.so.conf contents to the search path
9085   if test -f /etc/ld.so.conf; then
9086     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' ' '`
9087     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9088   fi
9089
9090   # We used to test for /lib/ld.so.1 and disable shared libraries on
9091   # powerpc, because MkLinux only supported shared libraries with the
9092   # GNU dynamic linker.  Since this was broken with cross compilers,
9093   # most powerpc-linux boxes support dynamic linking these days and
9094   # people can always --disable-shared, the test was removed, and we
9095   # assume the GNU/Linux dynamic linker is in use.
9096   dynamic_linker='GNU/Linux ld.so'
9097   ;;
9098
9099 knetbsd*-gnu)
9100   version_type=linux
9101   need_lib_prefix=no
9102   need_version=no
9103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9104   soname_spec='${libname}${release}${shared_ext}$major'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   shlibpath_overrides_runpath=no
9107   hardcode_into_libs=yes
9108   dynamic_linker='GNU ld.so'
9109   ;;
9110
9111 netbsd*)
9112   version_type=sunos
9113   need_lib_prefix=no
9114   need_version=no
9115   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118     dynamic_linker='NetBSD (a.out) ld.so'
9119   else
9120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9121     soname_spec='${libname}${release}${shared_ext}$major'
9122     dynamic_linker='NetBSD ld.elf_so'
9123   fi
9124   shlibpath_var=LD_LIBRARY_PATH
9125   shlibpath_overrides_runpath=yes
9126   hardcode_into_libs=yes
9127   ;;
9128
9129 newsos6)
9130   version_type=linux
9131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132   shlibpath_var=LD_LIBRARY_PATH
9133   shlibpath_overrides_runpath=yes
9134   ;;
9135
9136 nto-qnx*)
9137   version_type=linux
9138   need_lib_prefix=no
9139   need_version=no
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141   soname_spec='${libname}${release}${shared_ext}$major'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   shlibpath_overrides_runpath=yes
9144   ;;
9145
9146 openbsd*)
9147   version_type=sunos
9148   sys_lib_dlsearch_path_spec="/usr/lib"
9149   need_lib_prefix=no
9150   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9151   case $host_os in
9152     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9153     *)                         need_version=no  ;;
9154   esac
9155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9159     case $host_os in
9160       openbsd2.[89] | openbsd2.[89].*)
9161         shlibpath_overrides_runpath=no
9162         ;;
9163       *)
9164         shlibpath_overrides_runpath=yes
9165         ;;
9166       esac
9167   else
9168     shlibpath_overrides_runpath=yes
9169   fi
9170   ;;
9171
9172 os2*)
9173   libname_spec='$name'
9174   shrext_cmds=".dll"
9175   need_lib_prefix=no
9176   library_names_spec='$libname${shared_ext} $libname.a'
9177   dynamic_linker='OS/2 ld.exe'
9178   shlibpath_var=LIBPATH
9179   ;;
9180
9181 osf3* | osf4* | osf5*)
9182   version_type=osf
9183   need_lib_prefix=no
9184   need_version=no
9185   soname_spec='${libname}${release}${shared_ext}$major'
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187   shlibpath_var=LD_LIBRARY_PATH
9188   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9189   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9190   ;;
9191
9192 solaris*)
9193   version_type=linux
9194   need_lib_prefix=no
9195   need_version=no
9196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197   soname_spec='${libname}${release}${shared_ext}$major'
9198   shlibpath_var=LD_LIBRARY_PATH
9199   shlibpath_overrides_runpath=yes
9200   hardcode_into_libs=yes
9201   # ldd complains unless libraries are executable
9202   postinstall_cmds='chmod +x $lib'
9203   ;;
9204
9205 sunos4*)
9206   version_type=sunos
9207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9208   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9209   shlibpath_var=LD_LIBRARY_PATH
9210   shlibpath_overrides_runpath=yes
9211   if test "$with_gnu_ld" = yes; then
9212     need_lib_prefix=no
9213   fi
9214   need_version=yes
9215   ;;
9216
9217 sysv4 | sysv4.3*)
9218   version_type=linux
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   case $host_vendor in
9223     sni)
9224       shlibpath_overrides_runpath=no
9225       need_lib_prefix=no
9226       export_dynamic_flag_spec='${wl}-Blargedynsym'
9227       runpath_var=LD_RUN_PATH
9228       ;;
9229     siemens)
9230       need_lib_prefix=no
9231       ;;
9232     motorola)
9233       need_lib_prefix=no
9234       need_version=no
9235       shlibpath_overrides_runpath=no
9236       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9237       ;;
9238   esac
9239   ;;
9240
9241 sysv4*MP*)
9242   if test -d /usr/nec ;then
9243     version_type=linux
9244     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9245     soname_spec='$libname${shared_ext}.$major'
9246     shlibpath_var=LD_LIBRARY_PATH
9247   fi
9248   ;;
9249
9250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9251   version_type=freebsd-elf
9252   need_lib_prefix=no
9253   need_version=no
9254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9255   soname_spec='${libname}${release}${shared_ext}$major'
9256   shlibpath_var=LD_LIBRARY_PATH
9257   hardcode_into_libs=yes
9258   if test "$with_gnu_ld" = yes; then
9259     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9260     shlibpath_overrides_runpath=no
9261   else
9262     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9263     shlibpath_overrides_runpath=yes
9264     case $host_os in
9265       sco3.2v5*)
9266         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9267         ;;
9268     esac
9269   fi
9270   sys_lib_dlsearch_path_spec='/usr/lib'
9271   ;;
9272
9273 uts4*)
9274   version_type=linux
9275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   ;;
9279
9280 *)
9281   dynamic_linker=no
9282   ;;
9283 esac
9284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9285 echo "${ECHO_T}$dynamic_linker" >&6; }
9286 test "$dynamic_linker" = no && can_build_shared=no
9287
9288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9289 if test "$GCC" = yes; then
9290   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9291 fi
9292
9293
9294 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9295 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9296 if test "${libltdl_cv_shlibext+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299
9300 module=yes
9301 eval libltdl_cv_shlibext=$shrext_cmds
9302
9303 fi
9304 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9305 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9306 if test -n "$libltdl_cv_shlibext"; then
9307
9308 cat >>confdefs.h <<_ACEOF
9309 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9310 _ACEOF
9311
9312 fi
9313
9314
9315 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9316 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9317 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   libltdl_cv_shlibpath_var="$shlibpath_var"
9321 fi
9322 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9323 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9324 if test -n "$libltdl_cv_shlibpath_var"; then
9325
9326 cat >>confdefs.h <<_ACEOF
9327 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9328 _ACEOF
9329
9330 fi
9331
9332
9333 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9334 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9335 if test "${libltdl_cv_sys_search_path+set}" = set; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9339 fi
9340 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9341 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9342 if test -n "$libltdl_cv_sys_search_path"; then
9343   sys_search_path=
9344   for dir in $libltdl_cv_sys_search_path; do
9345     if test -z "$sys_search_path"; then
9346       sys_search_path="$dir"
9347     else
9348       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9349     fi
9350   done
9351
9352 cat >>confdefs.h <<_ACEOF
9353 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9354 _ACEOF
9355
9356 fi
9357
9358 { echo "$as_me:$LINENO: checking for objdir" >&5
9359 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9360 if test "${libltdl_cv_objdir+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   libltdl_cv_objdir="$objdir"
9364   if test -n "$objdir"; then
9365     :
9366   else
9367     rm -f .libs 2>/dev/null
9368     mkdir .libs 2>/dev/null
9369     if test -d .libs; then
9370       libltdl_cv_objdir=.libs
9371     else
9372       # MS-DOS does not allow filenames that begin with a dot.
9373       libltdl_cv_objdir=_libs
9374     fi
9375   rmdir .libs 2>/dev/null
9376   fi
9377
9378 fi
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9380 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9381
9382 cat >>confdefs.h <<_ACEOF
9383 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9384 _ACEOF
9385
9386
9387
9388
9389
9390
9391 # Check for command to grab the raw symbol name followed by C symbol from nm.
9392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397
9398 # These are sane defaults that work on at least a few old systems.
9399 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9400
9401 # Character class describing NM global symbol codes.
9402 symcode='[BCDEGRST]'
9403
9404 # Regexp to match symbols that can be accessed directly from C.
9405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9406
9407 # Transform an extracted symbol line into a proper C declaration
9408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9409
9410 # Transform an extracted symbol line into symbol name and symbol address
9411 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'"
9412
9413 # Define system-specific variables.
9414 case $host_os in
9415 aix*)
9416   symcode='[BCDT]'
9417   ;;
9418 cygwin* | mingw* | pw32*)
9419   symcode='[ABCDGISTW]'
9420   ;;
9421 hpux*) # Its linker distinguishes data from code symbols
9422   if test "$host_cpu" = ia64; then
9423     symcode='[ABCDEGRST]'
9424   fi
9425   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9426   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'"
9427   ;;
9428 linux*)
9429   if test "$host_cpu" = ia64; then
9430     symcode='[ABCDGIRSTW]'
9431     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9432     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'"
9433   fi
9434   ;;
9435 irix* | nonstopux*)
9436   symcode='[BCDEGRST]'
9437   ;;
9438 osf*)
9439   symcode='[BCDEGQRST]'
9440   ;;
9441 solaris*)
9442   symcode='[BDRT]'
9443   ;;
9444 sco3.2v5*)
9445   symcode='[DT]'
9446   ;;
9447 sysv4.2uw2*)
9448   symcode='[DT]'
9449   ;;
9450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9451   symcode='[ABDT]'
9452   ;;
9453 sysv4)
9454   symcode='[DFNSTU]'
9455   ;;
9456 esac
9457
9458 # Handle CRLF in mingw tool chain
9459 opt_cr=
9460 case $build_os in
9461 mingw*)
9462   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9463   ;;
9464 esac
9465
9466 # If we're using GNU nm, then use its standard symbol codes.
9467 case `$NM -V 2>&1` in
9468 *GNU* | *'with BFD'*)
9469   symcode='[ABCDGIRSTW]' ;;
9470 esac
9471
9472 # Try without a prefix undercore, then with it.
9473 for ac_symprfx in "" "_"; do
9474
9475   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9476   symxfrm="\\1 $ac_symprfx\\2 \\2"
9477
9478   # Write the raw and C identifiers.
9479   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9480
9481   # Check to see that the pipe works correctly.
9482   pipe_works=no
9483
9484   rm -f conftest*
9485   cat > conftest.$ac_ext <<EOF
9486 #ifdef __cplusplus
9487 extern "C" {
9488 #endif
9489 char nm_test_var;
9490 void nm_test_func(){}
9491 #ifdef __cplusplus
9492 }
9493 #endif
9494 int main(){nm_test_var='a';nm_test_func();return(0);}
9495 EOF
9496
9497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498   (eval $ac_compile) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; then
9502     # Now try to grab the symbols.
9503     nlist=conftest.nm
9504     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9505   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } && test -s "$nlist"; then
9509       # Try sorting and uniquifying the output.
9510       if sort "$nlist" | uniq > "$nlist"T; then
9511         mv -f "$nlist"T "$nlist"
9512       else
9513         rm -f "$nlist"T
9514       fi
9515
9516       # Make sure that we snagged all the symbols we need.
9517       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9518         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9519           cat <<EOF > conftest.$ac_ext
9520 #ifdef __cplusplus
9521 extern "C" {
9522 #endif
9523
9524 EOF
9525           # Now generate the symbol file.
9526           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9527
9528           cat <<EOF >> conftest.$ac_ext
9529 #if defined (__STDC__) && __STDC__
9530 # define lt_ptr_t void *
9531 #else
9532 # define lt_ptr_t char *
9533 # define const
9534 #endif
9535
9536 /* The mapping between symbol names and symbols. */
9537 const struct {
9538   const char *name;
9539   lt_ptr_t address;
9540 }
9541 lt_preloaded_symbols[] =
9542 {
9543 EOF
9544           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9545           cat <<\EOF >> conftest.$ac_ext
9546   {0, (lt_ptr_t) 0}
9547 };
9548
9549 #ifdef __cplusplus
9550 }
9551 #endif
9552 EOF
9553           # Now try linking the two files.
9554           mv conftest.$ac_objext conftstm.$ac_objext
9555           lt_save_LIBS="$LIBS"
9556           lt_save_CFLAGS="$CFLAGS"
9557           LIBS="conftstm.$ac_objext"
9558           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9559           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560   (eval $ac_link) 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9564             pipe_works=yes
9565           fi
9566           LIBS="$lt_save_LIBS"
9567           CFLAGS="$lt_save_CFLAGS"
9568         else
9569           echo "cannot find nm_test_func in $nlist" >&5
9570         fi
9571       else
9572         echo "cannot find nm_test_var in $nlist" >&5
9573       fi
9574     else
9575       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9576     fi
9577   else
9578     echo "$progname: failed program was:" >&5
9579     cat conftest.$ac_ext >&5
9580   fi
9581   rm -f conftest* conftst*
9582
9583   # Do not use the global_symbol_pipe unless it works.
9584   if test "$pipe_works" = yes; then
9585     break
9586   else
9587     lt_cv_sys_global_symbol_pipe=
9588   fi
9589 done
9590
9591 fi
9592
9593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9594   lt_cv_sys_global_symbol_to_cdecl=
9595 fi
9596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9597   { echo "$as_me:$LINENO: result: failed" >&5
9598 echo "${ECHO_T}failed" >&6; }
9599 else
9600   { echo "$as_me:$LINENO: result: ok" >&5
9601 echo "${ECHO_T}ok" >&6; }
9602 fi
9603
9604
9605 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9606 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9607 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9611     libltdl_cv_preloaded_symbols=yes
9612   else
9613     libltdl_cv_preloaded_symbols=no
9614   fi
9615
9616 fi
9617 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9618 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9619 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9620
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_PRELOADED_SYMBOLS 1
9623 _ACEOF
9624
9625 fi
9626
9627 LIBADD_DL=
9628
9629 ac_ext=c
9630 ac_cpp='$CPP $CPPFLAGS'
9631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9634
9635
9636 { echo "$as_me:$LINENO: checking for shl_load" >&5
9637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9638 if test "${ac_cv_func_shl_load+set}" = set; then
9639   echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641   cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9649 #define shl_load innocuous_shl_load
9650
9651 /* System header to define __stub macros and hopefully few prototypes,
9652     which can conflict with char shl_load (); below.
9653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9654     <limits.h> exists even on freestanding compilers.  */
9655
9656 #ifdef __STDC__
9657 # include <limits.h>
9658 #else
9659 # include <assert.h>
9660 #endif
9661
9662 #undef shl_load
9663
9664 /* Override any GCC internal prototype to avoid an error.
9665    Use char because int might match the return type of a GCC
9666    builtin and then its argument prototype would still apply.  */
9667 #ifdef __cplusplus
9668 extern "C"
9669 #endif
9670 char shl_load ();
9671 /* The GNU C library defines this for functions which it implements
9672     to always fail with ENOSYS.  Some functions are actually named
9673     something starting with __ and the normal name is an alias.  */
9674 #if defined __stub_shl_load || defined __stub___shl_load
9675 choke me
9676 #endif
9677
9678 int
9679 main ()
9680 {
9681 return shl_load ();
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9688 case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_link") 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } &&
9700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9701   { (case "(($ac_try" in
9702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703   *) ac_try_echo=$ac_try;;
9704 esac
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706   (eval "$ac_try") 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); }; } &&
9710          { ac_try='test -s conftest$ac_exeext'
9711   { (case "(($ac_try" in
9712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713   *) ac_try_echo=$ac_try;;
9714 esac
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716   (eval "$ac_try") 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; }; then
9720   ac_cv_func_shl_load=yes
9721 else
9722   echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725         ac_cv_func_shl_load=no
9726 fi
9727
9728 rm -f core conftest.err conftest.$ac_objext \
9729       conftest$ac_exeext conftest.$ac_ext
9730 fi
9731 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9733 if test $ac_cv_func_shl_load = yes; then
9734
9735 cat >>confdefs.h <<\_ACEOF
9736 #define HAVE_SHL_LOAD 1
9737 _ACEOF
9738
9739 else
9740   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9741 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-ldld  $LIBS"
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753
9754 /* Override any GCC internal prototype to avoid an error.
9755    Use char because int might match the return type of a GCC
9756    builtin and then its argument prototype would still apply.  */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char shl_load ();
9761 int
9762 main ()
9763 {
9764 return shl_load ();
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9771 case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_link") 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } &&
9783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784   { (case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_try") 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (case "(($ac_try" in
9795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796   *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799   (eval "$ac_try") 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; }; then
9803   ac_cv_lib_dld_shl_load=yes
9804 else
9805   echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808         ac_cv_lib_dld_shl_load=no
9809 fi
9810
9811 rm -f core conftest.err conftest.$ac_objext \
9812       conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9814 fi
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9817 if test $ac_cv_lib_dld_shl_load = yes; then
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_SHL_LOAD 1
9821 _ACEOF
9822
9823         LIBADD_DL="$LIBADD_DL -ldld"
9824 else
9825   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   ac_check_lib_save_LIBS=$LIBS
9831 LIBS="-ldl  $LIBS"
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838
9839 /* Override any GCC internal prototype to avoid an error.
9840    Use char because int might match the return type of a GCC
9841    builtin and then its argument prototype would still apply.  */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char dlopen ();
9846 int
9847 main ()
9848 {
9849 return dlopen ();
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (ac_try="$ac_link"
9856 case "(($ac_try" in
9857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858   *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861   (eval "$ac_link") 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; } &&
9878          { ac_try='test -s conftest$ac_exeext'
9879   { (case "(($ac_try" in
9880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881   *) ac_try_echo=$ac_try;;
9882 esac
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884   (eval "$ac_try") 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_lib_dl_dlopen=yes
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893         ac_cv_lib_dl_dlopen=no
9894 fi
9895
9896 rm -f core conftest.err conftest.$ac_objext \
9897       conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9899 fi
9900 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9901 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9902 if test $ac_cv_lib_dl_dlopen = yes; then
9903
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_LIBDL 1
9906 _ACEOF
9907
9908                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9909 else
9910   cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916 #if HAVE_DLFCN_H
9917 #  include <dlfcn.h>
9918 #endif
9919
9920 int
9921 main ()
9922 {
9923 dlopen(0, 0);
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935   (eval "$ac_link") 2>conftest.er1
9936   ac_status=$?
9937   grep -v '^ *+' conftest.er1 >conftest.err
9938   rm -f conftest.er1
9939   cat conftest.err >&5
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } &&
9942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9943   { (case "(($ac_try" in
9944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945   *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948   (eval "$ac_try") 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; } &&
9952          { ac_try='test -s conftest$ac_exeext'
9953   { (case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_try") 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; }; then
9962
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_LIBDL 1
9965 _ACEOF
9966  libltdl_cv_func_dlopen="yes"
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9972 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   ac_check_lib_save_LIBS=$LIBS
9977 LIBS="-lsvld  $LIBS"
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984
9985 /* Override any GCC internal prototype to avoid an error.
9986    Use char because int might match the return type of a GCC
9987    builtin and then its argument prototype would still apply.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 char dlopen ();
9992 int
9993 main ()
9994 {
9995 return dlopen ();
9996   ;
9997   return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_link") 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015   { (case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_try") 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; } &&
10024          { ac_try='test -s conftest$ac_exeext'
10025   { (case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_try") 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; }; then
10034   ac_cv_lib_svld_dlopen=yes
10035 else
10036   echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039         ac_cv_lib_svld_dlopen=no
10040 fi
10041
10042 rm -f core conftest.err conftest.$ac_objext \
10043       conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10045 fi
10046 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10047 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10048 if test $ac_cv_lib_svld_dlopen = yes; then
10049
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_LIBDL 1
10052 _ACEOF
10053
10054                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10055 else
10056   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10057 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-ldld  $LIBS"
10063 cat >conftest.$ac_ext <<_ACEOF
10064 /* confdefs.h.  */
10065 _ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h.  */
10069
10070 /* Override any GCC internal prototype to avoid an error.
10071    Use char because int might match the return type of a GCC
10072    builtin and then its argument prototype would still apply.  */
10073 #ifdef __cplusplus
10074 extern "C"
10075 #endif
10076 char dld_link ();
10077 int
10078 main ()
10079 {
10080 return dld_link ();
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_link") 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; } &&
10109          { ac_try='test -s conftest$ac_exeext'
10110   { (case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_try") 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   ac_cv_lib_dld_dld_link=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124         ac_cv_lib_dld_dld_link=no
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext \
10128       conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_lib_save_LIBS
10130 fi
10131 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10132 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10133 if test $ac_cv_lib_dld_dld_link = yes; then
10134
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_DLD 1
10137 _ACEOF
10138
10139                 LIBADD_DL="$LIBADD_DL -ldld"
10140 else
10141   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10142 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10143 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10154 #define _dyld_func_lookup innocuous__dyld_func_lookup
10155
10156 /* System header to define __stub macros and hopefully few prototypes,
10157     which can conflict with char _dyld_func_lookup (); below.
10158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159     <limits.h> exists even on freestanding compilers.  */
10160
10161 #ifdef __STDC__
10162 # include <limits.h>
10163 #else
10164 # include <assert.h>
10165 #endif
10166
10167 #undef _dyld_func_lookup
10168
10169 /* Override any GCC internal prototype to avoid an error.
10170    Use char because int might match the return type of a GCC
10171    builtin and then its argument prototype would still apply.  */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 char _dyld_func_lookup ();
10176 /* The GNU C library defines this for functions which it implements
10177     to always fail with ENOSYS.  Some functions are actually named
10178     something starting with __ and the normal name is an alias.  */
10179 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10180 choke me
10181 #endif
10182
10183 int
10184 main ()
10185 {
10186 return _dyld_func_lookup ();
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195   *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198   (eval "$ac_link") 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206   { (case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_try") 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_try") 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_func__dyld_func_lookup=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230         ac_cv_func__dyld_func_lookup=no
10231 fi
10232
10233 rm -f core conftest.err conftest.$ac_objext \
10234       conftest$ac_exeext conftest.$ac_ext
10235 fi
10236 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10237 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10238 if test $ac_cv_func__dyld_func_lookup = yes; then
10239
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_DYLD 1
10242 _ACEOF
10243
10244 fi
10245
10246
10247 fi
10248
10249
10250 fi
10251
10252
10253 fi
10254
10255 rm -f core conftest.err conftest.$ac_objext \
10256       conftest$ac_exeext conftest.$ac_ext
10257
10258 fi
10259
10260
10261 fi
10262
10263
10264 fi
10265
10266
10267 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10268 then
10269   lt_save_LIBS="$LIBS"
10270   LIBS="$LIBS $LIBADD_DL"
10271
10272 for ac_func in dlerror
10273 do
10274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10278   echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280   cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10288 #define $ac_func innocuous_$ac_func
10289
10290 /* System header to define __stub macros and hopefully few prototypes,
10291     which can conflict with char $ac_func (); below.
10292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10293     <limits.h> exists even on freestanding compilers.  */
10294
10295 #ifdef __STDC__
10296 # include <limits.h>
10297 #else
10298 # include <assert.h>
10299 #endif
10300
10301 #undef $ac_func
10302
10303 /* Override any GCC internal prototype to avoid an error.
10304    Use char because int might match the return type of a GCC
10305    builtin and then its argument prototype would still apply.  */
10306 #ifdef __cplusplus
10307 extern "C"
10308 #endif
10309 char $ac_func ();
10310 /* The GNU C library defines this for functions which it implements
10311     to always fail with ENOSYS.  Some functions are actually named
10312     something starting with __ and the normal name is an alias.  */
10313 #if defined __stub_$ac_func || defined __stub___$ac_func
10314 choke me
10315 #endif
10316
10317 int
10318 main ()
10319 {
10320 return $ac_func ();
10321   ;
10322   return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_link") 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } &&
10339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10340   { (case "(($ac_try" in
10341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342   *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345   (eval "$ac_try") 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; } &&
10349          { ac_try='test -s conftest$ac_exeext'
10350   { (case "(($ac_try" in
10351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352   *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355   (eval "$ac_try") 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; }; then
10359   eval "$as_ac_var=yes"
10360 else
10361   echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364         eval "$as_ac_var=no"
10365 fi
10366
10367 rm -f core conftest.err conftest.$ac_objext \
10368       conftest$ac_exeext conftest.$ac_ext
10369 fi
10370 ac_res=`eval echo '${'$as_ac_var'}'`
10371                { echo "$as_me:$LINENO: result: $ac_res" >&5
10372 echo "${ECHO_T}$ac_res" >&6; }
10373 if test `eval echo '${'$as_ac_var'}'` = yes; then
10374   cat >>confdefs.h <<_ACEOF
10375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10376 _ACEOF
10377
10378 fi
10379 done
10380
10381   LIBS="$lt_save_LIBS"
10382 fi
10383 ac_ext=c
10384 ac_cpp='$CPP $CPPFLAGS'
10385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10388
10389
10390
10391 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10392 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10393 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396   ac_cv_sys_symbol_underscore=no
10397   cat > conftest.$ac_ext <<EOF
10398 void nm_test_func(){}
10399 int main(){nm_test_func;return 0;}
10400 EOF
10401   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402   (eval $ac_compile) 2>&5
10403   ac_status=$?
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); }; then
10406     # Now try to grab the symbols.
10407     ac_nlist=conftest.nm
10408     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10409   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); } && test -s "$ac_nlist"; then
10413       # See whether the symbols have a leading underscore.
10414       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10415         ac_cv_sys_symbol_underscore=yes
10416       else
10417         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10418           :
10419         else
10420           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10421         fi
10422       fi
10423     else
10424       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10425     fi
10426   else
10427     echo "configure: failed program was:" >&5
10428     cat conftest.c >&5
10429   fi
10430   rm -rf conftest*
10431
10432 fi
10433 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10434 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10435
10436
10437 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10438   if test x"$libltdl_cv_func_dlopen" = xyes ||
10439      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10440         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10441 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10442 if test "${libltdl_cv_need_uscore+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   libltdl_cv_need_uscore=unknown
10446           save_LIBS="$LIBS"
10447           LIBS="$LIBS $LIBADD_DL"
10448           if test "$cross_compiling" = yes; then :
10449   libltdl_cv_need_uscore=cross
10450 else
10451   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452   lt_status=$lt_dlunknown
10453   cat > conftest.$ac_ext <<EOF
10454 #line 10454 "configure"
10455 #include "confdefs.h"
10456
10457 #if HAVE_DLFCN_H
10458 #include <dlfcn.h>
10459 #endif
10460
10461 #include <stdio.h>
10462
10463 #ifdef RTLD_GLOBAL
10464 #  define LT_DLGLOBAL           RTLD_GLOBAL
10465 #else
10466 #  ifdef DL_GLOBAL
10467 #    define LT_DLGLOBAL         DL_GLOBAL
10468 #  else
10469 #    define LT_DLGLOBAL         0
10470 #  endif
10471 #endif
10472
10473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474    find out it does not work in some platform. */
10475 #ifndef LT_DLLAZY_OR_NOW
10476 #  ifdef RTLD_LAZY
10477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10478 #  else
10479 #    ifdef DL_LAZY
10480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10481 #    else
10482 #      ifdef RTLD_NOW
10483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10484 #      else
10485 #        ifdef DL_NOW
10486 #          define LT_DLLAZY_OR_NOW      DL_NOW
10487 #        else
10488 #          define LT_DLLAZY_OR_NOW      0
10489 #        endif
10490 #      endif
10491 #    endif
10492 #  endif
10493 #endif
10494
10495 #ifdef __cplusplus
10496 extern "C" void exit (int);
10497 #endif
10498
10499 void fnord() { int i=42;}
10500 int main ()
10501 {
10502   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503   int status = $lt_dlunknown;
10504
10505   if (self)
10506     {
10507       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10508       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509       /* dlclose (self); */
10510     }
10511   else
10512     puts (dlerror ());
10513
10514     exit (status);
10515 }
10516 EOF
10517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518   (eval $ac_link) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10522     (./conftest; exit; ) >&5 2>/dev/null
10523     lt_status=$?
10524     case x$lt_status in
10525       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10526       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10527       x$lt_dlunknown|x*)  ;;
10528     esac
10529   else :
10530     # compilation failed
10531
10532   fi
10533 fi
10534 rm -fr conftest*
10535
10536           LIBS="$save_LIBS"
10537
10538 fi
10539 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10540 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10541   fi
10542 fi
10543
10544 if test x"$libltdl_cv_need_uscore" = xyes; then
10545
10546 cat >>confdefs.h <<\_ACEOF
10547 #define NEED_USCORE 1
10548 _ACEOF
10549
10550 fi
10551
10552
10553 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10554 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10555 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   # PORTME does your system automatically load deplibs for dlopen?
10559   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10560   # For now, we just catch OSes we know something about -- in the
10561   # future, we'll try test this programmatically.
10562   libltdl_cv_sys_dlopen_deplibs=unknown
10563   case "$host_os" in
10564   aix3*|aix4.1.*|aix4.2.*)
10565     # Unknown whether this is true for these versions of AIX, but
10566     # we want this `case' here to explicitly catch those versions.
10567     libltdl_cv_sys_dlopen_deplibs=unknown
10568     ;;
10569   aix[45]*)
10570     libltdl_cv_sys_dlopen_deplibs=yes
10571     ;;
10572   darwin*)
10573     # Assuming the user has installed a libdl from somewhere, this is true
10574     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10575     libltdl_cv_sys_dlopen_deplibs=yes
10576     ;;
10577   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10578     # GNU and its variants, using gnu ld.so (Glibc)
10579     libltdl_cv_sys_dlopen_deplibs=yes
10580     ;;
10581   hpux10*|hpux11*)
10582     libltdl_cv_sys_dlopen_deplibs=yes
10583     ;;
10584   interix*)
10585     libltdl_cv_sys_dlopen_deplibs=yes
10586     ;;
10587   irix[12345]*|irix6.[01]*)
10588     # Catch all versions of IRIX before 6.2, and indicate that we don't
10589     # know how it worked for any of those versions.
10590     libltdl_cv_sys_dlopen_deplibs=unknown
10591     ;;
10592   irix*)
10593     # The case above catches anything before 6.2, and it's known that
10594     # at 6.2 and later dlopen does load deplibs.
10595     libltdl_cv_sys_dlopen_deplibs=yes
10596     ;;
10597   netbsd*)
10598     libltdl_cv_sys_dlopen_deplibs=yes
10599     ;;
10600   openbsd*)
10601     libltdl_cv_sys_dlopen_deplibs=yes
10602     ;;
10603   osf[1234]*)
10604     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10605     # it did *not* use an RPATH in a shared library to find objects the
10606     # library depends on, so we explictly say `no'.
10607     libltdl_cv_sys_dlopen_deplibs=no
10608     ;;
10609   osf5.0|osf5.0a|osf5.1)
10610     # dlopen *does* load deplibs and with the right loader patch applied
10611     # it even uses RPATH in a shared library to search for shared objects
10612     # that the library depends on, but there's no easy way to know if that
10613     # patch is installed.  Since this is the case, all we can really
10614     # say is unknown -- it depends on the patch being installed.  If
10615     # it is, this changes to `yes'.  Without it, it would be `no'.
10616     libltdl_cv_sys_dlopen_deplibs=unknown
10617     ;;
10618   osf*)
10619     # the two cases above should catch all versions of osf <= 5.1.  Read
10620     # the comments above for what we know about them.
10621     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10622     # is used to find them so we can finally say `yes'.
10623     libltdl_cv_sys_dlopen_deplibs=yes
10624     ;;
10625   solaris*)
10626     libltdl_cv_sys_dlopen_deplibs=yes
10627     ;;
10628   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10629     libltdl_cv_sys_dlopen_deplibs=yes
10630     ;;
10631   esac
10632
10633 fi
10634 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10635 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10636 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10637
10638 cat >>confdefs.h <<\_ACEOF
10639 #define LTDL_DLOPEN_DEPLIBS 1
10640 _ACEOF
10641
10642 fi
10643
10644
10645 for ac_header in argz.h
10646 do
10647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 fi
10654 ac_res=`eval echo '${'$as_ac_Header'}'`
10655                { echo "$as_me:$LINENO: result: $ac_res" >&5
10656 echo "${ECHO_T}$ac_res" >&6; }
10657 else
10658   # Is the header compilable?
10659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667 $ac_includes_default
10668 #include <$ac_header>
10669 _ACEOF
10670 rm -f conftest.$ac_objext
10671 if { (ac_try="$ac_compile"
10672 case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677   (eval "$ac_compile") 2>conftest.er1
10678   ac_status=$?
10679   grep -v '^ *+' conftest.er1 >conftest.err
10680   rm -f conftest.er1
10681   cat conftest.err >&5
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } &&
10684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10685   { (case "(($ac_try" in
10686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687   *) ac_try_echo=$ac_try;;
10688 esac
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690   (eval "$ac_try") 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); }; } &&
10694          { ac_try='test -s conftest.$ac_objext'
10695   { (case "(($ac_try" in
10696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697   *) ac_try_echo=$ac_try;;
10698 esac
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700   (eval "$ac_try") 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; }; then
10704   ac_header_compiler=yes
10705 else
10706   echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709         ac_header_compiler=no
10710 fi
10711
10712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10714 echo "${ECHO_T}$ac_header_compiler" >&6; }
10715
10716 # Is the header present?
10717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 #include <$ac_header>
10726 _ACEOF
10727 if { (ac_try="$ac_cpp conftest.$ac_ext"
10728 case "(($ac_try" in
10729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730   *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10734   ac_status=$?
10735   grep -v '^ *+' conftest.er1 >conftest.err
10736   rm -f conftest.er1
10737   cat conftest.err >&5
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); } >/dev/null; then
10740   if test -s conftest.err; then
10741     ac_cpp_err=$ac_c_preproc_warn_flag
10742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10743   else
10744     ac_cpp_err=
10745   fi
10746 else
10747   ac_cpp_err=yes
10748 fi
10749 if test -z "$ac_cpp_err"; then
10750   ac_header_preproc=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755   ac_header_preproc=no
10756 fi
10757
10758 rm -f conftest.err conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10760 echo "${ECHO_T}$ac_header_preproc" >&6; }
10761
10762 # So?  What about this header?
10763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10764   yes:no: )
10765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10769     ac_header_preproc=yes
10770     ;;
10771   no:yes:* )
10772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10784     ( cat <<\_ASBOX
10785 ## ----------------------------------- ##
10786 ## Report this to llvmbugs@cs.uiuc.edu ##
10787 ## ----------------------------------- ##
10788 _ASBOX
10789      ) | sed "s/^/$as_me: WARNING:     /" >&2
10790     ;;
10791 esac
10792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   eval "$as_ac_Header=\$ac_header_preproc"
10798 fi
10799 ac_res=`eval echo '${'$as_ac_Header'}'`
10800                { echo "$as_me:$LINENO: result: $ac_res" >&5
10801 echo "${ECHO_T}$ac_res" >&6; }
10802
10803 fi
10804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10805   cat >>confdefs.h <<_ACEOF
10806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807 _ACEOF
10808
10809 fi
10810
10811 done
10812
10813
10814 { echo "$as_me:$LINENO: checking for error_t" >&5
10815 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10816 if test "${ac_cv_type_error_t+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819   cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 #if HAVE_ARGZ_H
10826 #  include <argz.h>
10827 #endif
10828
10829 typedef error_t ac__type_new_;
10830 int
10831 main ()
10832 {
10833 if ((ac__type_new_ *) 0)
10834   return 0;
10835 if (sizeof (ac__type_new_))
10836   return 0;
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 rm -f conftest.$ac_objext
10842 if { (ac_try="$ac_compile"
10843 case "(($ac_try" in
10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845   *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848   (eval "$ac_compile") 2>conftest.er1
10849   ac_status=$?
10850   grep -v '^ *+' conftest.er1 >conftest.err
10851   rm -f conftest.er1
10852   cat conftest.err >&5
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); } &&
10855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856   { (case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_try") 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest.$ac_objext'
10866   { (case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_try") 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; }; then
10875   ac_cv_type_error_t=yes
10876 else
10877   echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880         ac_cv_type_error_t=no
10881 fi
10882
10883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884 fi
10885 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10886 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10887 if test $ac_cv_type_error_t = yes; then
10888
10889 cat >>confdefs.h <<_ACEOF
10890 #define HAVE_ERROR_T 1
10891 _ACEOF
10892
10893
10894 else
10895
10896 cat >>confdefs.h <<\_ACEOF
10897 #define error_t int
10898 _ACEOF
10899
10900 fi
10901
10902
10903
10904
10905
10906
10907
10908 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10909 do
10910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h.  */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h.  */
10922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10924 #define $ac_func innocuous_$ac_func
10925
10926 /* System header to define __stub macros and hopefully few prototypes,
10927     which can conflict with char $ac_func (); below.
10928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10929     <limits.h> exists even on freestanding compilers.  */
10930
10931 #ifdef __STDC__
10932 # include <limits.h>
10933 #else
10934 # include <assert.h>
10935 #endif
10936
10937 #undef $ac_func
10938
10939 /* Override any GCC internal prototype to avoid an error.
10940    Use char because int might match the return type of a GCC
10941    builtin and then its argument prototype would still apply.  */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char $ac_func ();
10946 /* The GNU C library defines this for functions which it implements
10947     to always fail with ENOSYS.  Some functions are actually named
10948     something starting with __ and the normal name is an alias.  */
10949 #if defined __stub_$ac_func || defined __stub___$ac_func
10950 choke me
10951 #endif
10952
10953 int
10954 main ()
10955 {
10956 return $ac_func ();
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_link") 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } &&
10975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10976   { (case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981   (eval "$ac_try") 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; } &&
10985          { ac_try='test -s conftest$ac_exeext'
10986   { (case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991   (eval "$ac_try") 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); }; }; then
10995   eval "$as_ac_var=yes"
10996 else
10997   echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
10999
11000         eval "$as_ac_var=no"
11001 fi
11002
11003 rm -f core conftest.err conftest.$ac_objext \
11004       conftest$ac_exeext conftest.$ac_ext
11005 fi
11006 ac_res=`eval echo '${'$as_ac_var'}'`
11007                { echo "$as_me:$LINENO: result: $ac_res" >&5
11008 echo "${ECHO_T}$ac_res" >&6; }
11009 if test `eval echo '${'$as_ac_var'}'` = yes; then
11010   cat >>confdefs.h <<_ACEOF
11011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11012 _ACEOF
11013
11014 fi
11015 done
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11045                   stdio.h unistd.h
11046 do
11047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052   echo $ECHO_N "(cached) $ECHO_C" >&6
11053 fi
11054 ac_res=`eval echo '${'$as_ac_Header'}'`
11055                { echo "$as_me:$LINENO: result: $ac_res" >&5
11056 echo "${ECHO_T}$ac_res" >&6; }
11057 else
11058   # Is the header compilable?
11059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 $ac_includes_default
11068 #include <$ac_header>
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (ac_try="$ac_compile"
11072 case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_compile") 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085   { (case "(($ac_try" in
11086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087   *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090   (eval "$ac_try") 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; } &&
11094          { ac_try='test -s conftest.$ac_objext'
11095   { (case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; }; then
11104   ac_header_compiler=yes
11105 else
11106   echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109         ac_header_compiler=no
11110 fi
11111
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114 echo "${ECHO_T}$ac_header_compiler" >&6; }
11115
11116 # Is the header present?
11117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h.  */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h.  */
11125 #include <$ac_header>
11126 _ACEOF
11127 if { (ac_try="$ac_cpp conftest.$ac_ext"
11128 case "(($ac_try" in
11129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130   *) ac_try_echo=$ac_try;;
11131 esac
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11134   ac_status=$?
11135   grep -v '^ *+' conftest.er1 >conftest.err
11136   rm -f conftest.er1
11137   cat conftest.err >&5
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); } >/dev/null; then
11140   if test -s conftest.err; then
11141     ac_cpp_err=$ac_c_preproc_warn_flag
11142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11143   else
11144     ac_cpp_err=
11145   fi
11146 else
11147   ac_cpp_err=yes
11148 fi
11149 if test -z "$ac_cpp_err"; then
11150   ac_header_preproc=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155   ac_header_preproc=no
11156 fi
11157
11158 rm -f conftest.err conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160 echo "${ECHO_T}$ac_header_preproc" >&6; }
11161
11162 # So?  What about this header?
11163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11164   yes:no: )
11165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11169     ac_header_preproc=yes
11170     ;;
11171   no:yes:* )
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11184     ( cat <<\_ASBOX
11185 ## ----------------------------------- ##
11186 ## Report this to llvmbugs@cs.uiuc.edu ##
11187 ## ----------------------------------- ##
11188 _ASBOX
11189      ) | sed "s/^/$as_me: WARNING:     /" >&2
11190     ;;
11191 esac
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197   eval "$as_ac_Header=\$ac_header_preproc"
11198 fi
11199 ac_res=`eval echo '${'$as_ac_Header'}'`
11200                { echo "$as_me:$LINENO: result: $ac_res" >&5
11201 echo "${ECHO_T}$ac_res" >&6; }
11202
11203 fi
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205   cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207 _ACEOF
11208
11209 fi
11210
11211 done
11212
11213
11214
11215
11216
11217 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11218 do
11219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 fi
11226 ac_res=`eval echo '${'$as_ac_Header'}'`
11227                { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 else
11230   # Is the header compilable?
11231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11233 cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 $ac_includes_default
11240 #include <$ac_header>
11241 _ACEOF
11242 rm -f conftest.$ac_objext
11243 if { (ac_try="$ac_compile"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_compile") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } &&
11256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257   { (case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262   (eval "$ac_try") 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; } &&
11266          { ac_try='test -s conftest.$ac_objext'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; }; then
11276   ac_header_compiler=yes
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281         ac_header_compiler=no
11282 fi
11283
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286 echo "${ECHO_T}$ac_header_compiler" >&6; }
11287
11288 # Is the header present?
11289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 #include <$ac_header>
11298 _ACEOF
11299 if { (ac_try="$ac_cpp conftest.$ac_ext"
11300 case "(($ac_try" in
11301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302   *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11306   ac_status=$?
11307   grep -v '^ *+' conftest.er1 >conftest.err
11308   rm -f conftest.er1
11309   cat conftest.err >&5
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); } >/dev/null; then
11312   if test -s conftest.err; then
11313     ac_cpp_err=$ac_c_preproc_warn_flag
11314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11315   else
11316     ac_cpp_err=
11317   fi
11318 else
11319   ac_cpp_err=yes
11320 fi
11321 if test -z "$ac_cpp_err"; then
11322   ac_header_preproc=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327   ac_header_preproc=no
11328 fi
11329
11330 rm -f conftest.err conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11332 echo "${ECHO_T}$ac_header_preproc" >&6; }
11333
11334 # So?  What about this header?
11335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336   yes:no: )
11337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11341     ac_header_preproc=yes
11342     ;;
11343   no:yes:* )
11344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11356     ( cat <<\_ASBOX
11357 ## ----------------------------------- ##
11358 ## Report this to llvmbugs@cs.uiuc.edu ##
11359 ## ----------------------------------- ##
11360 _ASBOX
11361      ) | sed "s/^/$as_me: WARNING:     /" >&2
11362     ;;
11363 esac
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367   echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369   eval "$as_ac_Header=\$ac_header_preproc"
11370 fi
11371 ac_res=`eval echo '${'$as_ac_Header'}'`
11372                { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11374
11375 fi
11376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377   cat >>confdefs.h <<_ACEOF
11378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11379 _ACEOF
11380
11381 fi
11382
11383 done
11384
11385
11386
11387 for ac_header in string.h strings.h
11388 do
11389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 fi
11396 ac_res=`eval echo '${'$as_ac_Header'}'`
11397                { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11399 else
11400   # Is the header compilable?
11401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h.  */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h.  */
11409 $ac_includes_default
11410 #include <$ac_header>
11411 _ACEOF
11412 rm -f conftest.$ac_objext
11413 if { (ac_try="$ac_compile"
11414 case "(($ac_try" in
11415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416   *) ac_try_echo=$ac_try;;
11417 esac
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419   (eval "$ac_compile") 2>conftest.er1
11420   ac_status=$?
11421   grep -v '^ *+' conftest.er1 >conftest.err
11422   rm -f conftest.er1
11423   cat conftest.err >&5
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427   { (case "(($ac_try" in
11428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429   *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432   (eval "$ac_try") 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; } &&
11436          { ac_try='test -s conftest.$ac_objext'
11437   { (case "(($ac_try" in
11438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439   *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442   (eval "$ac_try") 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; }; then
11446   ac_header_compiler=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451         ac_header_compiler=no
11452 fi
11453
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11456 echo "${ECHO_T}$ac_header_compiler" >&6; }
11457
11458 # Is the header present?
11459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11461 cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h.  */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h.  */
11467 #include <$ac_header>
11468 _ACEOF
11469 if { (ac_try="$ac_cpp conftest.$ac_ext"
11470 case "(($ac_try" in
11471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472   *) ac_try_echo=$ac_try;;
11473 esac
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11476   ac_status=$?
11477   grep -v '^ *+' conftest.er1 >conftest.err
11478   rm -f conftest.er1
11479   cat conftest.err >&5
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); } >/dev/null; then
11482   if test -s conftest.err; then
11483     ac_cpp_err=$ac_c_preproc_warn_flag
11484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11485   else
11486     ac_cpp_err=
11487   fi
11488 else
11489   ac_cpp_err=yes
11490 fi
11491 if test -z "$ac_cpp_err"; then
11492   ac_header_preproc=yes
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497   ac_header_preproc=no
11498 fi
11499
11500 rm -f conftest.err conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11502 echo "${ECHO_T}$ac_header_preproc" >&6; }
11503
11504 # So?  What about this header?
11505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11506   yes:no: )
11507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11511     ac_header_preproc=yes
11512     ;;
11513   no:yes:* )
11514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11516     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11517 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11518     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11520     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11521 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11526     ( cat <<\_ASBOX
11527 ## ----------------------------------- ##
11528 ## Report this to llvmbugs@cs.uiuc.edu ##
11529 ## ----------------------------------- ##
11530 _ASBOX
11531      ) | sed "s/^/$as_me: WARNING:     /" >&2
11532     ;;
11533 esac
11534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539   eval "$as_ac_Header=\$ac_header_preproc"
11540 fi
11541 ac_res=`eval echo '${'$as_ac_Header'}'`
11542                { echo "$as_me:$LINENO: result: $ac_res" >&5
11543 echo "${ECHO_T}$ac_res" >&6; }
11544
11545 fi
11546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11547   cat >>confdefs.h <<_ACEOF
11548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11549 _ACEOF
11550  break
11551 fi
11552
11553 done
11554
11555
11556
11557
11558 for ac_func in strchr index
11559 do
11560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566   cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h.  */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h.  */
11572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11574 #define $ac_func innocuous_$ac_func
11575
11576 /* System header to define __stub macros and hopefully few prototypes,
11577     which can conflict with char $ac_func (); below.
11578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579     <limits.h> exists even on freestanding compilers.  */
11580
11581 #ifdef __STDC__
11582 # include <limits.h>
11583 #else
11584 # include <assert.h>
11585 #endif
11586
11587 #undef $ac_func
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590    Use char because int might match the return type of a GCC
11591    builtin and then its argument prototype would still apply.  */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char $ac_func ();
11596 /* The GNU C library defines this for functions which it implements
11597     to always fail with ENOSYS.  Some functions are actually named
11598     something starting with __ and the normal name is an alias.  */
11599 #if defined __stub_$ac_func || defined __stub___$ac_func
11600 choke me
11601 #endif
11602
11603 int
11604 main ()
11605 {
11606 return $ac_func ();
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_link") 2>conftest.er1
11619   ac_status=$?
11620   grep -v '^ *+' conftest.er1 >conftest.err
11621   rm -f conftest.er1
11622   cat conftest.err >&5
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11626   { (case "(($ac_try" in
11627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628   *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631   (eval "$ac_try") 2>&5
11632   ac_status=$?
11633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634   (exit $ac_status); }; } &&
11635          { ac_try='test -s conftest$ac_exeext'
11636   { (case "(($ac_try" in
11637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638   *) ac_try_echo=$ac_try;;
11639 esac
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641   (eval "$ac_try") 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; }; then
11645   eval "$as_ac_var=yes"
11646 else
11647   echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650         eval "$as_ac_var=no"
11651 fi
11652
11653 rm -f core conftest.err conftest.$ac_objext \
11654       conftest$ac_exeext conftest.$ac_ext
11655 fi
11656 ac_res=`eval echo '${'$as_ac_var'}'`
11657                { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11659 if test `eval echo '${'$as_ac_var'}'` = yes; then
11660   cat >>confdefs.h <<_ACEOF
11661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662 _ACEOF
11663  break
11664 fi
11665 done
11666
11667
11668
11669 for ac_func in strrchr rindex
11670 do
11671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11685 #define $ac_func innocuous_$ac_func
11686
11687 /* System header to define __stub macros and hopefully few prototypes,
11688     which can conflict with char $ac_func (); below.
11689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690     <limits.h> exists even on freestanding compilers.  */
11691
11692 #ifdef __STDC__
11693 # include <limits.h>
11694 #else
11695 # include <assert.h>
11696 #endif
11697
11698 #undef $ac_func
11699
11700 /* Override any GCC internal prototype to avoid an error.
11701    Use char because int might match the return type of a GCC
11702    builtin and then its argument prototype would still apply.  */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char $ac_func ();
11707 /* The GNU C library defines this for functions which it implements
11708     to always fail with ENOSYS.  Some functions are actually named
11709     something starting with __ and the normal name is an alias.  */
11710 #if defined __stub_$ac_func || defined __stub___$ac_func
11711 choke me
11712 #endif
11713
11714 int
11715 main ()
11716 {
11717 return $ac_func ();
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (ac_try="$ac_link"
11724 case "(($ac_try" in
11725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726   *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729   (eval "$ac_link") 2>conftest.er1
11730   ac_status=$?
11731   grep -v '^ *+' conftest.er1 >conftest.err
11732   rm -f conftest.er1
11733   cat conftest.err >&5
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); } &&
11736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737   { (case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_try") 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); }; } &&
11746          { ac_try='test -s conftest$ac_exeext'
11747   { (case "(($ac_try" in
11748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749   *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752   (eval "$ac_try") 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; }; then
11756   eval "$as_ac_var=yes"
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761         eval "$as_ac_var=no"
11762 fi
11763
11764 rm -f core conftest.err conftest.$ac_objext \
11765       conftest$ac_exeext conftest.$ac_ext
11766 fi
11767 ac_res=`eval echo '${'$as_ac_var'}'`
11768                { echo "$as_me:$LINENO: result: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11770 if test `eval echo '${'$as_ac_var'}'` = yes; then
11771   cat >>confdefs.h <<_ACEOF
11772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773 _ACEOF
11774  break
11775 fi
11776 done
11777
11778
11779
11780 for ac_func in memcpy bcopy
11781 do
11782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788   cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11796 #define $ac_func innocuous_$ac_func
11797
11798 /* System header to define __stub macros and hopefully few prototypes,
11799     which can conflict with char $ac_func (); below.
11800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801     <limits.h> exists even on freestanding compilers.  */
11802
11803 #ifdef __STDC__
11804 # include <limits.h>
11805 #else
11806 # include <assert.h>
11807 #endif
11808
11809 #undef $ac_func
11810
11811 /* Override any GCC internal prototype to avoid an error.
11812    Use char because int might match the return type of a GCC
11813    builtin and then its argument prototype would still apply.  */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char $ac_func ();
11818 /* The GNU C library defines this for functions which it implements
11819     to always fail with ENOSYS.  Some functions are actually named
11820     something starting with __ and the normal name is an alias.  */
11821 #if defined __stub_$ac_func || defined __stub___$ac_func
11822 choke me
11823 #endif
11824
11825 int
11826 main ()
11827 {
11828 return $ac_func ();
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837   *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840   (eval "$ac_link") 2>conftest.er1
11841   ac_status=$?
11842   grep -v '^ *+' conftest.er1 >conftest.err
11843   rm -f conftest.er1
11844   cat conftest.err >&5
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } &&
11847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848   { (case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_try") 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; } &&
11857          { ac_try='test -s conftest$ac_exeext'
11858   { (case "(($ac_try" in
11859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860   *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863   (eval "$ac_try") 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; }; then
11867   eval "$as_ac_var=yes"
11868 else
11869   echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872         eval "$as_ac_var=no"
11873 fi
11874
11875 rm -f core conftest.err conftest.$ac_objext \
11876       conftest$ac_exeext conftest.$ac_ext
11877 fi
11878 ac_res=`eval echo '${'$as_ac_var'}'`
11879                { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882   cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884 _ACEOF
11885  break
11886 fi
11887 done
11888
11889
11890
11891 for ac_func in memmove strcmp
11892 do
11893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11907 #define $ac_func innocuous_$ac_func
11908
11909 /* System header to define __stub macros and hopefully few prototypes,
11910     which can conflict with char $ac_func (); below.
11911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912     <limits.h> exists even on freestanding compilers.  */
11913
11914 #ifdef __STDC__
11915 # include <limits.h>
11916 #else
11917 # include <assert.h>
11918 #endif
11919
11920 #undef $ac_func
11921
11922 /* Override any GCC internal prototype to avoid an error.
11923    Use char because int might match the return type of a GCC
11924    builtin and then its argument prototype would still apply.  */
11925 #ifdef __cplusplus
11926 extern "C"
11927 #endif
11928 char $ac_func ();
11929 /* The GNU C library defines this for functions which it implements
11930     to always fail with ENOSYS.  Some functions are actually named
11931     something starting with __ and the normal name is an alias.  */
11932 #if defined __stub_$ac_func || defined __stub___$ac_func
11933 choke me
11934 #endif
11935
11936 int
11937 main ()
11938 {
11939 return $ac_func ();
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (ac_try="$ac_link"
11946 case "(($ac_try" in
11947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948   *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951   (eval "$ac_link") 2>conftest.er1
11952   ac_status=$?
11953   grep -v '^ *+' conftest.er1 >conftest.err
11954   rm -f conftest.er1
11955   cat conftest.err >&5
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); } &&
11958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11959   { (case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964   (eval "$ac_try") 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; } &&
11968          { ac_try='test -s conftest$ac_exeext'
11969   { (case "(($ac_try" in
11970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971   *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974   (eval "$ac_try") 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; }; then
11978   eval "$as_ac_var=yes"
11979 else
11980   echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983         eval "$as_ac_var=no"
11984 fi
11985
11986 rm -f core conftest.err conftest.$ac_objext \
11987       conftest$ac_exeext conftest.$ac_ext
11988 fi
11989 ac_res=`eval echo '${'$as_ac_var'}'`
11990                { echo "$as_me:$LINENO: result: $ac_res" >&5
11991 echo "${ECHO_T}$ac_res" >&6; }
11992 if test `eval echo '${'$as_ac_var'}'` = yes; then
11993   cat >>confdefs.h <<_ACEOF
11994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995 _ACEOF
11996
11997 fi
11998 done
11999
12000
12001
12002
12003 for ac_func in closedir opendir readdir
12004 do
12005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011   cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12019 #define $ac_func innocuous_$ac_func
12020
12021 /* System header to define __stub macros and hopefully few prototypes,
12022     which can conflict with char $ac_func (); below.
12023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12024     <limits.h> exists even on freestanding compilers.  */
12025
12026 #ifdef __STDC__
12027 # include <limits.h>
12028 #else
12029 # include <assert.h>
12030 #endif
12031
12032 #undef $ac_func
12033
12034 /* Override any GCC internal prototype to avoid an error.
12035    Use char because int might match the return type of a GCC
12036    builtin and then its argument prototype would still apply.  */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 char $ac_func ();
12041 /* The GNU C library defines this for functions which it implements
12042     to always fail with ENOSYS.  Some functions are actually named
12043     something starting with __ and the normal name is an alias.  */
12044 #if defined __stub_$ac_func || defined __stub___$ac_func
12045 choke me
12046 #endif
12047
12048 int
12049 main ()
12050 {
12051 return $ac_func ();
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (ac_try="$ac_link"
12058 case "(($ac_try" in
12059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060   *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063   (eval "$ac_link") 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071   { (case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_try") 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); }; } &&
12080          { ac_try='test -s conftest$ac_exeext'
12081   { (case "(($ac_try" in
12082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083   *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086   (eval "$ac_try") 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; }; then
12090   eval "$as_ac_var=yes"
12091 else
12092   echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095         eval "$as_ac_var=no"
12096 fi
12097
12098 rm -f core conftest.err conftest.$ac_objext \
12099       conftest$ac_exeext conftest.$ac_ext
12100 fi
12101 ac_res=`eval echo '${'$as_ac_var'}'`
12102                { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12104 if test `eval echo '${'$as_ac_var'}'` = yes; then
12105   cat >>confdefs.h <<_ACEOF
12106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12107 _ACEOF
12108
12109 fi
12110 done
12111
12112
12113 # Check whether --enable-shared was given.
12114 if test "${enable_shared+set}" = set; then
12115   enableval=$enable_shared; p=${PACKAGE-default}
12116     case $enableval in
12117     yes) enable_shared=yes ;;
12118     no) enable_shared=no ;;
12119     *)
12120       enable_shared=no
12121       # Look at the argument we got.  We use all the common list separators.
12122       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12123       for pkg in $enableval; do
12124         IFS="$lt_save_ifs"
12125         if test "X$pkg" = "X$p"; then
12126           enable_shared=yes
12127         fi
12128       done
12129       IFS="$lt_save_ifs"
12130       ;;
12131     esac
12132 else
12133   enable_shared=yes
12134 fi
12135
12136
12137 # Check whether --enable-static was given.
12138 if test "${enable_static+set}" = set; then
12139   enableval=$enable_static; p=${PACKAGE-default}
12140     case $enableval in
12141     yes) enable_static=yes ;;
12142     no) enable_static=no ;;
12143     *)
12144      enable_static=no
12145       # Look at the argument we got.  We use all the common list separators.
12146       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12147       for pkg in $enableval; do
12148         IFS="$lt_save_ifs"
12149         if test "X$pkg" = "X$p"; then
12150           enable_static=yes
12151         fi
12152       done
12153       IFS="$lt_save_ifs"
12154       ;;
12155     esac
12156 else
12157   enable_static=yes
12158 fi
12159
12160
12161 # Check whether --enable-fast-install was given.
12162 if test "${enable_fast_install+set}" = set; then
12163   enableval=$enable_fast_install; p=${PACKAGE-default}
12164     case $enableval in
12165     yes) enable_fast_install=yes ;;
12166     no) enable_fast_install=no ;;
12167     *)
12168       enable_fast_install=no
12169       # Look at the argument we got.  We use all the common list separators.
12170       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171       for pkg in $enableval; do
12172         IFS="$lt_save_ifs"
12173         if test "X$pkg" = "X$p"; then
12174           enable_fast_install=yes
12175         fi
12176       done
12177       IFS="$lt_save_ifs"
12178       ;;
12179     esac
12180 else
12181   enable_fast_install=yes
12182 fi
12183
12184
12185 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12187 if test "${lt_cv_path_SED+set}" = set; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   # Loop through the user's path and test for sed and gsed.
12191 # Then use that list of sed's as ones to test for truncation.
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195   IFS=$as_save_IFS
12196   test -z "$as_dir" && as_dir=.
12197   for lt_ac_prog in sed gsed; do
12198     for ac_exec_ext in '' $ac_executable_extensions; do
12199       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12200         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12201       fi
12202     done
12203   done
12204 done
12205 lt_ac_max=0
12206 lt_ac_count=0
12207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12208 # along with /bin/sed that truncates output.
12209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12210   test ! -f $lt_ac_sed && continue
12211   cat /dev/null > conftest.in
12212   lt_ac_count=0
12213   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12214   # Check for GNU sed and select it if it is found.
12215   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12216     lt_cv_path_SED=$lt_ac_sed
12217     break
12218   fi
12219   while true; do
12220     cat conftest.in conftest.in >conftest.tmp
12221     mv conftest.tmp conftest.in
12222     cp conftest.in conftest.nl
12223     echo >>conftest.nl
12224     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12225     cmp -s conftest.out conftest.nl || break
12226     # 10000 chars as input seems more than enough
12227     test $lt_ac_count -gt 10 && break
12228     lt_ac_count=`expr $lt_ac_count + 1`
12229     if test $lt_ac_count -gt $lt_ac_max; then
12230       lt_ac_max=$lt_ac_count
12231       lt_cv_path_SED=$lt_ac_sed
12232     fi
12233   done
12234 done
12235
12236 fi
12237
12238 SED=$lt_cv_path_SED
12239 { echo "$as_me:$LINENO: result: $SED" >&5
12240 echo "${ECHO_T}$SED" >&6; }
12241
12242
12243 # Check whether --with-gnu-ld was given.
12244 if test "${with_gnu_ld+set}" = set; then
12245   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12246 else
12247   with_gnu_ld=no
12248 fi
12249
12250 ac_prog=ld
12251 if test "$GCC" = yes; then
12252   # Check if gcc -print-prog-name=ld gives a path.
12253   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12254 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12255   case $host in
12256   *-*-mingw*)
12257     # gcc leaves a trailing carriage return which upsets mingw
12258     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12259   *)
12260     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12261   esac
12262   case $ac_prog in
12263     # Accept absolute paths.
12264     [\\/]* | ?:[\\/]*)
12265       re_direlt='/[^/][^/]*/\.\./'
12266       # Canonicalize the pathname of ld
12267       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12268       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12269         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12270       done
12271       test -z "$LD" && LD="$ac_prog"
12272       ;;
12273   "")
12274     # If it fails, then pretend we aren't using GCC.
12275     ac_prog=ld
12276     ;;
12277   *)
12278     # If it is relative, then search for the first ld in PATH.
12279     with_gnu_ld=unknown
12280     ;;
12281   esac
12282 elif test "$with_gnu_ld" = yes; then
12283   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12284 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12285 else
12286   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12287 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12288 fi
12289 if test "${lt_cv_path_LD+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   if test -z "$LD"; then
12293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12294   for ac_dir in $PATH; do
12295     IFS="$lt_save_ifs"
12296     test -z "$ac_dir" && ac_dir=.
12297     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12298       lt_cv_path_LD="$ac_dir/$ac_prog"
12299       # Check to see if the program is GNU ld.  I'd rather use --version,
12300       # but apparently some variants of GNU ld only accept -v.
12301       # Break only if it was the GNU/non-GNU ld that we prefer.
12302       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12303       *GNU* | *'with BFD'*)
12304         test "$with_gnu_ld" != no && break
12305         ;;
12306       *)
12307         test "$with_gnu_ld" != yes && break
12308         ;;
12309       esac
12310     fi
12311   done
12312   IFS="$lt_save_ifs"
12313 else
12314   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12315 fi
12316 fi
12317
12318 LD="$lt_cv_path_LD"
12319 if test -n "$LD"; then
12320   { echo "$as_me:$LINENO: result: $LD" >&5
12321 echo "${ECHO_T}$LD" >&6; }
12322 else
12323   { echo "$as_me:$LINENO: result: no" >&5
12324 echo "${ECHO_T}no" >&6; }
12325 fi
12326 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12327 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12328    { (exit 1); exit 1; }; }
12329 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12330 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12331 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12332   echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12335 case `$LD -v 2>&1 </dev/null` in
12336 *GNU* | *'with BFD'*)
12337   lt_cv_prog_gnu_ld=yes
12338   ;;
12339 *)
12340   lt_cv_prog_gnu_ld=no
12341   ;;
12342 esac
12343 fi
12344 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12345 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12346 with_gnu_ld=$lt_cv_prog_gnu_ld
12347
12348
12349 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12350 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12351 if test "${lt_cv_ld_reload_flag+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   lt_cv_ld_reload_flag='-r'
12355 fi
12356 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12357 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12358 reload_flag=$lt_cv_ld_reload_flag
12359 case $reload_flag in
12360 "" | " "*) ;;
12361 *) reload_flag=" $reload_flag" ;;
12362 esac
12363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12364 case $host_os in
12365   darwin*)
12366     if test "$GCC" = yes; then
12367       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12368     else
12369       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12370     fi
12371     ;;
12372 esac
12373
12374 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12375 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12376 if test "${lt_cv_deplibs_check_method+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   lt_cv_file_magic_cmd='$MAGIC_CMD'
12380 lt_cv_file_magic_test_file=
12381 lt_cv_deplibs_check_method='unknown'
12382 # Need to set the preceding variable on all platforms that support
12383 # interlibrary dependencies.
12384 # 'none' -- dependencies not supported.
12385 # `unknown' -- same as none, but documents that we really don't know.
12386 # 'pass_all' -- all dependencies passed with no checks.
12387 # 'test_compile' -- check by making test program.
12388 # 'file_magic [[regex]]' -- check by looking for files in library path
12389 # which responds to the $file_magic_cmd with a given extended regex.
12390 # If you have `file' or equivalent on your system and you're not sure
12391 # whether `pass_all' will *always* work, you probably want this one.
12392
12393 case $host_os in
12394 aix4* | aix5*)
12395   lt_cv_deplibs_check_method=pass_all
12396   ;;
12397
12398 beos*)
12399   lt_cv_deplibs_check_method=pass_all
12400   ;;
12401
12402 bsdi[45]*)
12403   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12404   lt_cv_file_magic_cmd='/usr/bin/file -L'
12405   lt_cv_file_magic_test_file=/shlib/libc.so
12406   ;;
12407
12408 cygwin*)
12409   # func_win32_libid is a shell function defined in ltmain.sh
12410   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12411   lt_cv_file_magic_cmd='func_win32_libid'
12412   ;;
12413
12414 mingw* | pw32*)
12415   # Base MSYS/MinGW do not provide the 'file' command needed by
12416   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12417   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12418   lt_cv_file_magic_cmd='$OBJDUMP -f'
12419   ;;
12420
12421 darwin* | rhapsody*)
12422   lt_cv_deplibs_check_method=pass_all
12423   ;;
12424
12425 freebsd* | kfreebsd*-gnu | dragonfly*)
12426   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12427     case $host_cpu in
12428     i*86 )
12429       # Not sure whether the presence of OpenBSD here was a mistake.
12430       # Let's accept both of them until this is cleared up.
12431       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12432       lt_cv_file_magic_cmd=/usr/bin/file
12433       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12434       ;;
12435     esac
12436   else
12437     lt_cv_deplibs_check_method=pass_all
12438   fi
12439   ;;
12440
12441 gnu*)
12442   lt_cv_deplibs_check_method=pass_all
12443   ;;
12444
12445 hpux10.20* | hpux11*)
12446   lt_cv_file_magic_cmd=/usr/bin/file
12447   case $host_cpu in
12448   ia64*)
12449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12450     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12451     ;;
12452   hppa*64*)
12453     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]'
12454     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12455     ;;
12456   *)
12457     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12458     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12459     ;;
12460   esac
12461   ;;
12462
12463 interix3*)
12464   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12465   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12466   ;;
12467
12468 irix5* | irix6* | nonstopux*)
12469   case $LD in
12470   *-32|*"-32 ") libmagic=32-bit;;
12471   *-n32|*"-n32 ") libmagic=N32;;
12472   *-64|*"-64 ") libmagic=64-bit;;
12473   *) libmagic=never-match;;
12474   esac
12475   lt_cv_deplibs_check_method=pass_all
12476   ;;
12477
12478 # This must be Linux ELF.
12479 linux*)
12480   lt_cv_deplibs_check_method=pass_all
12481   ;;
12482
12483 netbsd*)
12484   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12486   else
12487     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12488   fi
12489   ;;
12490
12491 newos6*)
12492   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12493   lt_cv_file_magic_cmd=/usr/bin/file
12494   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12495   ;;
12496
12497 nto-qnx*)
12498   lt_cv_deplibs_check_method=unknown
12499   ;;
12500
12501 openbsd*)
12502   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12504   else
12505     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12506   fi
12507   ;;
12508
12509 osf3* | osf4* | osf5*)
12510   lt_cv_deplibs_check_method=pass_all
12511   ;;
12512
12513 solaris*)
12514   lt_cv_deplibs_check_method=pass_all
12515   ;;
12516
12517 sysv4 | sysv4.3*)
12518   case $host_vendor in
12519   motorola)
12520     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]'
12521     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12522     ;;
12523   ncr)
12524     lt_cv_deplibs_check_method=pass_all
12525     ;;
12526   sequent)
12527     lt_cv_file_magic_cmd='/bin/file'
12528     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12529     ;;
12530   sni)
12531     lt_cv_file_magic_cmd='/bin/file'
12532     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12533     lt_cv_file_magic_test_file=/lib/libc.so
12534     ;;
12535   siemens)
12536     lt_cv_deplibs_check_method=pass_all
12537     ;;
12538   pc)
12539     lt_cv_deplibs_check_method=pass_all
12540     ;;
12541   esac
12542   ;;
12543
12544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12545   lt_cv_deplibs_check_method=pass_all
12546   ;;
12547 esac
12548
12549 fi
12550 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12551 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12552 file_magic_cmd=$lt_cv_file_magic_cmd
12553 deplibs_check_method=$lt_cv_deplibs_check_method
12554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12555
12556
12557
12558 # If no C compiler was specified, use CC.
12559 LTCC=${LTCC-"$CC"}
12560
12561 # If no C compiler flags were specified, use CFLAGS.
12562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12563
12564 # Allow CC to be a program name with arguments.
12565 compiler=$CC
12566
12567 # Check whether --enable-libtool-lock was given.
12568 if test "${enable_libtool_lock+set}" = set; then
12569   enableval=$enable_libtool_lock;
12570 fi
12571
12572 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12573
12574 # Some flags need to be propagated to the compiler or linker for good
12575 # libtool support.
12576 case $host in
12577 ia64-*-hpux*)
12578   # Find out which ABI we are using.
12579   echo 'int i;' > conftest.$ac_ext
12580   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581   (eval $ac_compile) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; then
12585     case `/usr/bin/file conftest.$ac_objext` in
12586     *ELF-32*)
12587       HPUX_IA64_MODE="32"
12588       ;;
12589     *ELF-64*)
12590       HPUX_IA64_MODE="64"
12591       ;;
12592     esac
12593   fi
12594   rm -rf conftest*
12595   ;;
12596 *-*-irix6*)
12597   # Find out which ABI we are using.
12598   echo '#line 12598 "configure"' > conftest.$ac_ext
12599   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600   (eval $ac_compile) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; then
12604    if test "$lt_cv_prog_gnu_ld" = yes; then
12605     case `/usr/bin/file conftest.$ac_objext` in
12606     *32-bit*)
12607       LD="${LD-ld} -melf32bsmip"
12608       ;;
12609     *N32*)
12610       LD="${LD-ld} -melf32bmipn32"
12611       ;;
12612     *64-bit*)
12613       LD="${LD-ld} -melf64bmip"
12614       ;;
12615     esac
12616    else
12617     case `/usr/bin/file conftest.$ac_objext` in
12618     *32-bit*)
12619       LD="${LD-ld} -32"
12620       ;;
12621     *N32*)
12622       LD="${LD-ld} -n32"
12623       ;;
12624     *64-bit*)
12625       LD="${LD-ld} -64"
12626       ;;
12627     esac
12628    fi
12629   fi
12630   rm -rf conftest*
12631   ;;
12632
12633 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12634   # Find out which ABI we are using.
12635   echo 'int i;' > conftest.$ac_ext
12636   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637   (eval $ac_compile) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; then
12641     case `/usr/bin/file conftest.o` in
12642     *32-bit*)
12643       case $host in
12644         x86_64-*linux*)
12645           LD="${LD-ld} -m elf_i386"
12646           ;;
12647         ppc64-*linux*|powerpc64-*linux*)
12648           LD="${LD-ld} -m elf32ppclinux"
12649           ;;
12650         s390x-*linux*)
12651           LD="${LD-ld} -m elf_s390"
12652           ;;
12653         sparc64-*linux*)
12654           LD="${LD-ld} -m elf32_sparc"
12655           ;;
12656       esac
12657       ;;
12658     *64-bit*)
12659       case $host in
12660         x86_64-*linux*)
12661           LD="${LD-ld} -m elf_x86_64"
12662           ;;
12663         ppc*-*linux*|powerpc*-*linux*)
12664           LD="${LD-ld} -m elf64ppc"
12665           ;;
12666         s390*-*linux*)
12667           LD="${LD-ld} -m elf64_s390"
12668           ;;
12669         sparc*-*linux*)
12670           LD="${LD-ld} -m elf64_sparc"
12671           ;;
12672       esac
12673       ;;
12674     esac
12675   fi
12676   rm -rf conftest*
12677   ;;
12678
12679 *-*-sco3.2v5*)
12680   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12681   SAVE_CFLAGS="$CFLAGS"
12682   CFLAGS="$CFLAGS -belf"
12683   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12684 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12685 if test "${lt_cv_cc_needs_belf+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   ac_ext=c
12689 ac_cpp='$CPP $CPPFLAGS'
12690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693
12694      cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700
12701 int
12702 main ()
12703 {
12704
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (ac_try="$ac_link"
12711 case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_link") 2>conftest.er1
12717   ac_status=$?
12718   grep -v '^ *+' conftest.er1 >conftest.err
12719   rm -f conftest.er1
12720   cat conftest.err >&5
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); } &&
12723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12724   { (case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_try") 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; } &&
12733          { ac_try='test -s conftest$ac_exeext'
12734   { (case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739   (eval "$ac_try") 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743   lt_cv_cc_needs_belf=yes
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748         lt_cv_cc_needs_belf=no
12749 fi
12750
12751 rm -f core conftest.err conftest.$ac_objext \
12752       conftest$ac_exeext conftest.$ac_ext
12753      ac_ext=c
12754 ac_cpp='$CPP $CPPFLAGS'
12755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12758
12759 fi
12760 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12761 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12762   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12763     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12764     CFLAGS="$SAVE_CFLAGS"
12765   fi
12766   ;;
12767 sparc*-*solaris*)
12768   # Find out which ABI we are using.
12769   echo 'int i;' > conftest.$ac_ext
12770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771   (eval $ac_compile) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; then
12775     case `/usr/bin/file conftest.o` in
12776     *64-bit*)
12777       case $lt_cv_prog_gnu_ld in
12778       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12779       *)    LD="${LD-ld} -64" ;;
12780       esac
12781       ;;
12782     esac
12783   fi
12784   rm -rf conftest*
12785   ;;
12786
12787
12788 esac
12789
12790 need_locks="$enable_libtool_lock"
12791
12792
12793
12794
12795 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12796     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12797     (test "X$CXX" != "Xg++"))) ; then
12798   ac_ext=cpp
12799 ac_cpp='$CXXCPP $CPPFLAGS'
12800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12803 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12804 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12805 if test -z "$CXXCPP"; then
12806   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12807   echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809       # Double quotes because CXXCPP needs to be expanded
12810     for CXXCPP in "$CXX -E" "/lib/cpp"
12811     do
12812       ac_preproc_ok=false
12813 for ac_cxx_preproc_warn_flag in '' yes
12814 do
12815   # Use a header file that comes with gcc, so configuring glibc
12816   # with a fresh cross-compiler works.
12817   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818   # <limits.h> exists even on freestanding compilers.
12819   # On the NeXT, cc -E runs the code through the compiler's parser,
12820   # not just through cpp. "Syntax error" is here to catch this case.
12821   cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h.  */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h.  */
12827 #ifdef __STDC__
12828 # include <limits.h>
12829 #else
12830 # include <assert.h>
12831 #endif
12832                      Syntax error
12833 _ACEOF
12834 if { (ac_try="$ac_cpp conftest.$ac_ext"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } >/dev/null; then
12847   if test -s conftest.err; then
12848     ac_cpp_err=$ac_cxx_preproc_warn_flag
12849     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12850   else
12851     ac_cpp_err=
12852   fi
12853 else
12854   ac_cpp_err=yes
12855 fi
12856 if test -z "$ac_cpp_err"; then
12857   :
12858 else
12859   echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862   # Broken: fails on valid input.
12863 continue
12864 fi
12865
12866 rm -f conftest.err conftest.$ac_ext
12867
12868   # OK, works on sane cases.  Now check whether nonexistent headers
12869   # can be detected and how.
12870   cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h.  */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h.  */
12876 #include <ac_nonexistent.h>
12877 _ACEOF
12878 if { (ac_try="$ac_cpp conftest.$ac_ext"
12879 case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } >/dev/null; then
12891   if test -s conftest.err; then
12892     ac_cpp_err=$ac_cxx_preproc_warn_flag
12893     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12894   else
12895     ac_cpp_err=
12896   fi
12897 else
12898   ac_cpp_err=yes
12899 fi
12900 if test -z "$ac_cpp_err"; then
12901   # Broken: success on invalid input.
12902 continue
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907   # Passes both tests.
12908 ac_preproc_ok=:
12909 break
12910 fi
12911
12912 rm -f conftest.err conftest.$ac_ext
12913
12914 done
12915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12916 rm -f conftest.err conftest.$ac_ext
12917 if $ac_preproc_ok; then
12918   break
12919 fi
12920
12921     done
12922     ac_cv_prog_CXXCPP=$CXXCPP
12923
12924 fi
12925   CXXCPP=$ac_cv_prog_CXXCPP
12926 else
12927   ac_cv_prog_CXXCPP=$CXXCPP
12928 fi
12929 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12930 echo "${ECHO_T}$CXXCPP" >&6; }
12931 ac_preproc_ok=false
12932 for ac_cxx_preproc_warn_flag in '' yes
12933 do
12934   # Use a header file that comes with gcc, so configuring glibc
12935   # with a fresh cross-compiler works.
12936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937   # <limits.h> exists even on freestanding compilers.
12938   # On the NeXT, cc -E runs the code through the compiler's parser,
12939   # not just through cpp. "Syntax error" is here to catch this case.
12940   cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946 #ifdef __STDC__
12947 # include <limits.h>
12948 #else
12949 # include <assert.h>
12950 #endif
12951                      Syntax error
12952 _ACEOF
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956   *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12960   ac_status=$?
12961   grep -v '^ *+' conftest.er1 >conftest.err
12962   rm -f conftest.er1
12963   cat conftest.err >&5
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } >/dev/null; then
12966   if test -s conftest.err; then
12967     ac_cpp_err=$ac_cxx_preproc_warn_flag
12968     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12969   else
12970     ac_cpp_err=
12971   fi
12972 else
12973   ac_cpp_err=yes
12974 fi
12975 if test -z "$ac_cpp_err"; then
12976   :
12977 else
12978   echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981   # Broken: fails on valid input.
12982 continue
12983 fi
12984
12985 rm -f conftest.err conftest.$ac_ext
12986
12987   # OK, works on sane cases.  Now check whether nonexistent headers
12988   # can be detected and how.
12989   cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995 #include <ac_nonexistent.h>
12996 _ACEOF
12997 if { (ac_try="$ac_cpp conftest.$ac_ext"
12998 case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13004   ac_status=$?
13005   grep -v '^ *+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } >/dev/null; then
13010   if test -s conftest.err; then
13011     ac_cpp_err=$ac_cxx_preproc_warn_flag
13012     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13013   else
13014     ac_cpp_err=
13015   fi
13016 else
13017   ac_cpp_err=yes
13018 fi
13019 if test -z "$ac_cpp_err"; then
13020   # Broken: success on invalid input.
13021 continue
13022 else
13023   echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026   # Passes both tests.
13027 ac_preproc_ok=:
13028 break
13029 fi
13030
13031 rm -f conftest.err conftest.$ac_ext
13032
13033 done
13034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13035 rm -f conftest.err conftest.$ac_ext
13036 if $ac_preproc_ok; then
13037   :
13038 else
13039   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13040 See \`config.log' for more details." >&5
13041 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13042 See \`config.log' for more details." >&2;}
13043    { (exit 1); exit 1; }; }
13044 fi
13045
13046 ac_ext=cpp
13047 ac_cpp='$CXXCPP $CPPFLAGS'
13048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13051
13052 fi
13053
13054
13055 ac_ext=f
13056 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13057 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13059 if test -n "$ac_tool_prefix"; then
13060   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
13061   do
13062     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13066 if test "${ac_cv_prog_F77+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   if test -n "$F77"; then
13070   ac_cv_prog_F77="$F77" # Let the user override the test.
13071 else
13072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13074 do
13075   IFS=$as_save_IFS
13076   test -z "$as_dir" && as_dir=.
13077   for ac_exec_ext in '' $ac_executable_extensions; do
13078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13079     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13081     break 2
13082   fi
13083 done
13084 done
13085 IFS=$as_save_IFS
13086
13087 fi
13088 fi
13089 F77=$ac_cv_prog_F77
13090 if test -n "$F77"; then
13091   { echo "$as_me:$LINENO: result: $F77" >&5
13092 echo "${ECHO_T}$F77" >&6; }
13093 else
13094   { echo "$as_me:$LINENO: result: no" >&5
13095 echo "${ECHO_T}no" >&6; }
13096 fi
13097
13098
13099     test -n "$F77" && break
13100   done
13101 fi
13102 if test -z "$F77"; then
13103   ac_ct_F77=$F77
13104   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
13105 do
13106   # Extract the first word of "$ac_prog", so it can be a program name with args.
13107 set dummy $ac_prog; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   if test -n "$ac_ct_F77"; then
13114   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13115 else
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13118 do
13119   IFS=$as_save_IFS
13120   test -z "$as_dir" && as_dir=.
13121   for ac_exec_ext in '' $ac_executable_extensions; do
13122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13123     ac_cv_prog_ac_ct_F77="$ac_prog"
13124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13125     break 2
13126   fi
13127 done
13128 done
13129 IFS=$as_save_IFS
13130
13131 fi
13132 fi
13133 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13134 if test -n "$ac_ct_F77"; then
13135   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13136 echo "${ECHO_T}$ac_ct_F77" >&6; }
13137 else
13138   { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13140 fi
13141
13142
13143   test -n "$ac_ct_F77" && break
13144 done
13145
13146   if test "x$ac_ct_F77" = x; then
13147     F77=""
13148   else
13149     case $cross_compiling:$ac_tool_warned in
13150 yes:)
13151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13152 whose name does not start with the host triplet.  If you think this
13153 configuration is useful to you, please write to autoconf@gnu.org." >&5
13154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13155 whose name does not start with the host triplet.  If you think this
13156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13157 ac_tool_warned=yes ;;
13158 esac
13159     F77=$ac_ct_F77
13160   fi
13161 fi
13162
13163
13164 # Provide some information about the compiler.
13165 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13166 ac_compiler=`set X $ac_compile; echo $2`
13167 { (ac_try="$ac_compiler --version >&5"
13168 case "(($ac_try" in
13169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170   *) ac_try_echo=$ac_try;;
13171 esac
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173   (eval "$ac_compiler --version >&5") 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }
13177 { (ac_try="$ac_compiler -v >&5"
13178 case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183   (eval "$ac_compiler -v >&5") 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }
13187 { (ac_try="$ac_compiler -V >&5"
13188 case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_compiler -V >&5") 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }
13197 rm -f a.out
13198
13199 # If we don't use `.F' as extension, the preprocessor is not run on the
13200 # input file.  (Note that this only needs to work for GNU compilers.)
13201 ac_save_ext=$ac_ext
13202 ac_ext=F
13203 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13204 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13205 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208   cat >conftest.$ac_ext <<_ACEOF
13209       program main
13210 #ifndef __GNUC__
13211        choke me
13212 #endif
13213
13214       end
13215 _ACEOF
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_compile") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13231   { (case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236   (eval "$ac_try") 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; } &&
13240          { ac_try='test -s conftest.$ac_objext'
13241   { (case "(($ac_try" in
13242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243   *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246   (eval "$ac_try") 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; }; then
13250   ac_compiler_gnu=yes
13251 else
13252   echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255         ac_compiler_gnu=no
13256 fi
13257
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13260
13261 fi
13262 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13263 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13264 ac_ext=$ac_save_ext
13265 ac_test_FFLAGS=${FFLAGS+set}
13266 ac_save_FFLAGS=$FFLAGS
13267 FFLAGS=
13268 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13269 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13270 if test "${ac_cv_prog_f77_g+set}" = set; then
13271   echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273   FFLAGS=-g
13274 cat >conftest.$ac_ext <<_ACEOF
13275       program main
13276
13277       end
13278 _ACEOF
13279 rm -f conftest.$ac_objext
13280 if { (ac_try="$ac_compile"
13281 case "(($ac_try" in
13282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283   *) ac_try_echo=$ac_try;;
13284 esac
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286   (eval "$ac_compile") 2>conftest.er1
13287   ac_status=$?
13288   grep -v '^ *+' conftest.er1 >conftest.err
13289   rm -f conftest.er1
13290   cat conftest.err >&5
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } &&
13293          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13294   { (case "(($ac_try" in
13295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296   *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299   (eval "$ac_try") 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); }; } &&
13303          { ac_try='test -s conftest.$ac_objext'
13304   { (case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_try") 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; }; then
13313   ac_cv_prog_f77_g=yes
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318         ac_cv_prog_f77_g=no
13319 fi
13320
13321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322
13323 fi
13324 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13325 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13326 if test "$ac_test_FFLAGS" = set; then
13327   FFLAGS=$ac_save_FFLAGS
13328 elif test $ac_cv_prog_f77_g = yes; then
13329   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13330     FFLAGS="-g -O2"
13331   else
13332     FFLAGS="-g"
13333   fi
13334 else
13335   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13336     FFLAGS="-O2"
13337   else
13338     FFLAGS=
13339   fi
13340 fi
13341
13342 G77=`test $ac_compiler_gnu = yes && echo yes`
13343 ac_ext=c
13344 ac_cpp='$CPP $CPPFLAGS'
13345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13348
13349
13350
13351 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13352
13353 # find the maximum length of command line arguments
13354 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13355 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13356 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359     i=0
13360   teststring="ABCD"
13361
13362   case $build_os in
13363   msdosdjgpp*)
13364     # On DJGPP, this test can blow up pretty badly due to problems in libc
13365     # (any single argument exceeding 2000 bytes causes a buffer overrun
13366     # during glob expansion).  Even if it were fixed, the result of this
13367     # check would be larger than it should be.
13368     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13369     ;;
13370
13371   gnu*)
13372     # Under GNU Hurd, this test is not required because there is
13373     # no limit to the length of command line arguments.
13374     # Libtool will interpret -1 as no limit whatsoever
13375     lt_cv_sys_max_cmd_len=-1;
13376     ;;
13377
13378   cygwin* | mingw*)
13379     # On Win9x/ME, this test blows up -- it succeeds, but takes
13380     # about 5 minutes as the teststring grows exponentially.
13381     # Worse, since 9x/ME are not pre-emptively multitasking,
13382     # you end up with a "frozen" computer, even though with patience
13383     # the test eventually succeeds (with a max line length of 256k).
13384     # Instead, let's just punt: use the minimum linelength reported by
13385     # all of the supported platforms: 8192 (on NT/2K/XP).
13386     lt_cv_sys_max_cmd_len=8192;
13387     ;;
13388
13389   amigaos*)
13390     # On AmigaOS with pdksh, this test takes hours, literally.
13391     # So we just punt and use a minimum line length of 8192.
13392     lt_cv_sys_max_cmd_len=8192;
13393     ;;
13394
13395   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13396     # This has been around since 386BSD, at least.  Likely further.
13397     if test -x /sbin/sysctl; then
13398       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13399     elif test -x /usr/sbin/sysctl; then
13400       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13401     else
13402       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13403     fi
13404     # And add a safety zone
13405     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13406     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13407     ;;
13408
13409   interix*)
13410     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13411     lt_cv_sys_max_cmd_len=196608
13412     ;;
13413
13414   osf*)
13415     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13416     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13417     # nice to cause kernel panics so lets avoid the loop below.
13418     # First set a reasonable default.
13419     lt_cv_sys_max_cmd_len=16384
13420     #
13421     if test -x /sbin/sysconfig; then
13422       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13423         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13424       esac
13425     fi
13426     ;;
13427   sco3.2v5*)
13428     lt_cv_sys_max_cmd_len=102400
13429     ;;
13430   sysv5* | sco5v6* | sysv4.2uw2*)
13431     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13432     if test -n "$kargmax"; then
13433       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13434     else
13435       lt_cv_sys_max_cmd_len=32768
13436     fi
13437     ;;
13438   *)
13439     # If test is not a shell built-in, we'll probably end up computing a
13440     # maximum length that is only half of the actual maximum length, but
13441     # we can't tell.
13442     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13443     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13444                = "XX$teststring") >/dev/null 2>&1 &&
13445             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13446             lt_cv_sys_max_cmd_len=$new_result &&
13447             test $i != 17 # 1/2 MB should be enough
13448     do
13449       i=`expr $i + 1`
13450       teststring=$teststring$teststring
13451     done
13452     teststring=
13453     # Add a significant safety factor because C++ compilers can tack on massive
13454     # amounts of additional arguments before passing them to the linker.
13455     # It appears as though 1/2 is a usable value.
13456     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13457     ;;
13458   esac
13459
13460 fi
13461
13462 if test -n $lt_cv_sys_max_cmd_len ; then
13463   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13464 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13465 else
13466   { echo "$as_me:$LINENO: result: none" >&5
13467 echo "${ECHO_T}none" >&6; }
13468 fi
13469
13470
13471
13472
13473 # Check for command to grab the raw symbol name followed by C symbol from nm.
13474 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13475 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13476 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479
13480 # These are sane defaults that work on at least a few old systems.
13481 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13482
13483 # Character class describing NM global symbol codes.
13484 symcode='[BCDEGRST]'
13485
13486 # Regexp to match symbols that can be accessed directly from C.
13487 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13488
13489 # Transform an extracted symbol line into a proper C declaration
13490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13491
13492 # Transform an extracted symbol line into symbol name and symbol address
13493 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'"
13494
13495 # Define system-specific variables.
13496 case $host_os in
13497 aix*)
13498   symcode='[BCDT]'
13499   ;;
13500 cygwin* | mingw* | pw32*)
13501   symcode='[ABCDGISTW]'
13502   ;;
13503 hpux*) # Its linker distinguishes data from code symbols
13504   if test "$host_cpu" = ia64; then
13505     symcode='[ABCDEGRST]'
13506   fi
13507   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13508   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'"
13509   ;;
13510 linux*)
13511   if test "$host_cpu" = ia64; then
13512     symcode='[ABCDGIRSTW]'
13513     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13514     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'"
13515   fi
13516   ;;
13517 irix* | nonstopux*)
13518   symcode='[BCDEGRST]'
13519   ;;
13520 osf*)
13521   symcode='[BCDEGQRST]'
13522   ;;
13523 solaris*)
13524   symcode='[BDRT]'
13525   ;;
13526 sco3.2v5*)
13527   symcode='[DT]'
13528   ;;
13529 sysv4.2uw2*)
13530   symcode='[DT]'
13531   ;;
13532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13533   symcode='[ABDT]'
13534   ;;
13535 sysv4)
13536   symcode='[DFNSTU]'
13537   ;;
13538 esac
13539
13540 # Handle CRLF in mingw tool chain
13541 opt_cr=
13542 case $build_os in
13543 mingw*)
13544   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13545   ;;
13546 esac
13547
13548 # If we're using GNU nm, then use its standard symbol codes.
13549 case `$NM -V 2>&1` in
13550 *GNU* | *'with BFD'*)
13551   symcode='[ABCDGIRSTW]' ;;
13552 esac
13553
13554 # Try without a prefix undercore, then with it.
13555 for ac_symprfx in "" "_"; do
13556
13557   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13558   symxfrm="\\1 $ac_symprfx\\2 \\2"
13559
13560   # Write the raw and C identifiers.
13561   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13562
13563   # Check to see that the pipe works correctly.
13564   pipe_works=no
13565
13566   rm -f conftest*
13567   cat > conftest.$ac_ext <<EOF
13568 #ifdef __cplusplus
13569 extern "C" {
13570 #endif
13571 char nm_test_var;
13572 void nm_test_func(){}
13573 #ifdef __cplusplus
13574 }
13575 #endif
13576 int main(){nm_test_var='a';nm_test_func();return(0);}
13577 EOF
13578
13579   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580   (eval $ac_compile) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; then
13584     # Now try to grab the symbols.
13585     nlist=conftest.nm
13586     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13587   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); } && test -s "$nlist"; then
13591       # Try sorting and uniquifying the output.
13592       if sort "$nlist" | uniq > "$nlist"T; then
13593         mv -f "$nlist"T "$nlist"
13594       else
13595         rm -f "$nlist"T
13596       fi
13597
13598       # Make sure that we snagged all the symbols we need.
13599       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13600         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13601           cat <<EOF > conftest.$ac_ext
13602 #ifdef __cplusplus
13603 extern "C" {
13604 #endif
13605
13606 EOF
13607           # Now generate the symbol file.
13608           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13609
13610           cat <<EOF >> conftest.$ac_ext
13611 #if defined (__STDC__) && __STDC__
13612 # define lt_ptr_t void *
13613 #else
13614 # define lt_ptr_t char *
13615 # define const
13616 #endif
13617
13618 /* The mapping between symbol names and symbols. */
13619 const struct {
13620   const char *name;
13621   lt_ptr_t address;
13622 }
13623 lt_preloaded_symbols[] =
13624 {
13625 EOF
13626           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13627           cat <<\EOF >> conftest.$ac_ext
13628   {0, (lt_ptr_t) 0}
13629 };
13630
13631 #ifdef __cplusplus
13632 }
13633 #endif
13634 EOF
13635           # Now try linking the two files.
13636           mv conftest.$ac_objext conftstm.$ac_objext
13637           lt_save_LIBS="$LIBS"
13638           lt_save_CFLAGS="$CFLAGS"
13639           LIBS="conftstm.$ac_objext"
13640           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13641           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13642   (eval $ac_link) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13646             pipe_works=yes
13647           fi
13648           LIBS="$lt_save_LIBS"
13649           CFLAGS="$lt_save_CFLAGS"
13650         else
13651           echo "cannot find nm_test_func in $nlist" >&5
13652         fi
13653       else
13654         echo "cannot find nm_test_var in $nlist" >&5
13655       fi
13656     else
13657       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13658     fi
13659   else
13660     echo "$progname: failed program was:" >&5
13661     cat conftest.$ac_ext >&5
13662   fi
13663   rm -f conftest* conftst*
13664
13665   # Do not use the global_symbol_pipe unless it works.
13666   if test "$pipe_works" = yes; then
13667     break
13668   else
13669     lt_cv_sys_global_symbol_pipe=
13670   fi
13671 done
13672
13673 fi
13674
13675 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13676   lt_cv_sys_global_symbol_to_cdecl=
13677 fi
13678 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13679   { echo "$as_me:$LINENO: result: failed" >&5
13680 echo "${ECHO_T}failed" >&6; }
13681 else
13682   { echo "$as_me:$LINENO: result: ok" >&5
13683 echo "${ECHO_T}ok" >&6; }
13684 fi
13685
13686 { echo "$as_me:$LINENO: checking for objdir" >&5
13687 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13688 if test "${lt_cv_objdir+set}" = set; then
13689   echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691   rm -f .libs 2>/dev/null
13692 mkdir .libs 2>/dev/null
13693 if test -d .libs; then
13694   lt_cv_objdir=.libs
13695 else
13696   # MS-DOS does not allow filenames that begin with a dot.
13697   lt_cv_objdir=_libs
13698 fi
13699 rmdir .libs 2>/dev/null
13700 fi
13701 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13702 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13703 objdir=$lt_cv_objdir
13704
13705
13706
13707
13708
13709 case $host_os in
13710 aix3*)
13711   # AIX sometimes has problems with the GCC collect2 program.  For some
13712   # reason, if we set the COLLECT_NAMES environment variable, the problems
13713   # vanish in a puff of smoke.
13714   if test "X${COLLECT_NAMES+set}" != Xset; then
13715     COLLECT_NAMES=
13716     export COLLECT_NAMES
13717   fi
13718   ;;
13719 esac
13720
13721 # Sed substitution that helps us do robust quoting.  It backslashifies
13722 # metacharacters that are still active within double-quoted strings.
13723 Xsed='sed -e 1s/^X//'
13724 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13725
13726 # Same as above, but do not quote variable references.
13727 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13728
13729 # Sed substitution to delay expansion of an escaped shell variable in a
13730 # double_quote_subst'ed string.
13731 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13732
13733 # Sed substitution to avoid accidental globbing in evaled expressions
13734 no_glob_subst='s/\*/\\\*/g'
13735
13736 # Constants:
13737 rm="rm -f"
13738
13739 # Global variables:
13740 default_ofile=mklib
13741 can_build_shared=yes
13742
13743 # All known linkers require a `.a' archive for static linking (except MSVC,
13744 # which needs '.lib').
13745 libext=a
13746 ltmain="$ac_aux_dir/ltmain.sh"
13747 ofile="$default_ofile"
13748 with_gnu_ld="$lt_cv_prog_gnu_ld"
13749
13750 if test -n "$ac_tool_prefix"; then
13751   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13752 set dummy ${ac_tool_prefix}ar; ac_word=$2
13753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13755 if test "${ac_cv_prog_AR+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   if test -n "$AR"; then
13759   ac_cv_prog_AR="$AR" # Let the user override the test.
13760 else
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13763 do
13764   IFS=$as_save_IFS
13765   test -z "$as_dir" && as_dir=.
13766   for ac_exec_ext in '' $ac_executable_extensions; do
13767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13768     ac_cv_prog_AR="${ac_tool_prefix}ar"
13769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13770     break 2
13771   fi
13772 done
13773 done
13774 IFS=$as_save_IFS
13775
13776 fi
13777 fi
13778 AR=$ac_cv_prog_AR
13779 if test -n "$AR"; then
13780   { echo "$as_me:$LINENO: result: $AR" >&5
13781 echo "${ECHO_T}$AR" >&6; }
13782 else
13783   { echo "$as_me:$LINENO: result: no" >&5
13784 echo "${ECHO_T}no" >&6; }
13785 fi
13786
13787
13788 fi
13789 if test -z "$ac_cv_prog_AR"; then
13790   ac_ct_AR=$AR
13791   # Extract the first word of "ar", so it can be a program name with args.
13792 set dummy ar; ac_word=$2
13793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   if test -n "$ac_ct_AR"; then
13799   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13800 else
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804   IFS=$as_save_IFS
13805   test -z "$as_dir" && as_dir=.
13806   for ac_exec_ext in '' $ac_executable_extensions; do
13807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13808     ac_cv_prog_ac_ct_AR="ar"
13809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810     break 2
13811   fi
13812 done
13813 done
13814 IFS=$as_save_IFS
13815
13816 fi
13817 fi
13818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13819 if test -n "$ac_ct_AR"; then
13820   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13821 echo "${ECHO_T}$ac_ct_AR" >&6; }
13822 else
13823   { echo "$as_me:$LINENO: result: no" >&5
13824 echo "${ECHO_T}no" >&6; }
13825 fi
13826
13827   if test "x$ac_ct_AR" = x; then
13828     AR="false"
13829   else
13830     case $cross_compiling:$ac_tool_warned in
13831 yes:)
13832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13833 whose name does not start with the host triplet.  If you think this
13834 configuration is useful to you, please write to autoconf@gnu.org." >&5
13835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13836 whose name does not start with the host triplet.  If you think this
13837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13838 ac_tool_warned=yes ;;
13839 esac
13840     AR=$ac_ct_AR
13841   fi
13842 else
13843   AR="$ac_cv_prog_AR"
13844 fi
13845
13846 if test -n "$ac_tool_prefix"; then
13847   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13851 if test "${ac_cv_prog_RANLIB+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   if test -n "$RANLIB"; then
13855   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13856 else
13857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858 for as_dir in $PATH
13859 do
13860   IFS=$as_save_IFS
13861   test -z "$as_dir" && as_dir=.
13862   for ac_exec_ext in '' $ac_executable_extensions; do
13863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13864     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13866     break 2
13867   fi
13868 done
13869 done
13870 IFS=$as_save_IFS
13871
13872 fi
13873 fi
13874 RANLIB=$ac_cv_prog_RANLIB
13875 if test -n "$RANLIB"; then
13876   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13877 echo "${ECHO_T}$RANLIB" >&6; }
13878 else
13879   { echo "$as_me:$LINENO: result: no" >&5
13880 echo "${ECHO_T}no" >&6; }
13881 fi
13882
13883
13884 fi
13885 if test -z "$ac_cv_prog_RANLIB"; then
13886   ac_ct_RANLIB=$RANLIB
13887   # Extract the first word of "ranlib", so it can be a program name with args.
13888 set dummy ranlib; ac_word=$2
13889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   if test -n "$ac_ct_RANLIB"; then
13895   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13896 else
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13899 do
13900   IFS=$as_save_IFS
13901   test -z "$as_dir" && as_dir=.
13902   for ac_exec_ext in '' $ac_executable_extensions; do
13903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13904     ac_cv_prog_ac_ct_RANLIB="ranlib"
13905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13906     break 2
13907   fi
13908 done
13909 done
13910 IFS=$as_save_IFS
13911
13912 fi
13913 fi
13914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13915 if test -n "$ac_ct_RANLIB"; then
13916   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13917 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13918 else
13919   { echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6; }
13921 fi
13922
13923   if test "x$ac_ct_RANLIB" = x; then
13924     RANLIB=":"
13925   else
13926     case $cross_compiling:$ac_tool_warned in
13927 yes:)
13928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13929 whose name does not start with the host triplet.  If you think this
13930 configuration is useful to you, please write to autoconf@gnu.org." >&5
13931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13932 whose name does not start with the host triplet.  If you think this
13933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13934 ac_tool_warned=yes ;;
13935 esac
13936     RANLIB=$ac_ct_RANLIB
13937   fi
13938 else
13939   RANLIB="$ac_cv_prog_RANLIB"
13940 fi
13941
13942 if test -n "$ac_tool_prefix"; then
13943   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13944 set dummy ${ac_tool_prefix}strip; ac_word=$2
13945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13947 if test "${ac_cv_prog_STRIP+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   if test -n "$STRIP"; then
13951   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13952 else
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13955 do
13956   IFS=$as_save_IFS
13957   test -z "$as_dir" && as_dir=.
13958   for ac_exec_ext in '' $ac_executable_extensions; do
13959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13960     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13962     break 2
13963   fi
13964 done
13965 done
13966 IFS=$as_save_IFS
13967
13968 fi
13969 fi
13970 STRIP=$ac_cv_prog_STRIP
13971 if test -n "$STRIP"; then
13972   { echo "$as_me:$LINENO: result: $STRIP" >&5
13973 echo "${ECHO_T}$STRIP" >&6; }
13974 else
13975   { echo "$as_me:$LINENO: result: no" >&5
13976 echo "${ECHO_T}no" >&6; }
13977 fi
13978
13979
13980 fi
13981 if test -z "$ac_cv_prog_STRIP"; then
13982   ac_ct_STRIP=$STRIP
13983   # Extract the first word of "strip", so it can be a program name with args.
13984 set dummy strip; ac_word=$2
13985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13987 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   if test -n "$ac_ct_STRIP"; then
13991   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13995 do
13996   IFS=$as_save_IFS
13997   test -z "$as_dir" && as_dir=.
13998   for ac_exec_ext in '' $ac_executable_extensions; do
13999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14000     ac_cv_prog_ac_ct_STRIP="strip"
14001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14002     break 2
14003   fi
14004 done
14005 done
14006 IFS=$as_save_IFS
14007
14008 fi
14009 fi
14010 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14011 if test -n "$ac_ct_STRIP"; then
14012   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14013 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14014 else
14015   { echo "$as_me:$LINENO: result: no" >&5
14016 echo "${ECHO_T}no" >&6; }
14017 fi
14018
14019   if test "x$ac_ct_STRIP" = x; then
14020     STRIP=":"
14021   else
14022     case $cross_compiling:$ac_tool_warned in
14023 yes:)
14024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14025 whose name does not start with the host triplet.  If you think this
14026 configuration is useful to you, please write to autoconf@gnu.org." >&5
14027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14028 whose name does not start with the host triplet.  If you think this
14029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14030 ac_tool_warned=yes ;;
14031 esac
14032     STRIP=$ac_ct_STRIP
14033   fi
14034 else
14035   STRIP="$ac_cv_prog_STRIP"
14036 fi
14037
14038
14039 old_CC="$CC"
14040 old_CFLAGS="$CFLAGS"
14041
14042 # Set sane defaults for various variables
14043 test -z "$AR" && AR=ar
14044 test -z "$AR_FLAGS" && AR_FLAGS=cru
14045 test -z "$AS" && AS=as
14046 test -z "$CC" && CC=cc
14047 test -z "$LTCC" && LTCC=$CC
14048 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14049 test -z "$DLLTOOL" && DLLTOOL=dlltool
14050 test -z "$LD" && LD=ld
14051 test -z "$LN_S" && LN_S="ln -s"
14052 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14053 test -z "$NM" && NM=nm
14054 test -z "$SED" && SED=sed
14055 test -z "$OBJDUMP" && OBJDUMP=objdump
14056 test -z "$RANLIB" && RANLIB=:
14057 test -z "$STRIP" && STRIP=:
14058 test -z "$ac_objext" && ac_objext=o
14059
14060 # Determine commands to create old-style static archives.
14061 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14062 old_postinstall_cmds='chmod 644 $oldlib'
14063 old_postuninstall_cmds=
14064
14065 if test -n "$RANLIB"; then
14066   case $host_os in
14067   openbsd*)
14068     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14069     ;;
14070   *)
14071     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14072     ;;
14073   esac
14074   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14075 fi
14076
14077 for cc_temp in $compiler""; do
14078   case $cc_temp in
14079     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14080     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14081     \-*) ;;
14082     *) break;;
14083   esac
14084 done
14085 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14086
14087
14088 # Only perform the check for file, if the check method requires it
14089 case $deplibs_check_method in
14090 file_magic*)
14091   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14092     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14093 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14094 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14095   echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097   case $MAGIC_CMD in
14098 [\\/*] |  ?:[\\/]*)
14099   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14100   ;;
14101 *)
14102   lt_save_MAGIC_CMD="$MAGIC_CMD"
14103   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14104   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14105   for ac_dir in $ac_dummy; do
14106     IFS="$lt_save_ifs"
14107     test -z "$ac_dir" && ac_dir=.
14108     if test -f $ac_dir/${ac_tool_prefix}file; then
14109       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14110       if test -n "$file_magic_test_file"; then
14111         case $deplibs_check_method in
14112         "file_magic "*)
14113           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14114           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14115           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14116             $EGREP "$file_magic_regex" > /dev/null; then
14117             :
14118           else
14119             cat <<EOF 1>&2
14120
14121 *** Warning: the command libtool uses to detect shared libraries,
14122 *** $file_magic_cmd, produces output that libtool cannot recognize.
14123 *** The result is that libtool may fail to recognize shared libraries
14124 *** as such.  This will affect the creation of libtool libraries that
14125 *** depend on shared libraries, but programs linked with such libtool
14126 *** libraries will work regardless of this problem.  Nevertheless, you
14127 *** may want to report the problem to your system manager and/or to
14128 *** bug-libtool@gnu.org
14129
14130 EOF
14131           fi ;;
14132         esac
14133       fi
14134       break
14135     fi
14136   done
14137   IFS="$lt_save_ifs"
14138   MAGIC_CMD="$lt_save_MAGIC_CMD"
14139   ;;
14140 esac
14141 fi
14142
14143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144 if test -n "$MAGIC_CMD"; then
14145   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14146 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14147 else
14148   { echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6; }
14150 fi
14151
14152 if test -z "$lt_cv_path_MAGIC_CMD"; then
14153   if test -n "$ac_tool_prefix"; then
14154     { echo "$as_me:$LINENO: checking for file" >&5
14155 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   case $MAGIC_CMD in
14160 [\\/*] |  ?:[\\/]*)
14161   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14162   ;;
14163 *)
14164   lt_save_MAGIC_CMD="$MAGIC_CMD"
14165   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14166   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14167   for ac_dir in $ac_dummy; do
14168     IFS="$lt_save_ifs"
14169     test -z "$ac_dir" && ac_dir=.
14170     if test -f $ac_dir/file; then
14171       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14172       if test -n "$file_magic_test_file"; then
14173         case $deplibs_check_method in
14174         "file_magic "*)
14175           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14176           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14177           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14178             $EGREP "$file_magic_regex" > /dev/null; then
14179             :
14180           else
14181             cat <<EOF 1>&2
14182
14183 *** Warning: the command libtool uses to detect shared libraries,
14184 *** $file_magic_cmd, produces output that libtool cannot recognize.
14185 *** The result is that libtool may fail to recognize shared libraries
14186 *** as such.  This will affect the creation of libtool libraries that
14187 *** depend on shared libraries, but programs linked with such libtool
14188 *** libraries will work regardless of this problem.  Nevertheless, you
14189 *** may want to report the problem to your system manager and/or to
14190 *** bug-libtool@gnu.org
14191
14192 EOF
14193           fi ;;
14194         esac
14195       fi
14196       break
14197     fi
14198   done
14199   IFS="$lt_save_ifs"
14200   MAGIC_CMD="$lt_save_MAGIC_CMD"
14201   ;;
14202 esac
14203 fi
14204
14205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14206 if test -n "$MAGIC_CMD"; then
14207   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14208 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14209 else
14210   { echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6; }
14212 fi
14213
14214   else
14215     MAGIC_CMD=:
14216   fi
14217 fi
14218
14219   fi
14220   ;;
14221 esac
14222
14223 enable_dlopen=yes
14224 enable_win32_dll=no
14225
14226 # Check whether --enable-libtool-lock was given.
14227 if test "${enable_libtool_lock+set}" = set; then
14228   enableval=$enable_libtool_lock;
14229 fi
14230
14231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14232
14233
14234 # Check whether --with-pic was given.
14235 if test "${with_pic+set}" = set; then
14236   withval=$with_pic; pic_mode="$withval"
14237 else
14238   pic_mode=default
14239 fi
14240
14241 test -z "$pic_mode" && pic_mode=default
14242
14243 # Use C for the default configuration in the libtool script
14244 tagname=
14245 lt_save_CC="$CC"
14246 ac_ext=c
14247 ac_cpp='$CPP $CPPFLAGS'
14248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14251
14252
14253 # Source file extension for C test sources.
14254 ac_ext=c
14255
14256 # Object file extension for compiled C test sources.
14257 objext=o
14258 objext=$objext
14259
14260 # Code to be used in simple compile tests
14261 lt_simple_compile_test_code="int some_variable = 0;\n"
14262
14263 # Code to be used in simple link tests
14264 lt_simple_link_test_code='int main(){return(0);}\n'
14265
14266
14267 # If no C compiler was specified, use CC.
14268 LTCC=${LTCC-"$CC"}
14269
14270 # If no C compiler flags were specified, use CFLAGS.
14271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14272
14273 # Allow CC to be a program name with arguments.
14274 compiler=$CC
14275
14276
14277 # save warnings/boilerplate of simple test code
14278 ac_outfile=conftest.$ac_objext
14279 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14281 _lt_compiler_boilerplate=`cat conftest.err`
14282 $rm conftest*
14283
14284 ac_outfile=conftest.$ac_objext
14285 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14287 _lt_linker_boilerplate=`cat conftest.err`
14288 $rm conftest*
14289
14290
14291
14292 lt_prog_compiler_no_builtin_flag=
14293
14294 if test "$GCC" = yes; then
14295   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14296
14297
14298 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14299 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14300 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   lt_cv_prog_compiler_rtti_exceptions=no
14304   ac_outfile=conftest.$ac_objext
14305    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14306    lt_compiler_flag="-fno-rtti -fno-exceptions"
14307    # Insert the option either (1) after the last *FLAGS variable, or
14308    # (2) before a word containing "conftest.", or (3) at the end.
14309    # Note that $ac_compile itself does not contain backslashes and begins
14310    # with a dollar sign (not a hyphen), so the echo should work correctly.
14311    # The option is referenced via a variable to avoid confusing sed.
14312    lt_compile=`echo "$ac_compile" | $SED \
14313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315    -e 's:$: $lt_compiler_flag:'`
14316    (eval echo "\"\$as_me:14316: $lt_compile\"" >&5)
14317    (eval "$lt_compile" 2>conftest.err)
14318    ac_status=$?
14319    cat conftest.err >&5
14320    echo "$as_me:14320: \$? = $ac_status" >&5
14321    if (exit $ac_status) && test -s "$ac_outfile"; then
14322      # The compiler can only warn and ignore the option if not recognized
14323      # So say no if there are warnings other than the usual output.
14324      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327        lt_cv_prog_compiler_rtti_exceptions=yes
14328      fi
14329    fi
14330    $rm conftest*
14331
14332 fi
14333 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14334 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14335
14336 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14337     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14338 else
14339     :
14340 fi
14341
14342 fi
14343
14344 lt_prog_compiler_wl=
14345 lt_prog_compiler_pic=
14346 lt_prog_compiler_static=
14347
14348 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14349 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14350
14351   if test "$GCC" = yes; then
14352     lt_prog_compiler_wl='-Wl,'
14353     lt_prog_compiler_static='-static'
14354
14355     case $host_os in
14356       aix*)
14357       # All AIX code is PIC.
14358       if test "$host_cpu" = ia64; then
14359         # AIX 5 now supports IA64 processor
14360         lt_prog_compiler_static='-Bstatic'
14361       fi
14362       ;;
14363
14364     amigaos*)
14365       # FIXME: we need at least 68020 code to build shared libraries, but
14366       # adding the `-m68020' flag to GCC prevents building anything better,
14367       # like `-m68040'.
14368       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14369       ;;
14370
14371     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14372       # PIC is the default for these OSes.
14373       ;;
14374
14375     mingw* | pw32* | os2*)
14376       # This hack is so that the source file can tell whether it is being
14377       # built for inclusion in a dll (and should export symbols for example).
14378       lt_prog_compiler_pic='-DDLL_EXPORT'
14379       ;;
14380
14381     darwin* | rhapsody*)
14382       # PIC is the default on this platform
14383       # Common symbols not allowed in MH_DYLIB files
14384       lt_prog_compiler_pic='-fno-common'
14385       ;;
14386
14387     interix3*)
14388       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14389       # Instead, we relocate shared libraries at runtime.
14390       ;;
14391
14392     msdosdjgpp*)
14393       # Just because we use GCC doesn't mean we suddenly get shared libraries
14394       # on systems that don't support them.
14395       lt_prog_compiler_can_build_shared=no
14396       enable_shared=no
14397       ;;
14398
14399     sysv4*MP*)
14400       if test -d /usr/nec; then
14401         lt_prog_compiler_pic=-Kconform_pic
14402       fi
14403       ;;
14404
14405     hpux*)
14406       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14407       # not for PA HP-UX.
14408       case $host_cpu in
14409       hppa*64*|ia64*)
14410         # +Z the default
14411         ;;
14412       *)
14413         lt_prog_compiler_pic='-fPIC'
14414         ;;
14415       esac
14416       ;;
14417
14418     *)
14419       lt_prog_compiler_pic='-fPIC'
14420       ;;
14421     esac
14422   else
14423     # PORTME Check for flag to pass linker flags through the system compiler.
14424     case $host_os in
14425     aix*)
14426       lt_prog_compiler_wl='-Wl,'
14427       if test "$host_cpu" = ia64; then
14428         # AIX 5 now supports IA64 processor
14429         lt_prog_compiler_static='-Bstatic'
14430       else
14431         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14432       fi
14433       ;;
14434       darwin*)
14435         # PIC is the default on this platform
14436         # Common symbols not allowed in MH_DYLIB files
14437        case $cc_basename in
14438          xlc*)
14439          lt_prog_compiler_pic='-qnocommon'
14440          lt_prog_compiler_wl='-Wl,'
14441          ;;
14442        esac
14443        ;;
14444
14445     mingw* | pw32* | os2*)
14446       # This hack is so that the source file can tell whether it is being
14447       # built for inclusion in a dll (and should export symbols for example).
14448       lt_prog_compiler_pic='-DDLL_EXPORT'
14449       ;;
14450
14451     hpux9* | hpux10* | hpux11*)
14452       lt_prog_compiler_wl='-Wl,'
14453       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454       # not for PA HP-UX.
14455       case $host_cpu in
14456       hppa*64*|ia64*)
14457         # +Z the default
14458         ;;
14459       *)
14460         lt_prog_compiler_pic='+Z'
14461         ;;
14462       esac
14463       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14464       lt_prog_compiler_static='${wl}-a ${wl}archive'
14465       ;;
14466
14467     irix5* | irix6* | nonstopux*)
14468       lt_prog_compiler_wl='-Wl,'
14469       # PIC (with -KPIC) is the default.
14470       lt_prog_compiler_static='-non_shared'
14471       ;;
14472
14473     newsos6)
14474       lt_prog_compiler_pic='-KPIC'
14475       lt_prog_compiler_static='-Bstatic'
14476       ;;
14477
14478     linux*)
14479       case $cc_basename in
14480       icc* | ecc*)
14481         lt_prog_compiler_wl='-Wl,'
14482         lt_prog_compiler_pic='-KPIC'
14483         lt_prog_compiler_static='-static'
14484         ;;
14485       pgcc* | pgf77* | pgf90* | pgf95*)
14486         # Portland Group compilers (*not* the Pentium gcc compiler,
14487         # which looks to be a dead project)
14488         lt_prog_compiler_wl='-Wl,'
14489         lt_prog_compiler_pic='-fpic'
14490         lt_prog_compiler_static='-Bstatic'
14491         ;;
14492       ccc*)
14493         lt_prog_compiler_wl='-Wl,'
14494         # All Alpha code is PIC.
14495         lt_prog_compiler_static='-non_shared'
14496         ;;
14497       esac
14498       ;;
14499
14500     osf3* | osf4* | osf5*)
14501       lt_prog_compiler_wl='-Wl,'
14502       # All OSF/1 code is PIC.
14503       lt_prog_compiler_static='-non_shared'
14504       ;;
14505
14506     solaris*)
14507       lt_prog_compiler_pic='-KPIC'
14508       lt_prog_compiler_static='-Bstatic'
14509       case $cc_basename in
14510       f77* | f90* | f95*)
14511         lt_prog_compiler_wl='-Qoption ld ';;
14512       *)
14513         lt_prog_compiler_wl='-Wl,';;
14514       esac
14515       ;;
14516
14517     sunos4*)
14518       lt_prog_compiler_wl='-Qoption ld '
14519       lt_prog_compiler_pic='-PIC'
14520       lt_prog_compiler_static='-Bstatic'
14521       ;;
14522
14523     sysv4 | sysv4.2uw2* | sysv4.3*)
14524       lt_prog_compiler_wl='-Wl,'
14525       lt_prog_compiler_pic='-KPIC'
14526       lt_prog_compiler_static='-Bstatic'
14527       ;;
14528
14529     sysv4*MP*)
14530       if test -d /usr/nec ;then
14531         lt_prog_compiler_pic='-Kconform_pic'
14532         lt_prog_compiler_static='-Bstatic'
14533       fi
14534       ;;
14535
14536     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14537       lt_prog_compiler_wl='-Wl,'
14538       lt_prog_compiler_pic='-KPIC'
14539       lt_prog_compiler_static='-Bstatic'
14540       ;;
14541
14542     unicos*)
14543       lt_prog_compiler_wl='-Wl,'
14544       lt_prog_compiler_can_build_shared=no
14545       ;;
14546
14547     uts4*)
14548       lt_prog_compiler_pic='-pic'
14549       lt_prog_compiler_static='-Bstatic'
14550       ;;
14551
14552     *)
14553       lt_prog_compiler_can_build_shared=no
14554       ;;
14555     esac
14556   fi
14557
14558 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14559 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14560
14561 #
14562 # Check to make sure the PIC flag actually works.
14563 #
14564 if test -n "$lt_prog_compiler_pic"; then
14565
14566 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14567 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14568 if test "${lt_prog_compiler_pic_works+set}" = set; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   lt_prog_compiler_pic_works=no
14572   ac_outfile=conftest.$ac_objext
14573    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14574    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14575    # Insert the option either (1) after the last *FLAGS variable, or
14576    # (2) before a word containing "conftest.", or (3) at the end.
14577    # Note that $ac_compile itself does not contain backslashes and begins
14578    # with a dollar sign (not a hyphen), so the echo should work correctly.
14579    # The option is referenced via a variable to avoid confusing sed.
14580    lt_compile=`echo "$ac_compile" | $SED \
14581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583    -e 's:$: $lt_compiler_flag:'`
14584    (eval echo "\"\$as_me:14584: $lt_compile\"" >&5)
14585    (eval "$lt_compile" 2>conftest.err)
14586    ac_status=$?
14587    cat conftest.err >&5
14588    echo "$as_me:14588: \$? = $ac_status" >&5
14589    if (exit $ac_status) && test -s "$ac_outfile"; then
14590      # The compiler can only warn and ignore the option if not recognized
14591      # So say no if there are warnings other than the usual output.
14592      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14593      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14595        lt_prog_compiler_pic_works=yes
14596      fi
14597    fi
14598    $rm conftest*
14599
14600 fi
14601 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14602 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14603
14604 if test x"$lt_prog_compiler_pic_works" = xyes; then
14605     case $lt_prog_compiler_pic in
14606      "" | " "*) ;;
14607      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14608      esac
14609 else
14610     lt_prog_compiler_pic=
14611      lt_prog_compiler_can_build_shared=no
14612 fi
14613
14614 fi
14615 case $host_os in
14616   # For platforms which do not support PIC, -DPIC is meaningless:
14617   *djgpp*)
14618     lt_prog_compiler_pic=
14619     ;;
14620   *)
14621     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14622     ;;
14623 esac
14624
14625 #
14626 # Check to make sure the static flag actually works.
14627 #
14628 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14629 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14630 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14631 if test "${lt_prog_compiler_static_works+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   lt_prog_compiler_static_works=no
14635    save_LDFLAGS="$LDFLAGS"
14636    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14637    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14638    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14639      # The linker can only warn and ignore the option if not recognized
14640      # So say no if there are warnings
14641      if test -s conftest.err; then
14642        # Append any errors to the config.log.
14643        cat conftest.err 1>&5
14644        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14645        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646        if diff conftest.exp conftest.er2 >/dev/null; then
14647          lt_prog_compiler_static_works=yes
14648        fi
14649      else
14650        lt_prog_compiler_static_works=yes
14651      fi
14652    fi
14653    $rm conftest*
14654    LDFLAGS="$save_LDFLAGS"
14655
14656 fi
14657 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14658 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14659
14660 if test x"$lt_prog_compiler_static_works" = xyes; then
14661     :
14662 else
14663     lt_prog_compiler_static=
14664 fi
14665
14666
14667 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14668 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14669 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   lt_cv_prog_compiler_c_o=no
14673    $rm -r conftest 2>/dev/null
14674    mkdir conftest
14675    cd conftest
14676    mkdir out
14677    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14678
14679    lt_compiler_flag="-o out/conftest2.$ac_objext"
14680    # Insert the option either (1) after the last *FLAGS variable, or
14681    # (2) before a word containing "conftest.", or (3) at the end.
14682    # Note that $ac_compile itself does not contain backslashes and begins
14683    # with a dollar sign (not a hyphen), so the echo should work correctly.
14684    lt_compile=`echo "$ac_compile" | $SED \
14685    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14686    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14687    -e 's:$: $lt_compiler_flag:'`
14688    (eval echo "\"\$as_me:14688: $lt_compile\"" >&5)
14689    (eval "$lt_compile" 2>out/conftest.err)
14690    ac_status=$?
14691    cat out/conftest.err >&5
14692    echo "$as_me:14692: \$? = $ac_status" >&5
14693    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14694    then
14695      # The compiler can only warn and ignore the option if not recognized
14696      # So say no if there are warnings
14697      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14698      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14699      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14700        lt_cv_prog_compiler_c_o=yes
14701      fi
14702    fi
14703    chmod u+w . 2>&5
14704    $rm conftest*
14705    # SGI C++ compiler will create directory out/ii_files/ for
14706    # template instantiation
14707    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14708    $rm out/* && rmdir out
14709    cd ..
14710    rmdir conftest
14711    $rm conftest*
14712
14713 fi
14714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14715 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14716
14717
14718 hard_links="nottested"
14719 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14720   # do not overwrite the value of need_locks provided by the user
14721   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14722 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14723   hard_links=yes
14724   $rm conftest*
14725   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726   touch conftest.a
14727   ln conftest.a conftest.b 2>&5 || hard_links=no
14728   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14729   { echo "$as_me:$LINENO: result: $hard_links" >&5
14730 echo "${ECHO_T}$hard_links" >&6; }
14731   if test "$hard_links" = no; then
14732     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14733 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14734     need_locks=warn
14735   fi
14736 else
14737   need_locks=no
14738 fi
14739
14740 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14742
14743   runpath_var=
14744   allow_undefined_flag=
14745   enable_shared_with_static_runtimes=no
14746   archive_cmds=
14747   archive_expsym_cmds=
14748   old_archive_From_new_cmds=
14749   old_archive_from_expsyms_cmds=
14750   export_dynamic_flag_spec=
14751   whole_archive_flag_spec=
14752   thread_safe_flag_spec=
14753   hardcode_libdir_flag_spec=
14754   hardcode_libdir_flag_spec_ld=
14755   hardcode_libdir_separator=
14756   hardcode_direct=no
14757   hardcode_minus_L=no
14758   hardcode_shlibpath_var=unsupported
14759   link_all_deplibs=unknown
14760   hardcode_automatic=no
14761   module_cmds=
14762   module_expsym_cmds=
14763   always_export_symbols=no
14764   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14765   # include_expsyms should be a list of space-separated symbols to be *always*
14766   # included in the symbol list
14767   include_expsyms=
14768   # exclude_expsyms can be an extended regexp of symbols to exclude
14769   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14770   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14771   # as well as any symbol that contains `d'.
14772   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14773   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14774   # platforms (ab)use it in PIC code, but their linkers get confused if
14775   # the symbol is explicitly referenced.  Since portable code cannot
14776   # rely on this symbol name, it's probably fine to never include it in
14777   # preloaded symbol tables.
14778   extract_expsyms_cmds=
14779   # Just being paranoid about ensuring that cc_basename is set.
14780   for cc_temp in $compiler""; do
14781   case $cc_temp in
14782     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14783     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14784     \-*) ;;
14785     *) break;;
14786   esac
14787 done
14788 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14789
14790   case $host_os in
14791   cygwin* | mingw* | pw32*)
14792     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14793     # When not using gcc, we currently assume that we are using
14794     # Microsoft Visual C++.
14795     if test "$GCC" != yes; then
14796       with_gnu_ld=no
14797     fi
14798     ;;
14799   interix*)
14800     # we just hope/assume this is gcc and not c89 (= MSVC++)
14801     with_gnu_ld=yes
14802     ;;
14803   openbsd*)
14804     with_gnu_ld=no
14805     ;;
14806   esac
14807
14808   ld_shlibs=yes
14809   if test "$with_gnu_ld" = yes; then
14810     # If archive_cmds runs LD, not CC, wlarc should be empty
14811     wlarc='${wl}'
14812
14813     # Set some defaults for GNU ld with shared library support. These
14814     # are reset later if shared libraries are not supported. Putting them
14815     # here allows them to be overridden if necessary.
14816     runpath_var=LD_RUN_PATH
14817     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14818     export_dynamic_flag_spec='${wl}--export-dynamic'
14819     # ancient GNU ld didn't support --whole-archive et. al.
14820     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14821         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14822       else
14823         whole_archive_flag_spec=
14824     fi
14825     supports_anon_versioning=no
14826     case `$LD -v 2>/dev/null` in
14827       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14828       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14829       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14830       *\ 2.11.*) ;; # other 2.11 versions
14831       *) supports_anon_versioning=yes ;;
14832     esac
14833
14834     # See if GNU ld supports shared libraries.
14835     case $host_os in
14836     aix3* | aix4* | aix5*)
14837       # On AIX/PPC, the GNU linker is very broken
14838       if test "$host_cpu" != ia64; then
14839         ld_shlibs=no
14840         cat <<EOF 1>&2
14841
14842 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14843 *** to be unable to reliably create shared libraries on AIX.
14844 *** Therefore, libtool is disabling shared libraries support.  If you
14845 *** really care for shared libraries, you may want to modify your PATH
14846 *** so that a non-GNU linker is found, and then restart.
14847
14848 EOF
14849       fi
14850       ;;
14851
14852     amigaos*)
14853       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)'
14854       hardcode_libdir_flag_spec='-L$libdir'
14855       hardcode_minus_L=yes
14856
14857       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14858       # that the semantics of dynamic libraries on AmigaOS, at least up
14859       # to version 4, is to share data among multiple programs linked
14860       # with the same dynamic library.  Since this doesn't match the
14861       # behavior of shared libraries on other platforms, we can't use
14862       # them.
14863       ld_shlibs=no
14864       ;;
14865
14866     beos*)
14867       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14868         allow_undefined_flag=unsupported
14869         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14870         # support --undefined.  This deserves some investigation.  FIXME
14871         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872       else
14873         ld_shlibs=no
14874       fi
14875       ;;
14876
14877     cygwin* | mingw* | pw32*)
14878       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14879       # as there is no search path for DLLs.
14880       hardcode_libdir_flag_spec='-L$libdir'
14881       allow_undefined_flag=unsupported
14882       always_export_symbols=no
14883       enable_shared_with_static_runtimes=yes
14884       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14885
14886       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14887         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14888         # If the export-symbols file already is a .def file (1st line
14889         # is EXPORTS), use it as is; otherwise, prepend...
14890         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14891           cp $export_symbols $output_objdir/$soname.def;
14892         else
14893           echo EXPORTS > $output_objdir/$soname.def;
14894           cat $export_symbols >> $output_objdir/$soname.def;
14895         fi~
14896         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14897       else
14898         ld_shlibs=no
14899       fi
14900       ;;
14901
14902     interix3*)
14903       hardcode_direct=no
14904       hardcode_shlibpath_var=no
14905       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14906       export_dynamic_flag_spec='${wl}-E'
14907       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14908       # Instead, shared libraries are loaded at an image base (0x10000000 by
14909       # default) and relocated if they conflict, which is a slow very memory
14910       # consuming and fragmenting process.  To avoid this, we pick a random,
14911       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14912       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14913       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14914       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'
14915       ;;
14916
14917     linux*)
14918       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919         tmp_addflag=
14920         case $cc_basename,$host_cpu in
14921         pgcc*)                          # Portland Group C compiler
14922           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'
14923           tmp_addflag=' $pic_flag'
14924           ;;
14925         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14926           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'
14927           tmp_addflag=' $pic_flag -Mnomain' ;;
14928         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14929           tmp_addflag=' -i_dynamic' ;;
14930         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14931           tmp_addflag=' -i_dynamic -nofor_main' ;;
14932         ifc* | ifort*)                  # Intel Fortran compiler
14933           tmp_addflag=' -nofor_main' ;;
14934         esac
14935         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14936
14937         if test $supports_anon_versioning = yes; then
14938           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14939   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14940   $echo "local: *; };" >> $output_objdir/$libname.ver~
14941           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14942         fi
14943       else
14944         ld_shlibs=no
14945       fi
14946       ;;
14947
14948     netbsd*)
14949       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14950         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14951         wlarc=
14952       else
14953         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14955       fi
14956       ;;
14957
14958     solaris*)
14959       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14960         ld_shlibs=no
14961         cat <<EOF 1>&2
14962
14963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14964 *** create shared libraries on Solaris systems.  Therefore, libtool
14965 *** is disabling shared libraries support.  We urge you to upgrade GNU
14966 *** binutils to release 2.9.1 or newer.  Another option is to modify
14967 *** your PATH or compiler configuration so that the native linker is
14968 *** used, and then restart.
14969
14970 EOF
14971       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14972         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14974       else
14975         ld_shlibs=no
14976       fi
14977       ;;
14978
14979     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14980       case `$LD -v 2>&1` in
14981         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14982         ld_shlibs=no
14983         cat <<_LT_EOF 1>&2
14984
14985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14986 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14987 *** is disabling shared libraries support.  We urge you to upgrade GNU
14988 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14989 *** your PATH or compiler configuration so that the native linker is
14990 *** used, and then restart.
14991
14992 _LT_EOF
14993         ;;
14994         *)
14995           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14996             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14997             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14998             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14999           else
15000             ld_shlibs=no
15001           fi
15002         ;;
15003       esac
15004       ;;
15005
15006     sunos4*)
15007       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15008       wlarc=
15009       hardcode_direct=yes
15010       hardcode_shlibpath_var=no
15011       ;;
15012
15013     *)
15014       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15017       else
15018         ld_shlibs=no
15019       fi
15020       ;;
15021     esac
15022
15023     if test "$ld_shlibs" = no; then
15024       runpath_var=
15025       hardcode_libdir_flag_spec=
15026       export_dynamic_flag_spec=
15027       whole_archive_flag_spec=
15028     fi
15029   else
15030     # PORTME fill in a description of your system's linker (not GNU ld)
15031     case $host_os in
15032     aix3*)
15033       allow_undefined_flag=unsupported
15034       always_export_symbols=yes
15035       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'
15036       # Note: this linker hardcodes the directories in LIBPATH if there
15037       # are no directories specified by -L.
15038       hardcode_minus_L=yes
15039       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15040         # Neither direct hardcoding nor static linking is supported with a
15041         # broken collect2.
15042         hardcode_direct=unsupported
15043       fi
15044       ;;
15045
15046     aix4* | aix5*)
15047       if test "$host_cpu" = ia64; then
15048         # On IA64, the linker does run time linking by default, so we don't
15049         # have to do anything special.
15050         aix_use_runtimelinking=no
15051         exp_sym_flag='-Bexport'
15052         no_entry_flag=""
15053       else
15054         # If we're using GNU nm, then we don't want the "-C" option.
15055         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15056         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15057           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'
15058         else
15059           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'
15060         fi
15061         aix_use_runtimelinking=no
15062
15063         # Test if we are trying to use run time linking or normal
15064         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15065         # need to do runtime linking.
15066         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15067           for ld_flag in $LDFLAGS; do
15068           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15069             aix_use_runtimelinking=yes
15070             break
15071           fi
15072           done
15073           ;;
15074         esac
15075
15076         exp_sym_flag='-bexport'
15077         no_entry_flag='-bnoentry'
15078       fi
15079
15080       # When large executables or shared objects are built, AIX ld can
15081       # have problems creating the table of contents.  If linking a library
15082       # or program results in "error TOC overflow" add -mminimal-toc to
15083       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15084       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15085
15086       archive_cmds=''
15087       hardcode_direct=yes
15088       hardcode_libdir_separator=':'
15089       link_all_deplibs=yes
15090
15091       if test "$GCC" = yes; then
15092         case $host_os in aix4.[012]|aix4.[012].*)
15093         # We only want to do this on AIX 4.2 and lower, the check
15094         # below for broken collect2 doesn't work under 4.3+
15095           collect2name=`${CC} -print-prog-name=collect2`
15096           if test -f "$collect2name" && \
15097            strings "$collect2name" | grep resolve_lib_name >/dev/null
15098           then
15099           # We have reworked collect2
15100           hardcode_direct=yes
15101           else
15102           # We have old collect2
15103           hardcode_direct=unsupported
15104           # It fails to find uninstalled libraries when the uninstalled
15105           # path is not listed in the libpath.  Setting hardcode_minus_L
15106           # to unsupported forces relinking
15107           hardcode_minus_L=yes
15108           hardcode_libdir_flag_spec='-L$libdir'
15109           hardcode_libdir_separator=
15110           fi
15111           ;;
15112         esac
15113         shared_flag='-shared'
15114         if test "$aix_use_runtimelinking" = yes; then
15115           shared_flag="$shared_flag "'${wl}-G'
15116         fi
15117       else
15118         # not using gcc
15119         if test "$host_cpu" = ia64; then
15120         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15121         # chokes on -Wl,-G. The following line is correct:
15122           shared_flag='-G'
15123         else
15124           if test "$aix_use_runtimelinking" = yes; then
15125             shared_flag='${wl}-G'
15126           else
15127             shared_flag='${wl}-bM:SRE'
15128           fi
15129         fi
15130       fi
15131
15132       # It seems that -bexpall does not export symbols beginning with
15133       # underscore (_), so it is better to generate a list of symbols to export.
15134       always_export_symbols=yes
15135       if test "$aix_use_runtimelinking" = yes; then
15136         # Warning - without using the other runtime loading flags (-brtl),
15137         # -berok will link without error, but may produce a broken library.
15138         allow_undefined_flag='-berok'
15139        # Determine the default libpath from the value encoded in an empty executable.
15140        cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h.  */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h.  */
15146
15147 int
15148 main ()
15149 {
15150
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_link") 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } &&
15169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15170   { (case "(($ac_try" in
15171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172   *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175   (eval "$ac_try") 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; } &&
15179          { ac_try='test -s conftest$ac_exeext'
15180   { (case "(($ac_try" in
15181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182   *) ac_try_echo=$ac_try;;
15183 esac
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185   (eval "$ac_try") 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189
15190 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15191 }'`
15192 # Check for a 64-bit object if we didn't find anything.
15193 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; }
15194 }'`; fi
15195 else
15196   echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199
15200 fi
15201
15202 rm -f core conftest.err conftest.$ac_objext \
15203       conftest$ac_exeext conftest.$ac_ext
15204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15205
15206        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15207         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"
15208        else
15209         if test "$host_cpu" = ia64; then
15210           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15211           allow_undefined_flag="-z nodefs"
15212           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"
15213         else
15214          # Determine the default libpath from the value encoded in an empty executable.
15215          cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h.  */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h.  */
15221
15222 int
15223 main ()
15224 {
15225
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_link") 2>conftest.er1
15238   ac_status=$?
15239   grep -v '^ *+' conftest.er1 >conftest.err
15240   rm -f conftest.er1
15241   cat conftest.err >&5
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } &&
15244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245   { (case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_try") 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; } &&
15254          { ac_try='test -s conftest$ac_exeext'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; }; then
15264
15265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15266 }'`
15267 # Check for a 64-bit object if we didn't find anything.
15268 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; }
15269 }'`; fi
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext \
15278       conftest$ac_exeext conftest.$ac_ext
15279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15280
15281          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15282           # Warning - without using the other run time loading flags,
15283           # -berok will link without error, but may produce a broken library.
15284           no_undefined_flag=' ${wl}-bernotok'
15285           allow_undefined_flag=' ${wl}-berok'
15286           # Exported symbols can be pulled into shared objects from archives
15287           whole_archive_flag_spec='$convenience'
15288           archive_cmds_need_lc=yes
15289           # This is similar to how AIX traditionally builds its shared libraries.
15290           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'
15291         fi
15292       fi
15293       ;;
15294
15295     amigaos*)
15296       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)'
15297       hardcode_libdir_flag_spec='-L$libdir'
15298       hardcode_minus_L=yes
15299       # see comment about different semantics on the GNU ld section
15300       ld_shlibs=no
15301       ;;
15302
15303     bsdi[45]*)
15304       export_dynamic_flag_spec=-rdynamic
15305       ;;
15306
15307     cygwin* | mingw* | pw32*)
15308       # When not using gcc, we currently assume that we are using
15309       # Microsoft Visual C++.
15310       # hardcode_libdir_flag_spec is actually meaningless, as there is
15311       # no search path for DLLs.
15312       hardcode_libdir_flag_spec=' '
15313       allow_undefined_flag=unsupported
15314       # Tell ltmain to make .lib files, not .a files.
15315       libext=lib
15316       # Tell ltmain to make .dll files, not .so files.
15317       shrext_cmds=".dll"
15318       # FIXME: Setting linknames here is a bad hack.
15319       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15320       # The linker will automatically build a .lib file if we build a DLL.
15321       old_archive_From_new_cmds='true'
15322       # FIXME: Should let the user specify the lib program.
15323       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15324       fix_srcfile_path='`cygpath -w "$srcfile"`'
15325       enable_shared_with_static_runtimes=yes
15326       ;;
15327
15328     darwin* | rhapsody*)
15329       case $host_os in
15330         rhapsody* | darwin1.[012])
15331          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15332          ;;
15333        *) # Darwin 1.3 on
15334          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15335            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15336          else
15337            case ${MACOSX_DEPLOYMENT_TARGET} in
15338              10.[012])
15339                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15340                ;;
15341              10.*)
15342                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15343                ;;
15344            esac
15345          fi
15346          ;;
15347       esac
15348       archive_cmds_need_lc=no
15349       hardcode_direct=no
15350       hardcode_automatic=yes
15351       hardcode_shlibpath_var=unsupported
15352       whole_archive_flag_spec=''
15353       link_all_deplibs=yes
15354     if test "$GCC" = yes ; then
15355         output_verbose_link_cmd='echo'
15356         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15357       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15358       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15359       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}'
15360       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}'
15361     else
15362       case $cc_basename in
15363         xlc*)
15364          output_verbose_link_cmd='echo'
15365          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15366          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15367           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15368          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}'
15369           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}'
15370           ;;
15371        *)
15372          ld_shlibs=no
15373           ;;
15374       esac
15375     fi
15376       ;;
15377
15378     dgux*)
15379       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15380       hardcode_libdir_flag_spec='-L$libdir'
15381       hardcode_shlibpath_var=no
15382       ;;
15383
15384     freebsd1*)
15385       ld_shlibs=no
15386       ;;
15387
15388     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15389     # support.  Future versions do this automatically, but an explicit c++rt0.o
15390     # does not break anything, and helps significantly (at the cost of a little
15391     # extra space).
15392     freebsd2.2*)
15393       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15394       hardcode_libdir_flag_spec='-R$libdir'
15395       hardcode_direct=yes
15396       hardcode_shlibpath_var=no
15397       ;;
15398
15399     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15400     freebsd2*)
15401       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15402       hardcode_direct=yes
15403       hardcode_minus_L=yes
15404       hardcode_shlibpath_var=no
15405       ;;
15406
15407     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15408     freebsd* | kfreebsd*-gnu | dragonfly*)
15409       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15410       hardcode_libdir_flag_spec='-R$libdir'
15411       hardcode_direct=yes
15412       hardcode_shlibpath_var=no
15413       ;;
15414
15415     hpux9*)
15416       if test "$GCC" = yes; then
15417         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'
15418       else
15419         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'
15420       fi
15421       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15422       hardcode_libdir_separator=:
15423       hardcode_direct=yes
15424
15425       # hardcode_minus_L: Not really in the search PATH,
15426       # but as the default location of the library.
15427       hardcode_minus_L=yes
15428       export_dynamic_flag_spec='${wl}-E'
15429       ;;
15430
15431     hpux10*)
15432       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15433         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434       else
15435         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15436       fi
15437       if test "$with_gnu_ld" = no; then
15438         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15439         hardcode_libdir_separator=:
15440
15441         hardcode_direct=yes
15442         export_dynamic_flag_spec='${wl}-E'
15443
15444         # hardcode_minus_L: Not really in the search PATH,
15445         # but as the default location of the library.
15446         hardcode_minus_L=yes
15447       fi
15448       ;;
15449
15450     hpux11*)
15451       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15452         case $host_cpu in
15453         hppa*64*)
15454           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15455           ;;
15456         ia64*)
15457           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15458           ;;
15459         *)
15460           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15461           ;;
15462         esac
15463       else
15464         case $host_cpu in
15465         hppa*64*)
15466           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15467           ;;
15468         ia64*)
15469           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15470           ;;
15471         *)
15472           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15473           ;;
15474         esac
15475       fi
15476       if test "$with_gnu_ld" = no; then
15477         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15478         hardcode_libdir_separator=:
15479
15480         case $host_cpu in
15481         hppa*64*|ia64*)
15482           hardcode_libdir_flag_spec_ld='+b $libdir'
15483           hardcode_direct=no
15484           hardcode_shlibpath_var=no
15485           ;;
15486         *)
15487           hardcode_direct=yes
15488           export_dynamic_flag_spec='${wl}-E'
15489
15490           # hardcode_minus_L: Not really in the search PATH,
15491           # but as the default location of the library.
15492           hardcode_minus_L=yes
15493           ;;
15494         esac
15495       fi
15496       ;;
15497
15498     irix5* | irix6* | nonstopux*)
15499       if test "$GCC" = yes; then
15500         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'
15501       else
15502         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'
15503         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15504       fi
15505       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15506       hardcode_libdir_separator=:
15507       link_all_deplibs=yes
15508       ;;
15509
15510     netbsd*)
15511       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15512         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15513       else
15514         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15515       fi
15516       hardcode_libdir_flag_spec='-R$libdir'
15517       hardcode_direct=yes
15518       hardcode_shlibpath_var=no
15519       ;;
15520
15521     newsos6)
15522       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523       hardcode_direct=yes
15524       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15525       hardcode_libdir_separator=:
15526       hardcode_shlibpath_var=no
15527       ;;
15528
15529     openbsd*)
15530       hardcode_direct=yes
15531       hardcode_shlibpath_var=no
15532       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15533         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15534         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15535         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15536         export_dynamic_flag_spec='${wl}-E'
15537       else
15538        case $host_os in
15539          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15540            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15541            hardcode_libdir_flag_spec='-R$libdir'
15542            ;;
15543          *)
15544            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15545            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15546            ;;
15547        esac
15548       fi
15549       ;;
15550
15551     os2*)
15552       hardcode_libdir_flag_spec='-L$libdir'
15553       hardcode_minus_L=yes
15554       allow_undefined_flag=unsupported
15555       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'
15556       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15557       ;;
15558
15559     osf3*)
15560       if test "$GCC" = yes; then
15561         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15562         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'
15563       else
15564         allow_undefined_flag=' -expect_unresolved \*'
15565         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'
15566       fi
15567       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15568       hardcode_libdir_separator=:
15569       ;;
15570
15571     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15572       if test "$GCC" = yes; then
15573         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15574         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'
15575         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15576       else
15577         allow_undefined_flag=' -expect_unresolved \*'
15578         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'
15579         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15580         $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'
15581
15582         # Both c and cxx compiler support -rpath directly
15583         hardcode_libdir_flag_spec='-rpath $libdir'
15584       fi
15585       hardcode_libdir_separator=:
15586       ;;
15587
15588     solaris*)
15589       no_undefined_flag=' -z text'
15590       if test "$GCC" = yes; then
15591         wlarc='${wl}'
15592         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15594           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15595       else
15596         wlarc=''
15597         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15599         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15600       fi
15601       hardcode_libdir_flag_spec='-R$libdir'
15602       hardcode_shlibpath_var=no
15603       case $host_os in
15604       solaris2.[0-5] | solaris2.[0-5].*) ;;
15605       *)
15606         # The compiler driver will combine linker options so we
15607         # cannot just pass the convience library names through
15608         # without $wl, iff we do not link with $LD.
15609         # Luckily, gcc supports the same syntax we need for Sun Studio.
15610         # Supported since Solaris 2.6 (maybe 2.5.1?)
15611         case $wlarc in
15612         '')
15613           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15614         *)
15615           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' ;;
15616         esac ;;
15617       esac
15618       link_all_deplibs=yes
15619       ;;
15620
15621     sunos4*)
15622       if test "x$host_vendor" = xsequent; then
15623         # Use $CC to link under sequent, because it throws in some extra .o
15624         # files that make .init and .fini sections work.
15625         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15626       else
15627         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15628       fi
15629       hardcode_libdir_flag_spec='-L$libdir'
15630       hardcode_direct=yes
15631       hardcode_minus_L=yes
15632       hardcode_shlibpath_var=no
15633       ;;
15634
15635     sysv4)
15636       case $host_vendor in
15637         sni)
15638           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639           hardcode_direct=yes # is this really true???
15640         ;;
15641         siemens)
15642           ## LD is ld it makes a PLAMLIB
15643           ## CC just makes a GrossModule.
15644           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15645           reload_cmds='$CC -r -o $output$reload_objs'
15646           hardcode_direct=no
15647         ;;
15648         motorola)
15649           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15650           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15651         ;;
15652       esac
15653       runpath_var='LD_RUN_PATH'
15654       hardcode_shlibpath_var=no
15655       ;;
15656
15657     sysv4.3*)
15658       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659       hardcode_shlibpath_var=no
15660       export_dynamic_flag_spec='-Bexport'
15661       ;;
15662
15663     sysv4*MP*)
15664       if test -d /usr/nec; then
15665         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666         hardcode_shlibpath_var=no
15667         runpath_var=LD_RUN_PATH
15668         hardcode_runpath_var=yes
15669         ld_shlibs=yes
15670       fi
15671       ;;
15672
15673     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15674       no_undefined_flag='${wl}-z,text'
15675       archive_cmds_need_lc=no
15676       hardcode_shlibpath_var=no
15677       runpath_var='LD_RUN_PATH'
15678
15679       if test "$GCC" = yes; then
15680         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15681         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15682       else
15683         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15685       fi
15686       ;;
15687
15688     sysv5* | sco3.2v5* | sco5v6*)
15689       # Note: We can NOT use -z defs as we might desire, because we do not
15690       # link with -lc, and that would cause any symbols used from libc to
15691       # always be unresolved, which means just about no library would
15692       # ever link correctly.  If we're not using GNU ld we use -z text
15693       # though, which does catch some bad symbols but isn't as heavy-handed
15694       # as -z defs.
15695       no_undefined_flag='${wl}-z,text'
15696       allow_undefined_flag='${wl}-z,nodefs'
15697       archive_cmds_need_lc=no
15698       hardcode_shlibpath_var=no
15699       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15700       hardcode_libdir_separator=':'
15701       link_all_deplibs=yes
15702       export_dynamic_flag_spec='${wl}-Bexport'
15703       runpath_var='LD_RUN_PATH'
15704
15705       if test "$GCC" = yes; then
15706         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15708       else
15709         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15711       fi
15712       ;;
15713
15714     uts4*)
15715       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716       hardcode_libdir_flag_spec='-L$libdir'
15717       hardcode_shlibpath_var=no
15718       ;;
15719
15720     *)
15721       ld_shlibs=no
15722       ;;
15723     esac
15724   fi
15725
15726 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15727 echo "${ECHO_T}$ld_shlibs" >&6; }
15728 test "$ld_shlibs" = no && can_build_shared=no
15729
15730 #
15731 # Do we need to explicitly link libc?
15732 #
15733 case "x$archive_cmds_need_lc" in
15734 x|xyes)
15735   # Assume -lc should be added
15736   archive_cmds_need_lc=yes
15737
15738   if test "$enable_shared" = yes && test "$GCC" = yes; then
15739     case $archive_cmds in
15740     *'~'*)
15741       # FIXME: we may have to deal with multi-command sequences.
15742       ;;
15743     '$CC '*)
15744       # Test whether the compiler implicitly links with -lc since on some
15745       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15746       # to ld, don't add -lc before -lgcc.
15747       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15749       $rm conftest*
15750       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751
15752       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753   (eval $ac_compile) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } 2>conftest.err; then
15757         soname=conftest
15758         lib=conftest
15759         libobjs=conftest.$ac_objext
15760         deplibs=
15761         wl=$lt_prog_compiler_wl
15762         pic_flag=$lt_prog_compiler_pic
15763         compiler_flags=-v
15764         linker_flags=-v
15765         verstring=
15766         output_objdir=.
15767         libname=conftest
15768         lt_save_allow_undefined_flag=$allow_undefined_flag
15769         allow_undefined_flag=
15770         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15771   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }
15775         then
15776           archive_cmds_need_lc=no
15777         else
15778           archive_cmds_need_lc=yes
15779         fi
15780         allow_undefined_flag=$lt_save_allow_undefined_flag
15781       else
15782         cat conftest.err 1>&5
15783       fi
15784       $rm conftest*
15785       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15786 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15787       ;;
15788     esac
15789   fi
15790   ;;
15791 esac
15792
15793 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15794 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15795 library_names_spec=
15796 libname_spec='lib$name'
15797 soname_spec=
15798 shrext_cmds=".so"
15799 postinstall_cmds=
15800 postuninstall_cmds=
15801 finish_cmds=
15802 finish_eval=
15803 shlibpath_var=
15804 shlibpath_overrides_runpath=unknown
15805 version_type=none
15806 dynamic_linker="$host_os ld.so"
15807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15808 if test "$GCC" = yes; then
15809   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15810   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15811     # if the path contains ";" then we assume it to be the separator
15812     # otherwise default to the standard path separator (i.e. ":") - it is
15813     # assumed that no part of a normal pathname contains ";" but that should
15814     # okay in the real world where ";" in dirpaths is itself problematic.
15815     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15816   else
15817     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15818   fi
15819 else
15820   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15821 fi
15822 need_lib_prefix=unknown
15823 hardcode_into_libs=no
15824
15825 # when you set need_version to no, make sure it does not cause -set_version
15826 # flags to be left without arguments
15827 need_version=unknown
15828
15829 case $host_os in
15830 aix3*)
15831   version_type=linux
15832   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15833   shlibpath_var=LIBPATH
15834
15835   # AIX 3 has no versioning support, so we append a major version to the name.
15836   soname_spec='${libname}${release}${shared_ext}$major'
15837   ;;
15838
15839 aix4* | aix5*)
15840   version_type=linux
15841   need_lib_prefix=no
15842   need_version=no
15843   hardcode_into_libs=yes
15844   if test "$host_cpu" = ia64; then
15845     # AIX 5 supports IA64
15846     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15847     shlibpath_var=LD_LIBRARY_PATH
15848   else
15849     # With GCC up to 2.95.x, collect2 would create an import file
15850     # for dependence libraries.  The import file would start with
15851     # the line `#! .'.  This would cause the generated library to
15852     # depend on `.', always an invalid library.  This was fixed in
15853     # development snapshots of GCC prior to 3.0.
15854     case $host_os in
15855       aix4 | aix4.[01] | aix4.[01].*)
15856       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15857            echo ' yes '
15858            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15859         :
15860       else
15861         can_build_shared=no
15862       fi
15863       ;;
15864     esac
15865     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15866     # soname into executable. Probably we can add versioning support to
15867     # collect2, so additional links can be useful in future.
15868     if test "$aix_use_runtimelinking" = yes; then
15869       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15870       # instead of lib<name>.a to let people know that these are not
15871       # typical AIX shared libraries.
15872       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873     else
15874       # We preserve .a as extension for shared libraries through AIX4.2
15875       # and later when we are not doing run time linking.
15876       library_names_spec='${libname}${release}.a $libname.a'
15877       soname_spec='${libname}${release}${shared_ext}$major'
15878     fi
15879     shlibpath_var=LIBPATH
15880   fi
15881   ;;
15882
15883 amigaos*)
15884   library_names_spec='$libname.ixlibrary $libname.a'
15885   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15886   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'
15887   ;;
15888
15889 beos*)
15890   library_names_spec='${libname}${shared_ext}'
15891   dynamic_linker="$host_os ld.so"
15892   shlibpath_var=LIBRARY_PATH
15893   ;;
15894
15895 bsdi[45]*)
15896   version_type=linux
15897   need_version=no
15898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899   soname_spec='${libname}${release}${shared_ext}$major'
15900   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15901   shlibpath_var=LD_LIBRARY_PATH
15902   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15903   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15904   # the default ld.so.conf also contains /usr/contrib/lib and
15905   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15906   # libtool to hard-code these into programs
15907   ;;
15908
15909 cygwin* | mingw* | pw32*)
15910   version_type=windows
15911   shrext_cmds=".dll"
15912   need_version=no
15913   need_lib_prefix=no
15914
15915   case $GCC,$host_os in
15916   yes,cygwin* | yes,mingw* | yes,pw32*)
15917     library_names_spec='$libname.dll.a'
15918     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15919     postinstall_cmds='base_file=`basename \${file}`~
15920       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15921       dldir=$destdir/`dirname \$dlpath`~
15922       test -d \$dldir || mkdir -p \$dldir~
15923       $install_prog $dir/$dlname \$dldir/$dlname~
15924       chmod a+x \$dldir/$dlname'
15925     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15926       dlpath=$dir/\$dldll~
15927        $rm \$dlpath'
15928     shlibpath_overrides_runpath=yes
15929
15930     case $host_os in
15931     cygwin*)
15932       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15933       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15934       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15935       ;;
15936     mingw*)
15937       # MinGW DLLs use traditional 'lib' prefix
15938       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15939       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15940       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15941         # It is most probably a Windows format PATH printed by
15942         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15943         # path with ; separators, and with drive letters. We can handle the
15944         # drive letters (cygwin fileutils understands them), so leave them,
15945         # especially as we might pass files found there to a mingw objdump,
15946         # which wouldn't understand a cygwinified path. Ahh.
15947         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15948       else
15949         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15950       fi
15951       ;;
15952     pw32*)
15953       # pw32 DLLs use 'pw' prefix rather than 'lib'
15954       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15955       ;;
15956     esac
15957     ;;
15958
15959   *)
15960     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15961     ;;
15962   esac
15963   dynamic_linker='Win32 ld.exe'
15964   # FIXME: first we should search . and the directory the executable is in
15965   shlibpath_var=PATH
15966   ;;
15967
15968 darwin* | rhapsody*)
15969   dynamic_linker="$host_os dyld"
15970   version_type=darwin
15971   need_lib_prefix=no
15972   need_version=no
15973   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15974   soname_spec='${libname}${release}${major}$shared_ext'
15975   shlibpath_overrides_runpath=yes
15976   shlibpath_var=DYLD_LIBRARY_PATH
15977   shrext_cmds='.dylib'
15978   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15979   if test "$GCC" = yes; then
15980     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"`
15981   else
15982     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15983   fi
15984   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15985   ;;
15986
15987 dgux*)
15988   version_type=linux
15989   need_lib_prefix=no
15990   need_version=no
15991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15992   soname_spec='${libname}${release}${shared_ext}$major'
15993   shlibpath_var=LD_LIBRARY_PATH
15994   ;;
15995
15996 freebsd1*)
15997   dynamic_linker=no
15998   ;;
15999
16000 kfreebsd*-gnu)
16001   version_type=linux
16002   need_lib_prefix=no
16003   need_version=no
16004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16005   soname_spec='${libname}${release}${shared_ext}$major'
16006   shlibpath_var=LD_LIBRARY_PATH
16007   shlibpath_overrides_runpath=no
16008   hardcode_into_libs=yes
16009   dynamic_linker='GNU ld.so'
16010   ;;
16011
16012 freebsd* | dragonfly*)
16013   # DragonFly does not have aout.  When/if they implement a new
16014   # versioning mechanism, adjust this.
16015   if test -x /usr/bin/objformat; then
16016     objformat=`/usr/bin/objformat`
16017   else
16018     case $host_os in
16019     freebsd[123]*) objformat=aout ;;
16020     *) objformat=elf ;;
16021     esac
16022   fi
16023   version_type=freebsd-$objformat
16024   case $version_type in
16025     freebsd-elf*)
16026       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16027       need_version=no
16028       need_lib_prefix=no
16029       ;;
16030     freebsd-*)
16031       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16032       need_version=yes
16033       ;;
16034   esac
16035   shlibpath_var=LD_LIBRARY_PATH
16036   case $host_os in
16037   freebsd2*)
16038     shlibpath_overrides_runpath=yes
16039     ;;
16040   freebsd3.[01]* | freebsdelf3.[01]*)
16041     shlibpath_overrides_runpath=yes
16042     hardcode_into_libs=yes
16043     ;;
16044   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16045   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16046     shlibpath_overrides_runpath=no
16047     hardcode_into_libs=yes
16048     ;;
16049   freebsd*) # from 4.6 on
16050     shlibpath_overrides_runpath=yes
16051     hardcode_into_libs=yes
16052     ;;
16053   esac
16054   ;;
16055
16056 gnu*)
16057   version_type=linux
16058   need_lib_prefix=no
16059   need_version=no
16060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16061   soname_spec='${libname}${release}${shared_ext}$major'
16062   shlibpath_var=LD_LIBRARY_PATH
16063   hardcode_into_libs=yes
16064   ;;
16065
16066 hpux9* | hpux10* | hpux11*)
16067   # Give a soname corresponding to the major version so that dld.sl refuses to
16068   # link against other versions.
16069   version_type=sunos
16070   need_lib_prefix=no
16071   need_version=no
16072   case $host_cpu in
16073   ia64*)
16074     shrext_cmds='.so'
16075     hardcode_into_libs=yes
16076     dynamic_linker="$host_os dld.so"
16077     shlibpath_var=LD_LIBRARY_PATH
16078     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080     soname_spec='${libname}${release}${shared_ext}$major'
16081     if test "X$HPUX_IA64_MODE" = X32; then
16082       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16083     else
16084       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16085     fi
16086     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16087     ;;
16088    hppa*64*)
16089      shrext_cmds='.sl'
16090      hardcode_into_libs=yes
16091      dynamic_linker="$host_os dld.sl"
16092      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16093      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16094      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095      soname_spec='${libname}${release}${shared_ext}$major'
16096      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16097      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16098      ;;
16099    *)
16100     shrext_cmds='.sl'
16101     dynamic_linker="$host_os dld.sl"
16102     shlibpath_var=SHLIB_PATH
16103     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105     soname_spec='${libname}${release}${shared_ext}$major'
16106     ;;
16107   esac
16108   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16109   postinstall_cmds='chmod 555 $lib'
16110   ;;
16111
16112 interix3*)
16113   version_type=linux
16114   need_lib_prefix=no
16115   need_version=no
16116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16117   soname_spec='${libname}${release}${shared_ext}$major'
16118   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16119   shlibpath_var=LD_LIBRARY_PATH
16120   shlibpath_overrides_runpath=no
16121   hardcode_into_libs=yes
16122   ;;
16123
16124 irix5* | irix6* | nonstopux*)
16125   case $host_os in
16126     nonstopux*) version_type=nonstopux ;;
16127     *)
16128         if test "$lt_cv_prog_gnu_ld" = yes; then
16129                 version_type=linux
16130         else
16131                 version_type=irix
16132         fi ;;
16133   esac
16134   need_lib_prefix=no
16135   need_version=no
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16138   case $host_os in
16139   irix5* | nonstopux*)
16140     libsuff= shlibsuff=
16141     ;;
16142   *)
16143     case $LD in # libtool.m4 will add one of these switches to LD
16144     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16145       libsuff= shlibsuff= libmagic=32-bit;;
16146     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16147       libsuff=32 shlibsuff=N32 libmagic=N32;;
16148     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16149       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16150     *) libsuff= shlibsuff= libmagic=never-match;;
16151     esac
16152     ;;
16153   esac
16154   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16155   shlibpath_overrides_runpath=no
16156   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16157   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16158   hardcode_into_libs=yes
16159   ;;
16160
16161 # No shared lib support for Linux oldld, aout, or coff.
16162 linux*oldld* | linux*aout* | linux*coff*)
16163   dynamic_linker=no
16164   ;;
16165
16166 # This must be Linux ELF.
16167 linux*)
16168   version_type=linux
16169   need_lib_prefix=no
16170   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16174   shlibpath_var=LD_LIBRARY_PATH
16175   shlibpath_overrides_runpath=no
16176   # This implies no fast_install, which is unacceptable.
16177   # Some rework will be needed to allow for fast_install
16178   # before this can be enabled.
16179   hardcode_into_libs=yes
16180
16181   # Append ld.so.conf contents to the search path
16182   if test -f /etc/ld.so.conf; then
16183     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' ' '`
16184     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16185   fi
16186
16187   # We used to test for /lib/ld.so.1 and disable shared libraries on
16188   # powerpc, because MkLinux only supported shared libraries with the
16189   # GNU dynamic linker.  Since this was broken with cross compilers,
16190   # most powerpc-linux boxes support dynamic linking these days and
16191   # people can always --disable-shared, the test was removed, and we
16192   # assume the GNU/Linux dynamic linker is in use.
16193   dynamic_linker='GNU/Linux ld.so'
16194   ;;
16195
16196 knetbsd*-gnu)
16197   version_type=linux
16198   need_lib_prefix=no
16199   need_version=no
16200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201   soname_spec='${libname}${release}${shared_ext}$major'
16202   shlibpath_var=LD_LIBRARY_PATH
16203   shlibpath_overrides_runpath=no
16204   hardcode_into_libs=yes
16205   dynamic_linker='GNU ld.so'
16206   ;;
16207
16208 netbsd*)
16209   version_type=sunos
16210   need_lib_prefix=no
16211   need_version=no
16212   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16214     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16215     dynamic_linker='NetBSD (a.out) ld.so'
16216   else
16217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16218     soname_spec='${libname}${release}${shared_ext}$major'
16219     dynamic_linker='NetBSD ld.elf_so'
16220   fi
16221   shlibpath_var=LD_LIBRARY_PATH
16222   shlibpath_overrides_runpath=yes
16223   hardcode_into_libs=yes
16224   ;;
16225
16226 newsos6)
16227   version_type=linux
16228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229   shlibpath_var=LD_LIBRARY_PATH
16230   shlibpath_overrides_runpath=yes
16231   ;;
16232
16233 nto-qnx*)
16234   version_type=linux
16235   need_lib_prefix=no
16236   need_version=no
16237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238   soname_spec='${libname}${release}${shared_ext}$major'
16239   shlibpath_var=LD_LIBRARY_PATH
16240   shlibpath_overrides_runpath=yes
16241   ;;
16242
16243 openbsd*)
16244   version_type=sunos
16245   sys_lib_dlsearch_path_spec="/usr/lib"
16246   need_lib_prefix=no
16247   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16248   case $host_os in
16249     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16250     *)                         need_version=no  ;;
16251   esac
16252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16253   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16254   shlibpath_var=LD_LIBRARY_PATH
16255   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16256     case $host_os in
16257       openbsd2.[89] | openbsd2.[89].*)
16258         shlibpath_overrides_runpath=no
16259         ;;
16260       *)
16261         shlibpath_overrides_runpath=yes
16262         ;;
16263       esac
16264   else
16265     shlibpath_overrides_runpath=yes
16266   fi
16267   ;;
16268
16269 os2*)
16270   libname_spec='$name'
16271   shrext_cmds=".dll"
16272   need_lib_prefix=no
16273   library_names_spec='$libname${shared_ext} $libname.a'
16274   dynamic_linker='OS/2 ld.exe'
16275   shlibpath_var=LIBPATH
16276   ;;
16277
16278 osf3* | osf4* | osf5*)
16279   version_type=osf
16280   need_lib_prefix=no
16281   need_version=no
16282   soname_spec='${libname}${release}${shared_ext}$major'
16283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284   shlibpath_var=LD_LIBRARY_PATH
16285   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16286   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16287   ;;
16288
16289 solaris*)
16290   version_type=linux
16291   need_lib_prefix=no
16292   need_version=no
16293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294   soname_spec='${libname}${release}${shared_ext}$major'
16295   shlibpath_var=LD_LIBRARY_PATH
16296   shlibpath_overrides_runpath=yes
16297   hardcode_into_libs=yes
16298   # ldd complains unless libraries are executable
16299   postinstall_cmds='chmod +x $lib'
16300   ;;
16301
16302 sunos4*)
16303   version_type=sunos
16304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16305   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16306   shlibpath_var=LD_LIBRARY_PATH
16307   shlibpath_overrides_runpath=yes
16308   if test "$with_gnu_ld" = yes; then
16309     need_lib_prefix=no
16310   fi
16311   need_version=yes
16312   ;;
16313
16314 sysv4 | sysv4.3*)
16315   version_type=linux
16316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317   soname_spec='${libname}${release}${shared_ext}$major'
16318   shlibpath_var=LD_LIBRARY_PATH
16319   case $host_vendor in
16320     sni)
16321       shlibpath_overrides_runpath=no
16322       need_lib_prefix=no
16323       export_dynamic_flag_spec='${wl}-Blargedynsym'
16324       runpath_var=LD_RUN_PATH
16325       ;;
16326     siemens)
16327       need_lib_prefix=no
16328       ;;
16329     motorola)
16330       need_lib_prefix=no
16331       need_version=no
16332       shlibpath_overrides_runpath=no
16333       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16334       ;;
16335   esac
16336   ;;
16337
16338 sysv4*MP*)
16339   if test -d /usr/nec ;then
16340     version_type=linux
16341     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16342     soname_spec='$libname${shared_ext}.$major'
16343     shlibpath_var=LD_LIBRARY_PATH
16344   fi
16345   ;;
16346
16347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16348   version_type=freebsd-elf
16349   need_lib_prefix=no
16350   need_version=no
16351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16352   soname_spec='${libname}${release}${shared_ext}$major'
16353   shlibpath_var=LD_LIBRARY_PATH
16354   hardcode_into_libs=yes
16355   if test "$with_gnu_ld" = yes; then
16356     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16357     shlibpath_overrides_runpath=no
16358   else
16359     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16360     shlibpath_overrides_runpath=yes
16361     case $host_os in
16362       sco3.2v5*)
16363         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16364         ;;
16365     esac
16366   fi
16367   sys_lib_dlsearch_path_spec='/usr/lib'
16368   ;;
16369
16370 uts4*)
16371   version_type=linux
16372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373   soname_spec='${libname}${release}${shared_ext}$major'
16374   shlibpath_var=LD_LIBRARY_PATH
16375   ;;
16376
16377 *)
16378   dynamic_linker=no
16379   ;;
16380 esac
16381 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16382 echo "${ECHO_T}$dynamic_linker" >&6; }
16383 test "$dynamic_linker" = no && can_build_shared=no
16384
16385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16386 if test "$GCC" = yes; then
16387   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16388 fi
16389
16390 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16391 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16392 hardcode_action=
16393 if test -n "$hardcode_libdir_flag_spec" || \
16394    test -n "$runpath_var" || \
16395    test "X$hardcode_automatic" = "Xyes" ; then
16396
16397   # We can hardcode non-existant directories.
16398   if test "$hardcode_direct" != no &&
16399      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16400      # have to relink, otherwise we might link with an installed library
16401      # when we should be linking with a yet-to-be-installed one
16402      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16403      test "$hardcode_minus_L" != no; then
16404     # Linking always hardcodes the temporary library directory.
16405     hardcode_action=relink
16406   else
16407     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16408     hardcode_action=immediate
16409   fi
16410 else
16411   # We cannot hardcode anything, or else we can only hardcode existing
16412   # directories.
16413   hardcode_action=unsupported
16414 fi
16415 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16416 echo "${ECHO_T}$hardcode_action" >&6; }
16417
16418 if test "$hardcode_action" = relink; then
16419   # Fast installation is not supported
16420   enable_fast_install=no
16421 elif test "$shlibpath_overrides_runpath" = yes ||
16422      test "$enable_shared" = no; then
16423   # Fast installation is not necessary
16424   enable_fast_install=needless
16425 fi
16426
16427 striplib=
16428 old_striplib=
16429 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16430 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16431 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16432   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16433   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16434   { echo "$as_me:$LINENO: result: yes" >&5
16435 echo "${ECHO_T}yes" >&6; }
16436 else
16437 # FIXME - insert some real tests, host_os isn't really good enough
16438   case $host_os in
16439    darwin*)
16440        if test -n "$STRIP" ; then
16441          striplib="$STRIP -x"
16442          { echo "$as_me:$LINENO: result: yes" >&5
16443 echo "${ECHO_T}yes" >&6; }
16444        else
16445   { echo "$as_me:$LINENO: result: no" >&5
16446 echo "${ECHO_T}no" >&6; }
16447 fi
16448        ;;
16449    *)
16450   { echo "$as_me:$LINENO: result: no" >&5
16451 echo "${ECHO_T}no" >&6; }
16452     ;;
16453   esac
16454 fi
16455
16456 if test "x$enable_dlopen" != xyes; then
16457   enable_dlopen=unknown
16458   enable_dlopen_self=unknown
16459   enable_dlopen_self_static=unknown
16460 else
16461   lt_cv_dlopen=no
16462   lt_cv_dlopen_libs=
16463
16464   case $host_os in
16465   beos*)
16466     lt_cv_dlopen="load_add_on"
16467     lt_cv_dlopen_libs=
16468     lt_cv_dlopen_self=yes
16469     ;;
16470
16471   mingw* | pw32*)
16472     lt_cv_dlopen="LoadLibrary"
16473     lt_cv_dlopen_libs=
16474    ;;
16475
16476   cygwin*)
16477     lt_cv_dlopen="dlopen"
16478     lt_cv_dlopen_libs=
16479    ;;
16480
16481   darwin*)
16482   # if libdl is installed we need to link against it
16483     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16484 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488   ac_check_lib_save_LIBS=$LIBS
16489 LIBS="-ldl  $LIBS"
16490 cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h.  */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h.  */
16496
16497 /* Override any GCC internal prototype to avoid an error.
16498    Use char because int might match the return type of a GCC
16499    builtin and then its argument prototype would still apply.  */
16500 #ifdef __cplusplus
16501 extern "C"
16502 #endif
16503 char dlopen ();
16504 int
16505 main ()
16506 {
16507 return dlopen ();
16508   ;
16509   return 0;
16510 }
16511 _ACEOF
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (ac_try="$ac_link"
16514 case "(($ac_try" in
16515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516   *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519   (eval "$ac_link") 2>conftest.er1
16520   ac_status=$?
16521   grep -v '^ *+' conftest.er1 >conftest.err
16522   rm -f conftest.er1
16523   cat conftest.err >&5
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); } &&
16526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527   { (case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_try") 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; } &&
16536          { ac_try='test -s conftest$ac_exeext'
16537   { (case "(($ac_try" in
16538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539   *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542   (eval "$ac_try") 2>&5
16543   ac_status=$?
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); }; }; then
16546   ac_cv_lib_dl_dlopen=yes
16547 else
16548   echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551         ac_cv_lib_dl_dlopen=no
16552 fi
16553
16554 rm -f core conftest.err conftest.$ac_objext \
16555       conftest$ac_exeext conftest.$ac_ext
16556 LIBS=$ac_check_lib_save_LIBS
16557 fi
16558 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16560 if test $ac_cv_lib_dl_dlopen = yes; then
16561   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16562 else
16563
16564     lt_cv_dlopen="dyld"
16565     lt_cv_dlopen_libs=
16566     lt_cv_dlopen_self=yes
16567
16568 fi
16569
16570    ;;
16571
16572   *)
16573     { echo "$as_me:$LINENO: checking for shl_load" >&5
16574 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16575 if test "${ac_cv_func_shl_load+set}" = set; then
16576   echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578   cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h.  */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h.  */
16584 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16586 #define shl_load innocuous_shl_load
16587
16588 /* System header to define __stub macros and hopefully few prototypes,
16589     which can conflict with char shl_load (); below.
16590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16591     <limits.h> exists even on freestanding compilers.  */
16592
16593 #ifdef __STDC__
16594 # include <limits.h>
16595 #else
16596 # include <assert.h>
16597 #endif
16598
16599 #undef shl_load
16600
16601 /* Override any GCC internal prototype to avoid an error.
16602    Use char because int might match the return type of a GCC
16603    builtin and then its argument prototype would still apply.  */
16604 #ifdef __cplusplus
16605 extern "C"
16606 #endif
16607 char shl_load ();
16608 /* The GNU C library defines this for functions which it implements
16609     to always fail with ENOSYS.  Some functions are actually named
16610     something starting with __ and the normal name is an alias.  */
16611 #if defined __stub_shl_load || defined __stub___shl_load
16612 choke me
16613 #endif
16614
16615 int
16616 main ()
16617 {
16618 return shl_load ();
16619   ;
16620   return 0;
16621 }
16622 _ACEOF
16623 rm -f conftest.$ac_objext conftest$ac_exeext
16624 if { (ac_try="$ac_link"
16625 case "(($ac_try" in
16626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627   *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630   (eval "$ac_link") 2>conftest.er1
16631   ac_status=$?
16632   grep -v '^ *+' conftest.er1 >conftest.err
16633   rm -f conftest.er1
16634   cat conftest.err >&5
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); } &&
16637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638   { (case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_try") 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; } &&
16647          { ac_try='test -s conftest$ac_exeext'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   ac_cv_func_shl_load=yes
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662         ac_cv_func_shl_load=no
16663 fi
16664
16665 rm -f core conftest.err conftest.$ac_objext \
16666       conftest$ac_exeext conftest.$ac_ext
16667 fi
16668 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16669 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16670 if test $ac_cv_func_shl_load = yes; then
16671   lt_cv_dlopen="shl_load"
16672 else
16673   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16674 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   ac_check_lib_save_LIBS=$LIBS
16679 LIBS="-ldld  $LIBS"
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686
16687 /* Override any GCC internal prototype to avoid an error.
16688    Use char because int might match the return type of a GCC
16689    builtin and then its argument prototype would still apply.  */
16690 #ifdef __cplusplus
16691 extern "C"
16692 #endif
16693 char shl_load ();
16694 int
16695 main ()
16696 {
16697 return shl_load ();
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_link") 2>conftest.er1
16710   ac_status=$?
16711   grep -v '^ *+' conftest.er1 >conftest.err
16712   rm -f conftest.er1
16713   cat conftest.err >&5
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } &&
16716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest$ac_exeext'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736   ac_cv_lib_dld_shl_load=yes
16737 else
16738   echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741         ac_cv_lib_dld_shl_load=no
16742 fi
16743
16744 rm -f core conftest.err conftest.$ac_objext \
16745       conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16747 fi
16748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16749 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16750 if test $ac_cv_lib_dld_shl_load = yes; then
16751   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16752 else
16753   { echo "$as_me:$LINENO: checking for dlopen" >&5
16754 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16755 if test "${ac_cv_func_dlopen+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16766 #define dlopen innocuous_dlopen
16767
16768 /* System header to define __stub macros and hopefully few prototypes,
16769     which can conflict with char dlopen (); below.
16770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771     <limits.h> exists even on freestanding compilers.  */
16772
16773 #ifdef __STDC__
16774 # include <limits.h>
16775 #else
16776 # include <assert.h>
16777 #endif
16778
16779 #undef dlopen
16780
16781 /* Override any GCC internal prototype to avoid an error.
16782    Use char because int might match the return type of a GCC
16783    builtin and then its argument prototype would still apply.  */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 char dlopen ();
16788 /* The GNU C library defines this for functions which it implements
16789     to always fail with ENOSYS.  Some functions are actually named
16790     something starting with __ and the normal name is an alias.  */
16791 #if defined __stub_dlopen || defined __stub___dlopen
16792 choke me
16793 #endif
16794
16795 int
16796 main ()
16797 {
16798 return dlopen ();
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_link") 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } &&
16817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818   { (case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_try") 2>&5
16824   ac_status=$?
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); }; } &&
16827          { ac_try='test -s conftest$ac_exeext'
16828   { (case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_try") 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; }; then
16837   ac_cv_func_dlopen=yes
16838 else
16839   echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16841
16842         ac_cv_func_dlopen=no
16843 fi
16844
16845 rm -f core conftest.err conftest.$ac_objext \
16846       conftest$ac_exeext conftest.$ac_ext
16847 fi
16848 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16849 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16850 if test $ac_cv_func_dlopen = yes; then
16851   lt_cv_dlopen="dlopen"
16852 else
16853   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16854 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858   ac_check_lib_save_LIBS=$LIBS
16859 LIBS="-ldl  $LIBS"
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866
16867 /* Override any GCC internal prototype to avoid an error.
16868    Use char because int might match the return type of a GCC
16869    builtin and then its argument prototype would still apply.  */
16870 #ifdef __cplusplus
16871 extern "C"
16872 #endif
16873 char dlopen ();
16874 int
16875 main ()
16876 {
16877 return dlopen ();
16878   ;
16879   return 0;
16880 }
16881 _ACEOF
16882 rm -f conftest.$ac_objext conftest$ac_exeext
16883 if { (ac_try="$ac_link"
16884 case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_link") 2>conftest.er1
16890   ac_status=$?
16891   grep -v '^ *+' conftest.er1 >conftest.err
16892   rm -f conftest.er1
16893   cat conftest.err >&5
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); } &&
16896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; } &&
16906          { ac_try='test -s conftest$ac_exeext'
16907   { (case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_try") 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; }; then
16916   ac_cv_lib_dl_dlopen=yes
16917 else
16918   echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921         ac_cv_lib_dl_dlopen=no
16922 fi
16923
16924 rm -f core conftest.err conftest.$ac_objext \
16925       conftest$ac_exeext conftest.$ac_ext
16926 LIBS=$ac_check_lib_save_LIBS
16927 fi
16928 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16930 if test $ac_cv_lib_dl_dlopen = yes; then
16931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16932 else
16933   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16934 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16935 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   ac_check_lib_save_LIBS=$LIBS
16939 LIBS="-lsvld  $LIBS"
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h.  */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h.  */
16946
16947 /* Override any GCC internal prototype to avoid an error.
16948    Use char because int might match the return type of a GCC
16949    builtin and then its argument prototype would still apply.  */
16950 #ifdef __cplusplus
16951 extern "C"
16952 #endif
16953 char dlopen ();
16954 int
16955 main ()
16956 {
16957 return dlopen ();
16958   ;
16959   return 0;
16960 }
16961 _ACEOF
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (ac_try="$ac_link"
16964 case "(($ac_try" in
16965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966   *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969   (eval "$ac_link") 2>conftest.er1
16970   ac_status=$?
16971   grep -v '^ *+' conftest.er1 >conftest.err
16972   rm -f conftest.er1
16973   cat conftest.err >&5
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); } &&
16976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16977   { (case "(($ac_try" in
16978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979   *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982   (eval "$ac_try") 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; } &&
16986          { ac_try='test -s conftest$ac_exeext'
16987   { (case "(($ac_try" in
16988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989   *) ac_try_echo=$ac_try;;
16990 esac
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992   (eval "$ac_try") 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); }; }; then
16996   ac_cv_lib_svld_dlopen=yes
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001         ac_cv_lib_svld_dlopen=no
17002 fi
17003
17004 rm -f core conftest.err conftest.$ac_objext \
17005       conftest$ac_exeext conftest.$ac_ext
17006 LIBS=$ac_check_lib_save_LIBS
17007 fi
17008 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17009 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17010 if test $ac_cv_lib_svld_dlopen = yes; then
17011   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17012 else
17013   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17014 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   ac_check_lib_save_LIBS=$LIBS
17019 LIBS="-ldld  $LIBS"
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h.  */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h.  */
17026
17027 /* Override any GCC internal prototype to avoid an error.
17028    Use char because int might match the return type of a GCC
17029    builtin and then its argument prototype would still apply.  */
17030 #ifdef __cplusplus
17031 extern "C"
17032 #endif
17033 char dld_link ();
17034 int
17035 main ()
17036 {
17037 return dld_link ();
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046   *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049   (eval "$ac_link") 2>conftest.er1
17050   ac_status=$?
17051   grep -v '^ *+' conftest.er1 >conftest.err
17052   rm -f conftest.er1
17053   cat conftest.err >&5
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } &&
17056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057   { (case "(($ac_try" in
17058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059   *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062   (eval "$ac_try") 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; } &&
17066          { ac_try='test -s conftest$ac_exeext'
17067   { (case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072   (eval "$ac_try") 2>&5
17073   ac_status=$?
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); }; }; then
17076   ac_cv_lib_dld_dld_link=yes
17077 else
17078   echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081         ac_cv_lib_dld_dld_link=no
17082 fi
17083
17084 rm -f core conftest.err conftest.$ac_objext \
17085       conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17087 fi
17088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17089 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17090 if test $ac_cv_lib_dld_dld_link = yes; then
17091   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17092 fi
17093
17094
17095 fi
17096
17097
17098 fi
17099
17100
17101 fi
17102
17103
17104 fi
17105
17106
17107 fi
17108
17109     ;;
17110   esac
17111
17112   if test "x$lt_cv_dlopen" != xno; then
17113     enable_dlopen=yes
17114   else
17115     enable_dlopen=no
17116   fi
17117
17118   case $lt_cv_dlopen in
17119   dlopen)
17120     save_CPPFLAGS="$CPPFLAGS"
17121     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17122
17123     save_LDFLAGS="$LDFLAGS"
17124     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17125
17126     save_LIBS="$LIBS"
17127     LIBS="$lt_cv_dlopen_libs $LIBS"
17128
17129     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17130 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17131 if test "${lt_cv_dlopen_self+set}" = set; then
17132   echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134           if test "$cross_compiling" = yes; then :
17135   lt_cv_dlopen_self=cross
17136 else
17137   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17138   lt_status=$lt_dlunknown
17139   cat > conftest.$ac_ext <<EOF
17140 #line 17140 "configure"
17141 #include "confdefs.h"
17142
17143 #if HAVE_DLFCN_H
17144 #include <dlfcn.h>
17145 #endif
17146
17147 #include <stdio.h>
17148
17149 #ifdef RTLD_GLOBAL
17150 #  define LT_DLGLOBAL           RTLD_GLOBAL
17151 #else
17152 #  ifdef DL_GLOBAL
17153 #    define LT_DLGLOBAL         DL_GLOBAL
17154 #  else
17155 #    define LT_DLGLOBAL         0
17156 #  endif
17157 #endif
17158
17159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17160    find out it does not work in some platform. */
17161 #ifndef LT_DLLAZY_OR_NOW
17162 #  ifdef RTLD_LAZY
17163 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17164 #  else
17165 #    ifdef DL_LAZY
17166 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17167 #    else
17168 #      ifdef RTLD_NOW
17169 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17170 #      else
17171 #        ifdef DL_NOW
17172 #          define LT_DLLAZY_OR_NOW      DL_NOW
17173 #        else
17174 #          define LT_DLLAZY_OR_NOW      0
17175 #        endif
17176 #      endif
17177 #    endif
17178 #  endif
17179 #endif
17180
17181 #ifdef __cplusplus
17182 extern "C" void exit (int);
17183 #endif
17184
17185 void fnord() { int i=42;}
17186 int main ()
17187 {
17188   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17189   int status = $lt_dlunknown;
17190
17191   if (self)
17192     {
17193       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17194       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17195       /* dlclose (self); */
17196     }
17197   else
17198     puts (dlerror ());
17199
17200     exit (status);
17201 }
17202 EOF
17203   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204   (eval $ac_link) 2>&5
17205   ac_status=$?
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17208     (./conftest; exit; ) >&5 2>/dev/null
17209     lt_status=$?
17210     case x$lt_status in
17211       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17212       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17213       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17214     esac
17215   else :
17216     # compilation failed
17217     lt_cv_dlopen_self=no
17218   fi
17219 fi
17220 rm -fr conftest*
17221
17222
17223 fi
17224 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17225 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17226
17227     if test "x$lt_cv_dlopen_self" = xyes; then
17228       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17229       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17230 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17231 if test "${lt_cv_dlopen_self_static+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234           if test "$cross_compiling" = yes; then :
17235   lt_cv_dlopen_self_static=cross
17236 else
17237   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17238   lt_status=$lt_dlunknown
17239   cat > conftest.$ac_ext <<EOF
17240 #line 17240 "configure"
17241 #include "confdefs.h"
17242
17243 #if HAVE_DLFCN_H
17244 #include <dlfcn.h>
17245 #endif
17246
17247 #include <stdio.h>
17248
17249 #ifdef RTLD_GLOBAL
17250 #  define LT_DLGLOBAL           RTLD_GLOBAL
17251 #else
17252 #  ifdef DL_GLOBAL
17253 #    define LT_DLGLOBAL         DL_GLOBAL
17254 #  else
17255 #    define LT_DLGLOBAL         0
17256 #  endif
17257 #endif
17258
17259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17260    find out it does not work in some platform. */
17261 #ifndef LT_DLLAZY_OR_NOW
17262 #  ifdef RTLD_LAZY
17263 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17264 #  else
17265 #    ifdef DL_LAZY
17266 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17267 #    else
17268 #      ifdef RTLD_NOW
17269 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17270 #      else
17271 #        ifdef DL_NOW
17272 #          define LT_DLLAZY_OR_NOW      DL_NOW
17273 #        else
17274 #          define LT_DLLAZY_OR_NOW      0
17275 #        endif
17276 #      endif
17277 #    endif
17278 #  endif
17279 #endif
17280
17281 #ifdef __cplusplus
17282 extern "C" void exit (int);
17283 #endif
17284
17285 void fnord() { int i=42;}
17286 int main ()
17287 {
17288   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17289   int status = $lt_dlunknown;
17290
17291   if (self)
17292     {
17293       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17294       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17295       /* dlclose (self); */
17296     }
17297   else
17298     puts (dlerror ());
17299
17300     exit (status);
17301 }
17302 EOF
17303   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304   (eval $ac_link) 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17308     (./conftest; exit; ) >&5 2>/dev/null
17309     lt_status=$?
17310     case x$lt_status in
17311       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17312       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17313       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17314     esac
17315   else :
17316     # compilation failed
17317     lt_cv_dlopen_self_static=no
17318   fi
17319 fi
17320 rm -fr conftest*
17321
17322
17323 fi
17324 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17325 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17326     fi
17327
17328     CPPFLAGS="$save_CPPFLAGS"
17329     LDFLAGS="$save_LDFLAGS"
17330     LIBS="$save_LIBS"
17331     ;;
17332   esac
17333
17334   case $lt_cv_dlopen_self in
17335   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17336   *) enable_dlopen_self=unknown ;;
17337   esac
17338
17339   case $lt_cv_dlopen_self_static in
17340   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17341   *) enable_dlopen_self_static=unknown ;;
17342   esac
17343 fi
17344
17345
17346 # Report which library types will actually be built
17347 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17348 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17349 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17350 echo "${ECHO_T}$can_build_shared" >&6; }
17351
17352 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17353 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17354 test "$can_build_shared" = "no" && enable_shared=no
17355
17356 # On AIX, shared libraries and static libraries use the same namespace, and
17357 # are all built from PIC.
17358 case $host_os in
17359 aix3*)
17360   test "$enable_shared" = yes && enable_static=no
17361   if test -n "$RANLIB"; then
17362     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17363     postinstall_cmds='$RANLIB $lib'
17364   fi
17365   ;;
17366
17367 aix4* | aix5*)
17368   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17369     test "$enable_shared" = yes && enable_static=no
17370   fi
17371     ;;
17372 esac
17373 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17374 echo "${ECHO_T}$enable_shared" >&6; }
17375
17376 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17377 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17378 # Make sure either enable_shared or enable_static is yes.
17379 test "$enable_shared" = yes || enable_static=yes
17380 { echo "$as_me:$LINENO: result: $enable_static" >&5
17381 echo "${ECHO_T}$enable_static" >&6; }
17382
17383 # The else clause should only fire when bootstrapping the
17384 # libtool distribution, otherwise you forgot to ship ltmain.sh
17385 # with your package, and you will get complaints that there are
17386 # no rules to generate ltmain.sh.
17387 if test -f "$ltmain"; then
17388   # See if we are running on zsh, and set the options which allow our commands through
17389   # without removal of \ escapes.
17390   if test -n "${ZSH_VERSION+set}" ; then
17391     setopt NO_GLOB_SUBST
17392   fi
17393   # Now quote all the things that may contain metacharacters while being
17394   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17395   # variables and quote the copies for generation of the libtool script.
17396   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17397     SED SHELL STRIP \
17398     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17399     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17400     deplibs_check_method reload_flag reload_cmds need_locks \
17401     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17402     lt_cv_sys_global_symbol_to_c_name_address \
17403     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17404     old_postinstall_cmds old_postuninstall_cmds \
17405     compiler \
17406     CC \
17407     LD \
17408     lt_prog_compiler_wl \
17409     lt_prog_compiler_pic \
17410     lt_prog_compiler_static \
17411     lt_prog_compiler_no_builtin_flag \
17412     export_dynamic_flag_spec \
17413     thread_safe_flag_spec \
17414     whole_archive_flag_spec \
17415     enable_shared_with_static_runtimes \
17416     old_archive_cmds \
17417     old_archive_from_new_cmds \
17418     predep_objects \
17419     postdep_objects \
17420     predeps \
17421     postdeps \
17422     compiler_lib_search_path \
17423     archive_cmds \
17424     archive_expsym_cmds \
17425     postinstall_cmds \
17426     postuninstall_cmds \
17427     old_archive_from_expsyms_cmds \
17428     allow_undefined_flag \
17429     no_undefined_flag \
17430     export_symbols_cmds \
17431     hardcode_libdir_flag_spec \
17432     hardcode_libdir_flag_spec_ld \
17433     hardcode_libdir_separator \
17434     hardcode_automatic \
17435     module_cmds \
17436     module_expsym_cmds \
17437     lt_cv_prog_compiler_c_o \
17438     exclude_expsyms \
17439     include_expsyms; do
17440
17441     case $var in
17442     old_archive_cmds | \
17443     old_archive_from_new_cmds | \
17444     archive_cmds | \
17445     archive_expsym_cmds | \
17446     module_cmds | \
17447     module_expsym_cmds | \
17448     old_archive_from_expsyms_cmds | \
17449     export_symbols_cmds | \
17450     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17451     postinstall_cmds | postuninstall_cmds | \
17452     old_postinstall_cmds | old_postuninstall_cmds | \
17453     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17454       # Double-quote double-evaled strings.
17455       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17456       ;;
17457     *)
17458       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17459       ;;
17460     esac
17461   done
17462
17463   case $lt_echo in
17464   *'\$0 --fallback-echo"')
17465     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17466     ;;
17467   esac
17468
17469 cfgfile="${ofile}T"
17470   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17471   $rm -f "$cfgfile"
17472   { echo "$as_me:$LINENO: creating $ofile" >&5
17473 echo "$as_me: creating $ofile" >&6;}
17474
17475   cat <<__EOF__ >> "$cfgfile"
17476 #! $SHELL
17477
17478 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17479 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17481 #
17482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17483 # Free Software Foundation, Inc.
17484 #
17485 # This file is part of GNU Libtool:
17486 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17487 #
17488 # This program is free software; you can redistribute it and/or modify
17489 # it under the terms of the GNU General Public License as published by
17490 # the Free Software Foundation; either version 2 of the License, or
17491 # (at your option) any later version.
17492 #
17493 # This program is distributed in the hope that it will be useful, but
17494 # WITHOUT ANY WARRANTY; without even the implied warranty of
17495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17496 # General Public License for more details.
17497 #
17498 # You should have received a copy of the GNU General Public License
17499 # along with this program; if not, write to the Free Software
17500 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17501 #
17502 # As a special exception to the GNU General Public License, if you
17503 # distribute this file as part of a program that contains a
17504 # configuration script generated by Autoconf, you may include it under
17505 # the same distribution terms that you use for the rest of that program.
17506
17507 # A sed program that does not truncate output.
17508 SED=$lt_SED
17509
17510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17511 Xsed="$SED -e 1s/^X//"
17512
17513 # The HP-UX ksh and POSIX shell print the target directory to stdout
17514 # if CDPATH is set.
17515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17516
17517 # The names of the tagged configurations supported by this script.
17518 available_tags=
17519
17520 # ### BEGIN LIBTOOL CONFIG
17521
17522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17523
17524 # Shell to use when invoking shell scripts.
17525 SHELL=$lt_SHELL
17526
17527 # Whether or not to build shared libraries.
17528 build_libtool_libs=$enable_shared
17529
17530 # Whether or not to build static libraries.
17531 build_old_libs=$enable_static
17532
17533 # Whether or not to add -lc for building shared libraries.
17534 build_libtool_need_lc=$archive_cmds_need_lc
17535
17536 # Whether or not to disallow shared libs when runtime libs are static
17537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17538
17539 # Whether or not to optimize for fast installation.
17540 fast_install=$enable_fast_install
17541
17542 # The host system.
17543 host_alias=$host_alias
17544 host=$host
17545 host_os=$host_os
17546
17547 # The build system.
17548 build_alias=$build_alias
17549 build=$build
17550 build_os=$build_os
17551
17552 # An echo program that does not interpret backslashes.
17553 echo=$lt_echo
17554
17555 # The archiver.
17556 AR=$lt_AR
17557 AR_FLAGS=$lt_AR_FLAGS
17558
17559 # A C compiler.
17560 LTCC=$lt_LTCC
17561
17562 # LTCC compiler flags.
17563 LTCFLAGS=$lt_LTCFLAGS
17564
17565 # A language-specific compiler.
17566 CC=$lt_compiler
17567
17568 # Is the compiler the GNU C compiler?
17569 with_gcc=$GCC
17570
17571 # An ERE matcher.
17572 EGREP=$lt_EGREP
17573
17574 # The linker used to build libraries.
17575 LD=$lt_LD
17576
17577 # Whether we need hard or soft links.
17578 LN_S=$lt_LN_S
17579
17580 # A BSD-compatible nm program.
17581 NM=$lt_NM
17582
17583 # A symbol stripping program
17584 STRIP=$lt_STRIP
17585
17586 # Used to examine libraries when file_magic_cmd begins "file"
17587 MAGIC_CMD=$MAGIC_CMD
17588
17589 # Used on cygwin: DLL creation program.
17590 DLLTOOL="$DLLTOOL"
17591
17592 # Used on cygwin: object dumper.
17593 OBJDUMP="$OBJDUMP"
17594
17595 # Used on cygwin: assembler.
17596 AS="$AS"
17597
17598 # The name of the directory that contains temporary libtool files.
17599 objdir=$objdir
17600
17601 # How to create reloadable object files.
17602 reload_flag=$lt_reload_flag
17603 reload_cmds=$lt_reload_cmds
17604
17605 # How to pass a linker flag through the compiler.
17606 wl=$lt_lt_prog_compiler_wl
17607
17608 # Object file suffix (normally "o").
17609 objext="$ac_objext"
17610
17611 # Old archive suffix (normally "a").
17612 libext="$libext"
17613
17614 # Shared library suffix (normally ".so").
17615 shrext_cmds='$shrext_cmds'
17616
17617 # Executable file suffix (normally "").
17618 exeext="$exeext"
17619
17620 # Additional compiler flags for building library objects.
17621 pic_flag=$lt_lt_prog_compiler_pic
17622 pic_mode=$pic_mode
17623
17624 # What is the maximum length of a command?
17625 max_cmd_len=$lt_cv_sys_max_cmd_len
17626
17627 # Does compiler simultaneously support -c and -o options?
17628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17629
17630 # Must we lock files when doing compilation?
17631 need_locks=$lt_need_locks
17632
17633 # Do we need the lib prefix for modules?
17634 need_lib_prefix=$need_lib_prefix
17635
17636 # Do we need a version for libraries?
17637 need_version=$need_version
17638
17639 # Whether dlopen is supported.
17640 dlopen_support=$enable_dlopen
17641
17642 # Whether dlopen of programs is supported.
17643 dlopen_self=$enable_dlopen_self
17644
17645 # Whether dlopen of statically linked programs is supported.
17646 dlopen_self_static=$enable_dlopen_self_static
17647
17648 # Compiler flag to prevent dynamic linking.
17649 link_static_flag=$lt_lt_prog_compiler_static
17650
17651 # Compiler flag to turn off builtin functions.
17652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17653
17654 # Compiler flag to allow reflexive dlopens.
17655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17656
17657 # Compiler flag to generate shared objects directly from archives.
17658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17659
17660 # Compiler flag to generate thread-safe objects.
17661 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17662
17663 # Library versioning type.
17664 version_type=$version_type
17665
17666 # Format of library name prefix.
17667 libname_spec=$lt_libname_spec
17668
17669 # List of archive names.  First name is the real one, the rest are links.
17670 # The last name is the one that the linker finds with -lNAME.
17671 library_names_spec=$lt_library_names_spec
17672
17673 # The coded name of the library, if different from the real name.
17674 soname_spec=$lt_soname_spec
17675
17676 # Commands used to build and install an old-style archive.
17677 RANLIB=$lt_RANLIB
17678 old_archive_cmds=$lt_old_archive_cmds
17679 old_postinstall_cmds=$lt_old_postinstall_cmds
17680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17681
17682 # Create an old-style archive from a shared archive.
17683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17684
17685 # Create a temporary old-style archive to link instead of a shared archive.
17686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17687
17688 # Commands used to build and install a shared archive.
17689 archive_cmds=$lt_archive_cmds
17690 archive_expsym_cmds=$lt_archive_expsym_cmds
17691 postinstall_cmds=$lt_postinstall_cmds
17692 postuninstall_cmds=$lt_postuninstall_cmds
17693
17694 # Commands used to build a loadable module (assumed same as above if empty)
17695 module_cmds=$lt_module_cmds
17696 module_expsym_cmds=$lt_module_expsym_cmds
17697
17698 # Commands to strip libraries.
17699 old_striplib=$lt_old_striplib
17700 striplib=$lt_striplib
17701
17702 # Dependencies to place before the objects being linked to create a
17703 # shared library.
17704 predep_objects=$lt_predep_objects
17705
17706 # Dependencies to place after the objects being linked to create a
17707 # shared library.
17708 postdep_objects=$lt_postdep_objects
17709
17710 # Dependencies to place before the objects being linked to create a
17711 # shared library.
17712 predeps=$lt_predeps
17713
17714 # Dependencies to place after the objects being linked to create a
17715 # shared library.
17716 postdeps=$lt_postdeps
17717
17718 # The library search path used internally by the compiler when linking
17719 # a shared library.
17720 compiler_lib_search_path=$lt_compiler_lib_search_path
17721
17722 # Method to check whether dependent libraries are shared objects.
17723 deplibs_check_method=$lt_deplibs_check_method
17724
17725 # Command to use when deplibs_check_method == file_magic.
17726 file_magic_cmd=$lt_file_magic_cmd
17727
17728 # Flag that allows shared libraries with undefined symbols to be built.
17729 allow_undefined_flag=$lt_allow_undefined_flag
17730
17731 # Flag that forces no undefined symbols.
17732 no_undefined_flag=$lt_no_undefined_flag
17733
17734 # Commands used to finish a libtool library installation in a directory.
17735 finish_cmds=$lt_finish_cmds
17736
17737 # Same as above, but a single script fragment to be evaled but not shown.
17738 finish_eval=$lt_finish_eval
17739
17740 # Take the output of nm and produce a listing of raw symbols and C names.
17741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17742
17743 # Transform the output of nm in a proper C declaration
17744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17745
17746 # Transform the output of nm in a C name address pair
17747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17748
17749 # This is the shared library runtime path variable.
17750 runpath_var=$runpath_var
17751
17752 # This is the shared library path variable.
17753 shlibpath_var=$shlibpath_var
17754
17755 # Is shlibpath searched before the hard-coded library search path?
17756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17757
17758 # How to hardcode a shared library path into an executable.
17759 hardcode_action=$hardcode_action
17760
17761 # Whether we should hardcode library paths into libraries.
17762 hardcode_into_libs=$hardcode_into_libs
17763
17764 # Flag to hardcode \$libdir into a binary during linking.
17765 # This must work even if \$libdir does not exist.
17766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17767
17768 # If ld is used when linking, flag to hardcode \$libdir into
17769 # a binary during linking. This must work even if \$libdir does
17770 # not exist.
17771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17772
17773 # Whether we need a single -rpath flag with a separated argument.
17774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17775
17776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17777 # resulting binary.
17778 hardcode_direct=$hardcode_direct
17779
17780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17781 # resulting binary.
17782 hardcode_minus_L=$hardcode_minus_L
17783
17784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17785 # the resulting binary.
17786 hardcode_shlibpath_var=$hardcode_shlibpath_var
17787
17788 # Set to yes if building a shared library automatically hardcodes DIR into the library
17789 # and all subsequent libraries and executables linked against it.
17790 hardcode_automatic=$hardcode_automatic
17791
17792 # Variables whose values should be saved in libtool wrapper scripts and
17793 # restored at relink time.
17794 variables_saved_for_relink="$variables_saved_for_relink"
17795
17796 # Whether libtool must link a program against all its dependency libraries.
17797 link_all_deplibs=$link_all_deplibs
17798
17799 # Compile-time system search path for libraries
17800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17801
17802 # Run-time system search path for libraries
17803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17804
17805 # Fix the shell variable \$srcfile for the compiler.
17806 fix_srcfile_path="$fix_srcfile_path"
17807
17808 # Set to yes if exported symbols are required.
17809 always_export_symbols=$always_export_symbols
17810
17811 # The commands to list exported symbols.
17812 export_symbols_cmds=$lt_export_symbols_cmds
17813
17814 # The commands to extract the exported symbol list from a shared archive.
17815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17816
17817 # Symbols that should not be listed in the preloaded symbols.
17818 exclude_expsyms=$lt_exclude_expsyms
17819
17820 # Symbols that must always be exported.
17821 include_expsyms=$lt_include_expsyms
17822
17823 # ### END LIBTOOL CONFIG
17824
17825 __EOF__
17826
17827
17828   case $host_os in
17829   aix3*)
17830     cat <<\EOF >> "$cfgfile"
17831
17832 # AIX sometimes has problems with the GCC collect2 program.  For some
17833 # reason, if we set the COLLECT_NAMES environment variable, the problems
17834 # vanish in a puff of smoke.
17835 if test "X${COLLECT_NAMES+set}" != Xset; then
17836   COLLECT_NAMES=
17837   export COLLECT_NAMES
17838 fi
17839 EOF
17840     ;;
17841   esac
17842
17843   # We use sed instead of cat because bash on DJGPP gets confused if
17844   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17845   # text mode, it properly converts lines to CR/LF.  This bash problem
17846   # is reportedly fixed, but why not run on old versions too?
17847   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17848
17849   mv -f "$cfgfile" "$ofile" || \
17850     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17851   chmod +x "$ofile"
17852
17853 else
17854   # If there is no Makefile yet, we rely on a make rule to execute
17855   # `config.status --recheck' to rerun these tests and create the
17856   # libtool script then.
17857   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17858   if test -f "$ltmain_in"; then
17859     test -f Makefile && make "$ltmain"
17860   fi
17861 fi
17862
17863
17864 ac_ext=c
17865 ac_cpp='$CPP $CPPFLAGS'
17866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17869
17870 CC="$lt_save_CC"
17871
17872
17873 # Check whether --with-tags was given.
17874 if test "${with_tags+set}" = set; then
17875   withval=$with_tags; tagnames="$withval"
17876 fi
17877
17878
17879 if test -f "$ltmain" && test -n "$tagnames"; then
17880   if test ! -f "${ofile}"; then
17881     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17882 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17883   fi
17884
17885   if test -z "$LTCC"; then
17886     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17887     if test -z "$LTCC"; then
17888       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17889 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17890     else
17891       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17892 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17893     fi
17894   fi
17895   if test -z "$LTCFLAGS"; then
17896     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17897   fi
17898
17899   # Extract list of available tagged configurations in $ofile.
17900   # Note that this assumes the entire list is on one line.
17901   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17902
17903   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17904   for tagname in $tagnames; do
17905     IFS="$lt_save_ifs"
17906     # Check whether tagname contains only valid characters
17907     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17908     "") ;;
17909     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17910 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17911    { (exit 1); exit 1; }; }
17912         ;;
17913     esac
17914
17915     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17916     then
17917       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17918 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17919    { (exit 1); exit 1; }; }
17920     fi
17921
17922     # Update the list of available tags.
17923     if test -n "$tagname"; then
17924       echo appending configuration tag \"$tagname\" to $ofile
17925
17926       case $tagname in
17927       CXX)
17928         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17929             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17930             (test "X$CXX" != "Xg++"))) ; then
17931           ac_ext=cpp
17932 ac_cpp='$CXXCPP $CPPFLAGS'
17933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17936
17937
17938
17939
17940 archive_cmds_need_lc_CXX=no
17941 allow_undefined_flag_CXX=
17942 always_export_symbols_CXX=no
17943 archive_expsym_cmds_CXX=
17944 export_dynamic_flag_spec_CXX=
17945 hardcode_direct_CXX=no
17946 hardcode_libdir_flag_spec_CXX=
17947 hardcode_libdir_flag_spec_ld_CXX=
17948 hardcode_libdir_separator_CXX=
17949 hardcode_minus_L_CXX=no
17950 hardcode_shlibpath_var_CXX=unsupported
17951 hardcode_automatic_CXX=no
17952 module_cmds_CXX=
17953 module_expsym_cmds_CXX=
17954 link_all_deplibs_CXX=unknown
17955 old_archive_cmds_CXX=$old_archive_cmds
17956 no_undefined_flag_CXX=
17957 whole_archive_flag_spec_CXX=
17958 enable_shared_with_static_runtimes_CXX=no
17959
17960 # Dependencies to place before and after the object being linked:
17961 predep_objects_CXX=
17962 postdep_objects_CXX=
17963 predeps_CXX=
17964 postdeps_CXX=
17965 compiler_lib_search_path_CXX=
17966
17967 # Source file extension for C++ test sources.
17968 ac_ext=cpp
17969
17970 # Object file extension for compiled C++ test sources.
17971 objext=o
17972 objext_CXX=$objext
17973
17974 # Code to be used in simple compile tests
17975 lt_simple_compile_test_code="int some_variable = 0;\n"
17976
17977 # Code to be used in simple link tests
17978 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17979
17980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17981
17982 # If no C compiler was specified, use CC.
17983 LTCC=${LTCC-"$CC"}
17984
17985 # If no C compiler flags were specified, use CFLAGS.
17986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17987
17988 # Allow CC to be a program name with arguments.
17989 compiler=$CC
17990
17991
17992 # save warnings/boilerplate of simple test code
17993 ac_outfile=conftest.$ac_objext
17994 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17996 _lt_compiler_boilerplate=`cat conftest.err`
17997 $rm conftest*
17998
17999 ac_outfile=conftest.$ac_objext
18000 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18002 _lt_linker_boilerplate=`cat conftest.err`
18003 $rm conftest*
18004
18005
18006 # Allow CC to be a program name with arguments.
18007 lt_save_CC=$CC
18008 lt_save_LD=$LD
18009 lt_save_GCC=$GCC
18010 GCC=$GXX
18011 lt_save_with_gnu_ld=$with_gnu_ld
18012 lt_save_path_LD=$lt_cv_path_LD
18013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18014   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18015 else
18016   $as_unset lt_cv_prog_gnu_ld
18017 fi
18018 if test -n "${lt_cv_path_LDCXX+set}"; then
18019   lt_cv_path_LD=$lt_cv_path_LDCXX
18020 else
18021   $as_unset lt_cv_path_LD
18022 fi
18023 test -z "${LDCXX+set}" || LD=$LDCXX
18024 CC=${CXX-"c++"}
18025 compiler=$CC
18026 compiler_CXX=$CC
18027 for cc_temp in $compiler""; do
18028   case $cc_temp in
18029     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18030     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18031     \-*) ;;
18032     *) break;;
18033   esac
18034 done
18035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18036
18037
18038 # We don't want -fno-exception wen compiling C++ code, so set the
18039 # no_builtin_flag separately
18040 if test "$GXX" = yes; then
18041   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18042 else
18043   lt_prog_compiler_no_builtin_flag_CXX=
18044 fi
18045
18046 if test "$GXX" = yes; then
18047   # Set up default GNU C++ configuration
18048
18049
18050 # Check whether --with-gnu-ld was given.
18051 if test "${with_gnu_ld+set}" = set; then
18052   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18053 else
18054   with_gnu_ld=no
18055 fi
18056
18057 ac_prog=ld
18058 if test "$GCC" = yes; then
18059   # Check if gcc -print-prog-name=ld gives a path.
18060   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18062   case $host in
18063   *-*-mingw*)
18064     # gcc leaves a trailing carriage return which upsets mingw
18065     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18066   *)
18067     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18068   esac
18069   case $ac_prog in
18070     # Accept absolute paths.
18071     [\\/]* | ?:[\\/]*)
18072       re_direlt='/[^/][^/]*/\.\./'
18073       # Canonicalize the pathname of ld
18074       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18075       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18076         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18077       done
18078       test -z "$LD" && LD="$ac_prog"
18079       ;;
18080   "")
18081     # If it fails, then pretend we aren't using GCC.
18082     ac_prog=ld
18083     ;;
18084   *)
18085     # If it is relative, then search for the first ld in PATH.
18086     with_gnu_ld=unknown
18087     ;;
18088   esac
18089 elif test "$with_gnu_ld" = yes; then
18090   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18092 else
18093   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18095 fi
18096 if test "${lt_cv_path_LD+set}" = set; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099   if test -z "$LD"; then
18100   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18101   for ac_dir in $PATH; do
18102     IFS="$lt_save_ifs"
18103     test -z "$ac_dir" && ac_dir=.
18104     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18105       lt_cv_path_LD="$ac_dir/$ac_prog"
18106       # Check to see if the program is GNU ld.  I'd rather use --version,
18107       # but apparently some variants of GNU ld only accept -v.
18108       # Break only if it was the GNU/non-GNU ld that we prefer.
18109       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18110       *GNU* | *'with BFD'*)
18111         test "$with_gnu_ld" != no && break
18112         ;;
18113       *)
18114         test "$with_gnu_ld" != yes && break
18115         ;;
18116       esac
18117     fi
18118   done
18119   IFS="$lt_save_ifs"
18120 else
18121   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18122 fi
18123 fi
18124
18125 LD="$lt_cv_path_LD"
18126 if test -n "$LD"; then
18127   { echo "$as_me:$LINENO: result: $LD" >&5
18128 echo "${ECHO_T}$LD" >&6; }
18129 else
18130   { echo "$as_me:$LINENO: result: no" >&5
18131 echo "${ECHO_T}no" >&6; }
18132 fi
18133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18135    { (exit 1); exit 1; }; }
18136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18139   echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18142 case `$LD -v 2>&1 </dev/null` in
18143 *GNU* | *'with BFD'*)
18144   lt_cv_prog_gnu_ld=yes
18145   ;;
18146 *)
18147   lt_cv_prog_gnu_ld=no
18148   ;;
18149 esac
18150 fi
18151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18153 with_gnu_ld=$lt_cv_prog_gnu_ld
18154
18155
18156
18157   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18158   # archiving commands below assume that GNU ld is being used.
18159   if test "$with_gnu_ld" = yes; then
18160     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18161     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'
18162
18163     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18164     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18165
18166     # If archive_cmds runs LD, not CC, wlarc should be empty
18167     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18168     #     investigate it a little bit more. (MM)
18169     wlarc='${wl}'
18170
18171     # ancient GNU ld didn't support --whole-archive et. al.
18172     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18173         grep 'no-whole-archive' > /dev/null; then
18174       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18175     else
18176       whole_archive_flag_spec_CXX=
18177     fi
18178   else
18179     with_gnu_ld=no
18180     wlarc=
18181
18182     # A generic and very simple default shared library creation
18183     # command for GNU C++ for the case where it uses the native
18184     # linker, instead of GNU ld.  If possible, this setting should
18185     # overridden to take advantage of the native linker features on
18186     # the platform it is being used on.
18187     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18188   fi
18189
18190   # Commands to make compiler produce verbose output that lists
18191   # what "hidden" libraries, object files and flags are used when
18192   # linking a shared library.
18193   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18194
18195 else
18196   GXX=no
18197   with_gnu_ld=no
18198   wlarc=
18199 fi
18200
18201 # PORTME: fill in a description of your system's C++ link characteristics
18202 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18203 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18204 ld_shlibs_CXX=yes
18205 case $host_os in
18206   aix3*)
18207     # FIXME: insert proper C++ library support
18208     ld_shlibs_CXX=no
18209     ;;
18210   aix4* | aix5*)
18211     if test "$host_cpu" = ia64; then
18212       # On IA64, the linker does run time linking by default, so we don't
18213       # have to do anything special.
18214       aix_use_runtimelinking=no
18215       exp_sym_flag='-Bexport'
18216       no_entry_flag=""
18217     else
18218       aix_use_runtimelinking=no
18219
18220       # Test if we are trying to use run time linking or normal
18221       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18222       # need to do runtime linking.
18223       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18224         for ld_flag in $LDFLAGS; do
18225           case $ld_flag in
18226           *-brtl*)
18227             aix_use_runtimelinking=yes
18228             break
18229             ;;
18230           esac
18231         done
18232         ;;
18233       esac
18234
18235       exp_sym_flag='-bexport'
18236       no_entry_flag='-bnoentry'
18237     fi
18238
18239     # When large executables or shared objects are built, AIX ld can
18240     # have problems creating the table of contents.  If linking a library
18241     # or program results in "error TOC overflow" add -mminimal-toc to
18242     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18243     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18244
18245     archive_cmds_CXX=''
18246     hardcode_direct_CXX=yes
18247     hardcode_libdir_separator_CXX=':'
18248     link_all_deplibs_CXX=yes
18249
18250     if test "$GXX" = yes; then
18251       case $host_os in aix4.[012]|aix4.[012].*)
18252       # We only want to do this on AIX 4.2 and lower, the check
18253       # below for broken collect2 doesn't work under 4.3+
18254         collect2name=`${CC} -print-prog-name=collect2`
18255         if test -f "$collect2name" && \
18256            strings "$collect2name" | grep resolve_lib_name >/dev/null
18257         then
18258           # We have reworked collect2
18259           hardcode_direct_CXX=yes
18260         else
18261           # We have old collect2
18262           hardcode_direct_CXX=unsupported
18263           # It fails to find uninstalled libraries when the uninstalled
18264           # path is not listed in the libpath.  Setting hardcode_minus_L
18265           # to unsupported forces relinking
18266           hardcode_minus_L_CXX=yes
18267           hardcode_libdir_flag_spec_CXX='-L$libdir'
18268           hardcode_libdir_separator_CXX=
18269         fi
18270         ;;
18271       esac
18272       shared_flag='-shared'
18273       if test "$aix_use_runtimelinking" = yes; then
18274         shared_flag="$shared_flag "'${wl}-G'
18275       fi
18276     else
18277       # not using gcc
18278       if test "$host_cpu" = ia64; then
18279         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18280         # chokes on -Wl,-G. The following line is correct:
18281         shared_flag='-G'
18282       else
18283         if test "$aix_use_runtimelinking" = yes; then
18284           shared_flag='${wl}-G'
18285         else
18286           shared_flag='${wl}-bM:SRE'
18287         fi
18288       fi
18289     fi
18290
18291     # It seems that -bexpall does not export symbols beginning with
18292     # underscore (_), so it is better to generate a list of symbols to export.
18293     always_export_symbols_CXX=yes
18294     if test "$aix_use_runtimelinking" = yes; then
18295       # Warning - without using the other runtime loading flags (-brtl),
18296       # -berok will link without error, but may produce a broken library.
18297       allow_undefined_flag_CXX='-berok'
18298       # Determine the default libpath from the value encoded in an empty executable.
18299       cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h.  */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h.  */
18305
18306 int
18307 main ()
18308 {
18309
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (ac_try="$ac_link"
18316 case "(($ac_try" in
18317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318   *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321   (eval "$ac_link") 2>conftest.er1
18322   ac_status=$?
18323   grep -v '^ *+' conftest.er1 >conftest.err
18324   rm -f conftest.er1
18325   cat conftest.err >&5
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); } &&
18328          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18329   { (case "(($ac_try" in
18330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331   *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334   (eval "$ac_try") 2>&5
18335   ac_status=$?
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); }; } &&
18338          { ac_try='test -s conftest$ac_exeext'
18339   { (case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344   (eval "$ac_try") 2>&5
18345   ac_status=$?
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); }; }; then
18348
18349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18350 }'`
18351 # Check for a 64-bit object if we didn't find anything.
18352 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; }
18353 }'`; fi
18354 else
18355   echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358
18359 fi
18360
18361 rm -f core conftest.err conftest.$ac_objext \
18362       conftest$ac_exeext conftest.$ac_ext
18363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18364
18365       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18366
18367       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"
18368      else
18369       if test "$host_cpu" = ia64; then
18370         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18371         allow_undefined_flag_CXX="-z nodefs"
18372         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"
18373       else
18374         # Determine the default libpath from the value encoded in an empty executable.
18375         cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h.  */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h.  */
18381
18382 int
18383 main ()
18384 {
18385
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (ac_try="$ac_link"
18392 case "(($ac_try" in
18393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394   *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397   (eval "$ac_link") 2>conftest.er1
18398   ac_status=$?
18399   grep -v '^ *+' conftest.er1 >conftest.err
18400   rm -f conftest.er1
18401   cat conftest.err >&5
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } &&
18404          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405   { (case "(($ac_try" in
18406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407   *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410   (eval "$ac_try") 2>&5
18411   ac_status=$?
18412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); }; } &&
18414          { ac_try='test -s conftest$ac_exeext'
18415   { (case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_try") 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424
18425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18426 }'`
18427 # Check for a 64-bit object if we didn't find anything.
18428 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; }
18429 }'`; fi
18430 else
18431   echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434
18435 fi
18436
18437 rm -f core conftest.err conftest.$ac_objext \
18438       conftest$ac_exeext conftest.$ac_ext
18439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18440
18441         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18442         # Warning - without using the other run time loading flags,
18443         # -berok will link without error, but may produce a broken library.
18444         no_undefined_flag_CXX=' ${wl}-bernotok'
18445         allow_undefined_flag_CXX=' ${wl}-berok'
18446         # Exported symbols can be pulled into shared objects from archives
18447         whole_archive_flag_spec_CXX='$convenience'
18448         archive_cmds_need_lc_CXX=yes
18449         # This is similar to how AIX traditionally builds its shared libraries.
18450         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'
18451       fi
18452     fi
18453     ;;
18454
18455   beos*)
18456     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18457       allow_undefined_flag_CXX=unsupported
18458       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18459       # support --undefined.  This deserves some investigation.  FIXME
18460       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18461     else
18462       ld_shlibs_CXX=no
18463     fi
18464     ;;
18465
18466   chorus*)
18467     case $cc_basename in
18468       *)
18469         # FIXME: insert proper C++ library support
18470         ld_shlibs_CXX=no
18471         ;;
18472     esac
18473     ;;
18474
18475   cygwin* | mingw* | pw32*)
18476     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18477     # as there is no search path for DLLs.
18478     hardcode_libdir_flag_spec_CXX='-L$libdir'
18479     allow_undefined_flag_CXX=unsupported
18480     always_export_symbols_CXX=no
18481     enable_shared_with_static_runtimes_CXX=yes
18482
18483     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18484       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'
18485       # If the export-symbols file already is a .def file (1st line
18486       # is EXPORTS), use it as is; otherwise, prepend...
18487       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18488         cp $export_symbols $output_objdir/$soname.def;
18489       else
18490         echo EXPORTS > $output_objdir/$soname.def;
18491         cat $export_symbols >> $output_objdir/$soname.def;
18492       fi~
18493       $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'
18494     else
18495       ld_shlibs_CXX=no
18496     fi
18497   ;;
18498       darwin* | rhapsody*)
18499         case $host_os in
18500         rhapsody* | darwin1.[012])
18501          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18502          ;;
18503        *) # Darwin 1.3 on
18504          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18505            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18506          else
18507            case ${MACOSX_DEPLOYMENT_TARGET} in
18508              10.[012])
18509                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18510                ;;
18511              10.*)
18512                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18513                ;;
18514            esac
18515          fi
18516          ;;
18517         esac
18518       archive_cmds_need_lc_CXX=no
18519       hardcode_direct_CXX=no
18520       hardcode_automatic_CXX=yes
18521       hardcode_shlibpath_var_CXX=unsupported
18522       whole_archive_flag_spec_CXX=''
18523       link_all_deplibs_CXX=yes
18524
18525     if test "$GXX" = yes ; then
18526       lt_int_apple_cc_single_mod=no
18527       output_verbose_link_cmd='echo'
18528       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18529        lt_int_apple_cc_single_mod=yes
18530       fi
18531       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18532        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18533       else
18534           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'
18535         fi
18536         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18537         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18538           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18539             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}'
18540           else
18541             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}'
18542           fi
18543             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}'
18544       else
18545       case $cc_basename in
18546         xlc*)
18547          output_verbose_link_cmd='echo'
18548           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'
18549           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18550           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18551           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}'
18552           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}'
18553           ;;
18554        *)
18555          ld_shlibs_CXX=no
18556           ;;
18557       esac
18558       fi
18559         ;;
18560
18561   dgux*)
18562     case $cc_basename in
18563       ec++*)
18564         # FIXME: insert proper C++ library support
18565         ld_shlibs_CXX=no
18566         ;;
18567       ghcx*)
18568         # Green Hills C++ Compiler
18569         # FIXME: insert proper C++ library support
18570         ld_shlibs_CXX=no
18571         ;;
18572       *)
18573         # FIXME: insert proper C++ library support
18574         ld_shlibs_CXX=no
18575         ;;
18576     esac
18577     ;;
18578   freebsd[12]*)
18579     # C++ shared libraries reported to be fairly broken before switch to ELF
18580     ld_shlibs_CXX=no
18581     ;;
18582   freebsd-elf*)
18583     archive_cmds_need_lc_CXX=no
18584     ;;
18585   freebsd* | kfreebsd*-gnu | dragonfly*)
18586     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18587     # conventions
18588     ld_shlibs_CXX=yes
18589     ;;
18590   gnu*)
18591     ;;
18592   hpux9*)
18593     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18594     hardcode_libdir_separator_CXX=:
18595     export_dynamic_flag_spec_CXX='${wl}-E'
18596     hardcode_direct_CXX=yes
18597     hardcode_minus_L_CXX=yes # Not in the search PATH,
18598                                 # but as the default
18599                                 # location of the library.
18600
18601     case $cc_basename in
18602     CC*)
18603       # FIXME: insert proper C++ library support
18604       ld_shlibs_CXX=no
18605       ;;
18606     aCC*)
18607       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'
18608       # Commands to make compiler produce verbose output that lists
18609       # what "hidden" libraries, object files and flags are used when
18610       # linking a shared library.
18611       #
18612       # There doesn't appear to be a way to prevent this compiler from
18613       # explicitly linking system object files so we need to strip them
18614       # from the output so that they don't get included in the library
18615       # dependencies.
18616       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'
18617       ;;
18618     *)
18619       if test "$GXX" = yes; then
18620         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'
18621       else
18622         # FIXME: insert proper C++ library support
18623         ld_shlibs_CXX=no
18624       fi
18625       ;;
18626     esac
18627     ;;
18628   hpux10*|hpux11*)
18629     if test $with_gnu_ld = no; then
18630       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18631       hardcode_libdir_separator_CXX=:
18632
18633       case $host_cpu in
18634       hppa*64*|ia64*)
18635         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18636         ;;
18637       *)
18638         export_dynamic_flag_spec_CXX='${wl}-E'
18639         ;;
18640       esac
18641     fi
18642     case $host_cpu in
18643     hppa*64*|ia64*)
18644       hardcode_direct_CXX=no
18645       hardcode_shlibpath_var_CXX=no
18646       ;;
18647     *)
18648       hardcode_direct_CXX=yes
18649       hardcode_minus_L_CXX=yes # Not in the search PATH,
18650                                               # but as the default
18651                                               # location of the library.
18652       ;;
18653     esac
18654
18655     case $cc_basename in
18656       CC*)
18657         # FIXME: insert proper C++ library support
18658         ld_shlibs_CXX=no
18659         ;;
18660       aCC*)
18661         case $host_cpu in
18662         hppa*64*)
18663           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18664           ;;
18665         ia64*)
18666           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18667           ;;
18668         *)
18669           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18670           ;;
18671         esac
18672         # Commands to make compiler produce verbose output that lists
18673         # what "hidden" libraries, object files and flags are used when
18674         # linking a shared library.
18675         #
18676         # There doesn't appear to be a way to prevent this compiler from
18677         # explicitly linking system object files so we need to strip them
18678         # from the output so that they don't get included in the library
18679         # dependencies.
18680         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'
18681         ;;
18682       *)
18683         if test "$GXX" = yes; then
18684           if test $with_gnu_ld = no; then
18685             case $host_cpu in
18686             hppa*64*)
18687               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18688               ;;
18689             ia64*)
18690               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18691               ;;
18692             *)
18693               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'
18694               ;;
18695             esac
18696           fi
18697         else
18698           # FIXME: insert proper C++ library support
18699           ld_shlibs_CXX=no
18700         fi
18701         ;;
18702     esac
18703     ;;
18704   interix3*)
18705     hardcode_direct_CXX=no
18706     hardcode_shlibpath_var_CXX=no
18707     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18708     export_dynamic_flag_spec_CXX='${wl}-E'
18709     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18710     # Instead, shared libraries are loaded at an image base (0x10000000 by
18711     # default) and relocated if they conflict, which is a slow very memory
18712     # consuming and fragmenting process.  To avoid this, we pick a random,
18713     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18714     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18715     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'
18716     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'
18717     ;;
18718   irix5* | irix6*)
18719     case $cc_basename in
18720       CC*)
18721         # SGI C++
18722         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'
18723
18724         # Archives containing C++ object files must be created using
18725         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18726         # necessary to make sure instantiated templates are included
18727         # in the archive.
18728         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18729         ;;
18730       *)
18731         if test "$GXX" = yes; then
18732           if test "$with_gnu_ld" = no; then
18733             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'
18734           else
18735             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'
18736           fi
18737         fi
18738         link_all_deplibs_CXX=yes
18739         ;;
18740     esac
18741     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18742     hardcode_libdir_separator_CXX=:
18743     ;;
18744   linux*)
18745     case $cc_basename in
18746       KCC*)
18747         # Kuck and Associates, Inc. (KAI) C++ Compiler
18748
18749         # KCC will only create a shared library if the output file
18750         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18751         # to its proper name (with version) after linking.
18752         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'
18753         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'
18754         # Commands to make compiler produce verbose output that lists
18755         # what "hidden" libraries, object files and flags are used when
18756         # linking a shared library.
18757         #
18758         # There doesn't appear to be a way to prevent this compiler from
18759         # explicitly linking system object files so we need to strip them
18760         # from the output so that they don't get included in the library
18761         # dependencies.
18762         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'
18763
18764         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18765         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18766
18767         # Archives containing C++ object files must be created using
18768         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18769         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18770         ;;
18771       icpc*)
18772         # Intel C++
18773         with_gnu_ld=yes
18774         # version 8.0 and above of icpc choke on multiply defined symbols
18775         # if we add $predep_objects and $postdep_objects, however 7.1 and
18776         # earlier do not add the objects themselves.
18777         case `$CC -V 2>&1` in
18778         *"Version 7."*)
18779           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18780           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'
18781           ;;
18782         *)  # Version 8.0 or newer
18783           tmp_idyn=
18784           case $host_cpu in
18785             ia64*) tmp_idyn=' -i_dynamic';;
18786           esac
18787           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18788           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'
18789           ;;
18790         esac
18791         archive_cmds_need_lc_CXX=no
18792         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18793         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18794         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18795         ;;
18796       pgCC*)
18797         # Portland Group C++ compiler
18798         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18799         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'
18800
18801         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18802         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18803         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'
18804         ;;
18805       cxx*)
18806         # Compaq C++
18807         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18808         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'
18809
18810         runpath_var=LD_RUN_PATH
18811         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18812         hardcode_libdir_separator_CXX=:
18813
18814         # Commands to make compiler produce verbose output that lists
18815         # what "hidden" libraries, object files and flags are used when
18816         # linking a shared library.
18817         #
18818         # There doesn't appear to be a way to prevent this compiler from
18819         # explicitly linking system object files so we need to strip them
18820         # from the output so that they don't get included in the library
18821         # dependencies.
18822         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'
18823         ;;
18824     esac
18825     ;;
18826   lynxos*)
18827     # FIXME: insert proper C++ library support
18828     ld_shlibs_CXX=no
18829     ;;
18830   m88k*)
18831     # FIXME: insert proper C++ library support
18832     ld_shlibs_CXX=no
18833     ;;
18834   mvs*)
18835     case $cc_basename in
18836       cxx*)
18837         # FIXME: insert proper C++ library support
18838         ld_shlibs_CXX=no
18839         ;;
18840       *)
18841         # FIXME: insert proper C++ library support
18842         ld_shlibs_CXX=no
18843         ;;
18844     esac
18845     ;;
18846   netbsd*)
18847     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18848       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18849       wlarc=
18850       hardcode_libdir_flag_spec_CXX='-R$libdir'
18851       hardcode_direct_CXX=yes
18852       hardcode_shlibpath_var_CXX=no
18853     fi
18854     # Workaround some broken pre-1.5 toolchains
18855     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18856     ;;
18857   openbsd2*)
18858     # C++ shared libraries are fairly broken
18859     ld_shlibs_CXX=no
18860     ;;
18861   openbsd*)
18862     hardcode_direct_CXX=yes
18863     hardcode_shlibpath_var_CXX=no
18864     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18865     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18866     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18867       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18868       export_dynamic_flag_spec_CXX='${wl}-E'
18869       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18870     fi
18871     output_verbose_link_cmd='echo'
18872     ;;
18873   osf3*)
18874     case $cc_basename in
18875       KCC*)
18876         # Kuck and Associates, Inc. (KAI) C++ Compiler
18877
18878         # KCC will only create a shared library if the output file
18879         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18880         # to its proper name (with version) after linking.
18881         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'
18882
18883         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18884         hardcode_libdir_separator_CXX=:
18885
18886         # Archives containing C++ object files must be created using
18887         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18888         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18889
18890         ;;
18891       RCC*)
18892         # Rational C++ 2.4.1
18893         # FIXME: insert proper C++ library support
18894         ld_shlibs_CXX=no
18895         ;;
18896       cxx*)
18897         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18898         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'
18899
18900         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18901         hardcode_libdir_separator_CXX=:
18902
18903         # Commands to make compiler produce verbose output that lists
18904         # what "hidden" libraries, object files and flags are used when
18905         # linking a shared library.
18906         #
18907         # There doesn't appear to be a way to prevent this compiler from
18908         # explicitly linking system object files so we need to strip them
18909         # from the output so that they don't get included in the library
18910         # dependencies.
18911         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'
18912         ;;
18913       *)
18914         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18915           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18916           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'
18917
18918           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18919           hardcode_libdir_separator_CXX=:
18920
18921           # Commands to make compiler produce verbose output that lists
18922           # what "hidden" libraries, object files and flags are used when
18923           # linking a shared library.
18924           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18925
18926         else
18927           # FIXME: insert proper C++ library support
18928           ld_shlibs_CXX=no
18929         fi
18930         ;;
18931     esac
18932     ;;
18933   osf4* | osf5*)
18934     case $cc_basename in
18935       KCC*)
18936         # Kuck and Associates, Inc. (KAI) C++ Compiler
18937
18938         # KCC will only create a shared library if the output file
18939         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18940         # to its proper name (with version) after linking.
18941         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'
18942
18943         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18944         hardcode_libdir_separator_CXX=:
18945
18946         # Archives containing C++ object files must be created using
18947         # the KAI C++ compiler.
18948         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18949         ;;
18950       RCC*)
18951         # Rational C++ 2.4.1
18952         # FIXME: insert proper C++ library support
18953         ld_shlibs_CXX=no
18954         ;;
18955       cxx*)
18956         allow_undefined_flag_CXX=' -expect_unresolved \*'
18957         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'
18958         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18959           echo "-hidden">> $lib.exp~
18960           $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~
18961           $rm $lib.exp'
18962
18963         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18964         hardcode_libdir_separator_CXX=:
18965
18966         # Commands to make compiler produce verbose output that lists
18967         # what "hidden" libraries, object files and flags are used when
18968         # linking a shared library.
18969         #
18970         # There doesn't appear to be a way to prevent this compiler from
18971         # explicitly linking system object files so we need to strip them
18972         # from the output so that they don't get included in the library
18973         # dependencies.
18974         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'
18975         ;;
18976       *)
18977         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18978           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18979          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'
18980
18981           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18982           hardcode_libdir_separator_CXX=:
18983
18984           # Commands to make compiler produce verbose output that lists
18985           # what "hidden" libraries, object files and flags are used when
18986           # linking a shared library.
18987           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18988
18989         else
18990           # FIXME: insert proper C++ library support
18991           ld_shlibs_CXX=no
18992         fi
18993         ;;
18994     esac
18995     ;;
18996   psos*)
18997     # FIXME: insert proper C++ library support
18998     ld_shlibs_CXX=no
18999     ;;
19000   sunos4*)
19001     case $cc_basename in
19002       CC*)
19003         # Sun C++ 4.x
19004         # FIXME: insert proper C++ library support
19005         ld_shlibs_CXX=no
19006         ;;
19007       lcc*)
19008         # Lucid
19009         # FIXME: insert proper C++ library support
19010         ld_shlibs_CXX=no
19011         ;;
19012       *)
19013         # FIXME: insert proper C++ library support
19014         ld_shlibs_CXX=no
19015         ;;
19016     esac
19017     ;;
19018   solaris*)
19019     case $cc_basename in
19020       CC*)
19021         # Sun C++ 4.2, 5.x and Centerline C++
19022         archive_cmds_need_lc_CXX=yes
19023         no_undefined_flag_CXX=' -zdefs'
19024         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19025         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19026         $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'
19027
19028         hardcode_libdir_flag_spec_CXX='-R$libdir'
19029         hardcode_shlibpath_var_CXX=no
19030         case $host_os in
19031           solaris2.[0-5] | solaris2.[0-5].*) ;;
19032           *)
19033             # The C++ compiler is used as linker so we must use $wl
19034             # flag to pass the commands to the underlying system
19035             # linker. We must also pass each convience library through
19036             # to the system linker between allextract/defaultextract.
19037             # The C++ compiler will combine linker options so we
19038             # cannot just pass the convience library names through
19039             # without $wl.
19040             # Supported since Solaris 2.6 (maybe 2.5.1?)
19041             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'
19042             ;;
19043         esac
19044         link_all_deplibs_CXX=yes
19045
19046         output_verbose_link_cmd='echo'
19047
19048         # Archives containing C++ object files must be created using
19049         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19050         # necessary to make sure instantiated templates are included
19051         # in the archive.
19052         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19053         ;;
19054       gcx*)
19055         # Green Hills C++ Compiler
19056         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19057
19058         # The C++ compiler must be used to create the archive.
19059         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19060         ;;
19061       *)
19062         # GNU C++ compiler with Solaris linker
19063         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19064           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19065           if $CC --version | grep -v '^2\.7' > /dev/null; then
19066             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19067             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19068                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19069
19070             # Commands to make compiler produce verbose output that lists
19071             # what "hidden" libraries, object files and flags are used when
19072             # linking a shared library.
19073             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19074           else
19075             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19076             # platform.
19077             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19078             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19079                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19080
19081             # Commands to make compiler produce verbose output that lists
19082             # what "hidden" libraries, object files and flags are used when
19083             # linking a shared library.
19084             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19085           fi
19086
19087           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19088         fi
19089         ;;
19090     esac
19091     ;;
19092   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19093     no_undefined_flag_CXX='${wl}-z,text'
19094     archive_cmds_need_lc_CXX=no
19095     hardcode_shlibpath_var_CXX=no
19096     runpath_var='LD_RUN_PATH'
19097
19098     case $cc_basename in
19099       CC*)
19100         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19101         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19102         ;;
19103       *)
19104         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19105         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19106         ;;
19107     esac
19108     ;;
19109   sysv5* | sco3.2v5* | sco5v6*)
19110     # Note: We can NOT use -z defs as we might desire, because we do not
19111     # link with -lc, and that would cause any symbols used from libc to
19112     # always be unresolved, which means just about no library would
19113     # ever link correctly.  If we're not using GNU ld we use -z text
19114     # though, which does catch some bad symbols but isn't as heavy-handed
19115     # as -z defs.
19116     # For security reasons, it is highly recommended that you always
19117     # use absolute paths for naming shared libraries, and exclude the
19118     # DT_RUNPATH tag from executables and libraries.  But doing so
19119     # requires that you compile everything twice, which is a pain.
19120     # So that behaviour is only enabled if SCOABSPATH is set to a
19121     # non-empty value in the environment.  Most likely only useful for
19122     # creating official distributions of packages.
19123     # This is a hack until libtool officially supports absolute path
19124     # names for shared libraries.
19125     no_undefined_flag_CXX='${wl}-z,text'
19126     allow_undefined_flag_CXX='${wl}-z,nodefs'
19127     archive_cmds_need_lc_CXX=no
19128     hardcode_shlibpath_var_CXX=no
19129     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19130     hardcode_libdir_separator_CXX=':'
19131     link_all_deplibs_CXX=yes
19132     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19133     runpath_var='LD_RUN_PATH'
19134
19135     case $cc_basename in
19136       CC*)
19137         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19139         ;;
19140       *)
19141         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19142         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19143         ;;
19144     esac
19145     ;;
19146   tandem*)
19147     case $cc_basename in
19148       NCC*)
19149         # NonStop-UX NCC 3.20
19150         # FIXME: insert proper C++ library support
19151         ld_shlibs_CXX=no
19152         ;;
19153       *)
19154         # FIXME: insert proper C++ library support
19155         ld_shlibs_CXX=no
19156         ;;
19157     esac
19158     ;;
19159   vxworks*)
19160     # FIXME: insert proper C++ library support
19161     ld_shlibs_CXX=no
19162     ;;
19163   *)
19164     # FIXME: insert proper C++ library support
19165     ld_shlibs_CXX=no
19166     ;;
19167 esac
19168 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19169 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19170 test "$ld_shlibs_CXX" = no && can_build_shared=no
19171
19172 GCC_CXX="$GXX"
19173 LD_CXX="$LD"
19174
19175
19176 cat > conftest.$ac_ext <<EOF
19177 class Foo
19178 {
19179 public:
19180   Foo (void) { a = 0; }
19181 private:
19182   int a;
19183 };
19184 EOF
19185
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187   (eval $ac_compile) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; then
19191   # Parse the compiler output and extract the necessary
19192   # objects, libraries and library flags.
19193
19194   # Sentinel used to keep track of whether or not we are before
19195   # the conftest object file.
19196   pre_test_object_deps_done=no
19197
19198   # The `*' in the case matches for architectures that use `case' in
19199   # $output_verbose_cmd can trigger glob expansion during the loop
19200   # eval without this substitution.
19201   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19202
19203   for p in `eval $output_verbose_link_cmd`; do
19204     case $p in
19205
19206     -L* | -R* | -l*)
19207        # Some compilers place space between "-{L,R}" and the path.
19208        # Remove the space.
19209        if test $p = "-L" \
19210           || test $p = "-R"; then
19211          prev=$p
19212          continue
19213        else
19214          prev=
19215        fi
19216
19217        if test "$pre_test_object_deps_done" = no; then
19218          case $p in
19219          -L* | -R*)
19220            # Internal compiler library paths should come after those
19221            # provided the user.  The postdeps already come after the
19222            # user supplied libs so there is no need to process them.
19223            if test -z "$compiler_lib_search_path_CXX"; then
19224              compiler_lib_search_path_CXX="${prev}${p}"
19225            else
19226              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19227            fi
19228            ;;
19229          # The "-l" case would never come before the object being
19230          # linked, so don't bother handling this case.
19231          esac
19232        else
19233          if test -z "$postdeps_CXX"; then
19234            postdeps_CXX="${prev}${p}"
19235          else
19236            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19237          fi
19238        fi
19239        ;;
19240
19241     *.$objext)
19242        # This assumes that the test object file only shows up
19243        # once in the compiler output.
19244        if test "$p" = "conftest.$objext"; then
19245          pre_test_object_deps_done=yes
19246          continue
19247        fi
19248
19249        if test "$pre_test_object_deps_done" = no; then
19250          if test -z "$predep_objects_CXX"; then
19251            predep_objects_CXX="$p"
19252          else
19253            predep_objects_CXX="$predep_objects_CXX $p"
19254          fi
19255        else
19256          if test -z "$postdep_objects_CXX"; then
19257            postdep_objects_CXX="$p"
19258          else
19259            postdep_objects_CXX="$postdep_objects_CXX $p"
19260          fi
19261        fi
19262        ;;
19263
19264     *) ;; # Ignore the rest.
19265
19266     esac
19267   done
19268
19269   # Clean up.
19270   rm -f a.out a.exe
19271 else
19272   echo "libtool.m4: error: problem compiling CXX test program"
19273 fi
19274
19275 $rm -f confest.$objext
19276
19277 # PORTME: override above test on systems where it is broken
19278 case $host_os in
19279 interix3*)
19280   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19281   # hack all around it, let's just trust "g++" to DTRT.
19282   predep_objects_CXX=
19283   postdep_objects_CXX=
19284   postdeps_CXX=
19285   ;;
19286
19287 solaris*)
19288   case $cc_basename in
19289   CC*)
19290     # Adding this requires a known-good setup of shared libraries for
19291     # Sun compiler versions before 5.6, else PIC objects from an old
19292     # archive will be linked into the output, leading to subtle bugs.
19293     postdeps_CXX='-lCstd -lCrun'
19294     ;;
19295   esac
19296   ;;
19297 esac
19298
19299
19300 case " $postdeps_CXX " in
19301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19302 esac
19303
19304 lt_prog_compiler_wl_CXX=
19305 lt_prog_compiler_pic_CXX=
19306 lt_prog_compiler_static_CXX=
19307
19308 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19310
19311   # C++ specific cases for pic, static, wl, etc.
19312   if test "$GXX" = yes; then
19313     lt_prog_compiler_wl_CXX='-Wl,'
19314     lt_prog_compiler_static_CXX='-static'
19315
19316     case $host_os in
19317     aix*)
19318       # All AIX code is PIC.
19319       if test "$host_cpu" = ia64; then
19320         # AIX 5 now supports IA64 processor
19321         lt_prog_compiler_static_CXX='-Bstatic'
19322       fi
19323       ;;
19324     amigaos*)
19325       # FIXME: we need at least 68020 code to build shared libraries, but
19326       # adding the `-m68020' flag to GCC prevents building anything better,
19327       # like `-m68040'.
19328       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19329       ;;
19330     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19331       # PIC is the default for these OSes.
19332       ;;
19333     mingw* | os2* | pw32*)
19334       # This hack is so that the source file can tell whether it is being
19335       # built for inclusion in a dll (and should export symbols for example).
19336       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19337       ;;
19338     darwin* | rhapsody*)
19339       # PIC is the default on this platform
19340       # Common symbols not allowed in MH_DYLIB files
19341       lt_prog_compiler_pic_CXX='-fno-common'
19342       ;;
19343     *djgpp*)
19344       # DJGPP does not support shared libraries at all
19345       lt_prog_compiler_pic_CXX=
19346       ;;
19347     interix3*)
19348       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19349       # Instead, we relocate shared libraries at runtime.
19350       ;;
19351     sysv4*MP*)
19352       if test -d /usr/nec; then
19353         lt_prog_compiler_pic_CXX=-Kconform_pic
19354       fi
19355       ;;
19356     hpux*)
19357       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19358       # not for PA HP-UX.
19359       case $host_cpu in
19360       hppa*64*|ia64*)
19361         ;;
19362       *)
19363         lt_prog_compiler_pic_CXX='-fPIC'
19364         ;;
19365       esac
19366       ;;
19367     *)
19368       lt_prog_compiler_pic_CXX='-fPIC'
19369       ;;
19370     esac
19371   else
19372     case $host_os in
19373       aix4* | aix5*)
19374         # All AIX code is PIC.
19375         if test "$host_cpu" = ia64; then
19376           # AIX 5 now supports IA64 processor
19377           lt_prog_compiler_static_CXX='-Bstatic'
19378         else
19379           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19380         fi
19381         ;;
19382       chorus*)
19383         case $cc_basename in
19384         cxch68*)
19385           # Green Hills C++ Compiler
19386           # _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"
19387           ;;
19388         esac
19389         ;;
19390        darwin*)
19391          # PIC is the default on this platform
19392          # Common symbols not allowed in MH_DYLIB files
19393          case $cc_basename in
19394            xlc*)
19395            lt_prog_compiler_pic_CXX='-qnocommon'
19396            lt_prog_compiler_wl_CXX='-Wl,'
19397            ;;
19398          esac
19399        ;;
19400       dgux*)
19401         case $cc_basename in
19402           ec++*)
19403             lt_prog_compiler_pic_CXX='-KPIC'
19404             ;;
19405           ghcx*)
19406             # Green Hills C++ Compiler
19407             lt_prog_compiler_pic_CXX='-pic'
19408             ;;
19409           *)
19410             ;;
19411         esac
19412         ;;
19413       freebsd* | kfreebsd*-gnu | dragonfly*)
19414         # FreeBSD uses GNU C++
19415         ;;
19416       hpux9* | hpux10* | hpux11*)
19417         case $cc_basename in
19418           CC*)
19419             lt_prog_compiler_wl_CXX='-Wl,'
19420             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19421             if test "$host_cpu" != ia64; then
19422               lt_prog_compiler_pic_CXX='+Z'
19423             fi
19424             ;;
19425           aCC*)
19426             lt_prog_compiler_wl_CXX='-Wl,'
19427             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19428             case $host_cpu in
19429             hppa*64*|ia64*)
19430               # +Z the default
19431               ;;
19432             *)
19433               lt_prog_compiler_pic_CXX='+Z'
19434               ;;
19435             esac
19436             ;;
19437           *)
19438             ;;
19439         esac
19440         ;;
19441       interix*)
19442         # This is c89, which is MS Visual C++ (no shared libs)
19443         # Anyone wants to do a port?
19444         ;;
19445       irix5* | irix6* | nonstopux*)
19446         case $cc_basename in
19447           CC*)
19448             lt_prog_compiler_wl_CXX='-Wl,'
19449             lt_prog_compiler_static_CXX='-non_shared'
19450             # CC pic flag -KPIC is the default.
19451             ;;
19452           *)
19453             ;;
19454         esac
19455         ;;
19456       linux*)
19457         case $cc_basename in
19458           KCC*)
19459             # KAI C++ Compiler
19460             lt_prog_compiler_wl_CXX='--backend -Wl,'
19461             lt_prog_compiler_pic_CXX='-fPIC'
19462             ;;
19463           icpc* | ecpc*)
19464             # Intel C++
19465             lt_prog_compiler_wl_CXX='-Wl,'
19466             lt_prog_compiler_pic_CXX='-KPIC'
19467             lt_prog_compiler_static_CXX='-static'
19468             ;;
19469           pgCC*)
19470             # Portland Group C++ compiler.
19471             lt_prog_compiler_wl_CXX='-Wl,'
19472             lt_prog_compiler_pic_CXX='-fpic'
19473             lt_prog_compiler_static_CXX='-Bstatic'
19474             ;;
19475           cxx*)
19476             # Compaq C++
19477             # Make sure the PIC flag is empty.  It appears that all Alpha
19478             # Linux and Compaq Tru64 Unix objects are PIC.
19479             lt_prog_compiler_pic_CXX=
19480             lt_prog_compiler_static_CXX='-non_shared'
19481             ;;
19482           *)
19483             ;;
19484         esac
19485         ;;
19486       lynxos*)
19487         ;;
19488       m88k*)
19489         ;;
19490       mvs*)
19491         case $cc_basename in
19492           cxx*)
19493             lt_prog_compiler_pic_CXX='-W c,exportall'
19494             ;;
19495           *)
19496             ;;
19497         esac
19498         ;;
19499       netbsd*)
19500         ;;
19501       osf3* | osf4* | osf5*)
19502         case $cc_basename in
19503           KCC*)
19504             lt_prog_compiler_wl_CXX='--backend -Wl,'
19505             ;;
19506           RCC*)
19507             # Rational C++ 2.4.1
19508             lt_prog_compiler_pic_CXX='-pic'
19509             ;;
19510           cxx*)
19511             # Digital/Compaq C++
19512             lt_prog_compiler_wl_CXX='-Wl,'
19513             # Make sure the PIC flag is empty.  It appears that all Alpha
19514             # Linux and Compaq Tru64 Unix objects are PIC.
19515             lt_prog_compiler_pic_CXX=
19516             lt_prog_compiler_static_CXX='-non_shared'
19517             ;;
19518           *)
19519             ;;
19520         esac
19521         ;;
19522       psos*)
19523         ;;
19524       solaris*)
19525         case $cc_basename in
19526           CC*)
19527             # Sun C++ 4.2, 5.x and Centerline C++
19528             lt_prog_compiler_pic_CXX='-KPIC'
19529             lt_prog_compiler_static_CXX='-Bstatic'
19530             lt_prog_compiler_wl_CXX='-Qoption ld '
19531             ;;
19532           gcx*)
19533             # Green Hills C++ Compiler
19534             lt_prog_compiler_pic_CXX='-PIC'
19535             ;;
19536           *)
19537             ;;
19538         esac
19539         ;;
19540       sunos4*)
19541         case $cc_basename in
19542           CC*)
19543             # Sun C++ 4.x
19544             lt_prog_compiler_pic_CXX='-pic'
19545             lt_prog_compiler_static_CXX='-Bstatic'
19546             ;;
19547           lcc*)
19548             # Lucid
19549             lt_prog_compiler_pic_CXX='-pic'
19550             ;;
19551           *)
19552             ;;
19553         esac
19554         ;;
19555       tandem*)
19556         case $cc_basename in
19557           NCC*)
19558             # NonStop-UX NCC 3.20
19559             lt_prog_compiler_pic_CXX='-KPIC'
19560             ;;
19561           *)
19562             ;;
19563         esac
19564         ;;
19565       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19566         case $cc_basename in
19567           CC*)
19568             lt_prog_compiler_wl_CXX='-Wl,'
19569             lt_prog_compiler_pic_CXX='-KPIC'
19570             lt_prog_compiler_static_CXX='-Bstatic'
19571             ;;
19572         esac
19573         ;;
19574       vxworks*)
19575         ;;
19576       *)
19577         lt_prog_compiler_can_build_shared_CXX=no
19578         ;;
19579     esac
19580   fi
19581
19582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19583 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19584
19585 #
19586 # Check to make sure the PIC flag actually works.
19587 #
19588 if test -n "$lt_prog_compiler_pic_CXX"; then
19589
19590 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19592 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   lt_prog_compiler_pic_works_CXX=no
19596   ac_outfile=conftest.$ac_objext
19597    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19598    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19599    # Insert the option either (1) after the last *FLAGS variable, or
19600    # (2) before a word containing "conftest.", or (3) at the end.
19601    # Note that $ac_compile itself does not contain backslashes and begins
19602    # with a dollar sign (not a hyphen), so the echo should work correctly.
19603    # The option is referenced via a variable to avoid confusing sed.
19604    lt_compile=`echo "$ac_compile" | $SED \
19605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19607    -e 's:$: $lt_compiler_flag:'`
19608    (eval echo "\"\$as_me:19608: $lt_compile\"" >&5)
19609    (eval "$lt_compile" 2>conftest.err)
19610    ac_status=$?
19611    cat conftest.err >&5
19612    echo "$as_me:19612: \$? = $ac_status" >&5
19613    if (exit $ac_status) && test -s "$ac_outfile"; then
19614      # The compiler can only warn and ignore the option if not recognized
19615      # So say no if there are warnings other than the usual output.
19616      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19617      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19618      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19619        lt_prog_compiler_pic_works_CXX=yes
19620      fi
19621    fi
19622    $rm conftest*
19623
19624 fi
19625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19626 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19627
19628 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19629     case $lt_prog_compiler_pic_CXX in
19630      "" | " "*) ;;
19631      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19632      esac
19633 else
19634     lt_prog_compiler_pic_CXX=
19635      lt_prog_compiler_can_build_shared_CXX=no
19636 fi
19637
19638 fi
19639 case $host_os in
19640   # For platforms which do not support PIC, -DPIC is meaningless:
19641   *djgpp*)
19642     lt_prog_compiler_pic_CXX=
19643     ;;
19644   *)
19645     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19646     ;;
19647 esac
19648
19649 #
19650 # Check to make sure the static flag actually works.
19651 #
19652 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19653 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19654 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19655 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19656   echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658   lt_prog_compiler_static_works_CXX=no
19659    save_LDFLAGS="$LDFLAGS"
19660    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19661    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19662    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19663      # The linker can only warn and ignore the option if not recognized
19664      # So say no if there are warnings
19665      if test -s conftest.err; then
19666        # Append any errors to the config.log.
19667        cat conftest.err 1>&5
19668        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19669        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19670        if diff conftest.exp conftest.er2 >/dev/null; then
19671          lt_prog_compiler_static_works_CXX=yes
19672        fi
19673      else
19674        lt_prog_compiler_static_works_CXX=yes
19675      fi
19676    fi
19677    $rm conftest*
19678    LDFLAGS="$save_LDFLAGS"
19679
19680 fi
19681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19682 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19683
19684 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19685     :
19686 else
19687     lt_prog_compiler_static_CXX=
19688 fi
19689
19690
19691 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19692 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19693 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19694   echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696   lt_cv_prog_compiler_c_o_CXX=no
19697    $rm -r conftest 2>/dev/null
19698    mkdir conftest
19699    cd conftest
19700    mkdir out
19701    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19702
19703    lt_compiler_flag="-o out/conftest2.$ac_objext"
19704    # Insert the option either (1) after the last *FLAGS variable, or
19705    # (2) before a word containing "conftest.", or (3) at the end.
19706    # Note that $ac_compile itself does not contain backslashes and begins
19707    # with a dollar sign (not a hyphen), so the echo should work correctly.
19708    lt_compile=`echo "$ac_compile" | $SED \
19709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19711    -e 's:$: $lt_compiler_flag:'`
19712    (eval echo "\"\$as_me:19712: $lt_compile\"" >&5)
19713    (eval "$lt_compile" 2>out/conftest.err)
19714    ac_status=$?
19715    cat out/conftest.err >&5
19716    echo "$as_me:19716: \$? = $ac_status" >&5
19717    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19718    then
19719      # The compiler can only warn and ignore the option if not recognized
19720      # So say no if there are warnings
19721      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19722      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19723      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19724        lt_cv_prog_compiler_c_o_CXX=yes
19725      fi
19726    fi
19727    chmod u+w . 2>&5
19728    $rm conftest*
19729    # SGI C++ compiler will create directory out/ii_files/ for
19730    # template instantiation
19731    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19732    $rm out/* && rmdir out
19733    cd ..
19734    rmdir conftest
19735    $rm conftest*
19736
19737 fi
19738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19740
19741
19742 hard_links="nottested"
19743 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19744   # do not overwrite the value of need_locks provided by the user
19745   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19747   hard_links=yes
19748   $rm conftest*
19749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19750   touch conftest.a
19751   ln conftest.a conftest.b 2>&5 || hard_links=no
19752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19753   { echo "$as_me:$LINENO: result: $hard_links" >&5
19754 echo "${ECHO_T}$hard_links" >&6; }
19755   if test "$hard_links" = no; then
19756     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19758     need_locks=warn
19759   fi
19760 else
19761   need_locks=no
19762 fi
19763
19764 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19766
19767   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19768   case $host_os in
19769   aix4* | aix5*)
19770     # If we're using GNU nm, then we don't want the "-C" option.
19771     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19772     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19773       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'
19774     else
19775       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'
19776     fi
19777     ;;
19778   pw32*)
19779     export_symbols_cmds_CXX="$ltdll_cmds"
19780   ;;
19781   cygwin* | mingw*)
19782     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'
19783   ;;
19784   *)
19785     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19786   ;;
19787   esac
19788
19789 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19790 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19791 test "$ld_shlibs_CXX" = no && can_build_shared=no
19792
19793 #
19794 # Do we need to explicitly link libc?
19795 #
19796 case "x$archive_cmds_need_lc_CXX" in
19797 x|xyes)
19798   # Assume -lc should be added
19799   archive_cmds_need_lc_CXX=yes
19800
19801   if test "$enable_shared" = yes && test "$GCC" = yes; then
19802     case $archive_cmds_CXX in
19803     *'~'*)
19804       # FIXME: we may have to deal with multi-command sequences.
19805       ;;
19806     '$CC '*)
19807       # Test whether the compiler implicitly links with -lc since on some
19808       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19809       # to ld, don't add -lc before -lgcc.
19810       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19811 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19812       $rm conftest*
19813       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19814
19815       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816   (eval $ac_compile) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } 2>conftest.err; then
19820         soname=conftest
19821         lib=conftest
19822         libobjs=conftest.$ac_objext
19823         deplibs=
19824         wl=$lt_prog_compiler_wl_CXX
19825         pic_flag=$lt_prog_compiler_pic_CXX
19826         compiler_flags=-v
19827         linker_flags=-v
19828         verstring=
19829         output_objdir=.
19830         libname=conftest
19831         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19832         allow_undefined_flag_CXX=
19833         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19834   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19835   ac_status=$?
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); }
19838         then
19839           archive_cmds_need_lc_CXX=no
19840         else
19841           archive_cmds_need_lc_CXX=yes
19842         fi
19843         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19844       else
19845         cat conftest.err 1>&5
19846       fi
19847       $rm conftest*
19848       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19849 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19850       ;;
19851     esac
19852   fi
19853   ;;
19854 esac
19855
19856 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19857 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19858 library_names_spec=
19859 libname_spec='lib$name'
19860 soname_spec=
19861 shrext_cmds=".so"
19862 postinstall_cmds=
19863 postuninstall_cmds=
19864 finish_cmds=
19865 finish_eval=
19866 shlibpath_var=
19867 shlibpath_overrides_runpath=unknown
19868 version_type=none
19869 dynamic_linker="$host_os ld.so"
19870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19871 if test "$GCC" = yes; then
19872   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19873   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19874     # if the path contains ";" then we assume it to be the separator
19875     # otherwise default to the standard path separator (i.e. ":") - it is
19876     # assumed that no part of a normal pathname contains ";" but that should
19877     # okay in the real world where ";" in dirpaths is itself problematic.
19878     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19879   else
19880     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19881   fi
19882 else
19883   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19884 fi
19885 need_lib_prefix=unknown
19886 hardcode_into_libs=no
19887
19888 # when you set need_version to no, make sure it does not cause -set_version
19889 # flags to be left without arguments
19890 need_version=unknown
19891
19892 case $host_os in
19893 aix3*)
19894   version_type=linux
19895   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19896   shlibpath_var=LIBPATH
19897
19898   # AIX 3 has no versioning support, so we append a major version to the name.
19899   soname_spec='${libname}${release}${shared_ext}$major'
19900   ;;
19901
19902 aix4* | aix5*)
19903   version_type=linux
19904   need_lib_prefix=no
19905   need_version=no
19906   hardcode_into_libs=yes
19907   if test "$host_cpu" = ia64; then
19908     # AIX 5 supports IA64
19909     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19910     shlibpath_var=LD_LIBRARY_PATH
19911   else
19912     # With GCC up to 2.95.x, collect2 would create an import file
19913     # for dependence libraries.  The import file would start with
19914     # the line `#! .'.  This would cause the generated library to
19915     # depend on `.', always an invalid library.  This was fixed in
19916     # development snapshots of GCC prior to 3.0.
19917     case $host_os in
19918       aix4 | aix4.[01] | aix4.[01].*)
19919       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19920            echo ' yes '
19921            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19922         :
19923       else
19924         can_build_shared=no
19925       fi
19926       ;;
19927     esac
19928     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19929     # soname into executable. Probably we can add versioning support to
19930     # collect2, so additional links can be useful in future.
19931     if test "$aix_use_runtimelinking" = yes; then
19932       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19933       # instead of lib<name>.a to let people know that these are not
19934       # typical AIX shared libraries.
19935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19936     else
19937       # We preserve .a as extension for shared libraries through AIX4.2
19938       # and later when we are not doing run time linking.
19939       library_names_spec='${libname}${release}.a $libname.a'
19940       soname_spec='${libname}${release}${shared_ext}$major'
19941     fi
19942     shlibpath_var=LIBPATH
19943   fi
19944   ;;
19945
19946 amigaos*)
19947   library_names_spec='$libname.ixlibrary $libname.a'
19948   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19949   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'
19950   ;;
19951
19952 beos*)
19953   library_names_spec='${libname}${shared_ext}'
19954   dynamic_linker="$host_os ld.so"
19955   shlibpath_var=LIBRARY_PATH
19956   ;;
19957
19958 bsdi[45]*)
19959   version_type=linux
19960   need_version=no
19961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962   soname_spec='${libname}${release}${shared_ext}$major'
19963   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19964   shlibpath_var=LD_LIBRARY_PATH
19965   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19966   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19967   # the default ld.so.conf also contains /usr/contrib/lib and
19968   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19969   # libtool to hard-code these into programs
19970   ;;
19971
19972 cygwin* | mingw* | pw32*)
19973   version_type=windows
19974   shrext_cmds=".dll"
19975   need_version=no
19976   need_lib_prefix=no
19977
19978   case $GCC,$host_os in
19979   yes,cygwin* | yes,mingw* | yes,pw32*)
19980     library_names_spec='$libname.dll.a'
19981     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19982     postinstall_cmds='base_file=`basename \${file}`~
19983       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19984       dldir=$destdir/`dirname \$dlpath`~
19985       test -d \$dldir || mkdir -p \$dldir~
19986       $install_prog $dir/$dlname \$dldir/$dlname~
19987       chmod a+x \$dldir/$dlname'
19988     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19989       dlpath=$dir/\$dldll~
19990        $rm \$dlpath'
19991     shlibpath_overrides_runpath=yes
19992
19993     case $host_os in
19994     cygwin*)
19995       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19996       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19997       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19998       ;;
19999     mingw*)
20000       # MinGW DLLs use traditional 'lib' prefix
20001       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20002       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20003       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20004         # It is most probably a Windows format PATH printed by
20005         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20006         # path with ; separators, and with drive letters. We can handle the
20007         # drive letters (cygwin fileutils understands them), so leave them,
20008         # especially as we might pass files found there to a mingw objdump,
20009         # which wouldn't understand a cygwinified path. Ahh.
20010         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20011       else
20012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20013       fi
20014       ;;
20015     pw32*)
20016       # pw32 DLLs use 'pw' prefix rather than 'lib'
20017       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20018       ;;
20019     esac
20020     ;;
20021
20022   *)
20023     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20024     ;;
20025   esac
20026   dynamic_linker='Win32 ld.exe'
20027   # FIXME: first we should search . and the directory the executable is in
20028   shlibpath_var=PATH
20029   ;;
20030
20031 darwin* | rhapsody*)
20032   dynamic_linker="$host_os dyld"
20033   version_type=darwin
20034   need_lib_prefix=no
20035   need_version=no
20036   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20037   soname_spec='${libname}${release}${major}$shared_ext'
20038   shlibpath_overrides_runpath=yes
20039   shlibpath_var=DYLD_LIBRARY_PATH
20040   shrext_cmds='.dylib'
20041   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20042   if test "$GCC" = yes; then
20043     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"`
20044   else
20045     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20046   fi
20047   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20048   ;;
20049
20050 dgux*)
20051   version_type=linux
20052   need_lib_prefix=no
20053   need_version=no
20054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20055   soname_spec='${libname}${release}${shared_ext}$major'
20056   shlibpath_var=LD_LIBRARY_PATH
20057   ;;
20058
20059 freebsd1*)
20060   dynamic_linker=no
20061   ;;
20062
20063 kfreebsd*-gnu)
20064   version_type=linux
20065   need_lib_prefix=no
20066   need_version=no
20067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20068   soname_spec='${libname}${release}${shared_ext}$major'
20069   shlibpath_var=LD_LIBRARY_PATH
20070   shlibpath_overrides_runpath=no
20071   hardcode_into_libs=yes
20072   dynamic_linker='GNU ld.so'
20073   ;;
20074
20075 freebsd* | dragonfly*)
20076   # DragonFly does not have aout.  When/if they implement a new
20077   # versioning mechanism, adjust this.
20078   if test -x /usr/bin/objformat; then
20079     objformat=`/usr/bin/objformat`
20080   else
20081     case $host_os in
20082     freebsd[123]*) objformat=aout ;;
20083     *) objformat=elf ;;
20084     esac
20085   fi
20086   version_type=freebsd-$objformat
20087   case $version_type in
20088     freebsd-elf*)
20089       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20090       need_version=no
20091       need_lib_prefix=no
20092       ;;
20093     freebsd-*)
20094       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20095       need_version=yes
20096       ;;
20097   esac
20098   shlibpath_var=LD_LIBRARY_PATH
20099   case $host_os in
20100   freebsd2*)
20101     shlibpath_overrides_runpath=yes
20102     ;;
20103   freebsd3.[01]* | freebsdelf3.[01]*)
20104     shlibpath_overrides_runpath=yes
20105     hardcode_into_libs=yes
20106     ;;
20107   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20108   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20109     shlibpath_overrides_runpath=no
20110     hardcode_into_libs=yes
20111     ;;
20112   freebsd*) # from 4.6 on
20113     shlibpath_overrides_runpath=yes
20114     hardcode_into_libs=yes
20115     ;;
20116   esac
20117   ;;
20118
20119 gnu*)
20120   version_type=linux
20121   need_lib_prefix=no
20122   need_version=no
20123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20124   soname_spec='${libname}${release}${shared_ext}$major'
20125   shlibpath_var=LD_LIBRARY_PATH
20126   hardcode_into_libs=yes
20127   ;;
20128
20129 hpux9* | hpux10* | hpux11*)
20130   # Give a soname corresponding to the major version so that dld.sl refuses to
20131   # link against other versions.
20132   version_type=sunos
20133   need_lib_prefix=no
20134   need_version=no
20135   case $host_cpu in
20136   ia64*)
20137     shrext_cmds='.so'
20138     hardcode_into_libs=yes
20139     dynamic_linker="$host_os dld.so"
20140     shlibpath_var=LD_LIBRARY_PATH
20141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143     soname_spec='${libname}${release}${shared_ext}$major'
20144     if test "X$HPUX_IA64_MODE" = X32; then
20145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20146     else
20147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20148     fi
20149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20150     ;;
20151    hppa*64*)
20152      shrext_cmds='.sl'
20153      hardcode_into_libs=yes
20154      dynamic_linker="$host_os dld.sl"
20155      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20156      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20157      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158      soname_spec='${libname}${release}${shared_ext}$major'
20159      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20160      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20161      ;;
20162    *)
20163     shrext_cmds='.sl'
20164     dynamic_linker="$host_os dld.sl"
20165     shlibpath_var=SHLIB_PATH
20166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168     soname_spec='${libname}${release}${shared_ext}$major'
20169     ;;
20170   esac
20171   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20172   postinstall_cmds='chmod 555 $lib'
20173   ;;
20174
20175 interix3*)
20176   version_type=linux
20177   need_lib_prefix=no
20178   need_version=no
20179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20180   soname_spec='${libname}${release}${shared_ext}$major'
20181   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20182   shlibpath_var=LD_LIBRARY_PATH
20183   shlibpath_overrides_runpath=no
20184   hardcode_into_libs=yes
20185   ;;
20186
20187 irix5* | irix6* | nonstopux*)
20188   case $host_os in
20189     nonstopux*) version_type=nonstopux ;;
20190     *)
20191         if test "$lt_cv_prog_gnu_ld" = yes; then
20192                 version_type=linux
20193         else
20194                 version_type=irix
20195         fi ;;
20196   esac
20197   need_lib_prefix=no
20198   need_version=no
20199   soname_spec='${libname}${release}${shared_ext}$major'
20200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20201   case $host_os in
20202   irix5* | nonstopux*)
20203     libsuff= shlibsuff=
20204     ;;
20205   *)
20206     case $LD in # libtool.m4 will add one of these switches to LD
20207     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20208       libsuff= shlibsuff= libmagic=32-bit;;
20209     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20210       libsuff=32 shlibsuff=N32 libmagic=N32;;
20211     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20212       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20213     *) libsuff= shlibsuff= libmagic=never-match;;
20214     esac
20215     ;;
20216   esac
20217   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20218   shlibpath_overrides_runpath=no
20219   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20220   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20221   hardcode_into_libs=yes
20222   ;;
20223
20224 # No shared lib support for Linux oldld, aout, or coff.
20225 linux*oldld* | linux*aout* | linux*coff*)
20226   dynamic_linker=no
20227   ;;
20228
20229 # This must be Linux ELF.
20230 linux*)
20231   version_type=linux
20232   need_lib_prefix=no
20233   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20237   shlibpath_var=LD_LIBRARY_PATH
20238   shlibpath_overrides_runpath=no
20239   # This implies no fast_install, which is unacceptable.
20240   # Some rework will be needed to allow for fast_install
20241   # before this can be enabled.
20242   hardcode_into_libs=yes
20243
20244   # Append ld.so.conf contents to the search path
20245   if test -f /etc/ld.so.conf; then
20246     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' ' '`
20247     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20248   fi
20249
20250   # We used to test for /lib/ld.so.1 and disable shared libraries on
20251   # powerpc, because MkLinux only supported shared libraries with the
20252   # GNU dynamic linker.  Since this was broken with cross compilers,
20253   # most powerpc-linux boxes support dynamic linking these days and
20254   # people can always --disable-shared, the test was removed, and we
20255   # assume the GNU/Linux dynamic linker is in use.
20256   dynamic_linker='GNU/Linux ld.so'
20257   ;;
20258
20259 knetbsd*-gnu)
20260   version_type=linux
20261   need_lib_prefix=no
20262   need_version=no
20263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20264   soname_spec='${libname}${release}${shared_ext}$major'
20265   shlibpath_var=LD_LIBRARY_PATH
20266   shlibpath_overrides_runpath=no
20267   hardcode_into_libs=yes
20268   dynamic_linker='GNU ld.so'
20269   ;;
20270
20271 netbsd*)
20272   version_type=sunos
20273   need_lib_prefix=no
20274   need_version=no
20275   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20278     dynamic_linker='NetBSD (a.out) ld.so'
20279   else
20280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20281     soname_spec='${libname}${release}${shared_ext}$major'
20282     dynamic_linker='NetBSD ld.elf_so'
20283   fi
20284   shlibpath_var=LD_LIBRARY_PATH
20285   shlibpath_overrides_runpath=yes
20286   hardcode_into_libs=yes
20287   ;;
20288
20289 newsos6)
20290   version_type=linux
20291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292   shlibpath_var=LD_LIBRARY_PATH
20293   shlibpath_overrides_runpath=yes
20294   ;;
20295
20296 nto-qnx*)
20297   version_type=linux
20298   need_lib_prefix=no
20299   need_version=no
20300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301   soname_spec='${libname}${release}${shared_ext}$major'
20302   shlibpath_var=LD_LIBRARY_PATH
20303   shlibpath_overrides_runpath=yes
20304   ;;
20305
20306 openbsd*)
20307   version_type=sunos
20308   sys_lib_dlsearch_path_spec="/usr/lib"
20309   need_lib_prefix=no
20310   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20311   case $host_os in
20312     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20313     *)                         need_version=no  ;;
20314   esac
20315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20317   shlibpath_var=LD_LIBRARY_PATH
20318   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20319     case $host_os in
20320       openbsd2.[89] | openbsd2.[89].*)
20321         shlibpath_overrides_runpath=no
20322         ;;
20323       *)
20324         shlibpath_overrides_runpath=yes
20325         ;;
20326       esac
20327   else
20328     shlibpath_overrides_runpath=yes
20329   fi
20330   ;;
20331
20332 os2*)
20333   libname_spec='$name'
20334   shrext_cmds=".dll"
20335   need_lib_prefix=no
20336   library_names_spec='$libname${shared_ext} $libname.a'
20337   dynamic_linker='OS/2 ld.exe'
20338   shlibpath_var=LIBPATH
20339   ;;
20340
20341 osf3* | osf4* | osf5*)
20342   version_type=osf
20343   need_lib_prefix=no
20344   need_version=no
20345   soname_spec='${libname}${release}${shared_ext}$major'
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347   shlibpath_var=LD_LIBRARY_PATH
20348   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20349   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20350   ;;
20351
20352 solaris*)
20353   version_type=linux
20354   need_lib_prefix=no
20355   need_version=no
20356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357   soname_spec='${libname}${release}${shared_ext}$major'
20358   shlibpath_var=LD_LIBRARY_PATH
20359   shlibpath_overrides_runpath=yes
20360   hardcode_into_libs=yes
20361   # ldd complains unless libraries are executable
20362   postinstall_cmds='chmod +x $lib'
20363   ;;
20364
20365 sunos4*)
20366   version_type=sunos
20367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20368   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20369   shlibpath_var=LD_LIBRARY_PATH
20370   shlibpath_overrides_runpath=yes
20371   if test "$with_gnu_ld" = yes; then
20372     need_lib_prefix=no
20373   fi
20374   need_version=yes
20375   ;;
20376
20377 sysv4 | sysv4.3*)
20378   version_type=linux
20379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20380   soname_spec='${libname}${release}${shared_ext}$major'
20381   shlibpath_var=LD_LIBRARY_PATH
20382   case $host_vendor in
20383     sni)
20384       shlibpath_overrides_runpath=no
20385       need_lib_prefix=no
20386       export_dynamic_flag_spec='${wl}-Blargedynsym'
20387       runpath_var=LD_RUN_PATH
20388       ;;
20389     siemens)
20390       need_lib_prefix=no
20391       ;;
20392     motorola)
20393       need_lib_prefix=no
20394       need_version=no
20395       shlibpath_overrides_runpath=no
20396       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20397       ;;
20398   esac
20399   ;;
20400
20401 sysv4*MP*)
20402   if test -d /usr/nec ;then
20403     version_type=linux
20404     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20405     soname_spec='$libname${shared_ext}.$major'
20406     shlibpath_var=LD_LIBRARY_PATH
20407   fi
20408   ;;
20409
20410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20411   version_type=freebsd-elf
20412   need_lib_prefix=no
20413   need_version=no
20414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20415   soname_spec='${libname}${release}${shared_ext}$major'
20416   shlibpath_var=LD_LIBRARY_PATH
20417   hardcode_into_libs=yes
20418   if test "$with_gnu_ld" = yes; then
20419     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20420     shlibpath_overrides_runpath=no
20421   else
20422     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20423     shlibpath_overrides_runpath=yes
20424     case $host_os in
20425       sco3.2v5*)
20426         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20427         ;;
20428     esac
20429   fi
20430   sys_lib_dlsearch_path_spec='/usr/lib'
20431   ;;
20432
20433 uts4*)
20434   version_type=linux
20435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436   soname_spec='${libname}${release}${shared_ext}$major'
20437   shlibpath_var=LD_LIBRARY_PATH
20438   ;;
20439
20440 *)
20441   dynamic_linker=no
20442   ;;
20443 esac
20444 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20445 echo "${ECHO_T}$dynamic_linker" >&6; }
20446 test "$dynamic_linker" = no && can_build_shared=no
20447
20448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20449 if test "$GCC" = yes; then
20450   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20451 fi
20452
20453 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20454 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20455 hardcode_action_CXX=
20456 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20457    test -n "$runpath_var_CXX" || \
20458    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20459
20460   # We can hardcode non-existant directories.
20461   if test "$hardcode_direct_CXX" != no &&
20462      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20463      # have to relink, otherwise we might link with an installed library
20464      # when we should be linking with a yet-to-be-installed one
20465      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20466      test "$hardcode_minus_L_CXX" != no; then
20467     # Linking always hardcodes the temporary library directory.
20468     hardcode_action_CXX=relink
20469   else
20470     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20471     hardcode_action_CXX=immediate
20472   fi
20473 else
20474   # We cannot hardcode anything, or else we can only hardcode existing
20475   # directories.
20476   hardcode_action_CXX=unsupported
20477 fi
20478 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20479 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20480
20481 if test "$hardcode_action_CXX" = relink; then
20482   # Fast installation is not supported
20483   enable_fast_install=no
20484 elif test "$shlibpath_overrides_runpath" = yes ||
20485      test "$enable_shared" = no; then
20486   # Fast installation is not necessary
20487   enable_fast_install=needless
20488 fi
20489
20490
20491 # The else clause should only fire when bootstrapping the
20492 # libtool distribution, otherwise you forgot to ship ltmain.sh
20493 # with your package, and you will get complaints that there are
20494 # no rules to generate ltmain.sh.
20495 if test -f "$ltmain"; then
20496   # See if we are running on zsh, and set the options which allow our commands through
20497   # without removal of \ escapes.
20498   if test -n "${ZSH_VERSION+set}" ; then
20499     setopt NO_GLOB_SUBST
20500   fi
20501   # Now quote all the things that may contain metacharacters while being
20502   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20503   # variables and quote the copies for generation of the libtool script.
20504   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20505     SED SHELL STRIP \
20506     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20507     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20508     deplibs_check_method reload_flag reload_cmds need_locks \
20509     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20510     lt_cv_sys_global_symbol_to_c_name_address \
20511     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20512     old_postinstall_cmds old_postuninstall_cmds \
20513     compiler_CXX \
20514     CC_CXX \
20515     LD_CXX \
20516     lt_prog_compiler_wl_CXX \
20517     lt_prog_compiler_pic_CXX \
20518     lt_prog_compiler_static_CXX \
20519     lt_prog_compiler_no_builtin_flag_CXX \
20520     export_dynamic_flag_spec_CXX \
20521     thread_safe_flag_spec_CXX \
20522     whole_archive_flag_spec_CXX \
20523     enable_shared_with_static_runtimes_CXX \
20524     old_archive_cmds_CXX \
20525     old_archive_from_new_cmds_CXX \
20526     predep_objects_CXX \
20527     postdep_objects_CXX \
20528     predeps_CXX \
20529     postdeps_CXX \
20530     compiler_lib_search_path_CXX \
20531     archive_cmds_CXX \
20532     archive_expsym_cmds_CXX \
20533     postinstall_cmds_CXX \
20534     postuninstall_cmds_CXX \
20535     old_archive_from_expsyms_cmds_CXX \
20536     allow_undefined_flag_CXX \
20537     no_undefined_flag_CXX \
20538     export_symbols_cmds_CXX \
20539     hardcode_libdir_flag_spec_CXX \
20540     hardcode_libdir_flag_spec_ld_CXX \
20541     hardcode_libdir_separator_CXX \
20542     hardcode_automatic_CXX \
20543     module_cmds_CXX \
20544     module_expsym_cmds_CXX \
20545     lt_cv_prog_compiler_c_o_CXX \
20546     exclude_expsyms_CXX \
20547     include_expsyms_CXX; do
20548
20549     case $var in
20550     old_archive_cmds_CXX | \
20551     old_archive_from_new_cmds_CXX | \
20552     archive_cmds_CXX | \
20553     archive_expsym_cmds_CXX | \
20554     module_cmds_CXX | \
20555     module_expsym_cmds_CXX | \
20556     old_archive_from_expsyms_cmds_CXX | \
20557     export_symbols_cmds_CXX | \
20558     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20559     postinstall_cmds | postuninstall_cmds | \
20560     old_postinstall_cmds | old_postuninstall_cmds | \
20561     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20562       # Double-quote double-evaled strings.
20563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20564       ;;
20565     *)
20566       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20567       ;;
20568     esac
20569   done
20570
20571   case $lt_echo in
20572   *'\$0 --fallback-echo"')
20573     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20574     ;;
20575   esac
20576
20577 cfgfile="$ofile"
20578
20579   cat <<__EOF__ >> "$cfgfile"
20580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20581
20582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20583
20584 # Shell to use when invoking shell scripts.
20585 SHELL=$lt_SHELL
20586
20587 # Whether or not to build shared libraries.
20588 build_libtool_libs=$enable_shared
20589
20590 # Whether or not to build static libraries.
20591 build_old_libs=$enable_static
20592
20593 # Whether or not to add -lc for building shared libraries.
20594 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20595
20596 # Whether or not to disallow shared libs when runtime libs are static
20597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20598
20599 # Whether or not to optimize for fast installation.
20600 fast_install=$enable_fast_install
20601
20602 # The host system.
20603 host_alias=$host_alias
20604 host=$host
20605 host_os=$host_os
20606
20607 # The build system.
20608 build_alias=$build_alias
20609 build=$build
20610 build_os=$build_os
20611
20612 # An echo program that does not interpret backslashes.
20613 echo=$lt_echo
20614
20615 # The archiver.
20616 AR=$lt_AR
20617 AR_FLAGS=$lt_AR_FLAGS
20618
20619 # A C compiler.
20620 LTCC=$lt_LTCC
20621
20622 # LTCC compiler flags.
20623 LTCFLAGS=$lt_LTCFLAGS
20624
20625 # A language-specific compiler.
20626 CC=$lt_compiler_CXX
20627
20628 # Is the compiler the GNU C compiler?
20629 with_gcc=$GCC_CXX
20630
20631 # An ERE matcher.
20632 EGREP=$lt_EGREP
20633
20634 # The linker used to build libraries.
20635 LD=$lt_LD_CXX
20636
20637 # Whether we need hard or soft links.
20638 LN_S=$lt_LN_S
20639
20640 # A BSD-compatible nm program.
20641 NM=$lt_NM
20642
20643 # A symbol stripping program
20644 STRIP=$lt_STRIP
20645
20646 # Used to examine libraries when file_magic_cmd begins "file"
20647 MAGIC_CMD=$MAGIC_CMD
20648
20649 # Used on cygwin: DLL creation program.
20650 DLLTOOL="$DLLTOOL"
20651
20652 # Used on cygwin: object dumper.
20653 OBJDUMP="$OBJDUMP"
20654
20655 # Used on cygwin: assembler.
20656 AS="$AS"
20657
20658 # The name of the directory that contains temporary libtool files.
20659 objdir=$objdir
20660
20661 # How to create reloadable object files.
20662 reload_flag=$lt_reload_flag
20663 reload_cmds=$lt_reload_cmds
20664
20665 # How to pass a linker flag through the compiler.
20666 wl=$lt_lt_prog_compiler_wl_CXX
20667
20668 # Object file suffix (normally "o").
20669 objext="$ac_objext"
20670
20671 # Old archive suffix (normally "a").
20672 libext="$libext"
20673
20674 # Shared library suffix (normally ".so").
20675 shrext_cmds='$shrext_cmds'
20676
20677 # Executable file suffix (normally "").
20678 exeext="$exeext"
20679
20680 # Additional compiler flags for building library objects.
20681 pic_flag=$lt_lt_prog_compiler_pic_CXX
20682 pic_mode=$pic_mode
20683
20684 # What is the maximum length of a command?
20685 max_cmd_len=$lt_cv_sys_max_cmd_len
20686
20687 # Does compiler simultaneously support -c and -o options?
20688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20689
20690 # Must we lock files when doing compilation?
20691 need_locks=$lt_need_locks
20692
20693 # Do we need the lib prefix for modules?
20694 need_lib_prefix=$need_lib_prefix
20695
20696 # Do we need a version for libraries?
20697 need_version=$need_version
20698
20699 # Whether dlopen is supported.
20700 dlopen_support=$enable_dlopen
20701
20702 # Whether dlopen of programs is supported.
20703 dlopen_self=$enable_dlopen_self
20704
20705 # Whether dlopen of statically linked programs is supported.
20706 dlopen_self_static=$enable_dlopen_self_static
20707
20708 # Compiler flag to prevent dynamic linking.
20709 link_static_flag=$lt_lt_prog_compiler_static_CXX
20710
20711 # Compiler flag to turn off builtin functions.
20712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20713
20714 # Compiler flag to allow reflexive dlopens.
20715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20716
20717 # Compiler flag to generate shared objects directly from archives.
20718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20719
20720 # Compiler flag to generate thread-safe objects.
20721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20722
20723 # Library versioning type.
20724 version_type=$version_type
20725
20726 # Format of library name prefix.
20727 libname_spec=$lt_libname_spec
20728
20729 # List of archive names.  First name is the real one, the rest are links.
20730 # The last name is the one that the linker finds with -lNAME.
20731 library_names_spec=$lt_library_names_spec
20732
20733 # The coded name of the library, if different from the real name.
20734 soname_spec=$lt_soname_spec
20735
20736 # Commands used to build and install an old-style archive.
20737 RANLIB=$lt_RANLIB
20738 old_archive_cmds=$lt_old_archive_cmds_CXX
20739 old_postinstall_cmds=$lt_old_postinstall_cmds
20740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20741
20742 # Create an old-style archive from a shared archive.
20743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20744
20745 # Create a temporary old-style archive to link instead of a shared archive.
20746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20747
20748 # Commands used to build and install a shared archive.
20749 archive_cmds=$lt_archive_cmds_CXX
20750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20751 postinstall_cmds=$lt_postinstall_cmds
20752 postuninstall_cmds=$lt_postuninstall_cmds
20753
20754 # Commands used to build a loadable module (assumed same as above if empty)
20755 module_cmds=$lt_module_cmds_CXX
20756 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20757
20758 # Commands to strip libraries.
20759 old_striplib=$lt_old_striplib
20760 striplib=$lt_striplib
20761
20762 # Dependencies to place before the objects being linked to create a
20763 # shared library.
20764 predep_objects=$lt_predep_objects_CXX
20765
20766 # Dependencies to place after the objects being linked to create a
20767 # shared library.
20768 postdep_objects=$lt_postdep_objects_CXX
20769
20770 # Dependencies to place before the objects being linked to create a
20771 # shared library.
20772 predeps=$lt_predeps_CXX
20773
20774 # Dependencies to place after the objects being linked to create a
20775 # shared library.
20776 postdeps=$lt_postdeps_CXX
20777
20778 # The library search path used internally by the compiler when linking
20779 # a shared library.
20780 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20781
20782 # Method to check whether dependent libraries are shared objects.
20783 deplibs_check_method=$lt_deplibs_check_method
20784
20785 # Command to use when deplibs_check_method == file_magic.
20786 file_magic_cmd=$lt_file_magic_cmd
20787
20788 # Flag that allows shared libraries with undefined symbols to be built.
20789 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20790
20791 # Flag that forces no undefined symbols.
20792 no_undefined_flag=$lt_no_undefined_flag_CXX
20793
20794 # Commands used to finish a libtool library installation in a directory.
20795 finish_cmds=$lt_finish_cmds
20796
20797 # Same as above, but a single script fragment to be evaled but not shown.
20798 finish_eval=$lt_finish_eval
20799
20800 # Take the output of nm and produce a listing of raw symbols and C names.
20801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20802
20803 # Transform the output of nm in a proper C declaration
20804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20805
20806 # Transform the output of nm in a C name address pair
20807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20808
20809 # This is the shared library runtime path variable.
20810 runpath_var=$runpath_var
20811
20812 # This is the shared library path variable.
20813 shlibpath_var=$shlibpath_var
20814
20815 # Is shlibpath searched before the hard-coded library search path?
20816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20817
20818 # How to hardcode a shared library path into an executable.
20819 hardcode_action=$hardcode_action_CXX
20820
20821 # Whether we should hardcode library paths into libraries.
20822 hardcode_into_libs=$hardcode_into_libs
20823
20824 # Flag to hardcode \$libdir into a binary during linking.
20825 # This must work even if \$libdir does not exist.
20826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20827
20828 # If ld is used when linking, flag to hardcode \$libdir into
20829 # a binary during linking. This must work even if \$libdir does
20830 # not exist.
20831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20832
20833 # Whether we need a single -rpath flag with a separated argument.
20834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20835
20836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20837 # resulting binary.
20838 hardcode_direct=$hardcode_direct_CXX
20839
20840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20841 # resulting binary.
20842 hardcode_minus_L=$hardcode_minus_L_CXX
20843
20844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20845 # the resulting binary.
20846 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20847
20848 # Set to yes if building a shared library automatically hardcodes DIR into the library
20849 # and all subsequent libraries and executables linked against it.
20850 hardcode_automatic=$hardcode_automatic_CXX
20851
20852 # Variables whose values should be saved in libtool wrapper scripts and
20853 # restored at relink time.
20854 variables_saved_for_relink="$variables_saved_for_relink"
20855
20856 # Whether libtool must link a program against all its dependency libraries.
20857 link_all_deplibs=$link_all_deplibs_CXX
20858
20859 # Compile-time system search path for libraries
20860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20861
20862 # Run-time system search path for libraries
20863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20864
20865 # Fix the shell variable \$srcfile for the compiler.
20866 fix_srcfile_path="$fix_srcfile_path_CXX"
20867
20868 # Set to yes if exported symbols are required.
20869 always_export_symbols=$always_export_symbols_CXX
20870
20871 # The commands to list exported symbols.
20872 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20873
20874 # The commands to extract the exported symbol list from a shared archive.
20875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20876
20877 # Symbols that should not be listed in the preloaded symbols.
20878 exclude_expsyms=$lt_exclude_expsyms_CXX
20879
20880 # Symbols that must always be exported.
20881 include_expsyms=$lt_include_expsyms_CXX
20882
20883 # ### END LIBTOOL TAG CONFIG: $tagname
20884
20885 __EOF__
20886
20887
20888 else
20889   # If there is no Makefile yet, we rely on a make rule to execute
20890   # `config.status --recheck' to rerun these tests and create the
20891   # libtool script then.
20892   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20893   if test -f "$ltmain_in"; then
20894     test -f Makefile && make "$ltmain"
20895   fi
20896 fi
20897
20898
20899 ac_ext=c
20900 ac_cpp='$CPP $CPPFLAGS'
20901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20904
20905 CC=$lt_save_CC
20906 LDCXX=$LD
20907 LD=$lt_save_LD
20908 GCC=$lt_save_GCC
20909 with_gnu_ldcxx=$with_gnu_ld
20910 with_gnu_ld=$lt_save_with_gnu_ld
20911 lt_cv_path_LDCXX=$lt_cv_path_LD
20912 lt_cv_path_LD=$lt_save_path_LD
20913 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20914 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20915
20916         else
20917           tagname=""
20918         fi
20919         ;;
20920
20921       F77)
20922         if test -n "$F77" && test "X$F77" != "Xno"; then
20923
20924 ac_ext=f
20925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20928
20929
20930 archive_cmds_need_lc_F77=no
20931 allow_undefined_flag_F77=
20932 always_export_symbols_F77=no
20933 archive_expsym_cmds_F77=
20934 export_dynamic_flag_spec_F77=
20935 hardcode_direct_F77=no
20936 hardcode_libdir_flag_spec_F77=
20937 hardcode_libdir_flag_spec_ld_F77=
20938 hardcode_libdir_separator_F77=
20939 hardcode_minus_L_F77=no
20940 hardcode_automatic_F77=no
20941 module_cmds_F77=
20942 module_expsym_cmds_F77=
20943 link_all_deplibs_F77=unknown
20944 old_archive_cmds_F77=$old_archive_cmds
20945 no_undefined_flag_F77=
20946 whole_archive_flag_spec_F77=
20947 enable_shared_with_static_runtimes_F77=no
20948
20949 # Source file extension for f77 test sources.
20950 ac_ext=f
20951
20952 # Object file extension for compiled f77 test sources.
20953 objext=o
20954 objext_F77=$objext
20955
20956 # Code to be used in simple compile tests
20957 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20958
20959 # Code to be used in simple link tests
20960 lt_simple_link_test_code="      program t\n      end\n"
20961
20962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20963
20964 # If no C compiler was specified, use CC.
20965 LTCC=${LTCC-"$CC"}
20966
20967 # If no C compiler flags were specified, use CFLAGS.
20968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20969
20970 # Allow CC to be a program name with arguments.
20971 compiler=$CC
20972
20973
20974 # save warnings/boilerplate of simple test code
20975 ac_outfile=conftest.$ac_objext
20976 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20978 _lt_compiler_boilerplate=`cat conftest.err`
20979 $rm conftest*
20980
20981 ac_outfile=conftest.$ac_objext
20982 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20984 _lt_linker_boilerplate=`cat conftest.err`
20985 $rm conftest*
20986
20987
20988 # Allow CC to be a program name with arguments.
20989 lt_save_CC="$CC"
20990 CC=${F77-"f77"}
20991 compiler=$CC
20992 compiler_F77=$CC
20993 for cc_temp in $compiler""; do
20994   case $cc_temp in
20995     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20996     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20997     \-*) ;;
20998     *) break;;
20999   esac
21000 done
21001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21002
21003
21004 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21005 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21006 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21007 echo "${ECHO_T}$can_build_shared" >&6; }
21008
21009 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21010 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21011 test "$can_build_shared" = "no" && enable_shared=no
21012
21013 # On AIX, shared libraries and static libraries use the same namespace, and
21014 # are all built from PIC.
21015 case $host_os in
21016 aix3*)
21017   test "$enable_shared" = yes && enable_static=no
21018   if test -n "$RANLIB"; then
21019     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21020     postinstall_cmds='$RANLIB $lib'
21021   fi
21022   ;;
21023 aix4* | aix5*)
21024   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21025     test "$enable_shared" = yes && enable_static=no
21026   fi
21027   ;;
21028 esac
21029 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21030 echo "${ECHO_T}$enable_shared" >&6; }
21031
21032 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21033 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21034 # Make sure either enable_shared or enable_static is yes.
21035 test "$enable_shared" = yes || enable_static=yes
21036 { echo "$as_me:$LINENO: result: $enable_static" >&5
21037 echo "${ECHO_T}$enable_static" >&6; }
21038
21039 GCC_F77="$G77"
21040 LD_F77="$LD"
21041
21042 lt_prog_compiler_wl_F77=
21043 lt_prog_compiler_pic_F77=
21044 lt_prog_compiler_static_F77=
21045
21046 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21047 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21048
21049   if test "$GCC" = yes; then
21050     lt_prog_compiler_wl_F77='-Wl,'
21051     lt_prog_compiler_static_F77='-static'
21052
21053     case $host_os in
21054       aix*)
21055       # All AIX code is PIC.
21056       if test "$host_cpu" = ia64; then
21057         # AIX 5 now supports IA64 processor
21058         lt_prog_compiler_static_F77='-Bstatic'
21059       fi
21060       ;;
21061
21062     amigaos*)
21063       # FIXME: we need at least 68020 code to build shared libraries, but
21064       # adding the `-m68020' flag to GCC prevents building anything better,
21065       # like `-m68040'.
21066       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21067       ;;
21068
21069     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21070       # PIC is the default for these OSes.
21071       ;;
21072
21073     mingw* | pw32* | os2*)
21074       # This hack is so that the source file can tell whether it is being
21075       # built for inclusion in a dll (and should export symbols for example).
21076       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21077       ;;
21078
21079     darwin* | rhapsody*)
21080       # PIC is the default on this platform
21081       # Common symbols not allowed in MH_DYLIB files
21082       lt_prog_compiler_pic_F77='-fno-common'
21083       ;;
21084
21085     interix3*)
21086       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21087       # Instead, we relocate shared libraries at runtime.
21088       ;;
21089
21090     msdosdjgpp*)
21091       # Just because we use GCC doesn't mean we suddenly get shared libraries
21092       # on systems that don't support them.
21093       lt_prog_compiler_can_build_shared_F77=no
21094       enable_shared=no
21095       ;;
21096
21097     sysv4*MP*)
21098       if test -d /usr/nec; then
21099         lt_prog_compiler_pic_F77=-Kconform_pic
21100       fi
21101       ;;
21102
21103     hpux*)
21104       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21105       # not for PA HP-UX.
21106       case $host_cpu in
21107       hppa*64*|ia64*)
21108         # +Z the default
21109         ;;
21110       *)
21111         lt_prog_compiler_pic_F77='-fPIC'
21112         ;;
21113       esac
21114       ;;
21115
21116     *)
21117       lt_prog_compiler_pic_F77='-fPIC'
21118       ;;
21119     esac
21120   else
21121     # PORTME Check for flag to pass linker flags through the system compiler.
21122     case $host_os in
21123     aix*)
21124       lt_prog_compiler_wl_F77='-Wl,'
21125       if test "$host_cpu" = ia64; then
21126         # AIX 5 now supports IA64 processor
21127         lt_prog_compiler_static_F77='-Bstatic'
21128       else
21129         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21130       fi
21131       ;;
21132       darwin*)
21133         # PIC is the default on this platform
21134         # Common symbols not allowed in MH_DYLIB files
21135        case $cc_basename in
21136          xlc*)
21137          lt_prog_compiler_pic_F77='-qnocommon'
21138          lt_prog_compiler_wl_F77='-Wl,'
21139          ;;
21140        esac
21141        ;;
21142
21143     mingw* | pw32* | os2*)
21144       # This hack is so that the source file can tell whether it is being
21145       # built for inclusion in a dll (and should export symbols for example).
21146       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21147       ;;
21148
21149     hpux9* | hpux10* | hpux11*)
21150       lt_prog_compiler_wl_F77='-Wl,'
21151       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21152       # not for PA HP-UX.
21153       case $host_cpu in
21154       hppa*64*|ia64*)
21155         # +Z the default
21156         ;;
21157       *)
21158         lt_prog_compiler_pic_F77='+Z'
21159         ;;
21160       esac
21161       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21162       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21163       ;;
21164
21165     irix5* | irix6* | nonstopux*)
21166       lt_prog_compiler_wl_F77='-Wl,'
21167       # PIC (with -KPIC) is the default.
21168       lt_prog_compiler_static_F77='-non_shared'
21169       ;;
21170
21171     newsos6)
21172       lt_prog_compiler_pic_F77='-KPIC'
21173       lt_prog_compiler_static_F77='-Bstatic'
21174       ;;
21175
21176     linux*)
21177       case $cc_basename in
21178       icc* | ecc*)
21179         lt_prog_compiler_wl_F77='-Wl,'
21180         lt_prog_compiler_pic_F77='-KPIC'
21181         lt_prog_compiler_static_F77='-static'
21182         ;;
21183       pgcc* | pgf77* | pgf90* | pgf95*)
21184         # Portland Group compilers (*not* the Pentium gcc compiler,
21185         # which looks to be a dead project)
21186         lt_prog_compiler_wl_F77='-Wl,'
21187         lt_prog_compiler_pic_F77='-fpic'
21188         lt_prog_compiler_static_F77='-Bstatic'
21189         ;;
21190       ccc*)
21191         lt_prog_compiler_wl_F77='-Wl,'
21192         # All Alpha code is PIC.
21193         lt_prog_compiler_static_F77='-non_shared'
21194         ;;
21195       esac
21196       ;;
21197
21198     osf3* | osf4* | osf5*)
21199       lt_prog_compiler_wl_F77='-Wl,'
21200       # All OSF/1 code is PIC.
21201       lt_prog_compiler_static_F77='-non_shared'
21202       ;;
21203
21204     solaris*)
21205       lt_prog_compiler_pic_F77='-KPIC'
21206       lt_prog_compiler_static_F77='-Bstatic'
21207       case $cc_basename in
21208       f77* | f90* | f95*)
21209         lt_prog_compiler_wl_F77='-Qoption ld ';;
21210       *)
21211         lt_prog_compiler_wl_F77='-Wl,';;
21212       esac
21213       ;;
21214
21215     sunos4*)
21216       lt_prog_compiler_wl_F77='-Qoption ld '
21217       lt_prog_compiler_pic_F77='-PIC'
21218       lt_prog_compiler_static_F77='-Bstatic'
21219       ;;
21220
21221     sysv4 | sysv4.2uw2* | sysv4.3*)
21222       lt_prog_compiler_wl_F77='-Wl,'
21223       lt_prog_compiler_pic_F77='-KPIC'
21224       lt_prog_compiler_static_F77='-Bstatic'
21225       ;;
21226
21227     sysv4*MP*)
21228       if test -d /usr/nec ;then
21229         lt_prog_compiler_pic_F77='-Kconform_pic'
21230         lt_prog_compiler_static_F77='-Bstatic'
21231       fi
21232       ;;
21233
21234     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21235       lt_prog_compiler_wl_F77='-Wl,'
21236       lt_prog_compiler_pic_F77='-KPIC'
21237       lt_prog_compiler_static_F77='-Bstatic'
21238       ;;
21239
21240     unicos*)
21241       lt_prog_compiler_wl_F77='-Wl,'
21242       lt_prog_compiler_can_build_shared_F77=no
21243       ;;
21244
21245     uts4*)
21246       lt_prog_compiler_pic_F77='-pic'
21247       lt_prog_compiler_static_F77='-Bstatic'
21248       ;;
21249
21250     *)
21251       lt_prog_compiler_can_build_shared_F77=no
21252       ;;
21253     esac
21254   fi
21255
21256 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21257 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21258
21259 #
21260 # Check to make sure the PIC flag actually works.
21261 #
21262 if test -n "$lt_prog_compiler_pic_F77"; then
21263
21264 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21265 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21266 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269   lt_prog_compiler_pic_works_F77=no
21270   ac_outfile=conftest.$ac_objext
21271    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21272    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21273    # Insert the option either (1) after the last *FLAGS variable, or
21274    # (2) before a word containing "conftest.", or (3) at the end.
21275    # Note that $ac_compile itself does not contain backslashes and begins
21276    # with a dollar sign (not a hyphen), so the echo should work correctly.
21277    # The option is referenced via a variable to avoid confusing sed.
21278    lt_compile=`echo "$ac_compile" | $SED \
21279    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21280    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21281    -e 's:$: $lt_compiler_flag:'`
21282    (eval echo "\"\$as_me:21282: $lt_compile\"" >&5)
21283    (eval "$lt_compile" 2>conftest.err)
21284    ac_status=$?
21285    cat conftest.err >&5
21286    echo "$as_me:21286: \$? = $ac_status" >&5
21287    if (exit $ac_status) && test -s "$ac_outfile"; then
21288      # The compiler can only warn and ignore the option if not recognized
21289      # So say no if there are warnings other than the usual output.
21290      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21291      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21292      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21293        lt_prog_compiler_pic_works_F77=yes
21294      fi
21295    fi
21296    $rm conftest*
21297
21298 fi
21299 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21300 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21301
21302 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21303     case $lt_prog_compiler_pic_F77 in
21304      "" | " "*) ;;
21305      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21306      esac
21307 else
21308     lt_prog_compiler_pic_F77=
21309      lt_prog_compiler_can_build_shared_F77=no
21310 fi
21311
21312 fi
21313 case $host_os in
21314   # For platforms which do not support PIC, -DPIC is meaningless:
21315   *djgpp*)
21316     lt_prog_compiler_pic_F77=
21317     ;;
21318   *)
21319     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21320     ;;
21321 esac
21322
21323 #
21324 # Check to make sure the static flag actually works.
21325 #
21326 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21327 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21328 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21329 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21330   echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332   lt_prog_compiler_static_works_F77=no
21333    save_LDFLAGS="$LDFLAGS"
21334    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21335    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21336    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21337      # The linker can only warn and ignore the option if not recognized
21338      # So say no if there are warnings
21339      if test -s conftest.err; then
21340        # Append any errors to the config.log.
21341        cat conftest.err 1>&5
21342        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21343        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21344        if diff conftest.exp conftest.er2 >/dev/null; then
21345          lt_prog_compiler_static_works_F77=yes
21346        fi
21347      else
21348        lt_prog_compiler_static_works_F77=yes
21349      fi
21350    fi
21351    $rm conftest*
21352    LDFLAGS="$save_LDFLAGS"
21353
21354 fi
21355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21356 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21357
21358 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21359     :
21360 else
21361     lt_prog_compiler_static_F77=
21362 fi
21363
21364
21365 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21366 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21367 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   lt_cv_prog_compiler_c_o_F77=no
21371    $rm -r conftest 2>/dev/null
21372    mkdir conftest
21373    cd conftest
21374    mkdir out
21375    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21376
21377    lt_compiler_flag="-o out/conftest2.$ac_objext"
21378    # Insert the option either (1) after the last *FLAGS variable, or
21379    # (2) before a word containing "conftest.", or (3) at the end.
21380    # Note that $ac_compile itself does not contain backslashes and begins
21381    # with a dollar sign (not a hyphen), so the echo should work correctly.
21382    lt_compile=`echo "$ac_compile" | $SED \
21383    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21384    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21385    -e 's:$: $lt_compiler_flag:'`
21386    (eval echo "\"\$as_me:21386: $lt_compile\"" >&5)
21387    (eval "$lt_compile" 2>out/conftest.err)
21388    ac_status=$?
21389    cat out/conftest.err >&5
21390    echo "$as_me:21390: \$? = $ac_status" >&5
21391    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21392    then
21393      # The compiler can only warn and ignore the option if not recognized
21394      # So say no if there are warnings
21395      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21396      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21397      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21398        lt_cv_prog_compiler_c_o_F77=yes
21399      fi
21400    fi
21401    chmod u+w . 2>&5
21402    $rm conftest*
21403    # SGI C++ compiler will create directory out/ii_files/ for
21404    # template instantiation
21405    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21406    $rm out/* && rmdir out
21407    cd ..
21408    rmdir conftest
21409    $rm conftest*
21410
21411 fi
21412 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21413 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21414
21415
21416 hard_links="nottested"
21417 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21418   # do not overwrite the value of need_locks provided by the user
21419   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21420 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21421   hard_links=yes
21422   $rm conftest*
21423   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21424   touch conftest.a
21425   ln conftest.a conftest.b 2>&5 || hard_links=no
21426   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21427   { echo "$as_me:$LINENO: result: $hard_links" >&5
21428 echo "${ECHO_T}$hard_links" >&6; }
21429   if test "$hard_links" = no; then
21430     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21431 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21432     need_locks=warn
21433   fi
21434 else
21435   need_locks=no
21436 fi
21437
21438 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21440
21441   runpath_var=
21442   allow_undefined_flag_F77=
21443   enable_shared_with_static_runtimes_F77=no
21444   archive_cmds_F77=
21445   archive_expsym_cmds_F77=
21446   old_archive_From_new_cmds_F77=
21447   old_archive_from_expsyms_cmds_F77=
21448   export_dynamic_flag_spec_F77=
21449   whole_archive_flag_spec_F77=
21450   thread_safe_flag_spec_F77=
21451   hardcode_libdir_flag_spec_F77=
21452   hardcode_libdir_flag_spec_ld_F77=
21453   hardcode_libdir_separator_F77=
21454   hardcode_direct_F77=no
21455   hardcode_minus_L_F77=no
21456   hardcode_shlibpath_var_F77=unsupported
21457   link_all_deplibs_F77=unknown
21458   hardcode_automatic_F77=no
21459   module_cmds_F77=
21460   module_expsym_cmds_F77=
21461   always_export_symbols_F77=no
21462   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21463   # include_expsyms should be a list of space-separated symbols to be *always*
21464   # included in the symbol list
21465   include_expsyms_F77=
21466   # exclude_expsyms can be an extended regexp of symbols to exclude
21467   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21468   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21469   # as well as any symbol that contains `d'.
21470   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21471   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21472   # platforms (ab)use it in PIC code, but their linkers get confused if
21473   # the symbol is explicitly referenced.  Since portable code cannot
21474   # rely on this symbol name, it's probably fine to never include it in
21475   # preloaded symbol tables.
21476   extract_expsyms_cmds=
21477   # Just being paranoid about ensuring that cc_basename is set.
21478   for cc_temp in $compiler""; do
21479   case $cc_temp in
21480     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21481     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21482     \-*) ;;
21483     *) break;;
21484   esac
21485 done
21486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21487
21488   case $host_os in
21489   cygwin* | mingw* | pw32*)
21490     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21491     # When not using gcc, we currently assume that we are using
21492     # Microsoft Visual C++.
21493     if test "$GCC" != yes; then
21494       with_gnu_ld=no
21495     fi
21496     ;;
21497   interix*)
21498     # we just hope/assume this is gcc and not c89 (= MSVC++)
21499     with_gnu_ld=yes
21500     ;;
21501   openbsd*)
21502     with_gnu_ld=no
21503     ;;
21504   esac
21505
21506   ld_shlibs_F77=yes
21507   if test "$with_gnu_ld" = yes; then
21508     # If archive_cmds runs LD, not CC, wlarc should be empty
21509     wlarc='${wl}'
21510
21511     # Set some defaults for GNU ld with shared library support. These
21512     # are reset later if shared libraries are not supported. Putting them
21513     # here allows them to be overridden if necessary.
21514     runpath_var=LD_RUN_PATH
21515     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21516     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21517     # ancient GNU ld didn't support --whole-archive et. al.
21518     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21519         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21520       else
21521         whole_archive_flag_spec_F77=
21522     fi
21523     supports_anon_versioning=no
21524     case `$LD -v 2>/dev/null` in
21525       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21526       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21527       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21528       *\ 2.11.*) ;; # other 2.11 versions
21529       *) supports_anon_versioning=yes ;;
21530     esac
21531
21532     # See if GNU ld supports shared libraries.
21533     case $host_os in
21534     aix3* | aix4* | aix5*)
21535       # On AIX/PPC, the GNU linker is very broken
21536       if test "$host_cpu" != ia64; then
21537         ld_shlibs_F77=no
21538         cat <<EOF 1>&2
21539
21540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21541 *** to be unable to reliably create shared libraries on AIX.
21542 *** Therefore, libtool is disabling shared libraries support.  If you
21543 *** really care for shared libraries, you may want to modify your PATH
21544 *** so that a non-GNU linker is found, and then restart.
21545
21546 EOF
21547       fi
21548       ;;
21549
21550     amigaos*)
21551       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)'
21552       hardcode_libdir_flag_spec_F77='-L$libdir'
21553       hardcode_minus_L_F77=yes
21554
21555       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21556       # that the semantics of dynamic libraries on AmigaOS, at least up
21557       # to version 4, is to share data among multiple programs linked
21558       # with the same dynamic library.  Since this doesn't match the
21559       # behavior of shared libraries on other platforms, we can't use
21560       # them.
21561       ld_shlibs_F77=no
21562       ;;
21563
21564     beos*)
21565       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21566         allow_undefined_flag_F77=unsupported
21567         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21568         # support --undefined.  This deserves some investigation.  FIXME
21569         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21570       else
21571         ld_shlibs_F77=no
21572       fi
21573       ;;
21574
21575     cygwin* | mingw* | pw32*)
21576       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21577       # as there is no search path for DLLs.
21578       hardcode_libdir_flag_spec_F77='-L$libdir'
21579       allow_undefined_flag_F77=unsupported
21580       always_export_symbols_F77=no
21581       enable_shared_with_static_runtimes_F77=yes
21582       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21583
21584       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21585         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21586         # If the export-symbols file already is a .def file (1st line
21587         # is EXPORTS), use it as is; otherwise, prepend...
21588         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21589           cp $export_symbols $output_objdir/$soname.def;
21590         else
21591           echo EXPORTS > $output_objdir/$soname.def;
21592           cat $export_symbols >> $output_objdir/$soname.def;
21593         fi~
21594         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21595       else
21596         ld_shlibs_F77=no
21597       fi
21598       ;;
21599
21600     interix3*)
21601       hardcode_direct_F77=no
21602       hardcode_shlibpath_var_F77=no
21603       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21604       export_dynamic_flag_spec_F77='${wl}-E'
21605       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21606       # Instead, shared libraries are loaded at an image base (0x10000000 by
21607       # default) and relocated if they conflict, which is a slow very memory
21608       # consuming and fragmenting process.  To avoid this, we pick a random,
21609       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21610       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21611       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'
21612       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'
21613       ;;
21614
21615     linux*)
21616       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21617         tmp_addflag=
21618         case $cc_basename,$host_cpu in
21619         pgcc*)                          # Portland Group C compiler
21620           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'
21621           tmp_addflag=' $pic_flag'
21622           ;;
21623         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21624           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'
21625           tmp_addflag=' $pic_flag -Mnomain' ;;
21626         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21627           tmp_addflag=' -i_dynamic' ;;
21628         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21629           tmp_addflag=' -i_dynamic -nofor_main' ;;
21630         ifc* | ifort*)                  # Intel Fortran compiler
21631           tmp_addflag=' -nofor_main' ;;
21632         esac
21633         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21634
21635         if test $supports_anon_versioning = yes; then
21636           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21637   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21638   $echo "local: *; };" >> $output_objdir/$libname.ver~
21639           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21640         fi
21641       else
21642         ld_shlibs_F77=no
21643       fi
21644       ;;
21645
21646     netbsd*)
21647       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21648         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21649         wlarc=
21650       else
21651         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21653       fi
21654       ;;
21655
21656     solaris*)
21657       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21658         ld_shlibs_F77=no
21659         cat <<EOF 1>&2
21660
21661 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21662 *** create shared libraries on Solaris systems.  Therefore, libtool
21663 *** is disabling shared libraries support.  We urge you to upgrade GNU
21664 *** binutils to release 2.9.1 or newer.  Another option is to modify
21665 *** your PATH or compiler configuration so that the native linker is
21666 *** used, and then restart.
21667
21668 EOF
21669       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21670         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21671         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21672       else
21673         ld_shlibs_F77=no
21674       fi
21675       ;;
21676
21677     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21678       case `$LD -v 2>&1` in
21679         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21680         ld_shlibs_F77=no
21681         cat <<_LT_EOF 1>&2
21682
21683 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21684 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21685 *** is disabling shared libraries support.  We urge you to upgrade GNU
21686 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21687 *** your PATH or compiler configuration so that the native linker is
21688 *** used, and then restart.
21689
21690 _LT_EOF
21691         ;;
21692         *)
21693           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21694             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21695             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21696             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21697           else
21698             ld_shlibs_F77=no
21699           fi
21700         ;;
21701       esac
21702       ;;
21703
21704     sunos4*)
21705       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21706       wlarc=
21707       hardcode_direct_F77=yes
21708       hardcode_shlibpath_var_F77=no
21709       ;;
21710
21711     *)
21712       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21713         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21714         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21715       else
21716         ld_shlibs_F77=no
21717       fi
21718       ;;
21719     esac
21720
21721     if test "$ld_shlibs_F77" = no; then
21722       runpath_var=
21723       hardcode_libdir_flag_spec_F77=
21724       export_dynamic_flag_spec_F77=
21725       whole_archive_flag_spec_F77=
21726     fi
21727   else
21728     # PORTME fill in a description of your system's linker (not GNU ld)
21729     case $host_os in
21730     aix3*)
21731       allow_undefined_flag_F77=unsupported
21732       always_export_symbols_F77=yes
21733       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'
21734       # Note: this linker hardcodes the directories in LIBPATH if there
21735       # are no directories specified by -L.
21736       hardcode_minus_L_F77=yes
21737       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21738         # Neither direct hardcoding nor static linking is supported with a
21739         # broken collect2.
21740         hardcode_direct_F77=unsupported
21741       fi
21742       ;;
21743
21744     aix4* | aix5*)
21745       if test "$host_cpu" = ia64; then
21746         # On IA64, the linker does run time linking by default, so we don't
21747         # have to do anything special.
21748         aix_use_runtimelinking=no
21749         exp_sym_flag='-Bexport'
21750         no_entry_flag=""
21751       else
21752         # If we're using GNU nm, then we don't want the "-C" option.
21753         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21754         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21755           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'
21756         else
21757           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'
21758         fi
21759         aix_use_runtimelinking=no
21760
21761         # Test if we are trying to use run time linking or normal
21762         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21763         # need to do runtime linking.
21764         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21765           for ld_flag in $LDFLAGS; do
21766           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21767             aix_use_runtimelinking=yes
21768             break
21769           fi
21770           done
21771           ;;
21772         esac
21773
21774         exp_sym_flag='-bexport'
21775         no_entry_flag='-bnoentry'
21776       fi
21777
21778       # When large executables or shared objects are built, AIX ld can
21779       # have problems creating the table of contents.  If linking a library
21780       # or program results in "error TOC overflow" add -mminimal-toc to
21781       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21782       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21783
21784       archive_cmds_F77=''
21785       hardcode_direct_F77=yes
21786       hardcode_libdir_separator_F77=':'
21787       link_all_deplibs_F77=yes
21788
21789       if test "$GCC" = yes; then
21790         case $host_os in aix4.[012]|aix4.[012].*)
21791         # We only want to do this on AIX 4.2 and lower, the check
21792         # below for broken collect2 doesn't work under 4.3+
21793           collect2name=`${CC} -print-prog-name=collect2`
21794           if test -f "$collect2name" && \
21795            strings "$collect2name" | grep resolve_lib_name >/dev/null
21796           then
21797           # We have reworked collect2
21798           hardcode_direct_F77=yes
21799           else
21800           # We have old collect2
21801           hardcode_direct_F77=unsupported
21802           # It fails to find uninstalled libraries when the uninstalled
21803           # path is not listed in the libpath.  Setting hardcode_minus_L
21804           # to unsupported forces relinking
21805           hardcode_minus_L_F77=yes
21806           hardcode_libdir_flag_spec_F77='-L$libdir'
21807           hardcode_libdir_separator_F77=
21808           fi
21809           ;;
21810         esac
21811         shared_flag='-shared'
21812         if test "$aix_use_runtimelinking" = yes; then
21813           shared_flag="$shared_flag "'${wl}-G'
21814         fi
21815       else
21816         # not using gcc
21817         if test "$host_cpu" = ia64; then
21818         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21819         # chokes on -Wl,-G. The following line is correct:
21820           shared_flag='-G'
21821         else
21822           if test "$aix_use_runtimelinking" = yes; then
21823             shared_flag='${wl}-G'
21824           else
21825             shared_flag='${wl}-bM:SRE'
21826           fi
21827         fi
21828       fi
21829
21830       # It seems that -bexpall does not export symbols beginning with
21831       # underscore (_), so it is better to generate a list of symbols to export.
21832       always_export_symbols_F77=yes
21833       if test "$aix_use_runtimelinking" = yes; then
21834         # Warning - without using the other runtime loading flags (-brtl),
21835         # -berok will link without error, but may produce a broken library.
21836         allow_undefined_flag_F77='-berok'
21837        # Determine the default libpath from the value encoded in an empty executable.
21838        cat >conftest.$ac_ext <<_ACEOF
21839       program main
21840
21841       end
21842 _ACEOF
21843 rm -f conftest.$ac_objext conftest$ac_exeext
21844 if { (ac_try="$ac_link"
21845 case "(($ac_try" in
21846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847   *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850   (eval "$ac_link") 2>conftest.er1
21851   ac_status=$?
21852   grep -v '^ *+' conftest.er1 >conftest.err
21853   rm -f conftest.er1
21854   cat conftest.err >&5
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); } &&
21857          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21858   { (case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_try") 2>&5
21864   ac_status=$?
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); }; } &&
21867          { ac_try='test -s conftest$ac_exeext'
21868   { (case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873   (eval "$ac_try") 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }; then
21877
21878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21879 }'`
21880 # Check for a 64-bit object if we didn't find anything.
21881 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; }
21882 }'`; fi
21883 else
21884   echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887
21888 fi
21889
21890 rm -f core conftest.err conftest.$ac_objext \
21891       conftest$ac_exeext conftest.$ac_ext
21892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21893
21894        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21895         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"
21896        else
21897         if test "$host_cpu" = ia64; then
21898           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21899           allow_undefined_flag_F77="-z nodefs"
21900           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"
21901         else
21902          # Determine the default libpath from the value encoded in an empty executable.
21903          cat >conftest.$ac_ext <<_ACEOF
21904       program main
21905
21906       end
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_link") 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21923   { (case "(($ac_try" in
21924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925   *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928   (eval "$ac_try") 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); }; } &&
21932          { ac_try='test -s conftest$ac_exeext'
21933   { (case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_try") 2>&5
21939   ac_status=$?
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); }; }; then
21942
21943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21944 }'`
21945 # Check for a 64-bit object if we didn't find anything.
21946 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; }
21947 }'`; fi
21948 else
21949   echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952
21953 fi
21954
21955 rm -f core conftest.err conftest.$ac_objext \
21956       conftest$ac_exeext conftest.$ac_ext
21957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21958
21959          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21960           # Warning - without using the other run time loading flags,
21961           # -berok will link without error, but may produce a broken library.
21962           no_undefined_flag_F77=' ${wl}-bernotok'
21963           allow_undefined_flag_F77=' ${wl}-berok'
21964           # Exported symbols can be pulled into shared objects from archives
21965           whole_archive_flag_spec_F77='$convenience'
21966           archive_cmds_need_lc_F77=yes
21967           # This is similar to how AIX traditionally builds its shared libraries.
21968           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'
21969         fi
21970       fi
21971       ;;
21972
21973     amigaos*)
21974       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)'
21975       hardcode_libdir_flag_spec_F77='-L$libdir'
21976       hardcode_minus_L_F77=yes
21977       # see comment about different semantics on the GNU ld section
21978       ld_shlibs_F77=no
21979       ;;
21980
21981     bsdi[45]*)
21982       export_dynamic_flag_spec_F77=-rdynamic
21983       ;;
21984
21985     cygwin* | mingw* | pw32*)
21986       # When not using gcc, we currently assume that we are using
21987       # Microsoft Visual C++.
21988       # hardcode_libdir_flag_spec is actually meaningless, as there is
21989       # no search path for DLLs.
21990       hardcode_libdir_flag_spec_F77=' '
21991       allow_undefined_flag_F77=unsupported
21992       # Tell ltmain to make .lib files, not .a files.
21993       libext=lib
21994       # Tell ltmain to make .dll files, not .so files.
21995       shrext_cmds=".dll"
21996       # FIXME: Setting linknames here is a bad hack.
21997       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21998       # The linker will automatically build a .lib file if we build a DLL.
21999       old_archive_From_new_cmds_F77='true'
22000       # FIXME: Should let the user specify the lib program.
22001       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22002       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22003       enable_shared_with_static_runtimes_F77=yes
22004       ;;
22005
22006     darwin* | rhapsody*)
22007       case $host_os in
22008         rhapsody* | darwin1.[012])
22009          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22010          ;;
22011        *) # Darwin 1.3 on
22012          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22013            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22014          else
22015            case ${MACOSX_DEPLOYMENT_TARGET} in
22016              10.[012])
22017                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22018                ;;
22019              10.*)
22020                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22021                ;;
22022            esac
22023          fi
22024          ;;
22025       esac
22026       archive_cmds_need_lc_F77=no
22027       hardcode_direct_F77=no
22028       hardcode_automatic_F77=yes
22029       hardcode_shlibpath_var_F77=unsupported
22030       whole_archive_flag_spec_F77=''
22031       link_all_deplibs_F77=yes
22032     if test "$GCC" = yes ; then
22033         output_verbose_link_cmd='echo'
22034         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22035       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22036       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22037       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}'
22038       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}'
22039     else
22040       case $cc_basename in
22041         xlc*)
22042          output_verbose_link_cmd='echo'
22043          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22044          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22045           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22046          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}'
22047           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}'
22048           ;;
22049        *)
22050          ld_shlibs_F77=no
22051           ;;
22052       esac
22053     fi
22054       ;;
22055
22056     dgux*)
22057       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22058       hardcode_libdir_flag_spec_F77='-L$libdir'
22059       hardcode_shlibpath_var_F77=no
22060       ;;
22061
22062     freebsd1*)
22063       ld_shlibs_F77=no
22064       ;;
22065
22066     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22067     # support.  Future versions do this automatically, but an explicit c++rt0.o
22068     # does not break anything, and helps significantly (at the cost of a little
22069     # extra space).
22070     freebsd2.2*)
22071       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22072       hardcode_libdir_flag_spec_F77='-R$libdir'
22073       hardcode_direct_F77=yes
22074       hardcode_shlibpath_var_F77=no
22075       ;;
22076
22077     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22078     freebsd2*)
22079       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22080       hardcode_direct_F77=yes
22081       hardcode_minus_L_F77=yes
22082       hardcode_shlibpath_var_F77=no
22083       ;;
22084
22085     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22086     freebsd* | kfreebsd*-gnu | dragonfly*)
22087       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22088       hardcode_libdir_flag_spec_F77='-R$libdir'
22089       hardcode_direct_F77=yes
22090       hardcode_shlibpath_var_F77=no
22091       ;;
22092
22093     hpux9*)
22094       if test "$GCC" = yes; then
22095         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'
22096       else
22097         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'
22098       fi
22099       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22100       hardcode_libdir_separator_F77=:
22101       hardcode_direct_F77=yes
22102
22103       # hardcode_minus_L: Not really in the search PATH,
22104       # but as the default location of the library.
22105       hardcode_minus_L_F77=yes
22106       export_dynamic_flag_spec_F77='${wl}-E'
22107       ;;
22108
22109     hpux10*)
22110       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22111         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22112       else
22113         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22114       fi
22115       if test "$with_gnu_ld" = no; then
22116         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22117         hardcode_libdir_separator_F77=:
22118
22119         hardcode_direct_F77=yes
22120         export_dynamic_flag_spec_F77='${wl}-E'
22121
22122         # hardcode_minus_L: Not really in the search PATH,
22123         # but as the default location of the library.
22124         hardcode_minus_L_F77=yes
22125       fi
22126       ;;
22127
22128     hpux11*)
22129       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22130         case $host_cpu in
22131         hppa*64*)
22132           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22133           ;;
22134         ia64*)
22135           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22136           ;;
22137         *)
22138           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22139           ;;
22140         esac
22141       else
22142         case $host_cpu in
22143         hppa*64*)
22144           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22145           ;;
22146         ia64*)
22147           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22148           ;;
22149         *)
22150           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22151           ;;
22152         esac
22153       fi
22154       if test "$with_gnu_ld" = no; then
22155         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22156         hardcode_libdir_separator_F77=:
22157
22158         case $host_cpu in
22159         hppa*64*|ia64*)
22160           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22161           hardcode_direct_F77=no
22162           hardcode_shlibpath_var_F77=no
22163           ;;
22164         *)
22165           hardcode_direct_F77=yes
22166           export_dynamic_flag_spec_F77='${wl}-E'
22167
22168           # hardcode_minus_L: Not really in the search PATH,
22169           # but as the default location of the library.
22170           hardcode_minus_L_F77=yes
22171           ;;
22172         esac
22173       fi
22174       ;;
22175
22176     irix5* | irix6* | nonstopux*)
22177       if test "$GCC" = yes; then
22178         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'
22179       else
22180         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'
22181         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22182       fi
22183       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22184       hardcode_libdir_separator_F77=:
22185       link_all_deplibs_F77=yes
22186       ;;
22187
22188     netbsd*)
22189       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22190         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22191       else
22192         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22193       fi
22194       hardcode_libdir_flag_spec_F77='-R$libdir'
22195       hardcode_direct_F77=yes
22196       hardcode_shlibpath_var_F77=no
22197       ;;
22198
22199     newsos6)
22200       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22201       hardcode_direct_F77=yes
22202       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22203       hardcode_libdir_separator_F77=:
22204       hardcode_shlibpath_var_F77=no
22205       ;;
22206
22207     openbsd*)
22208       hardcode_direct_F77=yes
22209       hardcode_shlibpath_var_F77=no
22210       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22211         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22212         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22213         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22214         export_dynamic_flag_spec_F77='${wl}-E'
22215       else
22216        case $host_os in
22217          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22218            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22219            hardcode_libdir_flag_spec_F77='-R$libdir'
22220            ;;
22221          *)
22222            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22223            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22224            ;;
22225        esac
22226       fi
22227       ;;
22228
22229     os2*)
22230       hardcode_libdir_flag_spec_F77='-L$libdir'
22231       hardcode_minus_L_F77=yes
22232       allow_undefined_flag_F77=unsupported
22233       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'
22234       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22235       ;;
22236
22237     osf3*)
22238       if test "$GCC" = yes; then
22239         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22240         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'
22241       else
22242         allow_undefined_flag_F77=' -expect_unresolved \*'
22243         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'
22244       fi
22245       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22246       hardcode_libdir_separator_F77=:
22247       ;;
22248
22249     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22250       if test "$GCC" = yes; then
22251         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22252         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'
22253         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22254       else
22255         allow_undefined_flag_F77=' -expect_unresolved \*'
22256         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'
22257         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~
22258         $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'
22259
22260         # Both c and cxx compiler support -rpath directly
22261         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22262       fi
22263       hardcode_libdir_separator_F77=:
22264       ;;
22265
22266     solaris*)
22267       no_undefined_flag_F77=' -z text'
22268       if test "$GCC" = yes; then
22269         wlarc='${wl}'
22270         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22271         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22272           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22273       else
22274         wlarc=''
22275         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22276         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22277         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22278       fi
22279       hardcode_libdir_flag_spec_F77='-R$libdir'
22280       hardcode_shlibpath_var_F77=no
22281       case $host_os in
22282       solaris2.[0-5] | solaris2.[0-5].*) ;;
22283       *)
22284         # The compiler driver will combine linker options so we
22285         # cannot just pass the convience library names through
22286         # without $wl, iff we do not link with $LD.
22287         # Luckily, gcc supports the same syntax we need for Sun Studio.
22288         # Supported since Solaris 2.6 (maybe 2.5.1?)
22289         case $wlarc in
22290         '')
22291           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22292         *)
22293           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' ;;
22294         esac ;;
22295       esac
22296       link_all_deplibs_F77=yes
22297       ;;
22298
22299     sunos4*)
22300       if test "x$host_vendor" = xsequent; then
22301         # Use $CC to link under sequent, because it throws in some extra .o
22302         # files that make .init and .fini sections work.
22303         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22304       else
22305         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22306       fi
22307       hardcode_libdir_flag_spec_F77='-L$libdir'
22308       hardcode_direct_F77=yes
22309       hardcode_minus_L_F77=yes
22310       hardcode_shlibpath_var_F77=no
22311       ;;
22312
22313     sysv4)
22314       case $host_vendor in
22315         sni)
22316           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317           hardcode_direct_F77=yes # is this really true???
22318         ;;
22319         siemens)
22320           ## LD is ld it makes a PLAMLIB
22321           ## CC just makes a GrossModule.
22322           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22323           reload_cmds_F77='$CC -r -o $output$reload_objs'
22324           hardcode_direct_F77=no
22325         ;;
22326         motorola)
22327           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22328           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22329         ;;
22330       esac
22331       runpath_var='LD_RUN_PATH'
22332       hardcode_shlibpath_var_F77=no
22333       ;;
22334
22335     sysv4.3*)
22336       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22337       hardcode_shlibpath_var_F77=no
22338       export_dynamic_flag_spec_F77='-Bexport'
22339       ;;
22340
22341     sysv4*MP*)
22342       if test -d /usr/nec; then
22343         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344         hardcode_shlibpath_var_F77=no
22345         runpath_var=LD_RUN_PATH
22346         hardcode_runpath_var=yes
22347         ld_shlibs_F77=yes
22348       fi
22349       ;;
22350
22351     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22352       no_undefined_flag_F77='${wl}-z,text'
22353       archive_cmds_need_lc_F77=no
22354       hardcode_shlibpath_var_F77=no
22355       runpath_var='LD_RUN_PATH'
22356
22357       if test "$GCC" = yes; then
22358         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22359         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22360       else
22361         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22362         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22363       fi
22364       ;;
22365
22366     sysv5* | sco3.2v5* | sco5v6*)
22367       # Note: We can NOT use -z defs as we might desire, because we do not
22368       # link with -lc, and that would cause any symbols used from libc to
22369       # always be unresolved, which means just about no library would
22370       # ever link correctly.  If we're not using GNU ld we use -z text
22371       # though, which does catch some bad symbols but isn't as heavy-handed
22372       # as -z defs.
22373       no_undefined_flag_F77='${wl}-z,text'
22374       allow_undefined_flag_F77='${wl}-z,nodefs'
22375       archive_cmds_need_lc_F77=no
22376       hardcode_shlibpath_var_F77=no
22377       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22378       hardcode_libdir_separator_F77=':'
22379       link_all_deplibs_F77=yes
22380       export_dynamic_flag_spec_F77='${wl}-Bexport'
22381       runpath_var='LD_RUN_PATH'
22382
22383       if test "$GCC" = yes; then
22384         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22385         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22386       else
22387         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22388         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22389       fi
22390       ;;
22391
22392     uts4*)
22393       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22394       hardcode_libdir_flag_spec_F77='-L$libdir'
22395       hardcode_shlibpath_var_F77=no
22396       ;;
22397
22398     *)
22399       ld_shlibs_F77=no
22400       ;;
22401     esac
22402   fi
22403
22404 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22405 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22406 test "$ld_shlibs_F77" = no && can_build_shared=no
22407
22408 #
22409 # Do we need to explicitly link libc?
22410 #
22411 case "x$archive_cmds_need_lc_F77" in
22412 x|xyes)
22413   # Assume -lc should be added
22414   archive_cmds_need_lc_F77=yes
22415
22416   if test "$enable_shared" = yes && test "$GCC" = yes; then
22417     case $archive_cmds_F77 in
22418     *'~'*)
22419       # FIXME: we may have to deal with multi-command sequences.
22420       ;;
22421     '$CC '*)
22422       # Test whether the compiler implicitly links with -lc since on some
22423       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22424       # to ld, don't add -lc before -lgcc.
22425       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22426 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22427       $rm conftest*
22428       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22429
22430       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22431   (eval $ac_compile) 2>&5
22432   ac_status=$?
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); } 2>conftest.err; then
22435         soname=conftest
22436         lib=conftest
22437         libobjs=conftest.$ac_objext
22438         deplibs=
22439         wl=$lt_prog_compiler_wl_F77
22440         pic_flag=$lt_prog_compiler_pic_F77
22441         compiler_flags=-v
22442         linker_flags=-v
22443         verstring=
22444         output_objdir=.
22445         libname=conftest
22446         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22447         allow_undefined_flag_F77=
22448         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22449   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }
22453         then
22454           archive_cmds_need_lc_F77=no
22455         else
22456           archive_cmds_need_lc_F77=yes
22457         fi
22458         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22459       else
22460         cat conftest.err 1>&5
22461       fi
22462       $rm conftest*
22463       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22464 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22465       ;;
22466     esac
22467   fi
22468   ;;
22469 esac
22470
22471 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22472 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22473 library_names_spec=
22474 libname_spec='lib$name'
22475 soname_spec=
22476 shrext_cmds=".so"
22477 postinstall_cmds=
22478 postuninstall_cmds=
22479 finish_cmds=
22480 finish_eval=
22481 shlibpath_var=
22482 shlibpath_overrides_runpath=unknown
22483 version_type=none
22484 dynamic_linker="$host_os ld.so"
22485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22486 if test "$GCC" = yes; then
22487   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22488   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22489     # if the path contains ";" then we assume it to be the separator
22490     # otherwise default to the standard path separator (i.e. ":") - it is
22491     # assumed that no part of a normal pathname contains ";" but that should
22492     # okay in the real world where ";" in dirpaths is itself problematic.
22493     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22494   else
22495     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22496   fi
22497 else
22498   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22499 fi
22500 need_lib_prefix=unknown
22501 hardcode_into_libs=no
22502
22503 # when you set need_version to no, make sure it does not cause -set_version
22504 # flags to be left without arguments
22505 need_version=unknown
22506
22507 case $host_os in
22508 aix3*)
22509   version_type=linux
22510   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22511   shlibpath_var=LIBPATH
22512
22513   # AIX 3 has no versioning support, so we append a major version to the name.
22514   soname_spec='${libname}${release}${shared_ext}$major'
22515   ;;
22516
22517 aix4* | aix5*)
22518   version_type=linux
22519   need_lib_prefix=no
22520   need_version=no
22521   hardcode_into_libs=yes
22522   if test "$host_cpu" = ia64; then
22523     # AIX 5 supports IA64
22524     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22525     shlibpath_var=LD_LIBRARY_PATH
22526   else
22527     # With GCC up to 2.95.x, collect2 would create an import file
22528     # for dependence libraries.  The import file would start with
22529     # the line `#! .'.  This would cause the generated library to
22530     # depend on `.', always an invalid library.  This was fixed in
22531     # development snapshots of GCC prior to 3.0.
22532     case $host_os in
22533       aix4 | aix4.[01] | aix4.[01].*)
22534       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22535            echo ' yes '
22536            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22537         :
22538       else
22539         can_build_shared=no
22540       fi
22541       ;;
22542     esac
22543     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22544     # soname into executable. Probably we can add versioning support to
22545     # collect2, so additional links can be useful in future.
22546     if test "$aix_use_runtimelinking" = yes; then
22547       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22548       # instead of lib<name>.a to let people know that these are not
22549       # typical AIX shared libraries.
22550       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22551     else
22552       # We preserve .a as extension for shared libraries through AIX4.2
22553       # and later when we are not doing run time linking.
22554       library_names_spec='${libname}${release}.a $libname.a'
22555       soname_spec='${libname}${release}${shared_ext}$major'
22556     fi
22557     shlibpath_var=LIBPATH
22558   fi
22559   ;;
22560
22561 amigaos*)
22562   library_names_spec='$libname.ixlibrary $libname.a'
22563   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22564   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'
22565   ;;
22566
22567 beos*)
22568   library_names_spec='${libname}${shared_ext}'
22569   dynamic_linker="$host_os ld.so"
22570   shlibpath_var=LIBRARY_PATH
22571   ;;
22572
22573 bsdi[45]*)
22574   version_type=linux
22575   need_version=no
22576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22577   soname_spec='${libname}${release}${shared_ext}$major'
22578   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22579   shlibpath_var=LD_LIBRARY_PATH
22580   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22581   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22582   # the default ld.so.conf also contains /usr/contrib/lib and
22583   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22584   # libtool to hard-code these into programs
22585   ;;
22586
22587 cygwin* | mingw* | pw32*)
22588   version_type=windows
22589   shrext_cmds=".dll"
22590   need_version=no
22591   need_lib_prefix=no
22592
22593   case $GCC,$host_os in
22594   yes,cygwin* | yes,mingw* | yes,pw32*)
22595     library_names_spec='$libname.dll.a'
22596     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22597     postinstall_cmds='base_file=`basename \${file}`~
22598       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22599       dldir=$destdir/`dirname \$dlpath`~
22600       test -d \$dldir || mkdir -p \$dldir~
22601       $install_prog $dir/$dlname \$dldir/$dlname~
22602       chmod a+x \$dldir/$dlname'
22603     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22604       dlpath=$dir/\$dldll~
22605        $rm \$dlpath'
22606     shlibpath_overrides_runpath=yes
22607
22608     case $host_os in
22609     cygwin*)
22610       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22611       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22612       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22613       ;;
22614     mingw*)
22615       # MinGW DLLs use traditional 'lib' prefix
22616       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22617       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22618       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22619         # It is most probably a Windows format PATH printed by
22620         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22621         # path with ; separators, and with drive letters. We can handle the
22622         # drive letters (cygwin fileutils understands them), so leave them,
22623         # especially as we might pass files found there to a mingw objdump,
22624         # which wouldn't understand a cygwinified path. Ahh.
22625         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22626       else
22627         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22628       fi
22629       ;;
22630     pw32*)
22631       # pw32 DLLs use 'pw' prefix rather than 'lib'
22632       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22633       ;;
22634     esac
22635     ;;
22636
22637   *)
22638     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22639     ;;
22640   esac
22641   dynamic_linker='Win32 ld.exe'
22642   # FIXME: first we should search . and the directory the executable is in
22643   shlibpath_var=PATH
22644   ;;
22645
22646 darwin* | rhapsody*)
22647   dynamic_linker="$host_os dyld"
22648   version_type=darwin
22649   need_lib_prefix=no
22650   need_version=no
22651   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22652   soname_spec='${libname}${release}${major}$shared_ext'
22653   shlibpath_overrides_runpath=yes
22654   shlibpath_var=DYLD_LIBRARY_PATH
22655   shrext_cmds='.dylib'
22656   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22657   if test "$GCC" = yes; then
22658     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"`
22659   else
22660     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22661   fi
22662   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22663   ;;
22664
22665 dgux*)
22666   version_type=linux
22667   need_lib_prefix=no
22668   need_version=no
22669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22670   soname_spec='${libname}${release}${shared_ext}$major'
22671   shlibpath_var=LD_LIBRARY_PATH
22672   ;;
22673
22674 freebsd1*)
22675   dynamic_linker=no
22676   ;;
22677
22678 kfreebsd*-gnu)
22679   version_type=linux
22680   need_lib_prefix=no
22681   need_version=no
22682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22683   soname_spec='${libname}${release}${shared_ext}$major'
22684   shlibpath_var=LD_LIBRARY_PATH
22685   shlibpath_overrides_runpath=no
22686   hardcode_into_libs=yes
22687   dynamic_linker='GNU ld.so'
22688   ;;
22689
22690 freebsd* | dragonfly*)
22691   # DragonFly does not have aout.  When/if they implement a new
22692   # versioning mechanism, adjust this.
22693   if test -x /usr/bin/objformat; then
22694     objformat=`/usr/bin/objformat`
22695   else
22696     case $host_os in
22697     freebsd[123]*) objformat=aout ;;
22698     *) objformat=elf ;;
22699     esac
22700   fi
22701   version_type=freebsd-$objformat
22702   case $version_type in
22703     freebsd-elf*)
22704       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22705       need_version=no
22706       need_lib_prefix=no
22707       ;;
22708     freebsd-*)
22709       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22710       need_version=yes
22711       ;;
22712   esac
22713   shlibpath_var=LD_LIBRARY_PATH
22714   case $host_os in
22715   freebsd2*)
22716     shlibpath_overrides_runpath=yes
22717     ;;
22718   freebsd3.[01]* | freebsdelf3.[01]*)
22719     shlibpath_overrides_runpath=yes
22720     hardcode_into_libs=yes
22721     ;;
22722   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22723   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22724     shlibpath_overrides_runpath=no
22725     hardcode_into_libs=yes
22726     ;;
22727   freebsd*) # from 4.6 on
22728     shlibpath_overrides_runpath=yes
22729     hardcode_into_libs=yes
22730     ;;
22731   esac
22732   ;;
22733
22734 gnu*)
22735   version_type=linux
22736   need_lib_prefix=no
22737   need_version=no
22738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22739   soname_spec='${libname}${release}${shared_ext}$major'
22740   shlibpath_var=LD_LIBRARY_PATH
22741   hardcode_into_libs=yes
22742   ;;
22743
22744 hpux9* | hpux10* | hpux11*)
22745   # Give a soname corresponding to the major version so that dld.sl refuses to
22746   # link against other versions.
22747   version_type=sunos
22748   need_lib_prefix=no
22749   need_version=no
22750   case $host_cpu in
22751   ia64*)
22752     shrext_cmds='.so'
22753     hardcode_into_libs=yes
22754     dynamic_linker="$host_os dld.so"
22755     shlibpath_var=LD_LIBRARY_PATH
22756     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22758     soname_spec='${libname}${release}${shared_ext}$major'
22759     if test "X$HPUX_IA64_MODE" = X32; then
22760       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22761     else
22762       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22763     fi
22764     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22765     ;;
22766    hppa*64*)
22767      shrext_cmds='.sl'
22768      hardcode_into_libs=yes
22769      dynamic_linker="$host_os dld.sl"
22770      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22771      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22772      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773      soname_spec='${libname}${release}${shared_ext}$major'
22774      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22775      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22776      ;;
22777    *)
22778     shrext_cmds='.sl'
22779     dynamic_linker="$host_os dld.sl"
22780     shlibpath_var=SHLIB_PATH
22781     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783     soname_spec='${libname}${release}${shared_ext}$major'
22784     ;;
22785   esac
22786   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22787   postinstall_cmds='chmod 555 $lib'
22788   ;;
22789
22790 interix3*)
22791   version_type=linux
22792   need_lib_prefix=no
22793   need_version=no
22794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22795   soname_spec='${libname}${release}${shared_ext}$major'
22796   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22797   shlibpath_var=LD_LIBRARY_PATH
22798   shlibpath_overrides_runpath=no
22799   hardcode_into_libs=yes
22800   ;;
22801
22802 irix5* | irix6* | nonstopux*)
22803   case $host_os in
22804     nonstopux*) version_type=nonstopux ;;
22805     *)
22806         if test "$lt_cv_prog_gnu_ld" = yes; then
22807                 version_type=linux
22808         else
22809                 version_type=irix
22810         fi ;;
22811   esac
22812   need_lib_prefix=no
22813   need_version=no
22814   soname_spec='${libname}${release}${shared_ext}$major'
22815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22816   case $host_os in
22817   irix5* | nonstopux*)
22818     libsuff= shlibsuff=
22819     ;;
22820   *)
22821     case $LD in # libtool.m4 will add one of these switches to LD
22822     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22823       libsuff= shlibsuff= libmagic=32-bit;;
22824     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22825       libsuff=32 shlibsuff=N32 libmagic=N32;;
22826     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22827       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22828     *) libsuff= shlibsuff= libmagic=never-match;;
22829     esac
22830     ;;
22831   esac
22832   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22833   shlibpath_overrides_runpath=no
22834   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22835   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22836   hardcode_into_libs=yes
22837   ;;
22838
22839 # No shared lib support for Linux oldld, aout, or coff.
22840 linux*oldld* | linux*aout* | linux*coff*)
22841   dynamic_linker=no
22842   ;;
22843
22844 # This must be Linux ELF.
22845 linux*)
22846   version_type=linux
22847   need_lib_prefix=no
22848   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22852   shlibpath_var=LD_LIBRARY_PATH
22853   shlibpath_overrides_runpath=no
22854   # This implies no fast_install, which is unacceptable.
22855   # Some rework will be needed to allow for fast_install
22856   # before this can be enabled.
22857   hardcode_into_libs=yes
22858
22859   # Append ld.so.conf contents to the search path
22860   if test -f /etc/ld.so.conf; then
22861     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' ' '`
22862     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22863   fi
22864
22865   # We used to test for /lib/ld.so.1 and disable shared libraries on
22866   # powerpc, because MkLinux only supported shared libraries with the
22867   # GNU dynamic linker.  Since this was broken with cross compilers,
22868   # most powerpc-linux boxes support dynamic linking these days and
22869   # people can always --disable-shared, the test was removed, and we
22870   # assume the GNU/Linux dynamic linker is in use.
22871   dynamic_linker='GNU/Linux ld.so'
22872   ;;
22873
22874 knetbsd*-gnu)
22875   version_type=linux
22876   need_lib_prefix=no
22877   need_version=no
22878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22879   soname_spec='${libname}${release}${shared_ext}$major'
22880   shlibpath_var=LD_LIBRARY_PATH
22881   shlibpath_overrides_runpath=no
22882   hardcode_into_libs=yes
22883   dynamic_linker='GNU ld.so'
22884   ;;
22885
22886 netbsd*)
22887   version_type=sunos
22888   need_lib_prefix=no
22889   need_version=no
22890   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22892     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22893     dynamic_linker='NetBSD (a.out) ld.so'
22894   else
22895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22896     soname_spec='${libname}${release}${shared_ext}$major'
22897     dynamic_linker='NetBSD ld.elf_so'
22898   fi
22899   shlibpath_var=LD_LIBRARY_PATH
22900   shlibpath_overrides_runpath=yes
22901   hardcode_into_libs=yes
22902   ;;
22903
22904 newsos6)
22905   version_type=linux
22906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907   shlibpath_var=LD_LIBRARY_PATH
22908   shlibpath_overrides_runpath=yes
22909   ;;
22910
22911 nto-qnx*)
22912   version_type=linux
22913   need_lib_prefix=no
22914   need_version=no
22915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916   soname_spec='${libname}${release}${shared_ext}$major'
22917   shlibpath_var=LD_LIBRARY_PATH
22918   shlibpath_overrides_runpath=yes
22919   ;;
22920
22921 openbsd*)
22922   version_type=sunos
22923   sys_lib_dlsearch_path_spec="/usr/lib"
22924   need_lib_prefix=no
22925   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22926   case $host_os in
22927     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22928     *)                         need_version=no  ;;
22929   esac
22930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22931   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22932   shlibpath_var=LD_LIBRARY_PATH
22933   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22934     case $host_os in
22935       openbsd2.[89] | openbsd2.[89].*)
22936         shlibpath_overrides_runpath=no
22937         ;;
22938       *)
22939         shlibpath_overrides_runpath=yes
22940         ;;
22941       esac
22942   else
22943     shlibpath_overrides_runpath=yes
22944   fi
22945   ;;
22946
22947 os2*)
22948   libname_spec='$name'
22949   shrext_cmds=".dll"
22950   need_lib_prefix=no
22951   library_names_spec='$libname${shared_ext} $libname.a'
22952   dynamic_linker='OS/2 ld.exe'
22953   shlibpath_var=LIBPATH
22954   ;;
22955
22956 osf3* | osf4* | osf5*)
22957   version_type=osf
22958   need_lib_prefix=no
22959   need_version=no
22960   soname_spec='${libname}${release}${shared_ext}$major'
22961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962   shlibpath_var=LD_LIBRARY_PATH
22963   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22964   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22965   ;;
22966
22967 solaris*)
22968   version_type=linux
22969   need_lib_prefix=no
22970   need_version=no
22971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22972   soname_spec='${libname}${release}${shared_ext}$major'
22973   shlibpath_var=LD_LIBRARY_PATH
22974   shlibpath_overrides_runpath=yes
22975   hardcode_into_libs=yes
22976   # ldd complains unless libraries are executable
22977   postinstall_cmds='chmod +x $lib'
22978   ;;
22979
22980 sunos4*)
22981   version_type=sunos
22982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22983   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22984   shlibpath_var=LD_LIBRARY_PATH
22985   shlibpath_overrides_runpath=yes
22986   if test "$with_gnu_ld" = yes; then
22987     need_lib_prefix=no
22988   fi
22989   need_version=yes
22990   ;;
22991
22992 sysv4 | sysv4.3*)
22993   version_type=linux
22994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22995   soname_spec='${libname}${release}${shared_ext}$major'
22996   shlibpath_var=LD_LIBRARY_PATH
22997   case $host_vendor in
22998     sni)
22999       shlibpath_overrides_runpath=no
23000       need_lib_prefix=no
23001       export_dynamic_flag_spec='${wl}-Blargedynsym'
23002       runpath_var=LD_RUN_PATH
23003       ;;
23004     siemens)
23005       need_lib_prefix=no
23006       ;;
23007     motorola)
23008       need_lib_prefix=no
23009       need_version=no
23010       shlibpath_overrides_runpath=no
23011       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23012       ;;
23013   esac
23014   ;;
23015
23016 sysv4*MP*)
23017   if test -d /usr/nec ;then
23018     version_type=linux
23019     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23020     soname_spec='$libname${shared_ext}.$major'
23021     shlibpath_var=LD_LIBRARY_PATH
23022   fi
23023   ;;
23024
23025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23026   version_type=freebsd-elf
23027   need_lib_prefix=no
23028   need_version=no
23029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23030   soname_spec='${libname}${release}${shared_ext}$major'
23031   shlibpath_var=LD_LIBRARY_PATH
23032   hardcode_into_libs=yes
23033   if test "$with_gnu_ld" = yes; then
23034     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23035     shlibpath_overrides_runpath=no
23036   else
23037     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23038     shlibpath_overrides_runpath=yes
23039     case $host_os in
23040       sco3.2v5*)
23041         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23042         ;;
23043     esac
23044   fi
23045   sys_lib_dlsearch_path_spec='/usr/lib'
23046   ;;
23047
23048 uts4*)
23049   version_type=linux
23050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23051   soname_spec='${libname}${release}${shared_ext}$major'
23052   shlibpath_var=LD_LIBRARY_PATH
23053   ;;
23054
23055 *)
23056   dynamic_linker=no
23057   ;;
23058 esac
23059 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23060 echo "${ECHO_T}$dynamic_linker" >&6; }
23061 test "$dynamic_linker" = no && can_build_shared=no
23062
23063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23064 if test "$GCC" = yes; then
23065   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23066 fi
23067
23068 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23070 hardcode_action_F77=
23071 if test -n "$hardcode_libdir_flag_spec_F77" || \
23072    test -n "$runpath_var_F77" || \
23073    test "X$hardcode_automatic_F77" = "Xyes" ; then
23074
23075   # We can hardcode non-existant directories.
23076   if test "$hardcode_direct_F77" != no &&
23077      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23078      # have to relink, otherwise we might link with an installed library
23079      # when we should be linking with a yet-to-be-installed one
23080      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23081      test "$hardcode_minus_L_F77" != no; then
23082     # Linking always hardcodes the temporary library directory.
23083     hardcode_action_F77=relink
23084   else
23085     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23086     hardcode_action_F77=immediate
23087   fi
23088 else
23089   # We cannot hardcode anything, or else we can only hardcode existing
23090   # directories.
23091   hardcode_action_F77=unsupported
23092 fi
23093 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23094 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23095
23096 if test "$hardcode_action_F77" = relink; then
23097   # Fast installation is not supported
23098   enable_fast_install=no
23099 elif test "$shlibpath_overrides_runpath" = yes ||
23100      test "$enable_shared" = no; then
23101   # Fast installation is not necessary
23102   enable_fast_install=needless
23103 fi
23104
23105
23106 # The else clause should only fire when bootstrapping the
23107 # libtool distribution, otherwise you forgot to ship ltmain.sh
23108 # with your package, and you will get complaints that there are
23109 # no rules to generate ltmain.sh.
23110 if test -f "$ltmain"; then
23111   # See if we are running on zsh, and set the options which allow our commands through
23112   # without removal of \ escapes.
23113   if test -n "${ZSH_VERSION+set}" ; then
23114     setopt NO_GLOB_SUBST
23115   fi
23116   # Now quote all the things that may contain metacharacters while being
23117   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23118   # variables and quote the copies for generation of the libtool script.
23119   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23120     SED SHELL STRIP \
23121     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23122     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23123     deplibs_check_method reload_flag reload_cmds need_locks \
23124     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23125     lt_cv_sys_global_symbol_to_c_name_address \
23126     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23127     old_postinstall_cmds old_postuninstall_cmds \
23128     compiler_F77 \
23129     CC_F77 \
23130     LD_F77 \
23131     lt_prog_compiler_wl_F77 \
23132     lt_prog_compiler_pic_F77 \
23133     lt_prog_compiler_static_F77 \
23134     lt_prog_compiler_no_builtin_flag_F77 \
23135     export_dynamic_flag_spec_F77 \
23136     thread_safe_flag_spec_F77 \
23137     whole_archive_flag_spec_F77 \
23138     enable_shared_with_static_runtimes_F77 \
23139     old_archive_cmds_F77 \
23140     old_archive_from_new_cmds_F77 \
23141     predep_objects_F77 \
23142     postdep_objects_F77 \
23143     predeps_F77 \
23144     postdeps_F77 \
23145     compiler_lib_search_path_F77 \
23146     archive_cmds_F77 \
23147     archive_expsym_cmds_F77 \
23148     postinstall_cmds_F77 \
23149     postuninstall_cmds_F77 \
23150     old_archive_from_expsyms_cmds_F77 \
23151     allow_undefined_flag_F77 \
23152     no_undefined_flag_F77 \
23153     export_symbols_cmds_F77 \
23154     hardcode_libdir_flag_spec_F77 \
23155     hardcode_libdir_flag_spec_ld_F77 \
23156     hardcode_libdir_separator_F77 \
23157     hardcode_automatic_F77 \
23158     module_cmds_F77 \
23159     module_expsym_cmds_F77 \
23160     lt_cv_prog_compiler_c_o_F77 \
23161     exclude_expsyms_F77 \
23162     include_expsyms_F77; do
23163
23164     case $var in
23165     old_archive_cmds_F77 | \
23166     old_archive_from_new_cmds_F77 | \
23167     archive_cmds_F77 | \
23168     archive_expsym_cmds_F77 | \
23169     module_cmds_F77 | \
23170     module_expsym_cmds_F77 | \
23171     old_archive_from_expsyms_cmds_F77 | \
23172     export_symbols_cmds_F77 | \
23173     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23174     postinstall_cmds | postuninstall_cmds | \
23175     old_postinstall_cmds | old_postuninstall_cmds | \
23176     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23177       # Double-quote double-evaled strings.
23178       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23179       ;;
23180     *)
23181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23182       ;;
23183     esac
23184   done
23185
23186   case $lt_echo in
23187   *'\$0 --fallback-echo"')
23188     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23189     ;;
23190   esac
23191
23192 cfgfile="$ofile"
23193
23194   cat <<__EOF__ >> "$cfgfile"
23195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23196
23197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23198
23199 # Shell to use when invoking shell scripts.
23200 SHELL=$lt_SHELL
23201
23202 # Whether or not to build shared libraries.
23203 build_libtool_libs=$enable_shared
23204
23205 # Whether or not to build static libraries.
23206 build_old_libs=$enable_static
23207
23208 # Whether or not to add -lc for building shared libraries.
23209 build_libtool_need_lc=$archive_cmds_need_lc_F77
23210
23211 # Whether or not to disallow shared libs when runtime libs are static
23212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23213
23214 # Whether or not to optimize for fast installation.
23215 fast_install=$enable_fast_install
23216
23217 # The host system.
23218 host_alias=$host_alias
23219 host=$host
23220 host_os=$host_os
23221
23222 # The build system.
23223 build_alias=$build_alias
23224 build=$build
23225 build_os=$build_os
23226
23227 # An echo program that does not interpret backslashes.
23228 echo=$lt_echo
23229
23230 # The archiver.
23231 AR=$lt_AR
23232 AR_FLAGS=$lt_AR_FLAGS
23233
23234 # A C compiler.
23235 LTCC=$lt_LTCC
23236
23237 # LTCC compiler flags.
23238 LTCFLAGS=$lt_LTCFLAGS
23239
23240 # A language-specific compiler.
23241 CC=$lt_compiler_F77
23242
23243 # Is the compiler the GNU C compiler?
23244 with_gcc=$GCC_F77
23245
23246 # An ERE matcher.
23247 EGREP=$lt_EGREP
23248
23249 # The linker used to build libraries.
23250 LD=$lt_LD_F77
23251
23252 # Whether we need hard or soft links.
23253 LN_S=$lt_LN_S
23254
23255 # A BSD-compatible nm program.
23256 NM=$lt_NM
23257
23258 # A symbol stripping program
23259 STRIP=$lt_STRIP
23260
23261 # Used to examine libraries when file_magic_cmd begins "file"
23262 MAGIC_CMD=$MAGIC_CMD
23263
23264 # Used on cygwin: DLL creation program.
23265 DLLTOOL="$DLLTOOL"
23266
23267 # Used on cygwin: object dumper.
23268 OBJDUMP="$OBJDUMP"
23269
23270 # Used on cygwin: assembler.
23271 AS="$AS"
23272
23273 # The name of the directory that contains temporary libtool files.
23274 objdir=$objdir
23275
23276 # How to create reloadable object files.
23277 reload_flag=$lt_reload_flag
23278 reload_cmds=$lt_reload_cmds
23279
23280 # How to pass a linker flag through the compiler.
23281 wl=$lt_lt_prog_compiler_wl_F77
23282
23283 # Object file suffix (normally "o").
23284 objext="$ac_objext"
23285
23286 # Old archive suffix (normally "a").
23287 libext="$libext"
23288
23289 # Shared library suffix (normally ".so").
23290 shrext_cmds='$shrext_cmds'
23291
23292 # Executable file suffix (normally "").
23293 exeext="$exeext"
23294
23295 # Additional compiler flags for building library objects.
23296 pic_flag=$lt_lt_prog_compiler_pic_F77
23297 pic_mode=$pic_mode
23298
23299 # What is the maximum length of a command?
23300 max_cmd_len=$lt_cv_sys_max_cmd_len
23301
23302 # Does compiler simultaneously support -c and -o options?
23303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23304
23305 # Must we lock files when doing compilation?
23306 need_locks=$lt_need_locks
23307
23308 # Do we need the lib prefix for modules?
23309 need_lib_prefix=$need_lib_prefix
23310
23311 # Do we need a version for libraries?
23312 need_version=$need_version
23313
23314 # Whether dlopen is supported.
23315 dlopen_support=$enable_dlopen
23316
23317 # Whether dlopen of programs is supported.
23318 dlopen_self=$enable_dlopen_self
23319
23320 # Whether dlopen of statically linked programs is supported.
23321 dlopen_self_static=$enable_dlopen_self_static
23322
23323 # Compiler flag to prevent dynamic linking.
23324 link_static_flag=$lt_lt_prog_compiler_static_F77
23325
23326 # Compiler flag to turn off builtin functions.
23327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23328
23329 # Compiler flag to allow reflexive dlopens.
23330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23331
23332 # Compiler flag to generate shared objects directly from archives.
23333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23334
23335 # Compiler flag to generate thread-safe objects.
23336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23337
23338 # Library versioning type.
23339 version_type=$version_type
23340
23341 # Format of library name prefix.
23342 libname_spec=$lt_libname_spec
23343
23344 # List of archive names.  First name is the real one, the rest are links.
23345 # The last name is the one that the linker finds with -lNAME.
23346 library_names_spec=$lt_library_names_spec
23347
23348 # The coded name of the library, if different from the real name.
23349 soname_spec=$lt_soname_spec
23350
23351 # Commands used to build and install an old-style archive.
23352 RANLIB=$lt_RANLIB
23353 old_archive_cmds=$lt_old_archive_cmds_F77
23354 old_postinstall_cmds=$lt_old_postinstall_cmds
23355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23356
23357 # Create an old-style archive from a shared archive.
23358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23359
23360 # Create a temporary old-style archive to link instead of a shared archive.
23361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23362
23363 # Commands used to build and install a shared archive.
23364 archive_cmds=$lt_archive_cmds_F77
23365 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23366 postinstall_cmds=$lt_postinstall_cmds
23367 postuninstall_cmds=$lt_postuninstall_cmds
23368
23369 # Commands used to build a loadable module (assumed same as above if empty)
23370 module_cmds=$lt_module_cmds_F77
23371 module_expsym_cmds=$lt_module_expsym_cmds_F77
23372
23373 # Commands to strip libraries.
23374 old_striplib=$lt_old_striplib
23375 striplib=$lt_striplib
23376
23377 # Dependencies to place before the objects being linked to create a
23378 # shared library.
23379 predep_objects=$lt_predep_objects_F77
23380
23381 # Dependencies to place after the objects being linked to create a
23382 # shared library.
23383 postdep_objects=$lt_postdep_objects_F77
23384
23385 # Dependencies to place before the objects being linked to create a
23386 # shared library.
23387 predeps=$lt_predeps_F77
23388
23389 # Dependencies to place after the objects being linked to create a
23390 # shared library.
23391 postdeps=$lt_postdeps_F77
23392
23393 # The library search path used internally by the compiler when linking
23394 # a shared library.
23395 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23396
23397 # Method to check whether dependent libraries are shared objects.
23398 deplibs_check_method=$lt_deplibs_check_method
23399
23400 # Command to use when deplibs_check_method == file_magic.
23401 file_magic_cmd=$lt_file_magic_cmd
23402
23403 # Flag that allows shared libraries with undefined symbols to be built.
23404 allow_undefined_flag=$lt_allow_undefined_flag_F77
23405
23406 # Flag that forces no undefined symbols.
23407 no_undefined_flag=$lt_no_undefined_flag_F77
23408
23409 # Commands used to finish a libtool library installation in a directory.
23410 finish_cmds=$lt_finish_cmds
23411
23412 # Same as above, but a single script fragment to be evaled but not shown.
23413 finish_eval=$lt_finish_eval
23414
23415 # Take the output of nm and produce a listing of raw symbols and C names.
23416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23417
23418 # Transform the output of nm in a proper C declaration
23419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23420
23421 # Transform the output of nm in a C name address pair
23422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23423
23424 # This is the shared library runtime path variable.
23425 runpath_var=$runpath_var
23426
23427 # This is the shared library path variable.
23428 shlibpath_var=$shlibpath_var
23429
23430 # Is shlibpath searched before the hard-coded library search path?
23431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23432
23433 # How to hardcode a shared library path into an executable.
23434 hardcode_action=$hardcode_action_F77
23435
23436 # Whether we should hardcode library paths into libraries.
23437 hardcode_into_libs=$hardcode_into_libs
23438
23439 # Flag to hardcode \$libdir into a binary during linking.
23440 # This must work even if \$libdir does not exist.
23441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23442
23443 # If ld is used when linking, flag to hardcode \$libdir into
23444 # a binary during linking. This must work even if \$libdir does
23445 # not exist.
23446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23447
23448 # Whether we need a single -rpath flag with a separated argument.
23449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23450
23451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23452 # resulting binary.
23453 hardcode_direct=$hardcode_direct_F77
23454
23455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23456 # resulting binary.
23457 hardcode_minus_L=$hardcode_minus_L_F77
23458
23459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23460 # the resulting binary.
23461 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23462
23463 # Set to yes if building a shared library automatically hardcodes DIR into the library
23464 # and all subsequent libraries and executables linked against it.
23465 hardcode_automatic=$hardcode_automatic_F77
23466
23467 # Variables whose values should be saved in libtool wrapper scripts and
23468 # restored at relink time.
23469 variables_saved_for_relink="$variables_saved_for_relink"
23470
23471 # Whether libtool must link a program against all its dependency libraries.
23472 link_all_deplibs=$link_all_deplibs_F77
23473
23474 # Compile-time system search path for libraries
23475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23476
23477 # Run-time system search path for libraries
23478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23479
23480 # Fix the shell variable \$srcfile for the compiler.
23481 fix_srcfile_path="$fix_srcfile_path_F77"
23482
23483 # Set to yes if exported symbols are required.
23484 always_export_symbols=$always_export_symbols_F77
23485
23486 # The commands to list exported symbols.
23487 export_symbols_cmds=$lt_export_symbols_cmds_F77
23488
23489 # The commands to extract the exported symbol list from a shared archive.
23490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23491
23492 # Symbols that should not be listed in the preloaded symbols.
23493 exclude_expsyms=$lt_exclude_expsyms_F77
23494
23495 # Symbols that must always be exported.
23496 include_expsyms=$lt_include_expsyms_F77
23497
23498 # ### END LIBTOOL TAG CONFIG: $tagname
23499
23500 __EOF__
23501
23502
23503 else
23504   # If there is no Makefile yet, we rely on a make rule to execute
23505   # `config.status --recheck' to rerun these tests and create the
23506   # libtool script then.
23507   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23508   if test -f "$ltmain_in"; then
23509     test -f Makefile && make "$ltmain"
23510   fi
23511 fi
23512
23513
23514 ac_ext=c
23515 ac_cpp='$CPP $CPPFLAGS'
23516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23519
23520 CC="$lt_save_CC"
23521
23522         else
23523           tagname=""
23524         fi
23525         ;;
23526
23527       GCJ)
23528         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23529           ac_ext=c
23530 ac_cpp='$CPP $CPPFLAGS'
23531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23534
23535
23536 # Source file extension for Java test sources.
23537 ac_ext=java
23538
23539 # Object file extension for compiled Java test sources.
23540 objext=o
23541 objext_GCJ=$objext
23542
23543 # Code to be used in simple compile tests
23544 lt_simple_compile_test_code="class foo {}\n"
23545
23546 # Code to be used in simple link tests
23547 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23548
23549 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23550
23551 # If no C compiler was specified, use CC.
23552 LTCC=${LTCC-"$CC"}
23553
23554 # If no C compiler flags were specified, use CFLAGS.
23555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23556
23557 # Allow CC to be a program name with arguments.
23558 compiler=$CC
23559
23560
23561 # save warnings/boilerplate of simple test code
23562 ac_outfile=conftest.$ac_objext
23563 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23564 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23565 _lt_compiler_boilerplate=`cat conftest.err`
23566 $rm conftest*
23567
23568 ac_outfile=conftest.$ac_objext
23569 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23570 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23571 _lt_linker_boilerplate=`cat conftest.err`
23572 $rm conftest*
23573
23574
23575 # Allow CC to be a program name with arguments.
23576 lt_save_CC="$CC"
23577 CC=${GCJ-"gcj"}
23578 compiler=$CC
23579 compiler_GCJ=$CC
23580 for cc_temp in $compiler""; do
23581   case $cc_temp in
23582     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23583     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23584     \-*) ;;
23585     *) break;;
23586   esac
23587 done
23588 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23589
23590
23591 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23592 archive_cmds_need_lc_GCJ=no
23593
23594 old_archive_cmds_GCJ=$old_archive_cmds
23595
23596
23597 lt_prog_compiler_no_builtin_flag_GCJ=
23598
23599 if test "$GCC" = yes; then
23600   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23601
23602
23603 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23604 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23605 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23606   echo $ECHO_N "(cached) $ECHO_C" >&6
23607 else
23608   lt_cv_prog_compiler_rtti_exceptions=no
23609   ac_outfile=conftest.$ac_objext
23610    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23611    lt_compiler_flag="-fno-rtti -fno-exceptions"
23612    # Insert the option either (1) after the last *FLAGS variable, or
23613    # (2) before a word containing "conftest.", or (3) at the end.
23614    # Note that $ac_compile itself does not contain backslashes and begins
23615    # with a dollar sign (not a hyphen), so the echo should work correctly.
23616    # The option is referenced via a variable to avoid confusing sed.
23617    lt_compile=`echo "$ac_compile" | $SED \
23618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23620    -e 's:$: $lt_compiler_flag:'`
23621    (eval echo "\"\$as_me:23621: $lt_compile\"" >&5)
23622    (eval "$lt_compile" 2>conftest.err)
23623    ac_status=$?
23624    cat conftest.err >&5
23625    echo "$as_me:23625: \$? = $ac_status" >&5
23626    if (exit $ac_status) && test -s "$ac_outfile"; then
23627      # The compiler can only warn and ignore the option if not recognized
23628      # So say no if there are warnings other than the usual output.
23629      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23630      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23631      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23632        lt_cv_prog_compiler_rtti_exceptions=yes
23633      fi
23634    fi
23635    $rm conftest*
23636
23637 fi
23638 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23639 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23640
23641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23642     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23643 else
23644     :
23645 fi
23646
23647 fi
23648
23649 lt_prog_compiler_wl_GCJ=
23650 lt_prog_compiler_pic_GCJ=
23651 lt_prog_compiler_static_GCJ=
23652
23653 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23654 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23655
23656   if test "$GCC" = yes; then
23657     lt_prog_compiler_wl_GCJ='-Wl,'
23658     lt_prog_compiler_static_GCJ='-static'
23659
23660     case $host_os in
23661       aix*)
23662       # All AIX code is PIC.
23663       if test "$host_cpu" = ia64; then
23664         # AIX 5 now supports IA64 processor
23665         lt_prog_compiler_static_GCJ='-Bstatic'
23666       fi
23667       ;;
23668
23669     amigaos*)
23670       # FIXME: we need at least 68020 code to build shared libraries, but
23671       # adding the `-m68020' flag to GCC prevents building anything better,
23672       # like `-m68040'.
23673       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23674       ;;
23675
23676     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23677       # PIC is the default for these OSes.
23678       ;;
23679
23680     mingw* | pw32* | os2*)
23681       # This hack is so that the source file can tell whether it is being
23682       # built for inclusion in a dll (and should export symbols for example).
23683       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23684       ;;
23685
23686     darwin* | rhapsody*)
23687       # PIC is the default on this platform
23688       # Common symbols not allowed in MH_DYLIB files
23689       lt_prog_compiler_pic_GCJ='-fno-common'
23690       ;;
23691
23692     interix3*)
23693       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23694       # Instead, we relocate shared libraries at runtime.
23695       ;;
23696
23697     msdosdjgpp*)
23698       # Just because we use GCC doesn't mean we suddenly get shared libraries
23699       # on systems that don't support them.
23700       lt_prog_compiler_can_build_shared_GCJ=no
23701       enable_shared=no
23702       ;;
23703
23704     sysv4*MP*)
23705       if test -d /usr/nec; then
23706         lt_prog_compiler_pic_GCJ=-Kconform_pic
23707       fi
23708       ;;
23709
23710     hpux*)
23711       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23712       # not for PA HP-UX.
23713       case $host_cpu in
23714       hppa*64*|ia64*)
23715         # +Z the default
23716         ;;
23717       *)
23718         lt_prog_compiler_pic_GCJ='-fPIC'
23719         ;;
23720       esac
23721       ;;
23722
23723     *)
23724       lt_prog_compiler_pic_GCJ='-fPIC'
23725       ;;
23726     esac
23727   else
23728     # PORTME Check for flag to pass linker flags through the system compiler.
23729     case $host_os in
23730     aix*)
23731       lt_prog_compiler_wl_GCJ='-Wl,'
23732       if test "$host_cpu" = ia64; then
23733         # AIX 5 now supports IA64 processor
23734         lt_prog_compiler_static_GCJ='-Bstatic'
23735       else
23736         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23737       fi
23738       ;;
23739       darwin*)
23740         # PIC is the default on this platform
23741         # Common symbols not allowed in MH_DYLIB files
23742        case $cc_basename in
23743          xlc*)
23744          lt_prog_compiler_pic_GCJ='-qnocommon'
23745          lt_prog_compiler_wl_GCJ='-Wl,'
23746          ;;
23747        esac
23748        ;;
23749
23750     mingw* | pw32* | os2*)
23751       # This hack is so that the source file can tell whether it is being
23752       # built for inclusion in a dll (and should export symbols for example).
23753       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23754       ;;
23755
23756     hpux9* | hpux10* | hpux11*)
23757       lt_prog_compiler_wl_GCJ='-Wl,'
23758       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23759       # not for PA HP-UX.
23760       case $host_cpu in
23761       hppa*64*|ia64*)
23762         # +Z the default
23763         ;;
23764       *)
23765         lt_prog_compiler_pic_GCJ='+Z'
23766         ;;
23767       esac
23768       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23769       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23770       ;;
23771
23772     irix5* | irix6* | nonstopux*)
23773       lt_prog_compiler_wl_GCJ='-Wl,'
23774       # PIC (with -KPIC) is the default.
23775       lt_prog_compiler_static_GCJ='-non_shared'
23776       ;;
23777
23778     newsos6)
23779       lt_prog_compiler_pic_GCJ='-KPIC'
23780       lt_prog_compiler_static_GCJ='-Bstatic'
23781       ;;
23782
23783     linux*)
23784       case $cc_basename in
23785       icc* | ecc*)
23786         lt_prog_compiler_wl_GCJ='-Wl,'
23787         lt_prog_compiler_pic_GCJ='-KPIC'
23788         lt_prog_compiler_static_GCJ='-static'
23789         ;;
23790       pgcc* | pgf77* | pgf90* | pgf95*)
23791         # Portland Group compilers (*not* the Pentium gcc compiler,
23792         # which looks to be a dead project)
23793         lt_prog_compiler_wl_GCJ='-Wl,'
23794         lt_prog_compiler_pic_GCJ='-fpic'
23795         lt_prog_compiler_static_GCJ='-Bstatic'
23796         ;;
23797       ccc*)
23798         lt_prog_compiler_wl_GCJ='-Wl,'
23799         # All Alpha code is PIC.
23800         lt_prog_compiler_static_GCJ='-non_shared'
23801         ;;
23802       esac
23803       ;;
23804
23805     osf3* | osf4* | osf5*)
23806       lt_prog_compiler_wl_GCJ='-Wl,'
23807       # All OSF/1 code is PIC.
23808       lt_prog_compiler_static_GCJ='-non_shared'
23809       ;;
23810
23811     solaris*)
23812       lt_prog_compiler_pic_GCJ='-KPIC'
23813       lt_prog_compiler_static_GCJ='-Bstatic'
23814       case $cc_basename in
23815       f77* | f90* | f95*)
23816         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23817       *)
23818         lt_prog_compiler_wl_GCJ='-Wl,';;
23819       esac
23820       ;;
23821
23822     sunos4*)
23823       lt_prog_compiler_wl_GCJ='-Qoption ld '
23824       lt_prog_compiler_pic_GCJ='-PIC'
23825       lt_prog_compiler_static_GCJ='-Bstatic'
23826       ;;
23827
23828     sysv4 | sysv4.2uw2* | sysv4.3*)
23829       lt_prog_compiler_wl_GCJ='-Wl,'
23830       lt_prog_compiler_pic_GCJ='-KPIC'
23831       lt_prog_compiler_static_GCJ='-Bstatic'
23832       ;;
23833
23834     sysv4*MP*)
23835       if test -d /usr/nec ;then
23836         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23837         lt_prog_compiler_static_GCJ='-Bstatic'
23838       fi
23839       ;;
23840
23841     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23842       lt_prog_compiler_wl_GCJ='-Wl,'
23843       lt_prog_compiler_pic_GCJ='-KPIC'
23844       lt_prog_compiler_static_GCJ='-Bstatic'
23845       ;;
23846
23847     unicos*)
23848       lt_prog_compiler_wl_GCJ='-Wl,'
23849       lt_prog_compiler_can_build_shared_GCJ=no
23850       ;;
23851
23852     uts4*)
23853       lt_prog_compiler_pic_GCJ='-pic'
23854       lt_prog_compiler_static_GCJ='-Bstatic'
23855       ;;
23856
23857     *)
23858       lt_prog_compiler_can_build_shared_GCJ=no
23859       ;;
23860     esac
23861   fi
23862
23863 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23864 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23865
23866 #
23867 # Check to make sure the PIC flag actually works.
23868 #
23869 if test -n "$lt_prog_compiler_pic_GCJ"; then
23870
23871 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23872 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23873 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23874   echo $ECHO_N "(cached) $ECHO_C" >&6
23875 else
23876   lt_prog_compiler_pic_works_GCJ=no
23877   ac_outfile=conftest.$ac_objext
23878    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23879    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23880    # Insert the option either (1) after the last *FLAGS variable, or
23881    # (2) before a word containing "conftest.", or (3) at the end.
23882    # Note that $ac_compile itself does not contain backslashes and begins
23883    # with a dollar sign (not a hyphen), so the echo should work correctly.
23884    # The option is referenced via a variable to avoid confusing sed.
23885    lt_compile=`echo "$ac_compile" | $SED \
23886    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23888    -e 's:$: $lt_compiler_flag:'`
23889    (eval echo "\"\$as_me:23889: $lt_compile\"" >&5)
23890    (eval "$lt_compile" 2>conftest.err)
23891    ac_status=$?
23892    cat conftest.err >&5
23893    echo "$as_me:23893: \$? = $ac_status" >&5
23894    if (exit $ac_status) && test -s "$ac_outfile"; then
23895      # The compiler can only warn and ignore the option if not recognized
23896      # So say no if there are warnings other than the usual output.
23897      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23898      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23899      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23900        lt_prog_compiler_pic_works_GCJ=yes
23901      fi
23902    fi
23903    $rm conftest*
23904
23905 fi
23906 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23907 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23908
23909 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23910     case $lt_prog_compiler_pic_GCJ in
23911      "" | " "*) ;;
23912      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23913      esac
23914 else
23915     lt_prog_compiler_pic_GCJ=
23916      lt_prog_compiler_can_build_shared_GCJ=no
23917 fi
23918
23919 fi
23920 case $host_os in
23921   # For platforms which do not support PIC, -DPIC is meaningless:
23922   *djgpp*)
23923     lt_prog_compiler_pic_GCJ=
23924     ;;
23925   *)
23926     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23927     ;;
23928 esac
23929
23930 #
23931 # Check to make sure the static flag actually works.
23932 #
23933 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23934 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23935 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23936 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23937   echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23939   lt_prog_compiler_static_works_GCJ=no
23940    save_LDFLAGS="$LDFLAGS"
23941    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23942    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23943    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23944      # The linker can only warn and ignore the option if not recognized
23945      # So say no if there are warnings
23946      if test -s conftest.err; then
23947        # Append any errors to the config.log.
23948        cat conftest.err 1>&5
23949        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23950        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23951        if diff conftest.exp conftest.er2 >/dev/null; then
23952          lt_prog_compiler_static_works_GCJ=yes
23953        fi
23954      else
23955        lt_prog_compiler_static_works_GCJ=yes
23956      fi
23957    fi
23958    $rm conftest*
23959    LDFLAGS="$save_LDFLAGS"
23960
23961 fi
23962 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23963 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23964
23965 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23966     :
23967 else
23968     lt_prog_compiler_static_GCJ=
23969 fi
23970
23971
23972 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23974 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23975   echo $ECHO_N "(cached) $ECHO_C" >&6
23976 else
23977   lt_cv_prog_compiler_c_o_GCJ=no
23978    $rm -r conftest 2>/dev/null
23979    mkdir conftest
23980    cd conftest
23981    mkdir out
23982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23983
23984    lt_compiler_flag="-o out/conftest2.$ac_objext"
23985    # Insert the option either (1) after the last *FLAGS variable, or
23986    # (2) before a word containing "conftest.", or (3) at the end.
23987    # Note that $ac_compile itself does not contain backslashes and begins
23988    # with a dollar sign (not a hyphen), so the echo should work correctly.
23989    lt_compile=`echo "$ac_compile" | $SED \
23990    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23992    -e 's:$: $lt_compiler_flag:'`
23993    (eval echo "\"\$as_me:23993: $lt_compile\"" >&5)
23994    (eval "$lt_compile" 2>out/conftest.err)
23995    ac_status=$?
23996    cat out/conftest.err >&5
23997    echo "$as_me:23997: \$? = $ac_status" >&5
23998    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23999    then
24000      # The compiler can only warn and ignore the option if not recognized
24001      # So say no if there are warnings
24002      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24003      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24004      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24005        lt_cv_prog_compiler_c_o_GCJ=yes
24006      fi
24007    fi
24008    chmod u+w . 2>&5
24009    $rm conftest*
24010    # SGI C++ compiler will create directory out/ii_files/ for
24011    # template instantiation
24012    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24013    $rm out/* && rmdir out
24014    cd ..
24015    rmdir conftest
24016    $rm conftest*
24017
24018 fi
24019 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24021
24022
24023 hard_links="nottested"
24024 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24025   # do not overwrite the value of need_locks provided by the user
24026   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24028   hard_links=yes
24029   $rm conftest*
24030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24031   touch conftest.a
24032   ln conftest.a conftest.b 2>&5 || hard_links=no
24033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24034   { echo "$as_me:$LINENO: result: $hard_links" >&5
24035 echo "${ECHO_T}$hard_links" >&6; }
24036   if test "$hard_links" = no; then
24037     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24039     need_locks=warn
24040   fi
24041 else
24042   need_locks=no
24043 fi
24044
24045 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24047
24048   runpath_var=
24049   allow_undefined_flag_GCJ=
24050   enable_shared_with_static_runtimes_GCJ=no
24051   archive_cmds_GCJ=
24052   archive_expsym_cmds_GCJ=
24053   old_archive_From_new_cmds_GCJ=
24054   old_archive_from_expsyms_cmds_GCJ=
24055   export_dynamic_flag_spec_GCJ=
24056   whole_archive_flag_spec_GCJ=
24057   thread_safe_flag_spec_GCJ=
24058   hardcode_libdir_flag_spec_GCJ=
24059   hardcode_libdir_flag_spec_ld_GCJ=
24060   hardcode_libdir_separator_GCJ=
24061   hardcode_direct_GCJ=no
24062   hardcode_minus_L_GCJ=no
24063   hardcode_shlibpath_var_GCJ=unsupported
24064   link_all_deplibs_GCJ=unknown
24065   hardcode_automatic_GCJ=no
24066   module_cmds_GCJ=
24067   module_expsym_cmds_GCJ=
24068   always_export_symbols_GCJ=no
24069   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24070   # include_expsyms should be a list of space-separated symbols to be *always*
24071   # included in the symbol list
24072   include_expsyms_GCJ=
24073   # exclude_expsyms can be an extended regexp of symbols to exclude
24074   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24075   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24076   # as well as any symbol that contains `d'.
24077   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24078   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24079   # platforms (ab)use it in PIC code, but their linkers get confused if
24080   # the symbol is explicitly referenced.  Since portable code cannot
24081   # rely on this symbol name, it's probably fine to never include it in
24082   # preloaded symbol tables.
24083   extract_expsyms_cmds=
24084   # Just being paranoid about ensuring that cc_basename is set.
24085   for cc_temp in $compiler""; do
24086   case $cc_temp in
24087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24089     \-*) ;;
24090     *) break;;
24091   esac
24092 done
24093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24094
24095   case $host_os in
24096   cygwin* | mingw* | pw32*)
24097     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24098     # When not using gcc, we currently assume that we are using
24099     # Microsoft Visual C++.
24100     if test "$GCC" != yes; then
24101       with_gnu_ld=no
24102     fi
24103     ;;
24104   interix*)
24105     # we just hope/assume this is gcc and not c89 (= MSVC++)
24106     with_gnu_ld=yes
24107     ;;
24108   openbsd*)
24109     with_gnu_ld=no
24110     ;;
24111   esac
24112
24113   ld_shlibs_GCJ=yes
24114   if test "$with_gnu_ld" = yes; then
24115     # If archive_cmds runs LD, not CC, wlarc should be empty
24116     wlarc='${wl}'
24117
24118     # Set some defaults for GNU ld with shared library support. These
24119     # are reset later if shared libraries are not supported. Putting them
24120     # here allows them to be overridden if necessary.
24121     runpath_var=LD_RUN_PATH
24122     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24123     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24124     # ancient GNU ld didn't support --whole-archive et. al.
24125     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24126         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24127       else
24128         whole_archive_flag_spec_GCJ=
24129     fi
24130     supports_anon_versioning=no
24131     case `$LD -v 2>/dev/null` in
24132       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24133       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24134       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24135       *\ 2.11.*) ;; # other 2.11 versions
24136       *) supports_anon_versioning=yes ;;
24137     esac
24138
24139     # See if GNU ld supports shared libraries.
24140     case $host_os in
24141     aix3* | aix4* | aix5*)
24142       # On AIX/PPC, the GNU linker is very broken
24143       if test "$host_cpu" != ia64; then
24144         ld_shlibs_GCJ=no
24145         cat <<EOF 1>&2
24146
24147 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24148 *** to be unable to reliably create shared libraries on AIX.
24149 *** Therefore, libtool is disabling shared libraries support.  If you
24150 *** really care for shared libraries, you may want to modify your PATH
24151 *** so that a non-GNU linker is found, and then restart.
24152
24153 EOF
24154       fi
24155       ;;
24156
24157     amigaos*)
24158       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)'
24159       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24160       hardcode_minus_L_GCJ=yes
24161
24162       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24163       # that the semantics of dynamic libraries on AmigaOS, at least up
24164       # to version 4, is to share data among multiple programs linked
24165       # with the same dynamic library.  Since this doesn't match the
24166       # behavior of shared libraries on other platforms, we can't use
24167       # them.
24168       ld_shlibs_GCJ=no
24169       ;;
24170
24171     beos*)
24172       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24173         allow_undefined_flag_GCJ=unsupported
24174         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24175         # support --undefined.  This deserves some investigation.  FIXME
24176         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24177       else
24178         ld_shlibs_GCJ=no
24179       fi
24180       ;;
24181
24182     cygwin* | mingw* | pw32*)
24183       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24184       # as there is no search path for DLLs.
24185       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24186       allow_undefined_flag_GCJ=unsupported
24187       always_export_symbols_GCJ=no
24188       enable_shared_with_static_runtimes_GCJ=yes
24189       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24190
24191       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24192         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24193         # If the export-symbols file already is a .def file (1st line
24194         # is EXPORTS), use it as is; otherwise, prepend...
24195         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24196           cp $export_symbols $output_objdir/$soname.def;
24197         else
24198           echo EXPORTS > $output_objdir/$soname.def;
24199           cat $export_symbols >> $output_objdir/$soname.def;
24200         fi~
24201         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24202       else
24203         ld_shlibs_GCJ=no
24204       fi
24205       ;;
24206
24207     interix3*)
24208       hardcode_direct_GCJ=no
24209       hardcode_shlibpath_var_GCJ=no
24210       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24211       export_dynamic_flag_spec_GCJ='${wl}-E'
24212       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24213       # Instead, shared libraries are loaded at an image base (0x10000000 by
24214       # default) and relocated if they conflict, which is a slow very memory
24215       # consuming and fragmenting process.  To avoid this, we pick a random,
24216       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24217       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24218       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'
24219       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'
24220       ;;
24221
24222     linux*)
24223       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24224         tmp_addflag=
24225         case $cc_basename,$host_cpu in
24226         pgcc*)                          # Portland Group C compiler
24227           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'
24228           tmp_addflag=' $pic_flag'
24229           ;;
24230         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24231           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'
24232           tmp_addflag=' $pic_flag -Mnomain' ;;
24233         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24234           tmp_addflag=' -i_dynamic' ;;
24235         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24236           tmp_addflag=' -i_dynamic -nofor_main' ;;
24237         ifc* | ifort*)                  # Intel Fortran compiler
24238           tmp_addflag=' -nofor_main' ;;
24239         esac
24240         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24241
24242         if test $supports_anon_versioning = yes; then
24243           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24244   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24245   $echo "local: *; };" >> $output_objdir/$libname.ver~
24246           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24247         fi
24248       else
24249         ld_shlibs_GCJ=no
24250       fi
24251       ;;
24252
24253     netbsd*)
24254       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24255         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24256         wlarc=
24257       else
24258         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24259         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24260       fi
24261       ;;
24262
24263     solaris*)
24264       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24265         ld_shlibs_GCJ=no
24266         cat <<EOF 1>&2
24267
24268 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24269 *** create shared libraries on Solaris systems.  Therefore, libtool
24270 *** is disabling shared libraries support.  We urge you to upgrade GNU
24271 *** binutils to release 2.9.1 or newer.  Another option is to modify
24272 *** your PATH or compiler configuration so that the native linker is
24273 *** used, and then restart.
24274
24275 EOF
24276       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24277         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24278         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24279       else
24280         ld_shlibs_GCJ=no
24281       fi
24282       ;;
24283
24284     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24285       case `$LD -v 2>&1` in
24286         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24287         ld_shlibs_GCJ=no
24288         cat <<_LT_EOF 1>&2
24289
24290 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24291 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24292 *** is disabling shared libraries support.  We urge you to upgrade GNU
24293 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24294 *** your PATH or compiler configuration so that the native linker is
24295 *** used, and then restart.
24296
24297 _LT_EOF
24298         ;;
24299         *)
24300           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24301             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24302             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24303             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24304           else
24305             ld_shlibs_GCJ=no
24306           fi
24307         ;;
24308       esac
24309       ;;
24310
24311     sunos4*)
24312       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24313       wlarc=
24314       hardcode_direct_GCJ=yes
24315       hardcode_shlibpath_var_GCJ=no
24316       ;;
24317
24318     *)
24319       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24320         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24321         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24322       else
24323         ld_shlibs_GCJ=no
24324       fi
24325       ;;
24326     esac
24327
24328     if test "$ld_shlibs_GCJ" = no; then
24329       runpath_var=
24330       hardcode_libdir_flag_spec_GCJ=
24331       export_dynamic_flag_spec_GCJ=
24332       whole_archive_flag_spec_GCJ=
24333     fi
24334   else
24335     # PORTME fill in a description of your system's linker (not GNU ld)
24336     case $host_os in
24337     aix3*)
24338       allow_undefined_flag_GCJ=unsupported
24339       always_export_symbols_GCJ=yes
24340       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'
24341       # Note: this linker hardcodes the directories in LIBPATH if there
24342       # are no directories specified by -L.
24343       hardcode_minus_L_GCJ=yes
24344       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24345         # Neither direct hardcoding nor static linking is supported with a
24346         # broken collect2.
24347         hardcode_direct_GCJ=unsupported
24348       fi
24349       ;;
24350
24351     aix4* | aix5*)
24352       if test "$host_cpu" = ia64; then
24353         # On IA64, the linker does run time linking by default, so we don't
24354         # have to do anything special.
24355         aix_use_runtimelinking=no
24356         exp_sym_flag='-Bexport'
24357         no_entry_flag=""
24358       else
24359         # If we're using GNU nm, then we don't want the "-C" option.
24360         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24361         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24362           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'
24363         else
24364           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'
24365         fi
24366         aix_use_runtimelinking=no
24367
24368         # Test if we are trying to use run time linking or normal
24369         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24370         # need to do runtime linking.
24371         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24372           for ld_flag in $LDFLAGS; do
24373           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24374             aix_use_runtimelinking=yes
24375             break
24376           fi
24377           done
24378           ;;
24379         esac
24380
24381         exp_sym_flag='-bexport'
24382         no_entry_flag='-bnoentry'
24383       fi
24384
24385       # When large executables or shared objects are built, AIX ld can
24386       # have problems creating the table of contents.  If linking a library
24387       # or program results in "error TOC overflow" add -mminimal-toc to
24388       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24389       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24390
24391       archive_cmds_GCJ=''
24392       hardcode_direct_GCJ=yes
24393       hardcode_libdir_separator_GCJ=':'
24394       link_all_deplibs_GCJ=yes
24395
24396       if test "$GCC" = yes; then
24397         case $host_os in aix4.[012]|aix4.[012].*)
24398         # We only want to do this on AIX 4.2 and lower, the check
24399         # below for broken collect2 doesn't work under 4.3+
24400           collect2name=`${CC} -print-prog-name=collect2`
24401           if test -f "$collect2name" && \
24402            strings "$collect2name" | grep resolve_lib_name >/dev/null
24403           then
24404           # We have reworked collect2
24405           hardcode_direct_GCJ=yes
24406           else
24407           # We have old collect2
24408           hardcode_direct_GCJ=unsupported
24409           # It fails to find uninstalled libraries when the uninstalled
24410           # path is not listed in the libpath.  Setting hardcode_minus_L
24411           # to unsupported forces relinking
24412           hardcode_minus_L_GCJ=yes
24413           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24414           hardcode_libdir_separator_GCJ=
24415           fi
24416           ;;
24417         esac
24418         shared_flag='-shared'
24419         if test "$aix_use_runtimelinking" = yes; then
24420           shared_flag="$shared_flag "'${wl}-G'
24421         fi
24422       else
24423         # not using gcc
24424         if test "$host_cpu" = ia64; then
24425         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24426         # chokes on -Wl,-G. The following line is correct:
24427           shared_flag='-G'
24428         else
24429           if test "$aix_use_runtimelinking" = yes; then
24430             shared_flag='${wl}-G'
24431           else
24432             shared_flag='${wl}-bM:SRE'
24433           fi
24434         fi
24435       fi
24436
24437       # It seems that -bexpall does not export symbols beginning with
24438       # underscore (_), so it is better to generate a list of symbols to export.
24439       always_export_symbols_GCJ=yes
24440       if test "$aix_use_runtimelinking" = yes; then
24441         # Warning - without using the other runtime loading flags (-brtl),
24442         # -berok will link without error, but may produce a broken library.
24443         allow_undefined_flag_GCJ='-berok'
24444        # Determine the default libpath from the value encoded in an empty executable.
24445        cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h.  */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h.  */
24451
24452 int
24453 main ()
24454 {
24455
24456   ;
24457   return 0;
24458 }
24459 _ACEOF
24460 rm -f conftest.$ac_objext conftest$ac_exeext
24461 if { (ac_try="$ac_link"
24462 case "(($ac_try" in
24463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24464   *) ac_try_echo=$ac_try;;
24465 esac
24466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24467   (eval "$ac_link") 2>conftest.er1
24468   ac_status=$?
24469   grep -v '^ *+' conftest.er1 >conftest.err
24470   rm -f conftest.er1
24471   cat conftest.err >&5
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); } &&
24474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24475   { (case "(($ac_try" in
24476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477   *) ac_try_echo=$ac_try;;
24478 esac
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480   (eval "$ac_try") 2>&5
24481   ac_status=$?
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); }; } &&
24484          { ac_try='test -s conftest$ac_exeext'
24485   { (case "(($ac_try" in
24486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487   *) ac_try_echo=$ac_try;;
24488 esac
24489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24490   (eval "$ac_try") 2>&5
24491   ac_status=$?
24492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493   (exit $ac_status); }; }; then
24494
24495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24496 }'`
24497 # Check for a 64-bit object if we didn't find anything.
24498 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; }
24499 }'`; fi
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504
24505 fi
24506
24507 rm -f core conftest.err conftest.$ac_objext \
24508       conftest$ac_exeext conftest.$ac_ext
24509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24510
24511        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24512         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"
24513        else
24514         if test "$host_cpu" = ia64; then
24515           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24516           allow_undefined_flag_GCJ="-z nodefs"
24517           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"
24518         else
24519          # Determine the default libpath from the value encoded in an empty executable.
24520          cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h.  */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h.  */
24526
24527 int
24528 main ()
24529 {
24530
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 rm -f conftest.$ac_objext conftest$ac_exeext
24536 if { (ac_try="$ac_link"
24537 case "(($ac_try" in
24538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539   *) ac_try_echo=$ac_try;;
24540 esac
24541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542   (eval "$ac_link") 2>conftest.er1
24543   ac_status=$?
24544   grep -v '^ *+' conftest.er1 >conftest.err
24545   rm -f conftest.er1
24546   cat conftest.err >&5
24547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548   (exit $ac_status); } &&
24549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24550   { (case "(($ac_try" in
24551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552   *) ac_try_echo=$ac_try;;
24553 esac
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555   (eval "$ac_try") 2>&5
24556   ac_status=$?
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); }; } &&
24559          { ac_try='test -s conftest$ac_exeext'
24560   { (case "(($ac_try" in
24561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562   *) ac_try_echo=$ac_try;;
24563 esac
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565   (eval "$ac_try") 2>&5
24566   ac_status=$?
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); }; }; then
24569
24570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24571 }'`
24572 # Check for a 64-bit object if we didn't find anything.
24573 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; }
24574 }'`; fi
24575 else
24576   echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579
24580 fi
24581
24582 rm -f core conftest.err conftest.$ac_objext \
24583       conftest$ac_exeext conftest.$ac_ext
24584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24585
24586          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24587           # Warning - without using the other run time loading flags,
24588           # -berok will link without error, but may produce a broken library.
24589           no_undefined_flag_GCJ=' ${wl}-bernotok'
24590           allow_undefined_flag_GCJ=' ${wl}-berok'
24591           # Exported symbols can be pulled into shared objects from archives
24592           whole_archive_flag_spec_GCJ='$convenience'
24593           archive_cmds_need_lc_GCJ=yes
24594           # This is similar to how AIX traditionally builds its shared libraries.
24595           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'
24596         fi
24597       fi
24598       ;;
24599
24600     amigaos*)
24601       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)'
24602       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24603       hardcode_minus_L_GCJ=yes
24604       # see comment about different semantics on the GNU ld section
24605       ld_shlibs_GCJ=no
24606       ;;
24607
24608     bsdi[45]*)
24609       export_dynamic_flag_spec_GCJ=-rdynamic
24610       ;;
24611
24612     cygwin* | mingw* | pw32*)
24613       # When not using gcc, we currently assume that we are using
24614       # Microsoft Visual C++.
24615       # hardcode_libdir_flag_spec is actually meaningless, as there is
24616       # no search path for DLLs.
24617       hardcode_libdir_flag_spec_GCJ=' '
24618       allow_undefined_flag_GCJ=unsupported
24619       # Tell ltmain to make .lib files, not .a files.
24620       libext=lib
24621       # Tell ltmain to make .dll files, not .so files.
24622       shrext_cmds=".dll"
24623       # FIXME: Setting linknames here is a bad hack.
24624       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24625       # The linker will automatically build a .lib file if we build a DLL.
24626       old_archive_From_new_cmds_GCJ='true'
24627       # FIXME: Should let the user specify the lib program.
24628       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24629       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24630       enable_shared_with_static_runtimes_GCJ=yes
24631       ;;
24632
24633     darwin* | rhapsody*)
24634       case $host_os in
24635         rhapsody* | darwin1.[012])
24636          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24637          ;;
24638        *) # Darwin 1.3 on
24639          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24640            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24641          else
24642            case ${MACOSX_DEPLOYMENT_TARGET} in
24643              10.[012])
24644                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24645                ;;
24646              10.*)
24647                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24648                ;;
24649            esac
24650          fi
24651          ;;
24652       esac
24653       archive_cmds_need_lc_GCJ=no
24654       hardcode_direct_GCJ=no
24655       hardcode_automatic_GCJ=yes
24656       hardcode_shlibpath_var_GCJ=unsupported
24657       whole_archive_flag_spec_GCJ=''
24658       link_all_deplibs_GCJ=yes
24659     if test "$GCC" = yes ; then
24660         output_verbose_link_cmd='echo'
24661         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24662       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24663       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24664       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}'
24665       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}'
24666     else
24667       case $cc_basename in
24668         xlc*)
24669          output_verbose_link_cmd='echo'
24670          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24671          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24672           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24673          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}'
24674           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}'
24675           ;;
24676        *)
24677          ld_shlibs_GCJ=no
24678           ;;
24679       esac
24680     fi
24681       ;;
24682
24683     dgux*)
24684       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24685       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24686       hardcode_shlibpath_var_GCJ=no
24687       ;;
24688
24689     freebsd1*)
24690       ld_shlibs_GCJ=no
24691       ;;
24692
24693     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24694     # support.  Future versions do this automatically, but an explicit c++rt0.o
24695     # does not break anything, and helps significantly (at the cost of a little
24696     # extra space).
24697     freebsd2.2*)
24698       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24699       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24700       hardcode_direct_GCJ=yes
24701       hardcode_shlibpath_var_GCJ=no
24702       ;;
24703
24704     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24705     freebsd2*)
24706       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24707       hardcode_direct_GCJ=yes
24708       hardcode_minus_L_GCJ=yes
24709       hardcode_shlibpath_var_GCJ=no
24710       ;;
24711
24712     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24713     freebsd* | kfreebsd*-gnu | dragonfly*)
24714       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24715       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24716       hardcode_direct_GCJ=yes
24717       hardcode_shlibpath_var_GCJ=no
24718       ;;
24719
24720     hpux9*)
24721       if test "$GCC" = yes; then
24722         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'
24723       else
24724         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'
24725       fi
24726       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24727       hardcode_libdir_separator_GCJ=:
24728       hardcode_direct_GCJ=yes
24729
24730       # hardcode_minus_L: Not really in the search PATH,
24731       # but as the default location of the library.
24732       hardcode_minus_L_GCJ=yes
24733       export_dynamic_flag_spec_GCJ='${wl}-E'
24734       ;;
24735
24736     hpux10*)
24737       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24738         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24739       else
24740         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24741       fi
24742       if test "$with_gnu_ld" = no; then
24743         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24744         hardcode_libdir_separator_GCJ=:
24745
24746         hardcode_direct_GCJ=yes
24747         export_dynamic_flag_spec_GCJ='${wl}-E'
24748
24749         # hardcode_minus_L: Not really in the search PATH,
24750         # but as the default location of the library.
24751         hardcode_minus_L_GCJ=yes
24752       fi
24753       ;;
24754
24755     hpux11*)
24756       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24757         case $host_cpu in
24758         hppa*64*)
24759           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24760           ;;
24761         ia64*)
24762           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24763           ;;
24764         *)
24765           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24766           ;;
24767         esac
24768       else
24769         case $host_cpu in
24770         hppa*64*)
24771           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24772           ;;
24773         ia64*)
24774           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24775           ;;
24776         *)
24777           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24778           ;;
24779         esac
24780       fi
24781       if test "$with_gnu_ld" = no; then
24782         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24783         hardcode_libdir_separator_GCJ=:
24784
24785         case $host_cpu in
24786         hppa*64*|ia64*)
24787           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24788           hardcode_direct_GCJ=no
24789           hardcode_shlibpath_var_GCJ=no
24790           ;;
24791         *)
24792           hardcode_direct_GCJ=yes
24793           export_dynamic_flag_spec_GCJ='${wl}-E'
24794
24795           # hardcode_minus_L: Not really in the search PATH,
24796           # but as the default location of the library.
24797           hardcode_minus_L_GCJ=yes
24798           ;;
24799         esac
24800       fi
24801       ;;
24802
24803     irix5* | irix6* | nonstopux*)
24804       if test "$GCC" = yes; then
24805         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'
24806       else
24807         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'
24808         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24809       fi
24810       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24811       hardcode_libdir_separator_GCJ=:
24812       link_all_deplibs_GCJ=yes
24813       ;;
24814
24815     netbsd*)
24816       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24817         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24818       else
24819         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24820       fi
24821       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24822       hardcode_direct_GCJ=yes
24823       hardcode_shlibpath_var_GCJ=no
24824       ;;
24825
24826     newsos6)
24827       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24828       hardcode_direct_GCJ=yes
24829       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24830       hardcode_libdir_separator_GCJ=:
24831       hardcode_shlibpath_var_GCJ=no
24832       ;;
24833
24834     openbsd*)
24835       hardcode_direct_GCJ=yes
24836       hardcode_shlibpath_var_GCJ=no
24837       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24838         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24839         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24840         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24841         export_dynamic_flag_spec_GCJ='${wl}-E'
24842       else
24843        case $host_os in
24844          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24845            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24846            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24847            ;;
24848          *)
24849            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24850            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24851            ;;
24852        esac
24853       fi
24854       ;;
24855
24856     os2*)
24857       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24858       hardcode_minus_L_GCJ=yes
24859       allow_undefined_flag_GCJ=unsupported
24860       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'
24861       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24862       ;;
24863
24864     osf3*)
24865       if test "$GCC" = yes; then
24866         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24867         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'
24868       else
24869         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24870         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'
24871       fi
24872       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24873       hardcode_libdir_separator_GCJ=:
24874       ;;
24875
24876     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24877       if test "$GCC" = yes; then
24878         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24879         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'
24880         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24881       else
24882         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24883         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'
24884         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~
24885         $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'
24886
24887         # Both c and cxx compiler support -rpath directly
24888         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24889       fi
24890       hardcode_libdir_separator_GCJ=:
24891       ;;
24892
24893     solaris*)
24894       no_undefined_flag_GCJ=' -z text'
24895       if test "$GCC" = yes; then
24896         wlarc='${wl}'
24897         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24898         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24899           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24900       else
24901         wlarc=''
24902         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24903         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24904         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24905       fi
24906       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24907       hardcode_shlibpath_var_GCJ=no
24908       case $host_os in
24909       solaris2.[0-5] | solaris2.[0-5].*) ;;
24910       *)
24911         # The compiler driver will combine linker options so we
24912         # cannot just pass the convience library names through
24913         # without $wl, iff we do not link with $LD.
24914         # Luckily, gcc supports the same syntax we need for Sun Studio.
24915         # Supported since Solaris 2.6 (maybe 2.5.1?)
24916         case $wlarc in
24917         '')
24918           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24919         *)
24920           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' ;;
24921         esac ;;
24922       esac
24923       link_all_deplibs_GCJ=yes
24924       ;;
24925
24926     sunos4*)
24927       if test "x$host_vendor" = xsequent; then
24928         # Use $CC to link under sequent, because it throws in some extra .o
24929         # files that make .init and .fini sections work.
24930         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24931       else
24932         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24933       fi
24934       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24935       hardcode_direct_GCJ=yes
24936       hardcode_minus_L_GCJ=yes
24937       hardcode_shlibpath_var_GCJ=no
24938       ;;
24939
24940     sysv4)
24941       case $host_vendor in
24942         sni)
24943           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24944           hardcode_direct_GCJ=yes # is this really true???
24945         ;;
24946         siemens)
24947           ## LD is ld it makes a PLAMLIB
24948           ## CC just makes a GrossModule.
24949           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24950           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24951           hardcode_direct_GCJ=no
24952         ;;
24953         motorola)
24954           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24955           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24956         ;;
24957       esac
24958       runpath_var='LD_RUN_PATH'
24959       hardcode_shlibpath_var_GCJ=no
24960       ;;
24961
24962     sysv4.3*)
24963       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24964       hardcode_shlibpath_var_GCJ=no
24965       export_dynamic_flag_spec_GCJ='-Bexport'
24966       ;;
24967
24968     sysv4*MP*)
24969       if test -d /usr/nec; then
24970         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971         hardcode_shlibpath_var_GCJ=no
24972         runpath_var=LD_RUN_PATH
24973         hardcode_runpath_var=yes
24974         ld_shlibs_GCJ=yes
24975       fi
24976       ;;
24977
24978     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24979       no_undefined_flag_GCJ='${wl}-z,text'
24980       archive_cmds_need_lc_GCJ=no
24981       hardcode_shlibpath_var_GCJ=no
24982       runpath_var='LD_RUN_PATH'
24983
24984       if test "$GCC" = yes; then
24985         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24986         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24987       else
24988         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24989         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24990       fi
24991       ;;
24992
24993     sysv5* | sco3.2v5* | sco5v6*)
24994       # Note: We can NOT use -z defs as we might desire, because we do not
24995       # link with -lc, and that would cause any symbols used from libc to
24996       # always be unresolved, which means just about no library would
24997       # ever link correctly.  If we're not using GNU ld we use -z text
24998       # though, which does catch some bad symbols but isn't as heavy-handed
24999       # as -z defs.
25000       no_undefined_flag_GCJ='${wl}-z,text'
25001       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25002       archive_cmds_need_lc_GCJ=no
25003       hardcode_shlibpath_var_GCJ=no
25004       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25005       hardcode_libdir_separator_GCJ=':'
25006       link_all_deplibs_GCJ=yes
25007       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25008       runpath_var='LD_RUN_PATH'
25009
25010       if test "$GCC" = yes; then
25011         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25012         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25013       else
25014         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25015         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25016       fi
25017       ;;
25018
25019     uts4*)
25020       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25021       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25022       hardcode_shlibpath_var_GCJ=no
25023       ;;
25024
25025     *)
25026       ld_shlibs_GCJ=no
25027       ;;
25028     esac
25029   fi
25030
25031 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25032 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25033 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25034
25035 #
25036 # Do we need to explicitly link libc?
25037 #
25038 case "x$archive_cmds_need_lc_GCJ" in
25039 x|xyes)
25040   # Assume -lc should be added
25041   archive_cmds_need_lc_GCJ=yes
25042
25043   if test "$enable_shared" = yes && test "$GCC" = yes; then
25044     case $archive_cmds_GCJ in
25045     *'~'*)
25046       # FIXME: we may have to deal with multi-command sequences.
25047       ;;
25048     '$CC '*)
25049       # Test whether the compiler implicitly links with -lc since on some
25050       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25051       # to ld, don't add -lc before -lgcc.
25052       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25054       $rm conftest*
25055       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25056
25057       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25058   (eval $ac_compile) 2>&5
25059   ac_status=$?
25060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061   (exit $ac_status); } 2>conftest.err; then
25062         soname=conftest
25063         lib=conftest
25064         libobjs=conftest.$ac_objext
25065         deplibs=
25066         wl=$lt_prog_compiler_wl_GCJ
25067         pic_flag=$lt_prog_compiler_pic_GCJ
25068         compiler_flags=-v
25069         linker_flags=-v
25070         verstring=
25071         output_objdir=.
25072         libname=conftest
25073         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25074         allow_undefined_flag_GCJ=
25075         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25076   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25077   ac_status=$?
25078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); }
25080         then
25081           archive_cmds_need_lc_GCJ=no
25082         else
25083           archive_cmds_need_lc_GCJ=yes
25084         fi
25085         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25086       else
25087         cat conftest.err 1>&5
25088       fi
25089       $rm conftest*
25090       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25091 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25092       ;;
25093     esac
25094   fi
25095   ;;
25096 esac
25097
25098 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25100 library_names_spec=
25101 libname_spec='lib$name'
25102 soname_spec=
25103 shrext_cmds=".so"
25104 postinstall_cmds=
25105 postuninstall_cmds=
25106 finish_cmds=
25107 finish_eval=
25108 shlibpath_var=
25109 shlibpath_overrides_runpath=unknown
25110 version_type=none
25111 dynamic_linker="$host_os ld.so"
25112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25113 if test "$GCC" = yes; then
25114   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25115   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25116     # if the path contains ";" then we assume it to be the separator
25117     # otherwise default to the standard path separator (i.e. ":") - it is
25118     # assumed that no part of a normal pathname contains ";" but that should
25119     # okay in the real world where ";" in dirpaths is itself problematic.
25120     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25121   else
25122     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25123   fi
25124 else
25125   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25126 fi
25127 need_lib_prefix=unknown
25128 hardcode_into_libs=no
25129
25130 # when you set need_version to no, make sure it does not cause -set_version
25131 # flags to be left without arguments
25132 need_version=unknown
25133
25134 case $host_os in
25135 aix3*)
25136   version_type=linux
25137   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25138   shlibpath_var=LIBPATH
25139
25140   # AIX 3 has no versioning support, so we append a major version to the name.
25141   soname_spec='${libname}${release}${shared_ext}$major'
25142   ;;
25143
25144 aix4* | aix5*)
25145   version_type=linux
25146   need_lib_prefix=no
25147   need_version=no
25148   hardcode_into_libs=yes
25149   if test "$host_cpu" = ia64; then
25150     # AIX 5 supports IA64
25151     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25152     shlibpath_var=LD_LIBRARY_PATH
25153   else
25154     # With GCC up to 2.95.x, collect2 would create an import file
25155     # for dependence libraries.  The import file would start with
25156     # the line `#! .'.  This would cause the generated library to
25157     # depend on `.', always an invalid library.  This was fixed in
25158     # development snapshots of GCC prior to 3.0.
25159     case $host_os in
25160       aix4 | aix4.[01] | aix4.[01].*)
25161       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25162            echo ' yes '
25163            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25164         :
25165       else
25166         can_build_shared=no
25167       fi
25168       ;;
25169     esac
25170     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25171     # soname into executable. Probably we can add versioning support to
25172     # collect2, so additional links can be useful in future.
25173     if test "$aix_use_runtimelinking" = yes; then
25174       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25175       # instead of lib<name>.a to let people know that these are not
25176       # typical AIX shared libraries.
25177       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25178     else
25179       # We preserve .a as extension for shared libraries through AIX4.2
25180       # and later when we are not doing run time linking.
25181       library_names_spec='${libname}${release}.a $libname.a'
25182       soname_spec='${libname}${release}${shared_ext}$major'
25183     fi
25184     shlibpath_var=LIBPATH
25185   fi
25186   ;;
25187
25188 amigaos*)
25189   library_names_spec='$libname.ixlibrary $libname.a'
25190   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25191   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'
25192   ;;
25193
25194 beos*)
25195   library_names_spec='${libname}${shared_ext}'
25196   dynamic_linker="$host_os ld.so"
25197   shlibpath_var=LIBRARY_PATH
25198   ;;
25199
25200 bsdi[45]*)
25201   version_type=linux
25202   need_version=no
25203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25204   soname_spec='${libname}${release}${shared_ext}$major'
25205   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25206   shlibpath_var=LD_LIBRARY_PATH
25207   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25208   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25209   # the default ld.so.conf also contains /usr/contrib/lib and
25210   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25211   # libtool to hard-code these into programs
25212   ;;
25213
25214 cygwin* | mingw* | pw32*)
25215   version_type=windows
25216   shrext_cmds=".dll"
25217   need_version=no
25218   need_lib_prefix=no
25219
25220   case $GCC,$host_os in
25221   yes,cygwin* | yes,mingw* | yes,pw32*)
25222     library_names_spec='$libname.dll.a'
25223     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25224     postinstall_cmds='base_file=`basename \${file}`~
25225       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25226       dldir=$destdir/`dirname \$dlpath`~
25227       test -d \$dldir || mkdir -p \$dldir~
25228       $install_prog $dir/$dlname \$dldir/$dlname~
25229       chmod a+x \$dldir/$dlname'
25230     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25231       dlpath=$dir/\$dldll~
25232        $rm \$dlpath'
25233     shlibpath_overrides_runpath=yes
25234
25235     case $host_os in
25236     cygwin*)
25237       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25238       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25239       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25240       ;;
25241     mingw*)
25242       # MinGW DLLs use traditional 'lib' prefix
25243       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25244       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25245       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25246         # It is most probably a Windows format PATH printed by
25247         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25248         # path with ; separators, and with drive letters. We can handle the
25249         # drive letters (cygwin fileutils understands them), so leave them,
25250         # especially as we might pass files found there to a mingw objdump,
25251         # which wouldn't understand a cygwinified path. Ahh.
25252         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25253       else
25254         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25255       fi
25256       ;;
25257     pw32*)
25258       # pw32 DLLs use 'pw' prefix rather than 'lib'
25259       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25260       ;;
25261     esac
25262     ;;
25263
25264   *)
25265     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25266     ;;
25267   esac
25268   dynamic_linker='Win32 ld.exe'
25269   # FIXME: first we should search . and the directory the executable is in
25270   shlibpath_var=PATH
25271   ;;
25272
25273 darwin* | rhapsody*)
25274   dynamic_linker="$host_os dyld"
25275   version_type=darwin
25276   need_lib_prefix=no
25277   need_version=no
25278   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25279   soname_spec='${libname}${release}${major}$shared_ext'
25280   shlibpath_overrides_runpath=yes
25281   shlibpath_var=DYLD_LIBRARY_PATH
25282   shrext_cmds='.dylib'
25283   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25284   if test "$GCC" = yes; then
25285     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"`
25286   else
25287     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25288   fi
25289   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25290   ;;
25291
25292 dgux*)
25293   version_type=linux
25294   need_lib_prefix=no
25295   need_version=no
25296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25297   soname_spec='${libname}${release}${shared_ext}$major'
25298   shlibpath_var=LD_LIBRARY_PATH
25299   ;;
25300
25301 freebsd1*)
25302   dynamic_linker=no
25303   ;;
25304
25305 kfreebsd*-gnu)
25306   version_type=linux
25307   need_lib_prefix=no
25308   need_version=no
25309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25310   soname_spec='${libname}${release}${shared_ext}$major'
25311   shlibpath_var=LD_LIBRARY_PATH
25312   shlibpath_overrides_runpath=no
25313   hardcode_into_libs=yes
25314   dynamic_linker='GNU ld.so'
25315   ;;
25316
25317 freebsd* | dragonfly*)
25318   # DragonFly does not have aout.  When/if they implement a new
25319   # versioning mechanism, adjust this.
25320   if test -x /usr/bin/objformat; then
25321     objformat=`/usr/bin/objformat`
25322   else
25323     case $host_os in
25324     freebsd[123]*) objformat=aout ;;
25325     *) objformat=elf ;;
25326     esac
25327   fi
25328   version_type=freebsd-$objformat
25329   case $version_type in
25330     freebsd-elf*)
25331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25332       need_version=no
25333       need_lib_prefix=no
25334       ;;
25335     freebsd-*)
25336       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25337       need_version=yes
25338       ;;
25339   esac
25340   shlibpath_var=LD_LIBRARY_PATH
25341   case $host_os in
25342   freebsd2*)
25343     shlibpath_overrides_runpath=yes
25344     ;;
25345   freebsd3.[01]* | freebsdelf3.[01]*)
25346     shlibpath_overrides_runpath=yes
25347     hardcode_into_libs=yes
25348     ;;
25349   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25350   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25351     shlibpath_overrides_runpath=no
25352     hardcode_into_libs=yes
25353     ;;
25354   freebsd*) # from 4.6 on
25355     shlibpath_overrides_runpath=yes
25356     hardcode_into_libs=yes
25357     ;;
25358   esac
25359   ;;
25360
25361 gnu*)
25362   version_type=linux
25363   need_lib_prefix=no
25364   need_version=no
25365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25366   soname_spec='${libname}${release}${shared_ext}$major'
25367   shlibpath_var=LD_LIBRARY_PATH
25368   hardcode_into_libs=yes
25369   ;;
25370
25371 hpux9* | hpux10* | hpux11*)
25372   # Give a soname corresponding to the major version so that dld.sl refuses to
25373   # link against other versions.
25374   version_type=sunos
25375   need_lib_prefix=no
25376   need_version=no
25377   case $host_cpu in
25378   ia64*)
25379     shrext_cmds='.so'
25380     hardcode_into_libs=yes
25381     dynamic_linker="$host_os dld.so"
25382     shlibpath_var=LD_LIBRARY_PATH
25383     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25385     soname_spec='${libname}${release}${shared_ext}$major'
25386     if test "X$HPUX_IA64_MODE" = X32; then
25387       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25388     else
25389       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25390     fi
25391     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25392     ;;
25393    hppa*64*)
25394      shrext_cmds='.sl'
25395      hardcode_into_libs=yes
25396      dynamic_linker="$host_os dld.sl"
25397      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25398      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25399      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400      soname_spec='${libname}${release}${shared_ext}$major'
25401      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25402      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25403      ;;
25404    *)
25405     shrext_cmds='.sl'
25406     dynamic_linker="$host_os dld.sl"
25407     shlibpath_var=SHLIB_PATH
25408     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25410     soname_spec='${libname}${release}${shared_ext}$major'
25411     ;;
25412   esac
25413   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25414   postinstall_cmds='chmod 555 $lib'
25415   ;;
25416
25417 interix3*)
25418   version_type=linux
25419   need_lib_prefix=no
25420   need_version=no
25421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25422   soname_spec='${libname}${release}${shared_ext}$major'
25423   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25424   shlibpath_var=LD_LIBRARY_PATH
25425   shlibpath_overrides_runpath=no
25426   hardcode_into_libs=yes
25427   ;;
25428
25429 irix5* | irix6* | nonstopux*)
25430   case $host_os in
25431     nonstopux*) version_type=nonstopux ;;
25432     *)
25433         if test "$lt_cv_prog_gnu_ld" = yes; then
25434                 version_type=linux
25435         else
25436                 version_type=irix
25437         fi ;;
25438   esac
25439   need_lib_prefix=no
25440   need_version=no
25441   soname_spec='${libname}${release}${shared_ext}$major'
25442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25443   case $host_os in
25444   irix5* | nonstopux*)
25445     libsuff= shlibsuff=
25446     ;;
25447   *)
25448     case $LD in # libtool.m4 will add one of these switches to LD
25449     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25450       libsuff= shlibsuff= libmagic=32-bit;;
25451     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25452       libsuff=32 shlibsuff=N32 libmagic=N32;;
25453     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25454       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25455     *) libsuff= shlibsuff= libmagic=never-match;;
25456     esac
25457     ;;
25458   esac
25459   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25460   shlibpath_overrides_runpath=no
25461   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25462   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25463   hardcode_into_libs=yes
25464   ;;
25465
25466 # No shared lib support for Linux oldld, aout, or coff.
25467 linux*oldld* | linux*aout* | linux*coff*)
25468   dynamic_linker=no
25469   ;;
25470
25471 # This must be Linux ELF.
25472 linux*)
25473   version_type=linux
25474   need_lib_prefix=no
25475   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25479   shlibpath_var=LD_LIBRARY_PATH
25480   shlibpath_overrides_runpath=no
25481   # This implies no fast_install, which is unacceptable.
25482   # Some rework will be needed to allow for fast_install
25483   # before this can be enabled.
25484   hardcode_into_libs=yes
25485
25486   # Append ld.so.conf contents to the search path
25487   if test -f /etc/ld.so.conf; then
25488     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' ' '`
25489     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25490   fi
25491
25492   # We used to test for /lib/ld.so.1 and disable shared libraries on
25493   # powerpc, because MkLinux only supported shared libraries with the
25494   # GNU dynamic linker.  Since this was broken with cross compilers,
25495   # most powerpc-linux boxes support dynamic linking these days and
25496   # people can always --disable-shared, the test was removed, and we
25497   # assume the GNU/Linux dynamic linker is in use.
25498   dynamic_linker='GNU/Linux ld.so'
25499   ;;
25500
25501 knetbsd*-gnu)
25502   version_type=linux
25503   need_lib_prefix=no
25504   need_version=no
25505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25506   soname_spec='${libname}${release}${shared_ext}$major'
25507   shlibpath_var=LD_LIBRARY_PATH
25508   shlibpath_overrides_runpath=no
25509   hardcode_into_libs=yes
25510   dynamic_linker='GNU ld.so'
25511   ;;
25512
25513 netbsd*)
25514   version_type=sunos
25515   need_lib_prefix=no
25516   need_version=no
25517   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25519     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25520     dynamic_linker='NetBSD (a.out) ld.so'
25521   else
25522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25523     soname_spec='${libname}${release}${shared_ext}$major'
25524     dynamic_linker='NetBSD ld.elf_so'
25525   fi
25526   shlibpath_var=LD_LIBRARY_PATH
25527   shlibpath_overrides_runpath=yes
25528   hardcode_into_libs=yes
25529   ;;
25530
25531 newsos6)
25532   version_type=linux
25533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534   shlibpath_var=LD_LIBRARY_PATH
25535   shlibpath_overrides_runpath=yes
25536   ;;
25537
25538 nto-qnx*)
25539   version_type=linux
25540   need_lib_prefix=no
25541   need_version=no
25542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543   soname_spec='${libname}${release}${shared_ext}$major'
25544   shlibpath_var=LD_LIBRARY_PATH
25545   shlibpath_overrides_runpath=yes
25546   ;;
25547
25548 openbsd*)
25549   version_type=sunos
25550   sys_lib_dlsearch_path_spec="/usr/lib"
25551   need_lib_prefix=no
25552   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25553   case $host_os in
25554     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25555     *)                         need_version=no  ;;
25556   esac
25557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25558   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25559   shlibpath_var=LD_LIBRARY_PATH
25560   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25561     case $host_os in
25562       openbsd2.[89] | openbsd2.[89].*)
25563         shlibpath_overrides_runpath=no
25564         ;;
25565       *)
25566         shlibpath_overrides_runpath=yes
25567         ;;
25568       esac
25569   else
25570     shlibpath_overrides_runpath=yes
25571   fi
25572   ;;
25573
25574 os2*)
25575   libname_spec='$name'
25576   shrext_cmds=".dll"
25577   need_lib_prefix=no
25578   library_names_spec='$libname${shared_ext} $libname.a'
25579   dynamic_linker='OS/2 ld.exe'
25580   shlibpath_var=LIBPATH
25581   ;;
25582
25583 osf3* | osf4* | osf5*)
25584   version_type=osf
25585   need_lib_prefix=no
25586   need_version=no
25587   soname_spec='${libname}${release}${shared_ext}$major'
25588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589   shlibpath_var=LD_LIBRARY_PATH
25590   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25591   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25592   ;;
25593
25594 solaris*)
25595   version_type=linux
25596   need_lib_prefix=no
25597   need_version=no
25598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25599   soname_spec='${libname}${release}${shared_ext}$major'
25600   shlibpath_var=LD_LIBRARY_PATH
25601   shlibpath_overrides_runpath=yes
25602   hardcode_into_libs=yes
25603   # ldd complains unless libraries are executable
25604   postinstall_cmds='chmod +x $lib'
25605   ;;
25606
25607 sunos4*)
25608   version_type=sunos
25609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25610   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25611   shlibpath_var=LD_LIBRARY_PATH
25612   shlibpath_overrides_runpath=yes
25613   if test "$with_gnu_ld" = yes; then
25614     need_lib_prefix=no
25615   fi
25616   need_version=yes
25617   ;;
25618
25619 sysv4 | sysv4.3*)
25620   version_type=linux
25621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25622   soname_spec='${libname}${release}${shared_ext}$major'
25623   shlibpath_var=LD_LIBRARY_PATH
25624   case $host_vendor in
25625     sni)
25626       shlibpath_overrides_runpath=no
25627       need_lib_prefix=no
25628       export_dynamic_flag_spec='${wl}-Blargedynsym'
25629       runpath_var=LD_RUN_PATH
25630       ;;
25631     siemens)
25632       need_lib_prefix=no
25633       ;;
25634     motorola)
25635       need_lib_prefix=no
25636       need_version=no
25637       shlibpath_overrides_runpath=no
25638       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25639       ;;
25640   esac
25641   ;;
25642
25643 sysv4*MP*)
25644   if test -d /usr/nec ;then
25645     version_type=linux
25646     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25647     soname_spec='$libname${shared_ext}.$major'
25648     shlibpath_var=LD_LIBRARY_PATH
25649   fi
25650   ;;
25651
25652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25653   version_type=freebsd-elf
25654   need_lib_prefix=no
25655   need_version=no
25656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25657   soname_spec='${libname}${release}${shared_ext}$major'
25658   shlibpath_var=LD_LIBRARY_PATH
25659   hardcode_into_libs=yes
25660   if test "$with_gnu_ld" = yes; then
25661     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25662     shlibpath_overrides_runpath=no
25663   else
25664     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25665     shlibpath_overrides_runpath=yes
25666     case $host_os in
25667       sco3.2v5*)
25668         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25669         ;;
25670     esac
25671   fi
25672   sys_lib_dlsearch_path_spec='/usr/lib'
25673   ;;
25674
25675 uts4*)
25676   version_type=linux
25677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25678   soname_spec='${libname}${release}${shared_ext}$major'
25679   shlibpath_var=LD_LIBRARY_PATH
25680   ;;
25681
25682 *)
25683   dynamic_linker=no
25684   ;;
25685 esac
25686 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25687 echo "${ECHO_T}$dynamic_linker" >&6; }
25688 test "$dynamic_linker" = no && can_build_shared=no
25689
25690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25691 if test "$GCC" = yes; then
25692   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25693 fi
25694
25695 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25697 hardcode_action_GCJ=
25698 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25699    test -n "$runpath_var_GCJ" || \
25700    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25701
25702   # We can hardcode non-existant directories.
25703   if test "$hardcode_direct_GCJ" != no &&
25704      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25705      # have to relink, otherwise we might link with an installed library
25706      # when we should be linking with a yet-to-be-installed one
25707      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25708      test "$hardcode_minus_L_GCJ" != no; then
25709     # Linking always hardcodes the temporary library directory.
25710     hardcode_action_GCJ=relink
25711   else
25712     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25713     hardcode_action_GCJ=immediate
25714   fi
25715 else
25716   # We cannot hardcode anything, or else we can only hardcode existing
25717   # directories.
25718   hardcode_action_GCJ=unsupported
25719 fi
25720 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25721 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25722
25723 if test "$hardcode_action_GCJ" = relink; then
25724   # Fast installation is not supported
25725   enable_fast_install=no
25726 elif test "$shlibpath_overrides_runpath" = yes ||
25727      test "$enable_shared" = no; then
25728   # Fast installation is not necessary
25729   enable_fast_install=needless
25730 fi
25731
25732
25733 # The else clause should only fire when bootstrapping the
25734 # libtool distribution, otherwise you forgot to ship ltmain.sh
25735 # with your package, and you will get complaints that there are
25736 # no rules to generate ltmain.sh.
25737 if test -f "$ltmain"; then
25738   # See if we are running on zsh, and set the options which allow our commands through
25739   # without removal of \ escapes.
25740   if test -n "${ZSH_VERSION+set}" ; then
25741     setopt NO_GLOB_SUBST
25742   fi
25743   # Now quote all the things that may contain metacharacters while being
25744   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25745   # variables and quote the copies for generation of the libtool script.
25746   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25747     SED SHELL STRIP \
25748     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25749     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25750     deplibs_check_method reload_flag reload_cmds need_locks \
25751     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25752     lt_cv_sys_global_symbol_to_c_name_address \
25753     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25754     old_postinstall_cmds old_postuninstall_cmds \
25755     compiler_GCJ \
25756     CC_GCJ \
25757     LD_GCJ \
25758     lt_prog_compiler_wl_GCJ \
25759     lt_prog_compiler_pic_GCJ \
25760     lt_prog_compiler_static_GCJ \
25761     lt_prog_compiler_no_builtin_flag_GCJ \
25762     export_dynamic_flag_spec_GCJ \
25763     thread_safe_flag_spec_GCJ \
25764     whole_archive_flag_spec_GCJ \
25765     enable_shared_with_static_runtimes_GCJ \
25766     old_archive_cmds_GCJ \
25767     old_archive_from_new_cmds_GCJ \
25768     predep_objects_GCJ \
25769     postdep_objects_GCJ \
25770     predeps_GCJ \
25771     postdeps_GCJ \
25772     compiler_lib_search_path_GCJ \
25773     archive_cmds_GCJ \
25774     archive_expsym_cmds_GCJ \
25775     postinstall_cmds_GCJ \
25776     postuninstall_cmds_GCJ \
25777     old_archive_from_expsyms_cmds_GCJ \
25778     allow_undefined_flag_GCJ \
25779     no_undefined_flag_GCJ \
25780     export_symbols_cmds_GCJ \
25781     hardcode_libdir_flag_spec_GCJ \
25782     hardcode_libdir_flag_spec_ld_GCJ \
25783     hardcode_libdir_separator_GCJ \
25784     hardcode_automatic_GCJ \
25785     module_cmds_GCJ \
25786     module_expsym_cmds_GCJ \
25787     lt_cv_prog_compiler_c_o_GCJ \
25788     exclude_expsyms_GCJ \
25789     include_expsyms_GCJ; do
25790
25791     case $var in
25792     old_archive_cmds_GCJ | \
25793     old_archive_from_new_cmds_GCJ | \
25794     archive_cmds_GCJ | \
25795     archive_expsym_cmds_GCJ | \
25796     module_cmds_GCJ | \
25797     module_expsym_cmds_GCJ | \
25798     old_archive_from_expsyms_cmds_GCJ | \
25799     export_symbols_cmds_GCJ | \
25800     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25801     postinstall_cmds | postuninstall_cmds | \
25802     old_postinstall_cmds | old_postuninstall_cmds | \
25803     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25804       # Double-quote double-evaled strings.
25805       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25806       ;;
25807     *)
25808       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25809       ;;
25810     esac
25811   done
25812
25813   case $lt_echo in
25814   *'\$0 --fallback-echo"')
25815     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25816     ;;
25817   esac
25818
25819 cfgfile="$ofile"
25820
25821   cat <<__EOF__ >> "$cfgfile"
25822 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25823
25824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25825
25826 # Shell to use when invoking shell scripts.
25827 SHELL=$lt_SHELL
25828
25829 # Whether or not to build shared libraries.
25830 build_libtool_libs=$enable_shared
25831
25832 # Whether or not to build static libraries.
25833 build_old_libs=$enable_static
25834
25835 # Whether or not to add -lc for building shared libraries.
25836 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25837
25838 # Whether or not to disallow shared libs when runtime libs are static
25839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25840
25841 # Whether or not to optimize for fast installation.
25842 fast_install=$enable_fast_install
25843
25844 # The host system.
25845 host_alias=$host_alias
25846 host=$host
25847 host_os=$host_os
25848
25849 # The build system.
25850 build_alias=$build_alias
25851 build=$build
25852 build_os=$build_os
25853
25854 # An echo program that does not interpret backslashes.
25855 echo=$lt_echo
25856
25857 # The archiver.
25858 AR=$lt_AR
25859 AR_FLAGS=$lt_AR_FLAGS
25860
25861 # A C compiler.
25862 LTCC=$lt_LTCC
25863
25864 # LTCC compiler flags.
25865 LTCFLAGS=$lt_LTCFLAGS
25866
25867 # A language-specific compiler.
25868 CC=$lt_compiler_GCJ
25869
25870 # Is the compiler the GNU C compiler?
25871 with_gcc=$GCC_GCJ
25872
25873 # An ERE matcher.
25874 EGREP=$lt_EGREP
25875
25876 # The linker used to build libraries.
25877 LD=$lt_LD_GCJ
25878
25879 # Whether we need hard or soft links.
25880 LN_S=$lt_LN_S
25881
25882 # A BSD-compatible nm program.
25883 NM=$lt_NM
25884
25885 # A symbol stripping program
25886 STRIP=$lt_STRIP
25887
25888 # Used to examine libraries when file_magic_cmd begins "file"
25889 MAGIC_CMD=$MAGIC_CMD
25890
25891 # Used on cygwin: DLL creation program.
25892 DLLTOOL="$DLLTOOL"
25893
25894 # Used on cygwin: object dumper.
25895 OBJDUMP="$OBJDUMP"
25896
25897 # Used on cygwin: assembler.
25898 AS="$AS"
25899
25900 # The name of the directory that contains temporary libtool files.
25901 objdir=$objdir
25902
25903 # How to create reloadable object files.
25904 reload_flag=$lt_reload_flag
25905 reload_cmds=$lt_reload_cmds
25906
25907 # How to pass a linker flag through the compiler.
25908 wl=$lt_lt_prog_compiler_wl_GCJ
25909
25910 # Object file suffix (normally "o").
25911 objext="$ac_objext"
25912
25913 # Old archive suffix (normally "a").
25914 libext="$libext"
25915
25916 # Shared library suffix (normally ".so").
25917 shrext_cmds='$shrext_cmds'
25918
25919 # Executable file suffix (normally "").
25920 exeext="$exeext"
25921
25922 # Additional compiler flags for building library objects.
25923 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25924 pic_mode=$pic_mode
25925
25926 # What is the maximum length of a command?
25927 max_cmd_len=$lt_cv_sys_max_cmd_len
25928
25929 # Does compiler simultaneously support -c and -o options?
25930 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25931
25932 # Must we lock files when doing compilation?
25933 need_locks=$lt_need_locks
25934
25935 # Do we need the lib prefix for modules?
25936 need_lib_prefix=$need_lib_prefix
25937
25938 # Do we need a version for libraries?
25939 need_version=$need_version
25940
25941 # Whether dlopen is supported.
25942 dlopen_support=$enable_dlopen
25943
25944 # Whether dlopen of programs is supported.
25945 dlopen_self=$enable_dlopen_self
25946
25947 # Whether dlopen of statically linked programs is supported.
25948 dlopen_self_static=$enable_dlopen_self_static
25949
25950 # Compiler flag to prevent dynamic linking.
25951 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25952
25953 # Compiler flag to turn off builtin functions.
25954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25955
25956 # Compiler flag to allow reflexive dlopens.
25957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25958
25959 # Compiler flag to generate shared objects directly from archives.
25960 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25961
25962 # Compiler flag to generate thread-safe objects.
25963 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25964
25965 # Library versioning type.
25966 version_type=$version_type
25967
25968 # Format of library name prefix.
25969 libname_spec=$lt_libname_spec
25970
25971 # List of archive names.  First name is the real one, the rest are links.
25972 # The last name is the one that the linker finds with -lNAME.
25973 library_names_spec=$lt_library_names_spec
25974
25975 # The coded name of the library, if different from the real name.
25976 soname_spec=$lt_soname_spec
25977
25978 # Commands used to build and install an old-style archive.
25979 RANLIB=$lt_RANLIB
25980 old_archive_cmds=$lt_old_archive_cmds_GCJ
25981 old_postinstall_cmds=$lt_old_postinstall_cmds
25982 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25983
25984 # Create an old-style archive from a shared archive.
25985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25986
25987 # Create a temporary old-style archive to link instead of a shared archive.
25988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25989
25990 # Commands used to build and install a shared archive.
25991 archive_cmds=$lt_archive_cmds_GCJ
25992 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25993 postinstall_cmds=$lt_postinstall_cmds
25994 postuninstall_cmds=$lt_postuninstall_cmds
25995
25996 # Commands used to build a loadable module (assumed same as above if empty)
25997 module_cmds=$lt_module_cmds_GCJ
25998 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25999
26000 # Commands to strip libraries.
26001 old_striplib=$lt_old_striplib
26002 striplib=$lt_striplib
26003
26004 # Dependencies to place before the objects being linked to create a
26005 # shared library.
26006 predep_objects=$lt_predep_objects_GCJ
26007
26008 # Dependencies to place after the objects being linked to create a
26009 # shared library.
26010 postdep_objects=$lt_postdep_objects_GCJ
26011
26012 # Dependencies to place before the objects being linked to create a
26013 # shared library.
26014 predeps=$lt_predeps_GCJ
26015
26016 # Dependencies to place after the objects being linked to create a
26017 # shared library.
26018 postdeps=$lt_postdeps_GCJ
26019
26020 # The library search path used internally by the compiler when linking
26021 # a shared library.
26022 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26023
26024 # Method to check whether dependent libraries are shared objects.
26025 deplibs_check_method=$lt_deplibs_check_method
26026
26027 # Command to use when deplibs_check_method == file_magic.
26028 file_magic_cmd=$lt_file_magic_cmd
26029
26030 # Flag that allows shared libraries with undefined symbols to be built.
26031 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26032
26033 # Flag that forces no undefined symbols.
26034 no_undefined_flag=$lt_no_undefined_flag_GCJ
26035
26036 # Commands used to finish a libtool library installation in a directory.
26037 finish_cmds=$lt_finish_cmds
26038
26039 # Same as above, but a single script fragment to be evaled but not shown.
26040 finish_eval=$lt_finish_eval
26041
26042 # Take the output of nm and produce a listing of raw symbols and C names.
26043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26044
26045 # Transform the output of nm in a proper C declaration
26046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26047
26048 # Transform the output of nm in a C name address pair
26049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26050
26051 # This is the shared library runtime path variable.
26052 runpath_var=$runpath_var
26053
26054 # This is the shared library path variable.
26055 shlibpath_var=$shlibpath_var
26056
26057 # Is shlibpath searched before the hard-coded library search path?
26058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26059
26060 # How to hardcode a shared library path into an executable.
26061 hardcode_action=$hardcode_action_GCJ
26062
26063 # Whether we should hardcode library paths into libraries.
26064 hardcode_into_libs=$hardcode_into_libs
26065
26066 # Flag to hardcode \$libdir into a binary during linking.
26067 # This must work even if \$libdir does not exist.
26068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26069
26070 # If ld is used when linking, flag to hardcode \$libdir into
26071 # a binary during linking. This must work even if \$libdir does
26072 # not exist.
26073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26074
26075 # Whether we need a single -rpath flag with a separated argument.
26076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26077
26078 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26079 # resulting binary.
26080 hardcode_direct=$hardcode_direct_GCJ
26081
26082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26083 # resulting binary.
26084 hardcode_minus_L=$hardcode_minus_L_GCJ
26085
26086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26087 # the resulting binary.
26088 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26089
26090 # Set to yes if building a shared library automatically hardcodes DIR into the library
26091 # and all subsequent libraries and executables linked against it.
26092 hardcode_automatic=$hardcode_automatic_GCJ
26093
26094 # Variables whose values should be saved in libtool wrapper scripts and
26095 # restored at relink time.
26096 variables_saved_for_relink="$variables_saved_for_relink"
26097
26098 # Whether libtool must link a program against all its dependency libraries.
26099 link_all_deplibs=$link_all_deplibs_GCJ
26100
26101 # Compile-time system search path for libraries
26102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26103
26104 # Run-time system search path for libraries
26105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26106
26107 # Fix the shell variable \$srcfile for the compiler.
26108 fix_srcfile_path="$fix_srcfile_path_GCJ"
26109
26110 # Set to yes if exported symbols are required.
26111 always_export_symbols=$always_export_symbols_GCJ
26112
26113 # The commands to list exported symbols.
26114 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26115
26116 # The commands to extract the exported symbol list from a shared archive.
26117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26118
26119 # Symbols that should not be listed in the preloaded symbols.
26120 exclude_expsyms=$lt_exclude_expsyms_GCJ
26121
26122 # Symbols that must always be exported.
26123 include_expsyms=$lt_include_expsyms_GCJ
26124
26125 # ### END LIBTOOL TAG CONFIG: $tagname
26126
26127 __EOF__
26128
26129
26130 else
26131   # If there is no Makefile yet, we rely on a make rule to execute
26132   # `config.status --recheck' to rerun these tests and create the
26133   # libtool script then.
26134   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26135   if test -f "$ltmain_in"; then
26136     test -f Makefile && make "$ltmain"
26137   fi
26138 fi
26139
26140
26141 ac_ext=c
26142 ac_cpp='$CPP $CPPFLAGS'
26143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26146
26147 CC="$lt_save_CC"
26148
26149         else
26150           tagname=""
26151         fi
26152         ;;
26153
26154       RC)
26155         ac_ext=c
26156 ac_cpp='$CPP $CPPFLAGS'
26157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26160
26161
26162 # Source file extension for RC test sources.
26163 ac_ext=rc
26164
26165 # Object file extension for compiled RC test sources.
26166 objext=o
26167 objext_RC=$objext
26168
26169 # Code to be used in simple compile tests
26170 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26171
26172 # Code to be used in simple link tests
26173 lt_simple_link_test_code="$lt_simple_compile_test_code"
26174
26175 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26176
26177 # If no C compiler was specified, use CC.
26178 LTCC=${LTCC-"$CC"}
26179
26180 # If no C compiler flags were specified, use CFLAGS.
26181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26182
26183 # Allow CC to be a program name with arguments.
26184 compiler=$CC
26185
26186
26187 # save warnings/boilerplate of simple test code
26188 ac_outfile=conftest.$ac_objext
26189 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26191 _lt_compiler_boilerplate=`cat conftest.err`
26192 $rm conftest*
26193
26194 ac_outfile=conftest.$ac_objext
26195 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26197 _lt_linker_boilerplate=`cat conftest.err`
26198 $rm conftest*
26199
26200
26201 # Allow CC to be a program name with arguments.
26202 lt_save_CC="$CC"
26203 CC=${RC-"windres"}
26204 compiler=$CC
26205 compiler_RC=$CC
26206 for cc_temp in $compiler""; do
26207   case $cc_temp in
26208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26210     \-*) ;;
26211     *) break;;
26212   esac
26213 done
26214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26215
26216 lt_cv_prog_compiler_c_o_RC=yes
26217
26218 # The else clause should only fire when bootstrapping the
26219 # libtool distribution, otherwise you forgot to ship ltmain.sh
26220 # with your package, and you will get complaints that there are
26221 # no rules to generate ltmain.sh.
26222 if test -f "$ltmain"; then
26223   # See if we are running on zsh, and set the options which allow our commands through
26224   # without removal of \ escapes.
26225   if test -n "${ZSH_VERSION+set}" ; then
26226     setopt NO_GLOB_SUBST
26227   fi
26228   # Now quote all the things that may contain metacharacters while being
26229   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26230   # variables and quote the copies for generation of the libtool script.
26231   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26232     SED SHELL STRIP \
26233     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26234     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26235     deplibs_check_method reload_flag reload_cmds need_locks \
26236     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26237     lt_cv_sys_global_symbol_to_c_name_address \
26238     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26239     old_postinstall_cmds old_postuninstall_cmds \
26240     compiler_RC \
26241     CC_RC \
26242     LD_RC \
26243     lt_prog_compiler_wl_RC \
26244     lt_prog_compiler_pic_RC \
26245     lt_prog_compiler_static_RC \
26246     lt_prog_compiler_no_builtin_flag_RC \
26247     export_dynamic_flag_spec_RC \
26248     thread_safe_flag_spec_RC \
26249     whole_archive_flag_spec_RC \
26250     enable_shared_with_static_runtimes_RC \
26251     old_archive_cmds_RC \
26252     old_archive_from_new_cmds_RC \
26253     predep_objects_RC \
26254     postdep_objects_RC \
26255     predeps_RC \
26256     postdeps_RC \
26257     compiler_lib_search_path_RC \
26258     archive_cmds_RC \
26259     archive_expsym_cmds_RC \
26260     postinstall_cmds_RC \
26261     postuninstall_cmds_RC \
26262     old_archive_from_expsyms_cmds_RC \
26263     allow_undefined_flag_RC \
26264     no_undefined_flag_RC \
26265     export_symbols_cmds_RC \
26266     hardcode_libdir_flag_spec_RC \
26267     hardcode_libdir_flag_spec_ld_RC \
26268     hardcode_libdir_separator_RC \
26269     hardcode_automatic_RC \
26270     module_cmds_RC \
26271     module_expsym_cmds_RC \
26272     lt_cv_prog_compiler_c_o_RC \
26273     exclude_expsyms_RC \
26274     include_expsyms_RC; do
26275
26276     case $var in
26277     old_archive_cmds_RC | \
26278     old_archive_from_new_cmds_RC | \
26279     archive_cmds_RC | \
26280     archive_expsym_cmds_RC | \
26281     module_cmds_RC | \
26282     module_expsym_cmds_RC | \
26283     old_archive_from_expsyms_cmds_RC | \
26284     export_symbols_cmds_RC | \
26285     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26286     postinstall_cmds | postuninstall_cmds | \
26287     old_postinstall_cmds | old_postuninstall_cmds | \
26288     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26289       # Double-quote double-evaled strings.
26290       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26291       ;;
26292     *)
26293       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26294       ;;
26295     esac
26296   done
26297
26298   case $lt_echo in
26299   *'\$0 --fallback-echo"')
26300     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26301     ;;
26302   esac
26303
26304 cfgfile="$ofile"
26305
26306   cat <<__EOF__ >> "$cfgfile"
26307 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26308
26309 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26310
26311 # Shell to use when invoking shell scripts.
26312 SHELL=$lt_SHELL
26313
26314 # Whether or not to build shared libraries.
26315 build_libtool_libs=$enable_shared
26316
26317 # Whether or not to build static libraries.
26318 build_old_libs=$enable_static
26319
26320 # Whether or not to add -lc for building shared libraries.
26321 build_libtool_need_lc=$archive_cmds_need_lc_RC
26322
26323 # Whether or not to disallow shared libs when runtime libs are static
26324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26325
26326 # Whether or not to optimize for fast installation.
26327 fast_install=$enable_fast_install
26328
26329 # The host system.
26330 host_alias=$host_alias
26331 host=$host
26332 host_os=$host_os
26333
26334 # The build system.
26335 build_alias=$build_alias
26336 build=$build
26337 build_os=$build_os
26338
26339 # An echo program that does not interpret backslashes.
26340 echo=$lt_echo
26341
26342 # The archiver.
26343 AR=$lt_AR
26344 AR_FLAGS=$lt_AR_FLAGS
26345
26346 # A C compiler.
26347 LTCC=$lt_LTCC
26348
26349 # LTCC compiler flags.
26350 LTCFLAGS=$lt_LTCFLAGS
26351
26352 # A language-specific compiler.
26353 CC=$lt_compiler_RC
26354
26355 # Is the compiler the GNU C compiler?
26356 with_gcc=$GCC_RC
26357
26358 # An ERE matcher.
26359 EGREP=$lt_EGREP
26360
26361 # The linker used to build libraries.
26362 LD=$lt_LD_RC
26363
26364 # Whether we need hard or soft links.
26365 LN_S=$lt_LN_S
26366
26367 # A BSD-compatible nm program.
26368 NM=$lt_NM
26369
26370 # A symbol stripping program
26371 STRIP=$lt_STRIP
26372
26373 # Used to examine libraries when file_magic_cmd begins "file"
26374 MAGIC_CMD=$MAGIC_CMD
26375
26376 # Used on cygwin: DLL creation program.
26377 DLLTOOL="$DLLTOOL"
26378
26379 # Used on cygwin: object dumper.
26380 OBJDUMP="$OBJDUMP"
26381
26382 # Used on cygwin: assembler.
26383 AS="$AS"
26384
26385 # The name of the directory that contains temporary libtool files.
26386 objdir=$objdir
26387
26388 # How to create reloadable object files.
26389 reload_flag=$lt_reload_flag
26390 reload_cmds=$lt_reload_cmds
26391
26392 # How to pass a linker flag through the compiler.
26393 wl=$lt_lt_prog_compiler_wl_RC
26394
26395 # Object file suffix (normally "o").
26396 objext="$ac_objext"
26397
26398 # Old archive suffix (normally "a").
26399 libext="$libext"
26400
26401 # Shared library suffix (normally ".so").
26402 shrext_cmds='$shrext_cmds'
26403
26404 # Executable file suffix (normally "").
26405 exeext="$exeext"
26406
26407 # Additional compiler flags for building library objects.
26408 pic_flag=$lt_lt_prog_compiler_pic_RC
26409 pic_mode=$pic_mode
26410
26411 # What is the maximum length of a command?
26412 max_cmd_len=$lt_cv_sys_max_cmd_len
26413
26414 # Does compiler simultaneously support -c and -o options?
26415 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26416
26417 # Must we lock files when doing compilation?
26418 need_locks=$lt_need_locks
26419
26420 # Do we need the lib prefix for modules?
26421 need_lib_prefix=$need_lib_prefix
26422
26423 # Do we need a version for libraries?
26424 need_version=$need_version
26425
26426 # Whether dlopen is supported.
26427 dlopen_support=$enable_dlopen
26428
26429 # Whether dlopen of programs is supported.
26430 dlopen_self=$enable_dlopen_self
26431
26432 # Whether dlopen of statically linked programs is supported.
26433 dlopen_self_static=$enable_dlopen_self_static
26434
26435 # Compiler flag to prevent dynamic linking.
26436 link_static_flag=$lt_lt_prog_compiler_static_RC
26437
26438 # Compiler flag to turn off builtin functions.
26439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26440
26441 # Compiler flag to allow reflexive dlopens.
26442 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26443
26444 # Compiler flag to generate shared objects directly from archives.
26445 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26446
26447 # Compiler flag to generate thread-safe objects.
26448 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26449
26450 # Library versioning type.
26451 version_type=$version_type
26452
26453 # Format of library name prefix.
26454 libname_spec=$lt_libname_spec
26455
26456 # List of archive names.  First name is the real one, the rest are links.
26457 # The last name is the one that the linker finds with -lNAME.
26458 library_names_spec=$lt_library_names_spec
26459
26460 # The coded name of the library, if different from the real name.
26461 soname_spec=$lt_soname_spec
26462
26463 # Commands used to build and install an old-style archive.
26464 RANLIB=$lt_RANLIB
26465 old_archive_cmds=$lt_old_archive_cmds_RC
26466 old_postinstall_cmds=$lt_old_postinstall_cmds
26467 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26468
26469 # Create an old-style archive from a shared archive.
26470 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26471
26472 # Create a temporary old-style archive to link instead of a shared archive.
26473 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26474
26475 # Commands used to build and install a shared archive.
26476 archive_cmds=$lt_archive_cmds_RC
26477 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26478 postinstall_cmds=$lt_postinstall_cmds
26479 postuninstall_cmds=$lt_postuninstall_cmds
26480
26481 # Commands used to build a loadable module (assumed same as above if empty)
26482 module_cmds=$lt_module_cmds_RC
26483 module_expsym_cmds=$lt_module_expsym_cmds_RC
26484
26485 # Commands to strip libraries.
26486 old_striplib=$lt_old_striplib
26487 striplib=$lt_striplib
26488
26489 # Dependencies to place before the objects being linked to create a
26490 # shared library.
26491 predep_objects=$lt_predep_objects_RC
26492
26493 # Dependencies to place after the objects being linked to create a
26494 # shared library.
26495 postdep_objects=$lt_postdep_objects_RC
26496
26497 # Dependencies to place before the objects being linked to create a
26498 # shared library.
26499 predeps=$lt_predeps_RC
26500
26501 # Dependencies to place after the objects being linked to create a
26502 # shared library.
26503 postdeps=$lt_postdeps_RC
26504
26505 # The library search path used internally by the compiler when linking
26506 # a shared library.
26507 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26508
26509 # Method to check whether dependent libraries are shared objects.
26510 deplibs_check_method=$lt_deplibs_check_method
26511
26512 # Command to use when deplibs_check_method == file_magic.
26513 file_magic_cmd=$lt_file_magic_cmd
26514
26515 # Flag that allows shared libraries with undefined symbols to be built.
26516 allow_undefined_flag=$lt_allow_undefined_flag_RC
26517
26518 # Flag that forces no undefined symbols.
26519 no_undefined_flag=$lt_no_undefined_flag_RC
26520
26521 # Commands used to finish a libtool library installation in a directory.
26522 finish_cmds=$lt_finish_cmds
26523
26524 # Same as above, but a single script fragment to be evaled but not shown.
26525 finish_eval=$lt_finish_eval
26526
26527 # Take the output of nm and produce a listing of raw symbols and C names.
26528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26529
26530 # Transform the output of nm in a proper C declaration
26531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26532
26533 # Transform the output of nm in a C name address pair
26534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26535
26536 # This is the shared library runtime path variable.
26537 runpath_var=$runpath_var
26538
26539 # This is the shared library path variable.
26540 shlibpath_var=$shlibpath_var
26541
26542 # Is shlibpath searched before the hard-coded library search path?
26543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26544
26545 # How to hardcode a shared library path into an executable.
26546 hardcode_action=$hardcode_action_RC
26547
26548 # Whether we should hardcode library paths into libraries.
26549 hardcode_into_libs=$hardcode_into_libs
26550
26551 # Flag to hardcode \$libdir into a binary during linking.
26552 # This must work even if \$libdir does not exist.
26553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26554
26555 # If ld is used when linking, flag to hardcode \$libdir into
26556 # a binary during linking. This must work even if \$libdir does
26557 # not exist.
26558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26559
26560 # Whether we need a single -rpath flag with a separated argument.
26561 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26562
26563 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26564 # resulting binary.
26565 hardcode_direct=$hardcode_direct_RC
26566
26567 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26568 # resulting binary.
26569 hardcode_minus_L=$hardcode_minus_L_RC
26570
26571 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26572 # the resulting binary.
26573 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26574
26575 # Set to yes if building a shared library automatically hardcodes DIR into the library
26576 # and all subsequent libraries and executables linked against it.
26577 hardcode_automatic=$hardcode_automatic_RC
26578
26579 # Variables whose values should be saved in libtool wrapper scripts and
26580 # restored at relink time.
26581 variables_saved_for_relink="$variables_saved_for_relink"
26582
26583 # Whether libtool must link a program against all its dependency libraries.
26584 link_all_deplibs=$link_all_deplibs_RC
26585
26586 # Compile-time system search path for libraries
26587 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26588
26589 # Run-time system search path for libraries
26590 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26591
26592 # Fix the shell variable \$srcfile for the compiler.
26593 fix_srcfile_path="$fix_srcfile_path_RC"
26594
26595 # Set to yes if exported symbols are required.
26596 always_export_symbols=$always_export_symbols_RC
26597
26598 # The commands to list exported symbols.
26599 export_symbols_cmds=$lt_export_symbols_cmds_RC
26600
26601 # The commands to extract the exported symbol list from a shared archive.
26602 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26603
26604 # Symbols that should not be listed in the preloaded symbols.
26605 exclude_expsyms=$lt_exclude_expsyms_RC
26606
26607 # Symbols that must always be exported.
26608 include_expsyms=$lt_include_expsyms_RC
26609
26610 # ### END LIBTOOL TAG CONFIG: $tagname
26611
26612 __EOF__
26613
26614
26615 else
26616   # If there is no Makefile yet, we rely on a make rule to execute
26617   # `config.status --recheck' to rerun these tests and create the
26618   # libtool script then.
26619   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26620   if test -f "$ltmain_in"; then
26621     test -f Makefile && make "$ltmain"
26622   fi
26623 fi
26624
26625
26626 ac_ext=c
26627 ac_cpp='$CPP $CPPFLAGS'
26628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26631
26632 CC="$lt_save_CC"
26633
26634         ;;
26635
26636       *)
26637         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26638 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26639    { (exit 1); exit 1; }; }
26640         ;;
26641       esac
26642
26643       # Append the new tag name to the list of available tags.
26644       if test -n "$tagname" ; then
26645       available_tags="$available_tags $tagname"
26646     fi
26647     fi
26648   done
26649   IFS="$lt_save_ifs"
26650
26651   # Now substitute the updated list of available tags.
26652   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26653     mv "${ofile}T" "$ofile"
26654     chmod +x "$ofile"
26655   else
26656     rm -f "${ofile}T"
26657     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26658 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26659    { (exit 1); exit 1; }; }
26660   fi
26661 fi
26662
26663
26664
26665 # This can be used to rebuild libtool when needed
26666 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26667
26668 # Always use our own libtool.
26669 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26670
26671 # Prevent multiple expansion
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693 if test "$lt_cv_dlopen_self" = "yes" ; then
26694
26695 cat >>confdefs.h <<\_ACEOF
26696 #define CAN_DLOPEN_SELF 1
26697 _ACEOF
26698
26699 fi
26700
26701 if test "$WITH_LLVMGCCDIR" = "default" ; then
26702   LLVMGCC="llvm-gcc${EXEEXT}"
26703   LLVMGXX="llvm-g++${EXEEXT}"
26704   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26705 set dummy $LLVMGCC; ac_word=$2
26706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26708 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26709   echo $ECHO_N "(cached) $ECHO_C" >&6
26710 else
26711   case $LLVMGCC in
26712   [\\/]* | ?:[\\/]*)
26713   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26714   ;;
26715   *)
26716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26717 for as_dir in $PATH
26718 do
26719   IFS=$as_save_IFS
26720   test -z "$as_dir" && as_dir=.
26721   for ac_exec_ext in '' $ac_executable_extensions; do
26722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26723     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26725     break 2
26726   fi
26727 done
26728 done
26729 IFS=$as_save_IFS
26730
26731   ;;
26732 esac
26733 fi
26734 LLVMGCC=$ac_cv_path_LLVMGCC
26735 if test -n "$LLVMGCC"; then
26736   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26737 echo "${ECHO_T}$LLVMGCC" >&6; }
26738 else
26739   { echo "$as_me:$LINENO: result: no" >&5
26740 echo "${ECHO_T}no" >&6; }
26741 fi
26742
26743
26744   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26745 set dummy $LLVMGXX; ac_word=$2
26746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26748 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26749   echo $ECHO_N "(cached) $ECHO_C" >&6
26750 else
26751   case $LLVMGXX in
26752   [\\/]* | ?:[\\/]*)
26753   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26754   ;;
26755   *)
26756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26757 for as_dir in $PATH
26758 do
26759   IFS=$as_save_IFS
26760   test -z "$as_dir" && as_dir=.
26761   for ac_exec_ext in '' $ac_executable_extensions; do
26762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26763     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26765     break 2
26766   fi
26767 done
26768 done
26769 IFS=$as_save_IFS
26770
26771   ;;
26772 esac
26773 fi
26774 LLVMGXX=$ac_cv_path_LLVMGXX
26775 if test -n "$LLVMGXX"; then
26776   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26777 echo "${ECHO_T}$LLVMGXX" >&6; }
26778 else
26779   { echo "$as_me:$LINENO: result: no" >&5
26780 echo "${ECHO_T}no" >&6; }
26781 fi
26782
26783
26784 else
26785   if test -z "$LLVMGCC"; then
26786     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26787   fi
26788   if test -z "$LLVMGXX"; then
26789     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26790   fi
26791   LLVMGCC=$LLVMGCC
26792
26793   LLVMGXX=$LLVMGXX
26794
26795 fi
26796
26797 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26798 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26799
26800 ICC=no
26801 IXX=no
26802 case $CC in
26803   icc*|icpc*)
26804     ICC=yes
26805     IXX=yes
26806     ;;
26807    *)
26808     ;;
26809 esac
26810
26811 if test "$GCC" != "yes" && test "$ICC" != "yes"
26812 then
26813   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26814 echo "$as_me: error: gcc|icc required but not found" >&2;}
26815    { (exit 1); exit 1; }; }
26816 fi
26817
26818 if test "$GXX" != "yes" && test "$IXX" != "yes"
26819 then
26820   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26821 echo "$as_me: error: g++|icc required but not found" >&2;}
26822    { (exit 1); exit 1; }; }
26823 fi
26824
26825 if test "$GCC" = "yes"
26826 then
26827   cat >conftest.$ac_ext <<_ACEOF
26828 #if !defined(__GNUC__) || __GNUC__ < 3
26829 #error Unsupported GCC version
26830 #endif
26831
26832 _ACEOF
26833 rm -f conftest.$ac_objext
26834 if { (ac_try="$ac_compile"
26835 case "(($ac_try" in
26836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837   *) ac_try_echo=$ac_try;;
26838 esac
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840   (eval "$ac_compile") 2>conftest.er1
26841   ac_status=$?
26842   grep -v '^ *+' conftest.er1 >conftest.err
26843   rm -f conftest.er1
26844   cat conftest.err >&5
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } &&
26847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26848   { (case "(($ac_try" in
26849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850   *) ac_try_echo=$ac_try;;
26851 esac
26852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853   (eval "$ac_try") 2>&5
26854   ac_status=$?
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; } &&
26857          { ac_try='test -s conftest.$ac_objext'
26858   { (case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863   (eval "$ac_try") 2>&5
26864   ac_status=$?
26865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); }; }; then
26867   :
26868 else
26869   echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26873 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26874    { (exit 1); exit 1; }; }
26875 fi
26876
26877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26878 fi
26879
26880 if test -z "$llvm_cv_gnu_make_command"
26881 then
26882   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26883 echo "$as_me: error: GNU Make required but not found" >&2;}
26884    { (exit 1); exit 1; }; }
26885 fi
26886
26887 { echo "$as_me:$LINENO: result: ok" >&5
26888 echo "${ECHO_T}ok" >&6; }
26889
26890
26891
26892 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26893 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26894 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26895   echo $ECHO_N "(cached) $ECHO_C" >&6
26896 else
26897   ac_check_lib_save_LIBS=$LIBS
26898 LIBS="-lelf  $LIBS"
26899 cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905
26906 /* Override any GCC internal prototype to avoid an error.
26907    Use char because int might match the return type of a GCC
26908    builtin and then its argument prototype would still apply.  */
26909 #ifdef __cplusplus
26910 extern "C"
26911 #endif
26912 char elf_begin ();
26913 int
26914 main ()
26915 {
26916 return elf_begin ();
26917   ;
26918   return 0;
26919 }
26920 _ACEOF
26921 rm -f conftest.$ac_objext conftest$ac_exeext
26922 if { (ac_try="$ac_link"
26923 case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_link") 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } &&
26935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936   { (case "(($ac_try" in
26937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938   *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941   (eval "$ac_try") 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); }; } &&
26945          { ac_try='test -s conftest$ac_exeext'
26946   { (case "(($ac_try" in
26947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948   *) ac_try_echo=$ac_try;;
26949 esac
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951   (eval "$ac_try") 2>&5
26952   ac_status=$?
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); }; }; then
26955   ac_cv_lib_elf_elf_begin=yes
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960         ac_cv_lib_elf_elf_begin=no
26961 fi
26962
26963 rm -f core conftest.err conftest.$ac_objext \
26964       conftest$ac_exeext conftest.$ac_ext
26965 LIBS=$ac_check_lib_save_LIBS
26966 fi
26967 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26968 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26969 if test $ac_cv_lib_elf_elf_begin = yes; then
26970   cat >>confdefs.h <<_ACEOF
26971 #define HAVE_LIBELF 1
26972 _ACEOF
26973
26974   LIBS="-lelf $LIBS"
26975
26976 fi
26977
26978
26979 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26980 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26981 if test "${ac_cv_lib_m_sin+set}" = set; then
26982   echo $ECHO_N "(cached) $ECHO_C" >&6
26983 else
26984   ac_check_lib_save_LIBS=$LIBS
26985 LIBS="-lm  $LIBS"
26986 cat >conftest.$ac_ext <<_ACEOF
26987 /* confdefs.h.  */
26988 _ACEOF
26989 cat confdefs.h >>conftest.$ac_ext
26990 cat >>conftest.$ac_ext <<_ACEOF
26991 /* end confdefs.h.  */
26992
26993 /* Override any GCC internal prototype to avoid an error.
26994    Use char because int might match the return type of a GCC
26995    builtin and then its argument prototype would still apply.  */
26996 #ifdef __cplusplus
26997 extern "C"
26998 #endif
26999 char sin ();
27000 int
27001 main ()
27002 {
27003 return sin ();
27004   ;
27005   return 0;
27006 }
27007 _ACEOF
27008 rm -f conftest.$ac_objext conftest$ac_exeext
27009 if { (ac_try="$ac_link"
27010 case "(($ac_try" in
27011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012   *) ac_try_echo=$ac_try;;
27013 esac
27014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015   (eval "$ac_link") 2>conftest.er1
27016   ac_status=$?
27017   grep -v '^ *+' conftest.er1 >conftest.err
27018   rm -f conftest.er1
27019   cat conftest.err >&5
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); } &&
27022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023   { (case "(($ac_try" in
27024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025   *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028   (eval "$ac_try") 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); }; } &&
27032          { ac_try='test -s conftest$ac_exeext'
27033   { (case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; }; then
27042   ac_cv_lib_m_sin=yes
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047         ac_cv_lib_m_sin=no
27048 fi
27049
27050 rm -f core conftest.err conftest.$ac_objext \
27051       conftest$ac_exeext conftest.$ac_ext
27052 LIBS=$ac_check_lib_save_LIBS
27053 fi
27054 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27055 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27056 if test $ac_cv_lib_m_sin = yes; then
27057   cat >>confdefs.h <<_ACEOF
27058 #define HAVE_LIBM 1
27059 _ACEOF
27060
27061   LIBS="-lm $LIBS"
27062
27063 fi
27064
27065 if test "$llvm_cv_os_type" = "MingW" ; then
27066
27067 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27068 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27069 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27070   echo $ECHO_N "(cached) $ECHO_C" >&6
27071 else
27072   ac_check_lib_save_LIBS=$LIBS
27073 LIBS="-limagehlp  $LIBS"
27074 cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080
27081
27082 int
27083 main ()
27084 {
27085 return main ();
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest.$ac_objext conftest$ac_exeext
27091 if { (ac_try="$ac_link"
27092 case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097   (eval "$ac_link") 2>conftest.er1
27098   ac_status=$?
27099   grep -v '^ *+' conftest.er1 >conftest.err
27100   rm -f conftest.er1
27101   cat conftest.err >&5
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); } &&
27104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105   { (case "(($ac_try" in
27106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107   *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110   (eval "$ac_try") 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); }; } &&
27114          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27124   ac_cv_lib_imagehlp_main=yes
27125 else
27126   echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27128
27129         ac_cv_lib_imagehlp_main=no
27130 fi
27131
27132 rm -f core conftest.err conftest.$ac_objext \
27133       conftest$ac_exeext conftest.$ac_ext
27134 LIBS=$ac_check_lib_save_LIBS
27135 fi
27136 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27137 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27138 if test $ac_cv_lib_imagehlp_main = yes; then
27139   cat >>confdefs.h <<_ACEOF
27140 #define HAVE_LIBIMAGEHLP 1
27141 _ACEOF
27142
27143   LIBS="-limagehlp $LIBS"
27144
27145 fi
27146
27147
27148 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27149 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27150 if test "${ac_cv_lib_psapi_main+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   ac_check_lib_save_LIBS=$LIBS
27154 LIBS="-lpsapi  $LIBS"
27155 cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161
27162
27163 int
27164 main ()
27165 {
27166 return main ();
27167   ;
27168   return 0;
27169 }
27170 _ACEOF
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (ac_try="$ac_link"
27173 case "(($ac_try" in
27174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175   *) ac_try_echo=$ac_try;;
27176 esac
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178   (eval "$ac_link") 2>conftest.er1
27179   ac_status=$?
27180   grep -v '^ *+' conftest.er1 >conftest.err
27181   rm -f conftest.er1
27182   cat conftest.err >&5
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); } &&
27185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27186   { (case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191   (eval "$ac_try") 2>&5
27192   ac_status=$?
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); }; } &&
27195          { ac_try='test -s conftest$ac_exeext'
27196   { (case "(($ac_try" in
27197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198   *) ac_try_echo=$ac_try;;
27199 esac
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201   (eval "$ac_try") 2>&5
27202   ac_status=$?
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); }; }; then
27205   ac_cv_lib_psapi_main=yes
27206 else
27207   echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27209
27210         ac_cv_lib_psapi_main=no
27211 fi
27212
27213 rm -f core conftest.err conftest.$ac_objext \
27214       conftest$ac_exeext conftest.$ac_ext
27215 LIBS=$ac_check_lib_save_LIBS
27216 fi
27217 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27218 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27219 if test $ac_cv_lib_psapi_main = yes; then
27220   cat >>confdefs.h <<_ACEOF
27221 #define HAVE_LIBPSAPI 1
27222 _ACEOF
27223
27224   LIBS="-lpsapi $LIBS"
27225
27226 fi
27227
27228 fi
27229
27230 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27231 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27232 if test "${ac_cv_search_dlopen+set}" = set; then
27233   echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235   ac_func_search_save_LIBS=$LIBS
27236 cat >conftest.$ac_ext <<_ACEOF
27237 /* confdefs.h.  */
27238 _ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h.  */
27242
27243 /* Override any GCC internal prototype to avoid an error.
27244    Use char because int might match the return type of a GCC
27245    builtin and then its argument prototype would still apply.  */
27246 #ifdef __cplusplus
27247 extern "C"
27248 #endif
27249 char dlopen ();
27250 int
27251 main ()
27252 {
27253 return dlopen ();
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 for ac_lib in '' dl; do
27259   if test -z "$ac_lib"; then
27260     ac_res="none required"
27261   else
27262     ac_res=-l$ac_lib
27263     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27264   fi
27265   rm -f conftest.$ac_objext conftest$ac_exeext
27266 if { (ac_try="$ac_link"
27267 case "(($ac_try" in
27268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269   *) ac_try_echo=$ac_try;;
27270 esac
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272   (eval "$ac_link") 2>conftest.er1
27273   ac_status=$?
27274   grep -v '^ *+' conftest.er1 >conftest.err
27275   rm -f conftest.er1
27276   cat conftest.err >&5
27277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); } &&
27279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27280   { (case "(($ac_try" in
27281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282   *) ac_try_echo=$ac_try;;
27283 esac
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285   (eval "$ac_try") 2>&5
27286   ac_status=$?
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); }; } &&
27289          { ac_try='test -s conftest$ac_exeext'
27290   { (case "(($ac_try" in
27291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292   *) ac_try_echo=$ac_try;;
27293 esac
27294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295   (eval "$ac_try") 2>&5
27296   ac_status=$?
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); }; }; then
27299   ac_cv_search_dlopen=$ac_res
27300 else
27301   echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304
27305 fi
27306
27307 rm -f core conftest.err conftest.$ac_objext \
27308       conftest$ac_exeext
27309   if test "${ac_cv_search_dlopen+set}" = set; then
27310   break
27311 fi
27312 done
27313 if test "${ac_cv_search_dlopen+set}" = set; then
27314   :
27315 else
27316   ac_cv_search_dlopen=no
27317 fi
27318 rm conftest.$ac_ext
27319 LIBS=$ac_func_search_save_LIBS
27320 fi
27321 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27322 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27323 ac_res=$ac_cv_search_dlopen
27324 if test "$ac_res" != no; then
27325   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27326
27327 cat >>confdefs.h <<\_ACEOF
27328 #define HAVE_DLOPEN 1
27329 _ACEOF
27330
27331 else
27332   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27333 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27334 fi
27335
27336
27337 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27338 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27339 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27340   echo $ECHO_N "(cached) $ECHO_C" >&6
27341 else
27342   ac_check_lib_save_LIBS=$LIBS
27343 LIBS="-lffi  $LIBS"
27344 cat >conftest.$ac_ext <<_ACEOF
27345 /* confdefs.h.  */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h.  */
27350
27351 /* Override any GCC internal prototype to avoid an error.
27352    Use char because int might match the return type of a GCC
27353    builtin and then its argument prototype would still apply.  */
27354 #ifdef __cplusplus
27355 extern "C"
27356 #endif
27357 char ffi_call ();
27358 int
27359 main ()
27360 {
27361 return ffi_call ();
27362   ;
27363   return 0;
27364 }
27365 _ACEOF
27366 rm -f conftest.$ac_objext conftest$ac_exeext
27367 if { (ac_try="$ac_link"
27368 case "(($ac_try" in
27369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370   *) ac_try_echo=$ac_try;;
27371 esac
27372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373   (eval "$ac_link") 2>conftest.er1
27374   ac_status=$?
27375   grep -v '^ *+' conftest.er1 >conftest.err
27376   rm -f conftest.er1
27377   cat conftest.err >&5
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); } &&
27380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27381   { (case "(($ac_try" in
27382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383   *) ac_try_echo=$ac_try;;
27384 esac
27385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386   (eval "$ac_try") 2>&5
27387   ac_status=$?
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); }; } &&
27390          { ac_try='test -s conftest$ac_exeext'
27391   { (case "(($ac_try" in
27392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393   *) ac_try_echo=$ac_try;;
27394 esac
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396   (eval "$ac_try") 2>&5
27397   ac_status=$?
27398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); }; }; then
27400   ac_cv_lib_ffi_ffi_call=yes
27401 else
27402   echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27404
27405         ac_cv_lib_ffi_ffi_call=no
27406 fi
27407
27408 rm -f core conftest.err conftest.$ac_objext \
27409       conftest$ac_exeext conftest.$ac_ext
27410 LIBS=$ac_check_lib_save_LIBS
27411 fi
27412 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27413 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27414 if test $ac_cv_lib_ffi_ffi_call = yes; then
27415   have_libffi=1
27416 else
27417   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27418 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27419 fi
27420
27421
27422 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27423 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27424 if test "${ac_cv_search_mallinfo+set}" = set; then
27425   echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427   ac_func_search_save_LIBS=$LIBS
27428 cat >conftest.$ac_ext <<_ACEOF
27429 /* confdefs.h.  */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h.  */
27434
27435 /* Override any GCC internal prototype to avoid an error.
27436    Use char because int might match the return type of a GCC
27437    builtin and then its argument prototype would still apply.  */
27438 #ifdef __cplusplus
27439 extern "C"
27440 #endif
27441 char mallinfo ();
27442 int
27443 main ()
27444 {
27445 return mallinfo ();
27446   ;
27447   return 0;
27448 }
27449 _ACEOF
27450 for ac_lib in '' malloc; do
27451   if test -z "$ac_lib"; then
27452     ac_res="none required"
27453   else
27454     ac_res=-l$ac_lib
27455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27456   fi
27457   rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_link") 2>conftest.er1
27465   ac_status=$?
27466   grep -v '^ *+' conftest.er1 >conftest.err
27467   rm -f conftest.er1
27468   cat conftest.err >&5
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); } &&
27471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472   { (case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_try") 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; } &&
27481          { ac_try='test -s conftest$ac_exeext'
27482   { (case "(($ac_try" in
27483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484   *) ac_try_echo=$ac_try;;
27485 esac
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487   (eval "$ac_try") 2>&5
27488   ac_status=$?
27489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490   (exit $ac_status); }; }; then
27491   ac_cv_search_mallinfo=$ac_res
27492 else
27493   echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27495
27496
27497 fi
27498
27499 rm -f core conftest.err conftest.$ac_objext \
27500       conftest$ac_exeext
27501   if test "${ac_cv_search_mallinfo+set}" = set; then
27502   break
27503 fi
27504 done
27505 if test "${ac_cv_search_mallinfo+set}" = set; then
27506   :
27507 else
27508   ac_cv_search_mallinfo=no
27509 fi
27510 rm conftest.$ac_ext
27511 LIBS=$ac_func_search_save_LIBS
27512 fi
27513 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27514 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27515 ac_res=$ac_cv_search_mallinfo
27516 if test "$ac_res" != no; then
27517   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27518
27519 cat >>confdefs.h <<\_ACEOF
27520 #define HAVE_MALLINFO 1
27521 _ACEOF
27522
27523 fi
27524
27525
27526 if test "$ENABLE_THREADS" -eq 1 ; then
27527
27528 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27529 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27530 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27531   echo $ECHO_N "(cached) $ECHO_C" >&6
27532 else
27533   ac_check_lib_save_LIBS=$LIBS
27534 LIBS="-lpthread  $LIBS"
27535 cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h.  */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h.  */
27541
27542 /* Override any GCC internal prototype to avoid an error.
27543    Use char because int might match the return type of a GCC
27544    builtin and then its argument prototype would still apply.  */
27545 #ifdef __cplusplus
27546 extern "C"
27547 #endif
27548 char pthread_mutex_init ();
27549 int
27550 main ()
27551 {
27552 return pthread_mutex_init ();
27553   ;
27554   return 0;
27555 }
27556 _ACEOF
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564   (eval "$ac_link") 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } &&
27571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572   { (case "(($ac_try" in
27573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574   *) ac_try_echo=$ac_try;;
27575 esac
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577   (eval "$ac_try") 2>&5
27578   ac_status=$?
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); }; } &&
27581          { ac_try='test -s conftest$ac_exeext'
27582   { (case "(($ac_try" in
27583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584   *) ac_try_echo=$ac_try;;
27585 esac
27586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587   (eval "$ac_try") 2>&5
27588   ac_status=$?
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); }; }; then
27591   ac_cv_lib_pthread_pthread_mutex_init=yes
27592 else
27593   echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596         ac_cv_lib_pthread_pthread_mutex_init=no
27597 fi
27598
27599 rm -f core conftest.err conftest.$ac_objext \
27600       conftest$ac_exeext conftest.$ac_ext
27601 LIBS=$ac_check_lib_save_LIBS
27602 fi
27603 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27604 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27605 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27606   cat >>confdefs.h <<_ACEOF
27607 #define HAVE_LIBPTHREAD 1
27608 _ACEOF
27609
27610   LIBS="-lpthread $LIBS"
27611
27612 fi
27613
27614   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27615 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27616 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27617   echo $ECHO_N "(cached) $ECHO_C" >&6
27618 else
27619   ac_func_search_save_LIBS=$LIBS
27620 cat >conftest.$ac_ext <<_ACEOF
27621 /* confdefs.h.  */
27622 _ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h.  */
27626
27627 /* Override any GCC internal prototype to avoid an error.
27628    Use char because int might match the return type of a GCC
27629    builtin and then its argument prototype would still apply.  */
27630 #ifdef __cplusplus
27631 extern "C"
27632 #endif
27633 char pthread_mutex_lock ();
27634 int
27635 main ()
27636 {
27637 return pthread_mutex_lock ();
27638   ;
27639   return 0;
27640 }
27641 _ACEOF
27642 for ac_lib in '' pthread; do
27643   if test -z "$ac_lib"; then
27644     ac_res="none required"
27645   else
27646     ac_res=-l$ac_lib
27647     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27648   fi
27649   rm -f conftest.$ac_objext conftest$ac_exeext
27650 if { (ac_try="$ac_link"
27651 case "(($ac_try" in
27652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653   *) ac_try_echo=$ac_try;;
27654 esac
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656   (eval "$ac_link") 2>conftest.er1
27657   ac_status=$?
27658   grep -v '^ *+' conftest.er1 >conftest.err
27659   rm -f conftest.er1
27660   cat conftest.err >&5
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); } &&
27663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27664   { (case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669   (eval "$ac_try") 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; } &&
27673          { ac_try='test -s conftest$ac_exeext'
27674   { (case "(($ac_try" in
27675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676   *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679   (eval "$ac_try") 2>&5
27680   ac_status=$?
27681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682   (exit $ac_status); }; }; then
27683   ac_cv_search_pthread_mutex_lock=$ac_res
27684 else
27685   echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27687
27688
27689 fi
27690
27691 rm -f core conftest.err conftest.$ac_objext \
27692       conftest$ac_exeext
27693   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27694   break
27695 fi
27696 done
27697 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27698   :
27699 else
27700   ac_cv_search_pthread_mutex_lock=no
27701 fi
27702 rm conftest.$ac_ext
27703 LIBS=$ac_func_search_save_LIBS
27704 fi
27705 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27706 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27707 ac_res=$ac_cv_search_pthread_mutex_lock
27708 if test "$ac_res" != no; then
27709   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27710
27711 cat >>confdefs.h <<\_ACEOF
27712 #define HAVE_PTHREAD_MUTEX_LOCK 1
27713 _ACEOF
27714
27715 fi
27716
27717 fi
27718
27719
27720 # Check whether --with-udis86 was given.
27721 if test "${with_udis86+set}" = set; then
27722   withval=$with_udis86;
27723       USE_UDIS86=1
27724
27725       case "$withval" in
27726         /usr/lib|yes) ;;
27727         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27728       esac
27729
27730 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27731 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27732 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27733   echo $ECHO_N "(cached) $ECHO_C" >&6
27734 else
27735   ac_check_lib_save_LIBS=$LIBS
27736 LIBS="-ludis86  $LIBS"
27737 cat >conftest.$ac_ext <<_ACEOF
27738 /* confdefs.h.  */
27739 _ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h.  */
27743
27744 /* Override any GCC internal prototype to avoid an error.
27745    Use char because int might match the return type of a GCC
27746    builtin and then its argument prototype would still apply.  */
27747 #ifdef __cplusplus
27748 extern "C"
27749 #endif
27750 char ud_init ();
27751 int
27752 main ()
27753 {
27754 return ud_init ();
27755   ;
27756   return 0;
27757 }
27758 _ACEOF
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (ac_try="$ac_link"
27761 case "(($ac_try" in
27762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763   *) ac_try_echo=$ac_try;;
27764 esac
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766   (eval "$ac_link") 2>conftest.er1
27767   ac_status=$?
27768   grep -v '^ *+' conftest.er1 >conftest.err
27769   rm -f conftest.er1
27770   cat conftest.err >&5
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); } &&
27773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27774   { (case "(($ac_try" in
27775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776   *) ac_try_echo=$ac_try;;
27777 esac
27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779   (eval "$ac_try") 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; } &&
27783          { ac_try='test -s conftest$ac_exeext'
27784   { (case "(($ac_try" in
27785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786   *) ac_try_echo=$ac_try;;
27787 esac
27788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789   (eval "$ac_try") 2>&5
27790   ac_status=$?
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); }; }; then
27793   ac_cv_lib_udis86_ud_init=yes
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798         ac_cv_lib_udis86_ud_init=no
27799 fi
27800
27801 rm -f core conftest.err conftest.$ac_objext \
27802       conftest$ac_exeext conftest.$ac_ext
27803 LIBS=$ac_check_lib_save_LIBS
27804 fi
27805 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27806 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27807 if test $ac_cv_lib_udis86_ud_init = yes; then
27808   cat >>confdefs.h <<_ACEOF
27809 #define HAVE_LIBUDIS86 1
27810 _ACEOF
27811
27812   LIBS="-ludis86 $LIBS"
27813
27814 else
27815
27816         echo "Error! You need to have libudis86 around."
27817         exit -1
27818
27819 fi
27820
27821
27822 else
27823   USE_UDIS86=0
27824
27825 fi
27826
27827
27828 cat >>confdefs.h <<_ACEOF
27829 #define USE_UDIS86 $USE_UDIS86
27830 _ACEOF
27831
27832
27833
27834
27835
27836
27837
27838
27839 ac_header_dirent=no
27840 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27841   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27842 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27843 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27845   echo $ECHO_N "(cached) $ECHO_C" >&6
27846 else
27847   cat >conftest.$ac_ext <<_ACEOF
27848 /* confdefs.h.  */
27849 _ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h.  */
27853 #include <sys/types.h>
27854 #include <$ac_hdr>
27855
27856 int
27857 main ()
27858 {
27859 if ((DIR *) 0)
27860 return 0;
27861   ;
27862   return 0;
27863 }
27864 _ACEOF
27865 rm -f conftest.$ac_objext
27866 if { (ac_try="$ac_compile"
27867 case "(($ac_try" in
27868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869   *) ac_try_echo=$ac_try;;
27870 esac
27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872   (eval "$ac_compile") 2>conftest.er1
27873   ac_status=$?
27874   grep -v '^ *+' conftest.er1 >conftest.err
27875   rm -f conftest.er1
27876   cat conftest.err >&5
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); } &&
27879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880   { (case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885   (eval "$ac_try") 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; } &&
27889          { ac_try='test -s conftest.$ac_objext'
27890   { (case "(($ac_try" in
27891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892   *) ac_try_echo=$ac_try;;
27893 esac
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895   (eval "$ac_try") 2>&5
27896   ac_status=$?
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); }; }; then
27899   eval "$as_ac_Header=yes"
27900 else
27901   echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904         eval "$as_ac_Header=no"
27905 fi
27906
27907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908 fi
27909 ac_res=`eval echo '${'$as_ac_Header'}'`
27910                { echo "$as_me:$LINENO: result: $ac_res" >&5
27911 echo "${ECHO_T}$ac_res" >&6; }
27912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27913   cat >>confdefs.h <<_ACEOF
27914 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27915 _ACEOF
27916
27917 ac_header_dirent=$ac_hdr; break
27918 fi
27919
27920 done
27921 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27922 if test $ac_header_dirent = dirent.h; then
27923   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27925 if test "${ac_cv_search_opendir+set}" = set; then
27926   echo $ECHO_N "(cached) $ECHO_C" >&6
27927 else
27928   ac_func_search_save_LIBS=$LIBS
27929 cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935
27936 /* Override any GCC internal prototype to avoid an error.
27937    Use char because int might match the return type of a GCC
27938    builtin and then its argument prototype would still apply.  */
27939 #ifdef __cplusplus
27940 extern "C"
27941 #endif
27942 char opendir ();
27943 int
27944 main ()
27945 {
27946 return opendir ();
27947   ;
27948   return 0;
27949 }
27950 _ACEOF
27951 for ac_lib in '' dir; do
27952   if test -z "$ac_lib"; then
27953     ac_res="none required"
27954   else
27955     ac_res=-l$ac_lib
27956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27957   fi
27958   rm -f conftest.$ac_objext conftest$ac_exeext
27959 if { (ac_try="$ac_link"
27960 case "(($ac_try" in
27961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962   *) ac_try_echo=$ac_try;;
27963 esac
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965   (eval "$ac_link") 2>conftest.er1
27966   ac_status=$?
27967   grep -v '^ *+' conftest.er1 >conftest.err
27968   rm -f conftest.er1
27969   cat conftest.err >&5
27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); } &&
27972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973   { (case "(($ac_try" in
27974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975   *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978   (eval "$ac_try") 2>&5
27979   ac_status=$?
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); }; } &&
27982          { ac_try='test -s conftest$ac_exeext'
27983   { (case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988   (eval "$ac_try") 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; }; then
27992   ac_cv_search_opendir=$ac_res
27993 else
27994   echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
27996
27997
27998 fi
27999
28000 rm -f core conftest.err conftest.$ac_objext \
28001       conftest$ac_exeext
28002   if test "${ac_cv_search_opendir+set}" = set; then
28003   break
28004 fi
28005 done
28006 if test "${ac_cv_search_opendir+set}" = set; then
28007   :
28008 else
28009   ac_cv_search_opendir=no
28010 fi
28011 rm conftest.$ac_ext
28012 LIBS=$ac_func_search_save_LIBS
28013 fi
28014 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28015 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28016 ac_res=$ac_cv_search_opendir
28017 if test "$ac_res" != no; then
28018   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28019
28020 fi
28021
28022 else
28023   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28025 if test "${ac_cv_search_opendir+set}" = set; then
28026   echo $ECHO_N "(cached) $ECHO_C" >&6
28027 else
28028   ac_func_search_save_LIBS=$LIBS
28029 cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035
28036 /* Override any GCC internal prototype to avoid an error.
28037    Use char because int might match the return type of a GCC
28038    builtin and then its argument prototype would still apply.  */
28039 #ifdef __cplusplus
28040 extern "C"
28041 #endif
28042 char opendir ();
28043 int
28044 main ()
28045 {
28046 return opendir ();
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 for ac_lib in '' x; do
28052   if test -z "$ac_lib"; then
28053     ac_res="none required"
28054   else
28055     ac_res=-l$ac_lib
28056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28057   fi
28058   rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (ac_try="$ac_link"
28060 case "(($ac_try" in
28061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062   *) ac_try_echo=$ac_try;;
28063 esac
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065   (eval "$ac_link") 2>conftest.er1
28066   ac_status=$?
28067   grep -v '^ *+' conftest.er1 >conftest.err
28068   rm -f conftest.er1
28069   cat conftest.err >&5
28070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071   (exit $ac_status); } &&
28072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073   { (case "(($ac_try" in
28074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075   *) ac_try_echo=$ac_try;;
28076 esac
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078   (eval "$ac_try") 2>&5
28079   ac_status=$?
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); }; } &&
28082          { ac_try='test -s conftest$ac_exeext'
28083   { (case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_try") 2>&5
28089   ac_status=$?
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); }; }; then
28092   ac_cv_search_opendir=$ac_res
28093 else
28094   echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28096
28097
28098 fi
28099
28100 rm -f core conftest.err conftest.$ac_objext \
28101       conftest$ac_exeext
28102   if test "${ac_cv_search_opendir+set}" = set; then
28103   break
28104 fi
28105 done
28106 if test "${ac_cv_search_opendir+set}" = set; then
28107   :
28108 else
28109   ac_cv_search_opendir=no
28110 fi
28111 rm conftest.$ac_ext
28112 LIBS=$ac_func_search_save_LIBS
28113 fi
28114 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28115 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28116 ac_res=$ac_cv_search_opendir
28117 if test "$ac_res" != no; then
28118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28119
28120 fi
28121
28122 fi
28123
28124 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28125 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28126 if test "${ac_cv_header_mmap_anon+set}" = set; then
28127   echo $ECHO_N "(cached) $ECHO_C" >&6
28128 else
28129    ac_ext=c
28130 ac_cpp='$CPP $CPPFLAGS'
28131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28134
28135   cat >conftest.$ac_ext <<_ACEOF
28136 /* confdefs.h.  */
28137 _ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h.  */
28141 #include <sys/mman.h>
28142 #include <unistd.h>
28143 #include <fcntl.h>
28144 int
28145 main ()
28146 {
28147 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28148   ;
28149   return 0;
28150 }
28151 _ACEOF
28152 rm -f conftest.$ac_objext
28153 if { (ac_try="$ac_compile"
28154 case "(($ac_try" in
28155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156   *) ac_try_echo=$ac_try;;
28157 esac
28158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159   (eval "$ac_compile") 2>conftest.er1
28160   ac_status=$?
28161   grep -v '^ *+' conftest.er1 >conftest.err
28162   rm -f conftest.er1
28163   cat conftest.err >&5
28164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165   (exit $ac_status); } &&
28166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28167   { (case "(($ac_try" in
28168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169   *) ac_try_echo=$ac_try;;
28170 esac
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172   (eval "$ac_try") 2>&5
28173   ac_status=$?
28174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175   (exit $ac_status); }; } &&
28176          { ac_try='test -s conftest.$ac_objext'
28177   { (case "(($ac_try" in
28178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179   *) ac_try_echo=$ac_try;;
28180 esac
28181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182   (eval "$ac_try") 2>&5
28183   ac_status=$?
28184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185   (exit $ac_status); }; }; then
28186   ac_cv_header_mmap_anon=yes
28187 else
28188   echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28190
28191         ac_cv_header_mmap_anon=no
28192 fi
28193
28194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28195   ac_ext=c
28196 ac_cpp='$CPP $CPPFLAGS'
28197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28200
28201
28202 fi
28203 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28204 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28205 if test "$ac_cv_header_mmap_anon" = yes; then
28206
28207 cat >>confdefs.h <<\_ACEOF
28208 #define HAVE_MMAP_ANONYMOUS 1
28209 _ACEOF
28210
28211 fi
28212
28213 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28214 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28215 if test "${ac_cv_header_stat_broken+set}" = set; then
28216   echo $ECHO_N "(cached) $ECHO_C" >&6
28217 else
28218   cat >conftest.$ac_ext <<_ACEOF
28219 /* confdefs.h.  */
28220 _ACEOF
28221 cat confdefs.h >>conftest.$ac_ext
28222 cat >>conftest.$ac_ext <<_ACEOF
28223 /* end confdefs.h.  */
28224 #include <sys/types.h>
28225 #include <sys/stat.h>
28226
28227 #if defined S_ISBLK && defined S_IFDIR
28228 # if S_ISBLK (S_IFDIR)
28229 You lose.
28230 # endif
28231 #endif
28232
28233 #if defined S_ISBLK && defined S_IFCHR
28234 # if S_ISBLK (S_IFCHR)
28235 You lose.
28236 # endif
28237 #endif
28238
28239 #if defined S_ISLNK && defined S_IFREG
28240 # if S_ISLNK (S_IFREG)
28241 You lose.
28242 # endif
28243 #endif
28244
28245 #if defined S_ISSOCK && defined S_IFREG
28246 # if S_ISSOCK (S_IFREG)
28247 You lose.
28248 # endif
28249 #endif
28250
28251 _ACEOF
28252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28253   $EGREP "You lose" >/dev/null 2>&1; then
28254   ac_cv_header_stat_broken=yes
28255 else
28256   ac_cv_header_stat_broken=no
28257 fi
28258 rm -f conftest*
28259
28260 fi
28261 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28262 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28263 if test $ac_cv_header_stat_broken = yes; then
28264
28265 cat >>confdefs.h <<\_ACEOF
28266 #define STAT_MACROS_BROKEN 1
28267 _ACEOF
28268
28269 fi
28270
28271 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28272 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28273 if test "${ac_cv_header_stdc+set}" = set; then
28274   echo $ECHO_N "(cached) $ECHO_C" >&6
28275 else
28276   cat >conftest.$ac_ext <<_ACEOF
28277 /* confdefs.h.  */
28278 _ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h.  */
28282 #include <stdlib.h>
28283 #include <stdarg.h>
28284 #include <string.h>
28285 #include <float.h>
28286
28287 int
28288 main ()
28289 {
28290
28291   ;
28292   return 0;
28293 }
28294 _ACEOF
28295 rm -f conftest.$ac_objext
28296 if { (ac_try="$ac_compile"
28297 case "(($ac_try" in
28298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299   *) ac_try_echo=$ac_try;;
28300 esac
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302   (eval "$ac_compile") 2>conftest.er1
28303   ac_status=$?
28304   grep -v '^ *+' conftest.er1 >conftest.err
28305   rm -f conftest.er1
28306   cat conftest.err >&5
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); } &&
28309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28310   { (case "(($ac_try" in
28311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312   *) ac_try_echo=$ac_try;;
28313 esac
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315   (eval "$ac_try") 2>&5
28316   ac_status=$?
28317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318   (exit $ac_status); }; } &&
28319          { ac_try='test -s conftest.$ac_objext'
28320   { (case "(($ac_try" in
28321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322   *) ac_try_echo=$ac_try;;
28323 esac
28324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325   (eval "$ac_try") 2>&5
28326   ac_status=$?
28327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328   (exit $ac_status); }; }; then
28329   ac_cv_header_stdc=yes
28330 else
28331   echo "$as_me: failed program was:" >&5
28332 sed 's/^/| /' conftest.$ac_ext >&5
28333
28334         ac_cv_header_stdc=no
28335 fi
28336
28337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28338
28339 if test $ac_cv_header_stdc = yes; then
28340   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28341   cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h.  */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h.  */
28347 #include <string.h>
28348
28349 _ACEOF
28350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28351   $EGREP "memchr" >/dev/null 2>&1; then
28352   :
28353 else
28354   ac_cv_header_stdc=no
28355 fi
28356 rm -f conftest*
28357
28358 fi
28359
28360 if test $ac_cv_header_stdc = yes; then
28361   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28362   cat >conftest.$ac_ext <<_ACEOF
28363 /* confdefs.h.  */
28364 _ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h.  */
28368 #include <stdlib.h>
28369
28370 _ACEOF
28371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28372   $EGREP "free" >/dev/null 2>&1; then
28373   :
28374 else
28375   ac_cv_header_stdc=no
28376 fi
28377 rm -f conftest*
28378
28379 fi
28380
28381 if test $ac_cv_header_stdc = yes; then
28382   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28383   if test "$cross_compiling" = yes; then
28384   :
28385 else
28386   cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 #include <ctype.h>
28393 #include <stdlib.h>
28394 #if ((' ' & 0x0FF) == 0x020)
28395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28397 #else
28398 # define ISLOWER(c) \
28399                    (('a' <= (c) && (c) <= 'i') \
28400                      || ('j' <= (c) && (c) <= 'r') \
28401                      || ('s' <= (c) && (c) <= 'z'))
28402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28403 #endif
28404
28405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28406 int
28407 main ()
28408 {
28409   int i;
28410   for (i = 0; i < 256; i++)
28411     if (XOR (islower (i), ISLOWER (i))
28412         || toupper (i) != TOUPPER (i))
28413       return 2;
28414   return 0;
28415 }
28416 _ACEOF
28417 rm -f conftest$ac_exeext
28418 if { (ac_try="$ac_link"
28419 case "(($ac_try" in
28420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421   *) ac_try_echo=$ac_try;;
28422 esac
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424   (eval "$ac_link") 2>&5
28425   ac_status=$?
28426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28428   { (case "(($ac_try" in
28429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430   *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433   (eval "$ac_try") 2>&5
28434   ac_status=$?
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   :
28438 else
28439   echo "$as_me: program exited with status $ac_status" >&5
28440 echo "$as_me: failed program was:" >&5
28441 sed 's/^/| /' conftest.$ac_ext >&5
28442
28443 ( exit $ac_status )
28444 ac_cv_header_stdc=no
28445 fi
28446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28447 fi
28448
28449
28450 fi
28451 fi
28452 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28453 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28454 if test $ac_cv_header_stdc = yes; then
28455
28456 cat >>confdefs.h <<\_ACEOF
28457 #define STDC_HEADERS 1
28458 _ACEOF
28459
28460 fi
28461
28462 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28463 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28464 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28465   echo $ECHO_N "(cached) $ECHO_C" >&6
28466 else
28467   cat >conftest.$ac_ext <<_ACEOF
28468 /* confdefs.h.  */
28469 _ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h.  */
28473 #include <sys/types.h>
28474 #include <sys/wait.h>
28475 #ifndef WEXITSTATUS
28476 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28477 #endif
28478 #ifndef WIFEXITED
28479 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28480 #endif
28481
28482 int
28483 main ()
28484 {
28485   int s;
28486   wait (&s);
28487   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28488   ;
28489   return 0;
28490 }
28491 _ACEOF
28492 rm -f conftest.$ac_objext
28493 if { (ac_try="$ac_compile"
28494 case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_compile") 2>conftest.er1
28500   ac_status=$?
28501   grep -v '^ *+' conftest.er1 >conftest.err
28502   rm -f conftest.er1
28503   cat conftest.err >&5
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } &&
28506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28507   { (case "(($ac_try" in
28508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28509   *) ac_try_echo=$ac_try;;
28510 esac
28511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512   (eval "$ac_try") 2>&5
28513   ac_status=$?
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); }; } &&
28516          { ac_try='test -s conftest.$ac_objext'
28517   { (case "(($ac_try" in
28518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28519   *) ac_try_echo=$ac_try;;
28520 esac
28521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28522   (eval "$ac_try") 2>&5
28523   ac_status=$?
28524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525   (exit $ac_status); }; }; then
28526   ac_cv_header_sys_wait_h=yes
28527 else
28528   echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28530
28531         ac_cv_header_sys_wait_h=no
28532 fi
28533
28534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535 fi
28536 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28537 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28538 if test $ac_cv_header_sys_wait_h = yes; then
28539
28540 cat >>confdefs.h <<\_ACEOF
28541 #define HAVE_SYS_WAIT_H 1
28542 _ACEOF
28543
28544 fi
28545
28546 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28547 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28548 if test "${ac_cv_header_time+set}" = set; then
28549   echo $ECHO_N "(cached) $ECHO_C" >&6
28550 else
28551   cat >conftest.$ac_ext <<_ACEOF
28552 /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557 #include <sys/types.h>
28558 #include <sys/time.h>
28559 #include <time.h>
28560
28561 int
28562 main ()
28563 {
28564 if ((struct tm *) 0)
28565 return 0;
28566   ;
28567   return 0;
28568 }
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574   *) ac_try_echo=$ac_try;;
28575 esac
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577   (eval "$ac_compile") 2>conftest.er1
28578   ac_status=$?
28579   grep -v '^ *+' conftest.er1 >conftest.err
28580   rm -f conftest.er1
28581   cat conftest.err >&5
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); } &&
28584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28585   { (case "(($ac_try" in
28586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587   *) ac_try_echo=$ac_try;;
28588 esac
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590   (eval "$ac_try") 2>&5
28591   ac_status=$?
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); }; } &&
28594          { ac_try='test -s conftest.$ac_objext'
28595   { (case "(($ac_try" in
28596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597   *) ac_try_echo=$ac_try;;
28598 esac
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600   (eval "$ac_try") 2>&5
28601   ac_status=$?
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); }; }; then
28604   ac_cv_header_time=yes
28605 else
28606   echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609         ac_cv_header_time=no
28610 fi
28611
28612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28613 fi
28614 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28615 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28616 if test $ac_cv_header_time = yes; then
28617
28618 cat >>confdefs.h <<\_ACEOF
28619 #define TIME_WITH_SYS_TIME 1
28620 _ACEOF
28621
28622 fi
28623
28624
28625
28626
28627
28628
28629
28630
28631 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28632 do
28633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28635   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28638   echo $ECHO_N "(cached) $ECHO_C" >&6
28639 fi
28640 ac_res=`eval echo '${'$as_ac_Header'}'`
28641                { echo "$as_me:$LINENO: result: $ac_res" >&5
28642 echo "${ECHO_T}$ac_res" >&6; }
28643 else
28644   # Is the header compilable?
28645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28647 cat >conftest.$ac_ext <<_ACEOF
28648 /* confdefs.h.  */
28649 _ACEOF
28650 cat confdefs.h >>conftest.$ac_ext
28651 cat >>conftest.$ac_ext <<_ACEOF
28652 /* end confdefs.h.  */
28653 $ac_includes_default
28654 #include <$ac_header>
28655 _ACEOF
28656 rm -f conftest.$ac_objext
28657 if { (ac_try="$ac_compile"
28658 case "(($ac_try" in
28659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660   *) ac_try_echo=$ac_try;;
28661 esac
28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663   (eval "$ac_compile") 2>conftest.er1
28664   ac_status=$?
28665   grep -v '^ *+' conftest.er1 >conftest.err
28666   rm -f conftest.er1
28667   cat conftest.err >&5
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); } &&
28670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28671   { (case "(($ac_try" in
28672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673   *) ac_try_echo=$ac_try;;
28674 esac
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676   (eval "$ac_try") 2>&5
28677   ac_status=$?
28678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679   (exit $ac_status); }; } &&
28680          { ac_try='test -s conftest.$ac_objext'
28681   { (case "(($ac_try" in
28682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683   *) ac_try_echo=$ac_try;;
28684 esac
28685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28686   (eval "$ac_try") 2>&5
28687   ac_status=$?
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); }; }; then
28690   ac_header_compiler=yes
28691 else
28692   echo "$as_me: failed program was:" >&5
28693 sed 's/^/| /' conftest.$ac_ext >&5
28694
28695         ac_header_compiler=no
28696 fi
28697
28698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28700 echo "${ECHO_T}$ac_header_compiler" >&6; }
28701
28702 # Is the header present?
28703 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28705 cat >conftest.$ac_ext <<_ACEOF
28706 /* confdefs.h.  */
28707 _ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h.  */
28711 #include <$ac_header>
28712 _ACEOF
28713 if { (ac_try="$ac_cpp conftest.$ac_ext"
28714 case "(($ac_try" in
28715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716   *) ac_try_echo=$ac_try;;
28717 esac
28718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28720   ac_status=$?
28721   grep -v '^ *+' conftest.er1 >conftest.err
28722   rm -f conftest.er1
28723   cat conftest.err >&5
28724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725   (exit $ac_status); } >/dev/null; then
28726   if test -s conftest.err; then
28727     ac_cpp_err=$ac_c_preproc_warn_flag
28728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28729   else
28730     ac_cpp_err=
28731   fi
28732 else
28733   ac_cpp_err=yes
28734 fi
28735 if test -z "$ac_cpp_err"; then
28736   ac_header_preproc=yes
28737 else
28738   echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28740
28741   ac_header_preproc=no
28742 fi
28743
28744 rm -f conftest.err conftest.$ac_ext
28745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28746 echo "${ECHO_T}$ac_header_preproc" >&6; }
28747
28748 # So?  What about this header?
28749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28750   yes:no: )
28751     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28755     ac_header_preproc=yes
28756     ;;
28757   no:yes:* )
28758     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28760     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28761 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28762     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28764     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28765 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28768     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28770     ( cat <<\_ASBOX
28771 ## ----------------------------------- ##
28772 ## Report this to llvmbugs@cs.uiuc.edu ##
28773 ## ----------------------------------- ##
28774 _ASBOX
28775      ) | sed "s/^/$as_me: WARNING:     /" >&2
28776     ;;
28777 esac
28778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28781   echo $ECHO_N "(cached) $ECHO_C" >&6
28782 else
28783   eval "$as_ac_Header=\$ac_header_preproc"
28784 fi
28785 ac_res=`eval echo '${'$as_ac_Header'}'`
28786                { echo "$as_me:$LINENO: result: $ac_res" >&5
28787 echo "${ECHO_T}$ac_res" >&6; }
28788
28789 fi
28790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28791   cat >>confdefs.h <<_ACEOF
28792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28793 _ACEOF
28794
28795 fi
28796
28797 done
28798
28799
28800
28801
28802
28803
28804
28805 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28806 do
28807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28812   echo $ECHO_N "(cached) $ECHO_C" >&6
28813 fi
28814 ac_res=`eval echo '${'$as_ac_Header'}'`
28815                { echo "$as_me:$LINENO: result: $ac_res" >&5
28816 echo "${ECHO_T}$ac_res" >&6; }
28817 else
28818   # Is the header compilable?
28819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28821 cat >conftest.$ac_ext <<_ACEOF
28822 /* confdefs.h.  */
28823 _ACEOF
28824 cat confdefs.h >>conftest.$ac_ext
28825 cat >>conftest.$ac_ext <<_ACEOF
28826 /* end confdefs.h.  */
28827 $ac_includes_default
28828 #include <$ac_header>
28829 _ACEOF
28830 rm -f conftest.$ac_objext
28831 if { (ac_try="$ac_compile"
28832 case "(($ac_try" in
28833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834   *) ac_try_echo=$ac_try;;
28835 esac
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837   (eval "$ac_compile") 2>conftest.er1
28838   ac_status=$?
28839   grep -v '^ *+' conftest.er1 >conftest.err
28840   rm -f conftest.er1
28841   cat conftest.err >&5
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); } &&
28844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28845   { (case "(($ac_try" in
28846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847   *) ac_try_echo=$ac_try;;
28848 esac
28849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850   (eval "$ac_try") 2>&5
28851   ac_status=$?
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); }; } &&
28854          { ac_try='test -s conftest.$ac_objext'
28855   { (case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_try") 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; }; then
28864   ac_header_compiler=yes
28865 else
28866   echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28868
28869         ac_header_compiler=no
28870 fi
28871
28872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28874 echo "${ECHO_T}$ac_header_compiler" >&6; }
28875
28876 # Is the header present?
28877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28879 cat >conftest.$ac_ext <<_ACEOF
28880 /* confdefs.h.  */
28881 _ACEOF
28882 cat confdefs.h >>conftest.$ac_ext
28883 cat >>conftest.$ac_ext <<_ACEOF
28884 /* end confdefs.h.  */
28885 #include <$ac_header>
28886 _ACEOF
28887 if { (ac_try="$ac_cpp conftest.$ac_ext"
28888 case "(($ac_try" in
28889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890   *) ac_try_echo=$ac_try;;
28891 esac
28892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28894   ac_status=$?
28895   grep -v '^ *+' conftest.er1 >conftest.err
28896   rm -f conftest.er1
28897   cat conftest.err >&5
28898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899   (exit $ac_status); } >/dev/null; then
28900   if test -s conftest.err; then
28901     ac_cpp_err=$ac_c_preproc_warn_flag
28902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28903   else
28904     ac_cpp_err=
28905   fi
28906 else
28907   ac_cpp_err=yes
28908 fi
28909 if test -z "$ac_cpp_err"; then
28910   ac_header_preproc=yes
28911 else
28912   echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28914
28915   ac_header_preproc=no
28916 fi
28917
28918 rm -f conftest.err conftest.$ac_ext
28919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28920 echo "${ECHO_T}$ac_header_preproc" >&6; }
28921
28922 # So?  What about this header?
28923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28924   yes:no: )
28925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28929     ac_header_preproc=yes
28930     ;;
28931   no:yes:* )
28932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28944     ( cat <<\_ASBOX
28945 ## ----------------------------------- ##
28946 ## Report this to llvmbugs@cs.uiuc.edu ##
28947 ## ----------------------------------- ##
28948 _ASBOX
28949      ) | sed "s/^/$as_me: WARNING:     /" >&2
28950     ;;
28951 esac
28952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28955   echo $ECHO_N "(cached) $ECHO_C" >&6
28956 else
28957   eval "$as_ac_Header=\$ac_header_preproc"
28958 fi
28959 ac_res=`eval echo '${'$as_ac_Header'}'`
28960                { echo "$as_me:$LINENO: result: $ac_res" >&5
28961 echo "${ECHO_T}$ac_res" >&6; }
28962
28963 fi
28964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28965   cat >>confdefs.h <<_ACEOF
28966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28967 _ACEOF
28968
28969 fi
28970
28971 done
28972
28973
28974 for ac_header in windows.h
28975 do
28976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28981   echo $ECHO_N "(cached) $ECHO_C" >&6
28982 fi
28983 ac_res=`eval echo '${'$as_ac_Header'}'`
28984                { echo "$as_me:$LINENO: result: $ac_res" >&5
28985 echo "${ECHO_T}$ac_res" >&6; }
28986 else
28987   # Is the header compilable?
28988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28990 cat >conftest.$ac_ext <<_ACEOF
28991 /* confdefs.h.  */
28992 _ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h.  */
28996 $ac_includes_default
28997 #include <$ac_header>
28998 _ACEOF
28999 rm -f conftest.$ac_objext
29000 if { (ac_try="$ac_compile"
29001 case "(($ac_try" in
29002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003   *) ac_try_echo=$ac_try;;
29004 esac
29005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006   (eval "$ac_compile") 2>conftest.er1
29007   ac_status=$?
29008   grep -v '^ *+' conftest.er1 >conftest.err
29009   rm -f conftest.er1
29010   cat conftest.err >&5
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); } &&
29013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29014   { (case "(($ac_try" in
29015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016   *) ac_try_echo=$ac_try;;
29017 esac
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019   (eval "$ac_try") 2>&5
29020   ac_status=$?
29021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022   (exit $ac_status); }; } &&
29023          { ac_try='test -s conftest.$ac_objext'
29024   { (case "(($ac_try" in
29025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29026   *) ac_try_echo=$ac_try;;
29027 esac
29028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29029   (eval "$ac_try") 2>&5
29030   ac_status=$?
29031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032   (exit $ac_status); }; }; then
29033   ac_header_compiler=yes
29034 else
29035   echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29037
29038         ac_header_compiler=no
29039 fi
29040
29041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29043 echo "${ECHO_T}$ac_header_compiler" >&6; }
29044
29045 # Is the header present?
29046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29048 cat >conftest.$ac_ext <<_ACEOF
29049 /* confdefs.h.  */
29050 _ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h.  */
29054 #include <$ac_header>
29055 _ACEOF
29056 if { (ac_try="$ac_cpp conftest.$ac_ext"
29057 case "(($ac_try" in
29058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059   *) ac_try_echo=$ac_try;;
29060 esac
29061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29063   ac_status=$?
29064   grep -v '^ *+' conftest.er1 >conftest.err
29065   rm -f conftest.er1
29066   cat conftest.err >&5
29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068   (exit $ac_status); } >/dev/null; then
29069   if test -s conftest.err; then
29070     ac_cpp_err=$ac_c_preproc_warn_flag
29071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29072   else
29073     ac_cpp_err=
29074   fi
29075 else
29076   ac_cpp_err=yes
29077 fi
29078 if test -z "$ac_cpp_err"; then
29079   ac_header_preproc=yes
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084   ac_header_preproc=no
29085 fi
29086
29087 rm -f conftest.err conftest.$ac_ext
29088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29089 echo "${ECHO_T}$ac_header_preproc" >&6; }
29090
29091 # So?  What about this header?
29092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29093   yes:no: )
29094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29098     ac_header_preproc=yes
29099     ;;
29100   no:yes:* )
29101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29113     ( cat <<\_ASBOX
29114 ## ----------------------------------- ##
29115 ## Report this to llvmbugs@cs.uiuc.edu ##
29116 ## ----------------------------------- ##
29117 _ASBOX
29118      ) | sed "s/^/$as_me: WARNING:     /" >&2
29119     ;;
29120 esac
29121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29124   echo $ECHO_N "(cached) $ECHO_C" >&6
29125 else
29126   eval "$as_ac_Header=\$ac_header_preproc"
29127 fi
29128 ac_res=`eval echo '${'$as_ac_Header'}'`
29129                { echo "$as_me:$LINENO: result: $ac_res" >&5
29130 echo "${ECHO_T}$ac_res" >&6; }
29131
29132 fi
29133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29134   cat >>confdefs.h <<_ACEOF
29135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29136 _ACEOF
29137
29138 fi
29139
29140 done
29141
29142
29143
29144
29145
29146 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29147 do
29148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29153   echo $ECHO_N "(cached) $ECHO_C" >&6
29154 fi
29155 ac_res=`eval echo '${'$as_ac_Header'}'`
29156                { echo "$as_me:$LINENO: result: $ac_res" >&5
29157 echo "${ECHO_T}$ac_res" >&6; }
29158 else
29159   # Is the header compilable?
29160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29161 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
29169 #include <$ac_header>
29170 _ACEOF
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175   *) ac_try_echo=$ac_try;;
29176 esac
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178   (eval "$ac_compile") 2>conftest.er1
29179   ac_status=$?
29180   grep -v '^ *+' conftest.er1 >conftest.err
29181   rm -f conftest.er1
29182   cat conftest.err >&5
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); } &&
29185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29186   { (case "(($ac_try" in
29187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188   *) ac_try_echo=$ac_try;;
29189 esac
29190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191   (eval "$ac_try") 2>&5
29192   ac_status=$?
29193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194   (exit $ac_status); }; } &&
29195          { ac_try='test -s conftest.$ac_objext'
29196   { (case "(($ac_try" in
29197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198   *) ac_try_echo=$ac_try;;
29199 esac
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201   (eval "$ac_try") 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; }; then
29205   ac_header_compiler=yes
29206 else
29207   echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29209
29210         ac_header_compiler=no
29211 fi
29212
29213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29215 echo "${ECHO_T}$ac_header_compiler" >&6; }
29216
29217 # Is the header present?
29218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29220 cat >conftest.$ac_ext <<_ACEOF
29221 /* confdefs.h.  */
29222 _ACEOF
29223 cat confdefs.h >>conftest.$ac_ext
29224 cat >>conftest.$ac_ext <<_ACEOF
29225 /* end confdefs.h.  */
29226 #include <$ac_header>
29227 _ACEOF
29228 if { (ac_try="$ac_cpp conftest.$ac_ext"
29229 case "(($ac_try" in
29230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231   *) ac_try_echo=$ac_try;;
29232 esac
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29235   ac_status=$?
29236   grep -v '^ *+' conftest.er1 >conftest.err
29237   rm -f conftest.er1
29238   cat conftest.err >&5
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); } >/dev/null; then
29241   if test -s conftest.err; then
29242     ac_cpp_err=$ac_c_preproc_warn_flag
29243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29244   else
29245     ac_cpp_err=
29246   fi
29247 else
29248   ac_cpp_err=yes
29249 fi
29250 if test -z "$ac_cpp_err"; then
29251   ac_header_preproc=yes
29252 else
29253   echo "$as_me: failed program was:" >&5
29254 sed 's/^/| /' conftest.$ac_ext >&5
29255
29256   ac_header_preproc=no
29257 fi
29258
29259 rm -f conftest.err conftest.$ac_ext
29260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29261 echo "${ECHO_T}$ac_header_preproc" >&6; }
29262
29263 # So?  What about this header?
29264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29265   yes:no: )
29266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29270     ac_header_preproc=yes
29271     ;;
29272   no:yes:* )
29273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29285     ( cat <<\_ASBOX
29286 ## ----------------------------------- ##
29287 ## Report this to llvmbugs@cs.uiuc.edu ##
29288 ## ----------------------------------- ##
29289 _ASBOX
29290      ) | sed "s/^/$as_me: WARNING:     /" >&2
29291     ;;
29292 esac
29293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29296   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298   eval "$as_ac_Header=\$ac_header_preproc"
29299 fi
29300 ac_res=`eval echo '${'$as_ac_Header'}'`
29301                { echo "$as_me:$LINENO: result: $ac_res" >&5
29302 echo "${ECHO_T}$ac_res" >&6; }
29303
29304 fi
29305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29306   cat >>confdefs.h <<_ACEOF
29307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29308 _ACEOF
29309
29310 fi
29311
29312 done
29313
29314
29315
29316
29317 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29318 do
29319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29324   echo $ECHO_N "(cached) $ECHO_C" >&6
29325 fi
29326 ac_res=`eval echo '${'$as_ac_Header'}'`
29327                { echo "$as_me:$LINENO: result: $ac_res" >&5
29328 echo "${ECHO_T}$ac_res" >&6; }
29329 else
29330   # Is the header compilable?
29331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29333 cat >conftest.$ac_ext <<_ACEOF
29334 /* confdefs.h.  */
29335 _ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h.  */
29339 $ac_includes_default
29340 #include <$ac_header>
29341 _ACEOF
29342 rm -f conftest.$ac_objext
29343 if { (ac_try="$ac_compile"
29344 case "(($ac_try" in
29345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346   *) ac_try_echo=$ac_try;;
29347 esac
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349   (eval "$ac_compile") 2>conftest.er1
29350   ac_status=$?
29351   grep -v '^ *+' conftest.er1 >conftest.err
29352   rm -f conftest.er1
29353   cat conftest.err >&5
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); } &&
29356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29357   { (case "(($ac_try" in
29358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29359   *) ac_try_echo=$ac_try;;
29360 esac
29361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29362   (eval "$ac_try") 2>&5
29363   ac_status=$?
29364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365   (exit $ac_status); }; } &&
29366          { ac_try='test -s conftest.$ac_objext'
29367   { (case "(($ac_try" in
29368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29369   *) ac_try_echo=$ac_try;;
29370 esac
29371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29372   (eval "$ac_try") 2>&5
29373   ac_status=$?
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); }; }; then
29376   ac_header_compiler=yes
29377 else
29378   echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29380
29381         ac_header_compiler=no
29382 fi
29383
29384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29386 echo "${ECHO_T}$ac_header_compiler" >&6; }
29387
29388 # Is the header present?
29389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29391 cat >conftest.$ac_ext <<_ACEOF
29392 /* confdefs.h.  */
29393 _ACEOF
29394 cat confdefs.h >>conftest.$ac_ext
29395 cat >>conftest.$ac_ext <<_ACEOF
29396 /* end confdefs.h.  */
29397 #include <$ac_header>
29398 _ACEOF
29399 if { (ac_try="$ac_cpp conftest.$ac_ext"
29400 case "(($ac_try" in
29401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402   *) ac_try_echo=$ac_try;;
29403 esac
29404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29406   ac_status=$?
29407   grep -v '^ *+' conftest.er1 >conftest.err
29408   rm -f conftest.er1
29409   cat conftest.err >&5
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); } >/dev/null; then
29412   if test -s conftest.err; then
29413     ac_cpp_err=$ac_c_preproc_warn_flag
29414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29415   else
29416     ac_cpp_err=
29417   fi
29418 else
29419   ac_cpp_err=yes
29420 fi
29421 if test -z "$ac_cpp_err"; then
29422   ac_header_preproc=yes
29423 else
29424   echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29426
29427   ac_header_preproc=no
29428 fi
29429
29430 rm -f conftest.err conftest.$ac_ext
29431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29432 echo "${ECHO_T}$ac_header_preproc" >&6; }
29433
29434 # So?  What about this header?
29435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29436   yes:no: )
29437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29441     ac_header_preproc=yes
29442     ;;
29443   no:yes:* )
29444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29456     ( cat <<\_ASBOX
29457 ## ----------------------------------- ##
29458 ## Report this to llvmbugs@cs.uiuc.edu ##
29459 ## ----------------------------------- ##
29460 _ASBOX
29461      ) | sed "s/^/$as_me: WARNING:     /" >&2
29462     ;;
29463 esac
29464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29467   echo $ECHO_N "(cached) $ECHO_C" >&6
29468 else
29469   eval "$as_ac_Header=\$ac_header_preproc"
29470 fi
29471 ac_res=`eval echo '${'$as_ac_Header'}'`
29472                { echo "$as_me:$LINENO: result: $ac_res" >&5
29473 echo "${ECHO_T}$ac_res" >&6; }
29474
29475 fi
29476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29477   cat >>confdefs.h <<_ACEOF
29478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29479 _ACEOF
29480
29481 fi
29482
29483 done
29484
29485 if test "$ENABLE_THREADS" -eq 1 ; then
29486
29487 for ac_header in pthread.h
29488 do
29489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29491   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29494   echo $ECHO_N "(cached) $ECHO_C" >&6
29495 fi
29496 ac_res=`eval echo '${'$as_ac_Header'}'`
29497                { echo "$as_me:$LINENO: result: $ac_res" >&5
29498 echo "${ECHO_T}$ac_res" >&6; }
29499 else
29500   # Is the header compilable?
29501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29503 cat >conftest.$ac_ext <<_ACEOF
29504 /* confdefs.h.  */
29505 _ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h.  */
29509 $ac_includes_default
29510 #include <$ac_header>
29511 _ACEOF
29512 rm -f conftest.$ac_objext
29513 if { (ac_try="$ac_compile"
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_compile") 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); } &&
29526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29527   { (case "(($ac_try" in
29528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529   *) ac_try_echo=$ac_try;;
29530 esac
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532   (eval "$ac_try") 2>&5
29533   ac_status=$?
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); }; } &&
29536          { ac_try='test -s conftest.$ac_objext'
29537   { (case "(($ac_try" in
29538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29539   *) ac_try_echo=$ac_try;;
29540 esac
29541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29542   (eval "$ac_try") 2>&5
29543   ac_status=$?
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); }; }; then
29546   ac_header_compiler=yes
29547 else
29548   echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29550
29551         ac_header_compiler=no
29552 fi
29553
29554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29556 echo "${ECHO_T}$ac_header_compiler" >&6; }
29557
29558 # Is the header present?
29559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29561 cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567 #include <$ac_header>
29568 _ACEOF
29569 if { (ac_try="$ac_cpp conftest.$ac_ext"
29570 case "(($ac_try" in
29571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572   *) ac_try_echo=$ac_try;;
29573 esac
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29576   ac_status=$?
29577   grep -v '^ *+' conftest.er1 >conftest.err
29578   rm -f conftest.er1
29579   cat conftest.err >&5
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); } >/dev/null; then
29582   if test -s conftest.err; then
29583     ac_cpp_err=$ac_c_preproc_warn_flag
29584     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29585   else
29586     ac_cpp_err=
29587   fi
29588 else
29589   ac_cpp_err=yes
29590 fi
29591 if test -z "$ac_cpp_err"; then
29592   ac_header_preproc=yes
29593 else
29594   echo "$as_me: failed program was:" >&5
29595 sed 's/^/| /' conftest.$ac_ext >&5
29596
29597   ac_header_preproc=no
29598 fi
29599
29600 rm -f conftest.err conftest.$ac_ext
29601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29602 echo "${ECHO_T}$ac_header_preproc" >&6; }
29603
29604 # So?  What about this header?
29605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29606   yes:no: )
29607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29611     ac_header_preproc=yes
29612     ;;
29613   no:yes:* )
29614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29626     ( cat <<\_ASBOX
29627 ## ----------------------------------- ##
29628 ## Report this to llvmbugs@cs.uiuc.edu ##
29629 ## ----------------------------------- ##
29630 _ASBOX
29631      ) | sed "s/^/$as_me: WARNING:     /" >&2
29632     ;;
29633 esac
29634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29637   echo $ECHO_N "(cached) $ECHO_C" >&6
29638 else
29639   eval "$as_ac_Header=\$ac_header_preproc"
29640 fi
29641 ac_res=`eval echo '${'$as_ac_Header'}'`
29642                { echo "$as_me:$LINENO: result: $ac_res" >&5
29643 echo "${ECHO_T}$ac_res" >&6; }
29644
29645 fi
29646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29647   cat >>confdefs.h <<_ACEOF
29648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29649 _ACEOF
29650  HAVE_PTHREAD=1
29651
29652 else
29653   HAVE_PTHREAD=0
29654
29655 fi
29656
29657 done
29658
29659 else
29660   HAVE_PTHREAD=0
29661
29662 fi
29663
29664 if test -n "$have_libffi" ; then
29665
29666
29667 for ac_header in ffi.h ffi/ffi.h
29668 do
29669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29671   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29674   echo $ECHO_N "(cached) $ECHO_C" >&6
29675 fi
29676 ac_res=`eval echo '${'$as_ac_Header'}'`
29677                { echo "$as_me:$LINENO: result: $ac_res" >&5
29678 echo "${ECHO_T}$ac_res" >&6; }
29679 else
29680   # Is the header compilable?
29681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29683 cat >conftest.$ac_ext <<_ACEOF
29684 /* confdefs.h.  */
29685 _ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h.  */
29689 $ac_includes_default
29690 #include <$ac_header>
29691 _ACEOF
29692 rm -f conftest.$ac_objext
29693 if { (ac_try="$ac_compile"
29694 case "(($ac_try" in
29695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696   *) ac_try_echo=$ac_try;;
29697 esac
29698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699   (eval "$ac_compile") 2>conftest.er1
29700   ac_status=$?
29701   grep -v '^ *+' conftest.er1 >conftest.err
29702   rm -f conftest.er1
29703   cat conftest.err >&5
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); } &&
29706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29707   { (case "(($ac_try" in
29708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709   *) ac_try_echo=$ac_try;;
29710 esac
29711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712   (eval "$ac_try") 2>&5
29713   ac_status=$?
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); }; } &&
29716          { ac_try='test -s conftest.$ac_objext'
29717   { (case "(($ac_try" in
29718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719   *) ac_try_echo=$ac_try;;
29720 esac
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722   (eval "$ac_try") 2>&5
29723   ac_status=$?
29724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725   (exit $ac_status); }; }; then
29726   ac_header_compiler=yes
29727 else
29728   echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29730
29731         ac_header_compiler=no
29732 fi
29733
29734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29736 echo "${ECHO_T}$ac_header_compiler" >&6; }
29737
29738 # Is the header present?
29739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29741 cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h.  */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h.  */
29747 #include <$ac_header>
29748 _ACEOF
29749 if { (ac_try="$ac_cpp conftest.$ac_ext"
29750 case "(($ac_try" in
29751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752   *) ac_try_echo=$ac_try;;
29753 esac
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29756   ac_status=$?
29757   grep -v '^ *+' conftest.er1 >conftest.err
29758   rm -f conftest.er1
29759   cat conftest.err >&5
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); } >/dev/null; then
29762   if test -s conftest.err; then
29763     ac_cpp_err=$ac_c_preproc_warn_flag
29764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29765   else
29766     ac_cpp_err=
29767   fi
29768 else
29769   ac_cpp_err=yes
29770 fi
29771 if test -z "$ac_cpp_err"; then
29772   ac_header_preproc=yes
29773 else
29774   echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29776
29777   ac_header_preproc=no
29778 fi
29779
29780 rm -f conftest.err conftest.$ac_ext
29781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29782 echo "${ECHO_T}$ac_header_preproc" >&6; }
29783
29784 # So?  What about this header?
29785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29786   yes:no: )
29787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29791     ac_header_preproc=yes
29792     ;;
29793   no:yes:* )
29794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29806     ( cat <<\_ASBOX
29807 ## ----------------------------------- ##
29808 ## Report this to llvmbugs@cs.uiuc.edu ##
29809 ## ----------------------------------- ##
29810 _ASBOX
29811      ) | sed "s/^/$as_me: WARNING:     /" >&2
29812     ;;
29813 esac
29814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29817   echo $ECHO_N "(cached) $ECHO_C" >&6
29818 else
29819   eval "$as_ac_Header=\$ac_header_preproc"
29820 fi
29821 ac_res=`eval echo '${'$as_ac_Header'}'`
29822                { echo "$as_me:$LINENO: result: $ac_res" >&5
29823 echo "${ECHO_T}$ac_res" >&6; }
29824
29825 fi
29826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29827   cat >>confdefs.h <<_ACEOF
29828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29829 _ACEOF
29830  HAVE_FFI=1
29831
29832 fi
29833
29834 done
29835
29836 fi
29837
29838
29839
29840   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29841 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29842 if test "${ac_cv_huge_val_sanity+set}" = set; then
29843   echo $ECHO_N "(cached) $ECHO_C" >&6
29844 else
29845
29846     ac_ext=cpp
29847 ac_cpp='$CXXCPP $CPPFLAGS'
29848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29851
29852     CXXFLAGS=-pedantic
29853     if test "$cross_compiling" = yes; then
29854   ac_cv_huge_val_sanity=yes
29855 else
29856   cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h.  */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h.  */
29862 #include <math.h>
29863 int
29864 main ()
29865 {
29866 double x = HUGE_VAL; return x != x;
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 rm -f conftest$ac_exeext
29872 if { (ac_try="$ac_link"
29873 case "(($ac_try" in
29874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875   *) ac_try_echo=$ac_try;;
29876 esac
29877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878   (eval "$ac_link") 2>&5
29879   ac_status=$?
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29882   { (case "(($ac_try" in
29883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884   *) ac_try_echo=$ac_try;;
29885 esac
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887   (eval "$ac_try") 2>&5
29888   ac_status=$?
29889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890   (exit $ac_status); }; }; then
29891   ac_cv_huge_val_sanity=yes
29892 else
29893   echo "$as_me: program exited with status $ac_status" >&5
29894 echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897 ( exit $ac_status )
29898 ac_cv_huge_val_sanity=no
29899 fi
29900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29901 fi
29902
29903
29904     ac_ext=c
29905 ac_cpp='$CPP $CPPFLAGS'
29906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29909
29910
29911 fi
29912 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29913 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29914   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29915
29916
29917 { echo "$as_me:$LINENO: checking for pid_t" >&5
29918 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29919 if test "${ac_cv_type_pid_t+set}" = set; then
29920   echo $ECHO_N "(cached) $ECHO_C" >&6
29921 else
29922   cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928 $ac_includes_default
29929 typedef pid_t ac__type_new_;
29930 int
29931 main ()
29932 {
29933 if ((ac__type_new_ *) 0)
29934   return 0;
29935 if (sizeof (ac__type_new_))
29936   return 0;
29937   ;
29938   return 0;
29939 }
29940 _ACEOF
29941 rm -f conftest.$ac_objext
29942 if { (ac_try="$ac_compile"
29943 case "(($ac_try" in
29944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945   *) ac_try_echo=$ac_try;;
29946 esac
29947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948   (eval "$ac_compile") 2>conftest.er1
29949   ac_status=$?
29950   grep -v '^ *+' conftest.er1 >conftest.err
29951   rm -f conftest.er1
29952   cat conftest.err >&5
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); } &&
29955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29956   { (case "(($ac_try" in
29957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958   *) ac_try_echo=$ac_try;;
29959 esac
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961   (eval "$ac_try") 2>&5
29962   ac_status=$?
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); }; } &&
29965          { ac_try='test -s conftest.$ac_objext'
29966   { (case "(($ac_try" in
29967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968   *) ac_try_echo=$ac_try;;
29969 esac
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971   (eval "$ac_try") 2>&5
29972   ac_status=$?
29973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974   (exit $ac_status); }; }; then
29975   ac_cv_type_pid_t=yes
29976 else
29977   echo "$as_me: failed program was:" >&5
29978 sed 's/^/| /' conftest.$ac_ext >&5
29979
29980         ac_cv_type_pid_t=no
29981 fi
29982
29983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29984 fi
29985 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29986 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29987 if test $ac_cv_type_pid_t = yes; then
29988   :
29989 else
29990
29991 cat >>confdefs.h <<_ACEOF
29992 #define pid_t int
29993 _ACEOF
29994
29995 fi
29996
29997 { echo "$as_me:$LINENO: checking for size_t" >&5
29998 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29999 if test "${ac_cv_type_size_t+set}" = set; then
30000   echo $ECHO_N "(cached) $ECHO_C" >&6
30001 else
30002   cat >conftest.$ac_ext <<_ACEOF
30003 /* confdefs.h.  */
30004 _ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h.  */
30008 $ac_includes_default
30009 typedef size_t ac__type_new_;
30010 int
30011 main ()
30012 {
30013 if ((ac__type_new_ *) 0)
30014   return 0;
30015 if (sizeof (ac__type_new_))
30016   return 0;
30017   ;
30018   return 0;
30019 }
30020 _ACEOF
30021 rm -f conftest.$ac_objext
30022 if { (ac_try="$ac_compile"
30023 case "(($ac_try" in
30024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025   *) ac_try_echo=$ac_try;;
30026 esac
30027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028   (eval "$ac_compile") 2>conftest.er1
30029   ac_status=$?
30030   grep -v '^ *+' conftest.er1 >conftest.err
30031   rm -f conftest.er1
30032   cat conftest.err >&5
30033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034   (exit $ac_status); } &&
30035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30036   { (case "(($ac_try" in
30037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038   *) ac_try_echo=$ac_try;;
30039 esac
30040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041   (eval "$ac_try") 2>&5
30042   ac_status=$?
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); }; } &&
30045          { ac_try='test -s conftest.$ac_objext'
30046   { (case "(($ac_try" in
30047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048   *) ac_try_echo=$ac_try;;
30049 esac
30050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051   (eval "$ac_try") 2>&5
30052   ac_status=$?
30053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054   (exit $ac_status); }; }; then
30055   ac_cv_type_size_t=yes
30056 else
30057   echo "$as_me: failed program was:" >&5
30058 sed 's/^/| /' conftest.$ac_ext >&5
30059
30060         ac_cv_type_size_t=no
30061 fi
30062
30063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30064 fi
30065 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30066 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30067 if test $ac_cv_type_size_t = yes; then
30068   :
30069 else
30070
30071 cat >>confdefs.h <<_ACEOF
30072 #define size_t unsigned int
30073 _ACEOF
30074
30075 fi
30076
30077 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30078 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30079 if test "${ac_cv_type_signal+set}" = set; then
30080   echo $ECHO_N "(cached) $ECHO_C" >&6
30081 else
30082   cat >conftest.$ac_ext <<_ACEOF
30083 /* confdefs.h.  */
30084 _ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h.  */
30088 #include <sys/types.h>
30089 #include <signal.h>
30090
30091 int
30092 main ()
30093 {
30094 return *(signal (0, 0)) (0) == 1;
30095   ;
30096   return 0;
30097 }
30098 _ACEOF
30099 rm -f conftest.$ac_objext
30100 if { (ac_try="$ac_compile"
30101 case "(($ac_try" in
30102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103   *) ac_try_echo=$ac_try;;
30104 esac
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106   (eval "$ac_compile") 2>conftest.er1
30107   ac_status=$?
30108   grep -v '^ *+' conftest.er1 >conftest.err
30109   rm -f conftest.er1
30110   cat conftest.err >&5
30111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112   (exit $ac_status); } &&
30113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114   { (case "(($ac_try" in
30115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116   *) ac_try_echo=$ac_try;;
30117 esac
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119   (eval "$ac_try") 2>&5
30120   ac_status=$?
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); }; } &&
30123          { ac_try='test -s conftest.$ac_objext'
30124   { (case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_try") 2>&5
30130   ac_status=$?
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); }; }; then
30133   ac_cv_type_signal=int
30134 else
30135   echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30137
30138         ac_cv_type_signal=void
30139 fi
30140
30141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30142 fi
30143 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30144 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30145
30146 cat >>confdefs.h <<_ACEOF
30147 #define RETSIGTYPE $ac_cv_type_signal
30148 _ACEOF
30149
30150
30151 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30152 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30153 if test "${ac_cv_struct_tm+set}" = set; then
30154   echo $ECHO_N "(cached) $ECHO_C" >&6
30155 else
30156   cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h.  */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h.  */
30162 #include <sys/types.h>
30163 #include <time.h>
30164
30165 int
30166 main ()
30167 {
30168 struct tm *tp; tp->tm_sec;
30169   ;
30170   return 0;
30171 }
30172 _ACEOF
30173 rm -f conftest.$ac_objext
30174 if { (ac_try="$ac_compile"
30175 case "(($ac_try" in
30176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177   *) ac_try_echo=$ac_try;;
30178 esac
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180   (eval "$ac_compile") 2>conftest.er1
30181   ac_status=$?
30182   grep -v '^ *+' conftest.er1 >conftest.err
30183   rm -f conftest.er1
30184   cat conftest.err >&5
30185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186   (exit $ac_status); } &&
30187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30188   { (case "(($ac_try" in
30189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30190   *) ac_try_echo=$ac_try;;
30191 esac
30192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30193   (eval "$ac_try") 2>&5
30194   ac_status=$?
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); }; } &&
30197          { ac_try='test -s conftest.$ac_objext'
30198   { (case "(($ac_try" in
30199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200   *) ac_try_echo=$ac_try;;
30201 esac
30202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203   (eval "$ac_try") 2>&5
30204   ac_status=$?
30205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206   (exit $ac_status); }; }; then
30207   ac_cv_struct_tm=time.h
30208 else
30209   echo "$as_me: failed program was:" >&5
30210 sed 's/^/| /' conftest.$ac_ext >&5
30211
30212         ac_cv_struct_tm=sys/time.h
30213 fi
30214
30215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30216 fi
30217 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30218 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30219 if test $ac_cv_struct_tm = sys/time.h; then
30220
30221 cat >>confdefs.h <<\_ACEOF
30222 #define TM_IN_SYS_TIME 1
30223 _ACEOF
30224
30225 fi
30226
30227 { echo "$as_me:$LINENO: checking for int64_t" >&5
30228 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30229 if test "${ac_cv_type_int64_t+set}" = set; then
30230   echo $ECHO_N "(cached) $ECHO_C" >&6
30231 else
30232   cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h.  */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h.  */
30238 $ac_includes_default
30239 typedef int64_t ac__type_new_;
30240 int
30241 main ()
30242 {
30243 if ((ac__type_new_ *) 0)
30244   return 0;
30245 if (sizeof (ac__type_new_))
30246   return 0;
30247   ;
30248   return 0;
30249 }
30250 _ACEOF
30251 rm -f conftest.$ac_objext
30252 if { (ac_try="$ac_compile"
30253 case "(($ac_try" in
30254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255   *) ac_try_echo=$ac_try;;
30256 esac
30257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258   (eval "$ac_compile") 2>conftest.er1
30259   ac_status=$?
30260   grep -v '^ *+' conftest.er1 >conftest.err
30261   rm -f conftest.er1
30262   cat conftest.err >&5
30263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264   (exit $ac_status); } &&
30265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30266   { (case "(($ac_try" in
30267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268   *) ac_try_echo=$ac_try;;
30269 esac
30270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30271   (eval "$ac_try") 2>&5
30272   ac_status=$?
30273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274   (exit $ac_status); }; } &&
30275          { ac_try='test -s conftest.$ac_objext'
30276   { (case "(($ac_try" in
30277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278   *) ac_try_echo=$ac_try;;
30279 esac
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281   (eval "$ac_try") 2>&5
30282   ac_status=$?
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); }; }; then
30285   ac_cv_type_int64_t=yes
30286 else
30287   echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.$ac_ext >&5
30289
30290         ac_cv_type_int64_t=no
30291 fi
30292
30293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30294 fi
30295 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30296 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30297 if test $ac_cv_type_int64_t = yes; then
30298
30299 cat >>confdefs.h <<_ACEOF
30300 #define HAVE_INT64_T 1
30301 _ACEOF
30302
30303
30304 else
30305   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30306 echo "$as_me: error: Type int64_t required but not found" >&2;}
30307    { (exit 1); exit 1; }; }
30308 fi
30309
30310 { echo "$as_me:$LINENO: checking for uint64_t" >&5
30311 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30312 if test "${ac_cv_type_uint64_t+set}" = set; then
30313   echo $ECHO_N "(cached) $ECHO_C" >&6
30314 else
30315   cat >conftest.$ac_ext <<_ACEOF
30316 /* confdefs.h.  */
30317 _ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h.  */
30321 $ac_includes_default
30322 typedef uint64_t ac__type_new_;
30323 int
30324 main ()
30325 {
30326 if ((ac__type_new_ *) 0)
30327   return 0;
30328 if (sizeof (ac__type_new_))
30329   return 0;
30330   ;
30331   return 0;
30332 }
30333 _ACEOF
30334 rm -f conftest.$ac_objext
30335 if { (ac_try="$ac_compile"
30336 case "(($ac_try" in
30337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338   *) ac_try_echo=$ac_try;;
30339 esac
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341   (eval "$ac_compile") 2>conftest.er1
30342   ac_status=$?
30343   grep -v '^ *+' conftest.er1 >conftest.err
30344   rm -f conftest.er1
30345   cat conftest.err >&5
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); } &&
30348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30349   { (case "(($ac_try" in
30350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351   *) ac_try_echo=$ac_try;;
30352 esac
30353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354   (eval "$ac_try") 2>&5
30355   ac_status=$?
30356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357   (exit $ac_status); }; } &&
30358          { ac_try='test -s conftest.$ac_objext'
30359   { (case "(($ac_try" in
30360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361   *) ac_try_echo=$ac_try;;
30362 esac
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364   (eval "$ac_try") 2>&5
30365   ac_status=$?
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); }; }; then
30368   ac_cv_type_uint64_t=yes
30369 else
30370   echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30372
30373         ac_cv_type_uint64_t=no
30374 fi
30375
30376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30377 fi
30378 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30379 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30380 if test $ac_cv_type_uint64_t = yes; then
30381
30382 cat >>confdefs.h <<_ACEOF
30383 #define HAVE_UINT64_T 1
30384 _ACEOF
30385
30386
30387 else
30388   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30389 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30390 if test "${ac_cv_type_u_int64_t+set}" = set; then
30391   echo $ECHO_N "(cached) $ECHO_C" >&6
30392 else
30393   cat >conftest.$ac_ext <<_ACEOF
30394 /* confdefs.h.  */
30395 _ACEOF
30396 cat confdefs.h >>conftest.$ac_ext
30397 cat >>conftest.$ac_ext <<_ACEOF
30398 /* end confdefs.h.  */
30399 $ac_includes_default
30400 typedef u_int64_t ac__type_new_;
30401 int
30402 main ()
30403 {
30404 if ((ac__type_new_ *) 0)
30405   return 0;
30406 if (sizeof (ac__type_new_))
30407   return 0;
30408   ;
30409   return 0;
30410 }
30411 _ACEOF
30412 rm -f conftest.$ac_objext
30413 if { (ac_try="$ac_compile"
30414 case "(($ac_try" in
30415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416   *) ac_try_echo=$ac_try;;
30417 esac
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419   (eval "$ac_compile") 2>conftest.er1
30420   ac_status=$?
30421   grep -v '^ *+' conftest.er1 >conftest.err
30422   rm -f conftest.er1
30423   cat conftest.err >&5
30424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425   (exit $ac_status); } &&
30426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30427   { (case "(($ac_try" in
30428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429   *) ac_try_echo=$ac_try;;
30430 esac
30431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432   (eval "$ac_try") 2>&5
30433   ac_status=$?
30434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435   (exit $ac_status); }; } &&
30436          { ac_try='test -s conftest.$ac_objext'
30437   { (case "(($ac_try" in
30438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439   *) ac_try_echo=$ac_try;;
30440 esac
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442   (eval "$ac_try") 2>&5
30443   ac_status=$?
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); }; }; then
30446   ac_cv_type_u_int64_t=yes
30447 else
30448   echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30450
30451         ac_cv_type_u_int64_t=no
30452 fi
30453
30454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30455 fi
30456 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30457 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30458 if test $ac_cv_type_u_int64_t = yes; then
30459
30460 cat >>confdefs.h <<_ACEOF
30461 #define HAVE_U_INT64_T 1
30462 _ACEOF
30463
30464
30465 else
30466   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30467 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30468    { (exit 1); exit 1; }; }
30469 fi
30470
30471 fi
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30483 do
30484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30488   echo $ECHO_N "(cached) $ECHO_C" >&6
30489 else
30490   cat >conftest.$ac_ext <<_ACEOF
30491 /* confdefs.h.  */
30492 _ACEOF
30493 cat confdefs.h >>conftest.$ac_ext
30494 cat >>conftest.$ac_ext <<_ACEOF
30495 /* end confdefs.h.  */
30496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30498 #define $ac_func innocuous_$ac_func
30499
30500 /* System header to define __stub macros and hopefully few prototypes,
30501     which can conflict with char $ac_func (); below.
30502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30503     <limits.h> exists even on freestanding compilers.  */
30504
30505 #ifdef __STDC__
30506 # include <limits.h>
30507 #else
30508 # include <assert.h>
30509 #endif
30510
30511 #undef $ac_func
30512
30513 /* Override any GCC internal prototype to avoid an error.
30514    Use char because int might match the return type of a GCC
30515    builtin and then its argument prototype would still apply.  */
30516 #ifdef __cplusplus
30517 extern "C"
30518 #endif
30519 char $ac_func ();
30520 /* The GNU C library defines this for functions which it implements
30521     to always fail with ENOSYS.  Some functions are actually named
30522     something starting with __ and the normal name is an alias.  */
30523 #if defined __stub_$ac_func || defined __stub___$ac_func
30524 choke me
30525 #endif
30526
30527 int
30528 main ()
30529 {
30530 return $ac_func ();
30531   ;
30532   return 0;
30533 }
30534 _ACEOF
30535 rm -f conftest.$ac_objext conftest$ac_exeext
30536 if { (ac_try="$ac_link"
30537 case "(($ac_try" in
30538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539   *) ac_try_echo=$ac_try;;
30540 esac
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542   (eval "$ac_link") 2>conftest.er1
30543   ac_status=$?
30544   grep -v '^ *+' conftest.er1 >conftest.err
30545   rm -f conftest.er1
30546   cat conftest.err >&5
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); } &&
30549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30550   { (case "(($ac_try" in
30551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552   *) ac_try_echo=$ac_try;;
30553 esac
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555   (eval "$ac_try") 2>&5
30556   ac_status=$?
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); }; } &&
30559          { ac_try='test -s conftest$ac_exeext'
30560   { (case "(($ac_try" in
30561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30562   *) ac_try_echo=$ac_try;;
30563 esac
30564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30565   (eval "$ac_try") 2>&5
30566   ac_status=$?
30567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568   (exit $ac_status); }; }; then
30569   eval "$as_ac_var=yes"
30570 else
30571   echo "$as_me: failed program was:" >&5
30572 sed 's/^/| /' conftest.$ac_ext >&5
30573
30574         eval "$as_ac_var=no"
30575 fi
30576
30577 rm -f core conftest.err conftest.$ac_objext \
30578       conftest$ac_exeext conftest.$ac_ext
30579 fi
30580 ac_res=`eval echo '${'$as_ac_var'}'`
30581                { echo "$as_me:$LINENO: result: $ac_res" >&5
30582 echo "${ECHO_T}$ac_res" >&6; }
30583 if test `eval echo '${'$as_ac_var'}'` = yes; then
30584   cat >>confdefs.h <<_ACEOF
30585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586 _ACEOF
30587
30588 fi
30589 done
30590
30591
30592
30593
30594
30595 for ac_func in powf fmodf strtof round
30596 do
30597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30601   echo $ECHO_N "(cached) $ECHO_C" >&6
30602 else
30603   cat >conftest.$ac_ext <<_ACEOF
30604 /* confdefs.h.  */
30605 _ACEOF
30606 cat confdefs.h >>conftest.$ac_ext
30607 cat >>conftest.$ac_ext <<_ACEOF
30608 /* end confdefs.h.  */
30609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30611 #define $ac_func innocuous_$ac_func
30612
30613 /* System header to define __stub macros and hopefully few prototypes,
30614     which can conflict with char $ac_func (); below.
30615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30616     <limits.h> exists even on freestanding compilers.  */
30617
30618 #ifdef __STDC__
30619 # include <limits.h>
30620 #else
30621 # include <assert.h>
30622 #endif
30623
30624 #undef $ac_func
30625
30626 /* Override any GCC internal prototype to avoid an error.
30627    Use char because int might match the return type of a GCC
30628    builtin and then its argument prototype would still apply.  */
30629 #ifdef __cplusplus
30630 extern "C"
30631 #endif
30632 char $ac_func ();
30633 /* The GNU C library defines this for functions which it implements
30634     to always fail with ENOSYS.  Some functions are actually named
30635     something starting with __ and the normal name is an alias.  */
30636 #if defined __stub_$ac_func || defined __stub___$ac_func
30637 choke me
30638 #endif
30639
30640 int
30641 main ()
30642 {
30643 return $ac_func ();
30644   ;
30645   return 0;
30646 }
30647 _ACEOF
30648 rm -f conftest.$ac_objext conftest$ac_exeext
30649 if { (ac_try="$ac_link"
30650 case "(($ac_try" in
30651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652   *) ac_try_echo=$ac_try;;
30653 esac
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655   (eval "$ac_link") 2>conftest.er1
30656   ac_status=$?
30657   grep -v '^ *+' conftest.er1 >conftest.err
30658   rm -f conftest.er1
30659   cat conftest.err >&5
30660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661   (exit $ac_status); } &&
30662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30663   { (case "(($ac_try" in
30664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665   *) ac_try_echo=$ac_try;;
30666 esac
30667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30668   (eval "$ac_try") 2>&5
30669   ac_status=$?
30670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671   (exit $ac_status); }; } &&
30672          { ac_try='test -s conftest$ac_exeext'
30673   { (case "(($ac_try" in
30674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675   *) ac_try_echo=$ac_try;;
30676 esac
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678   (eval "$ac_try") 2>&5
30679   ac_status=$?
30680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681   (exit $ac_status); }; }; then
30682   eval "$as_ac_var=yes"
30683 else
30684   echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30686
30687         eval "$as_ac_var=no"
30688 fi
30689
30690 rm -f core conftest.err conftest.$ac_objext \
30691       conftest$ac_exeext conftest.$ac_ext
30692 fi
30693 ac_res=`eval echo '${'$as_ac_var'}'`
30694                { echo "$as_me:$LINENO: result: $ac_res" >&5
30695 echo "${ECHO_T}$ac_res" >&6; }
30696 if test `eval echo '${'$as_ac_var'}'` = yes; then
30697   cat >>confdefs.h <<_ACEOF
30698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30699 _ACEOF
30700
30701 fi
30702 done
30703
30704
30705
30706
30707
30708
30709 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30710 do
30711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30715   echo $ECHO_N "(cached) $ECHO_C" >&6
30716 else
30717   cat >conftest.$ac_ext <<_ACEOF
30718 /* confdefs.h.  */
30719 _ACEOF
30720 cat confdefs.h >>conftest.$ac_ext
30721 cat >>conftest.$ac_ext <<_ACEOF
30722 /* end confdefs.h.  */
30723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30725 #define $ac_func innocuous_$ac_func
30726
30727 /* System header to define __stub macros and hopefully few prototypes,
30728     which can conflict with char $ac_func (); below.
30729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30730     <limits.h> exists even on freestanding compilers.  */
30731
30732 #ifdef __STDC__
30733 # include <limits.h>
30734 #else
30735 # include <assert.h>
30736 #endif
30737
30738 #undef $ac_func
30739
30740 /* Override any GCC internal prototype to avoid an error.
30741    Use char because int might match the return type of a GCC
30742    builtin and then its argument prototype would still apply.  */
30743 #ifdef __cplusplus
30744 extern "C"
30745 #endif
30746 char $ac_func ();
30747 /* The GNU C library defines this for functions which it implements
30748     to always fail with ENOSYS.  Some functions are actually named
30749     something starting with __ and the normal name is an alias.  */
30750 #if defined __stub_$ac_func || defined __stub___$ac_func
30751 choke me
30752 #endif
30753
30754 int
30755 main ()
30756 {
30757 return $ac_func ();
30758   ;
30759   return 0;
30760 }
30761 _ACEOF
30762 rm -f conftest.$ac_objext conftest$ac_exeext
30763 if { (ac_try="$ac_link"
30764 case "(($ac_try" in
30765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30766   *) ac_try_echo=$ac_try;;
30767 esac
30768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30769   (eval "$ac_link") 2>conftest.er1
30770   ac_status=$?
30771   grep -v '^ *+' conftest.er1 >conftest.err
30772   rm -f conftest.er1
30773   cat conftest.err >&5
30774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775   (exit $ac_status); } &&
30776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30777   { (case "(($ac_try" in
30778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779   *) ac_try_echo=$ac_try;;
30780 esac
30781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782   (eval "$ac_try") 2>&5
30783   ac_status=$?
30784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785   (exit $ac_status); }; } &&
30786          { ac_try='test -s conftest$ac_exeext'
30787   { (case "(($ac_try" in
30788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789   *) ac_try_echo=$ac_try;;
30790 esac
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792   (eval "$ac_try") 2>&5
30793   ac_status=$?
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); }; }; then
30796   eval "$as_ac_var=yes"
30797 else
30798   echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30800
30801         eval "$as_ac_var=no"
30802 fi
30803
30804 rm -f core conftest.err conftest.$ac_objext \
30805       conftest$ac_exeext conftest.$ac_ext
30806 fi
30807 ac_res=`eval echo '${'$as_ac_var'}'`
30808                { echo "$as_me:$LINENO: result: $ac_res" >&5
30809 echo "${ECHO_T}$ac_res" >&6; }
30810 if test `eval echo '${'$as_ac_var'}'` = yes; then
30811   cat >>confdefs.h <<_ACEOF
30812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30813 _ACEOF
30814
30815 fi
30816 done
30817
30818
30819
30820
30821 for ac_func in isatty mkdtemp mkstemp
30822 do
30823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30827   echo $ECHO_N "(cached) $ECHO_C" >&6
30828 else
30829   cat >conftest.$ac_ext <<_ACEOF
30830 /* confdefs.h.  */
30831 _ACEOF
30832 cat confdefs.h >>conftest.$ac_ext
30833 cat >>conftest.$ac_ext <<_ACEOF
30834 /* end confdefs.h.  */
30835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30837 #define $ac_func innocuous_$ac_func
30838
30839 /* System header to define __stub macros and hopefully few prototypes,
30840     which can conflict with char $ac_func (); below.
30841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30842     <limits.h> exists even on freestanding compilers.  */
30843
30844 #ifdef __STDC__
30845 # include <limits.h>
30846 #else
30847 # include <assert.h>
30848 #endif
30849
30850 #undef $ac_func
30851
30852 /* Override any GCC internal prototype to avoid an error.
30853    Use char because int might match the return type of a GCC
30854    builtin and then its argument prototype would still apply.  */
30855 #ifdef __cplusplus
30856 extern "C"
30857 #endif
30858 char $ac_func ();
30859 /* The GNU C library defines this for functions which it implements
30860     to always fail with ENOSYS.  Some functions are actually named
30861     something starting with __ and the normal name is an alias.  */
30862 #if defined __stub_$ac_func || defined __stub___$ac_func
30863 choke me
30864 #endif
30865
30866 int
30867 main ()
30868 {
30869 return $ac_func ();
30870   ;
30871   return 0;
30872 }
30873 _ACEOF
30874 rm -f conftest.$ac_objext conftest$ac_exeext
30875 if { (ac_try="$ac_link"
30876 case "(($ac_try" in
30877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878   *) ac_try_echo=$ac_try;;
30879 esac
30880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881   (eval "$ac_link") 2>conftest.er1
30882   ac_status=$?
30883   grep -v '^ *+' conftest.er1 >conftest.err
30884   rm -f conftest.er1
30885   cat conftest.err >&5
30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887   (exit $ac_status); } &&
30888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30889   { (case "(($ac_try" in
30890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891   *) ac_try_echo=$ac_try;;
30892 esac
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894   (eval "$ac_try") 2>&5
30895   ac_status=$?
30896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897   (exit $ac_status); }; } &&
30898          { ac_try='test -s conftest$ac_exeext'
30899   { (case "(($ac_try" in
30900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901   *) ac_try_echo=$ac_try;;
30902 esac
30903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904   (eval "$ac_try") 2>&5
30905   ac_status=$?
30906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907   (exit $ac_status); }; }; then
30908   eval "$as_ac_var=yes"
30909 else
30910   echo "$as_me: failed program was:" >&5
30911 sed 's/^/| /' conftest.$ac_ext >&5
30912
30913         eval "$as_ac_var=no"
30914 fi
30915
30916 rm -f core conftest.err conftest.$ac_objext \
30917       conftest$ac_exeext conftest.$ac_ext
30918 fi
30919 ac_res=`eval echo '${'$as_ac_var'}'`
30920                { echo "$as_me:$LINENO: result: $ac_res" >&5
30921 echo "${ECHO_T}$ac_res" >&6; }
30922 if test `eval echo '${'$as_ac_var'}'` = yes; then
30923   cat >>confdefs.h <<_ACEOF
30924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30925 _ACEOF
30926
30927 fi
30928 done
30929
30930
30931
30932
30933
30934
30935
30936
30937 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30938 do
30939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30943   echo $ECHO_N "(cached) $ECHO_C" >&6
30944 else
30945   cat >conftest.$ac_ext <<_ACEOF
30946 /* confdefs.h.  */
30947 _ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h.  */
30951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30953 #define $ac_func innocuous_$ac_func
30954
30955 /* System header to define __stub macros and hopefully few prototypes,
30956     which can conflict with char $ac_func (); below.
30957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30958     <limits.h> exists even on freestanding compilers.  */
30959
30960 #ifdef __STDC__
30961 # include <limits.h>
30962 #else
30963 # include <assert.h>
30964 #endif
30965
30966 #undef $ac_func
30967
30968 /* Override any GCC internal prototype to avoid an error.
30969    Use char because int might match the return type of a GCC
30970    builtin and then its argument prototype would still apply.  */
30971 #ifdef __cplusplus
30972 extern "C"
30973 #endif
30974 char $ac_func ();
30975 /* The GNU C library defines this for functions which it implements
30976     to always fail with ENOSYS.  Some functions are actually named
30977     something starting with __ and the normal name is an alias.  */
30978 #if defined __stub_$ac_func || defined __stub___$ac_func
30979 choke me
30980 #endif
30981
30982 int
30983 main ()
30984 {
30985 return $ac_func ();
30986   ;
30987   return 0;
30988 }
30989 _ACEOF
30990 rm -f conftest.$ac_objext conftest$ac_exeext
30991 if { (ac_try="$ac_link"
30992 case "(($ac_try" in
30993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994   *) ac_try_echo=$ac_try;;
30995 esac
30996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997   (eval "$ac_link") 2>conftest.er1
30998   ac_status=$?
30999   grep -v '^ *+' conftest.er1 >conftest.err
31000   rm -f conftest.er1
31001   cat conftest.err >&5
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); } &&
31004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31005   { (case "(($ac_try" in
31006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007   *) ac_try_echo=$ac_try;;
31008 esac
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010   (eval "$ac_try") 2>&5
31011   ac_status=$?
31012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013   (exit $ac_status); }; } &&
31014          { ac_try='test -s conftest$ac_exeext'
31015   { (case "(($ac_try" in
31016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31017   *) ac_try_echo=$ac_try;;
31018 esac
31019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31020   (eval "$ac_try") 2>&5
31021   ac_status=$?
31022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023   (exit $ac_status); }; }; then
31024   eval "$as_ac_var=yes"
31025 else
31026   echo "$as_me: failed program was:" >&5
31027 sed 's/^/| /' conftest.$ac_ext >&5
31028
31029         eval "$as_ac_var=no"
31030 fi
31031
31032 rm -f core conftest.err conftest.$ac_objext \
31033       conftest$ac_exeext conftest.$ac_ext
31034 fi
31035 ac_res=`eval echo '${'$as_ac_var'}'`
31036                { echo "$as_me:$LINENO: result: $ac_res" >&5
31037 echo "${ECHO_T}$ac_res" >&6; }
31038 if test `eval echo '${'$as_ac_var'}'` = yes; then
31039   cat >>confdefs.h <<_ACEOF
31040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31041 _ACEOF
31042
31043 fi
31044 done
31045
31046
31047
31048
31049
31050 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31051 do
31052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31056   echo $ECHO_N "(cached) $ECHO_C" >&6
31057 else
31058   cat >conftest.$ac_ext <<_ACEOF
31059 /* confdefs.h.  */
31060 _ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h.  */
31064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31066 #define $ac_func innocuous_$ac_func
31067
31068 /* System header to define __stub macros and hopefully few prototypes,
31069     which can conflict with char $ac_func (); below.
31070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31071     <limits.h> exists even on freestanding compilers.  */
31072
31073 #ifdef __STDC__
31074 # include <limits.h>
31075 #else
31076 # include <assert.h>
31077 #endif
31078
31079 #undef $ac_func
31080
31081 /* Override any GCC internal prototype to avoid an error.
31082    Use char because int might match the return type of a GCC
31083    builtin and then its argument prototype would still apply.  */
31084 #ifdef __cplusplus
31085 extern "C"
31086 #endif
31087 char $ac_func ();
31088 /* The GNU C library defines this for functions which it implements
31089     to always fail with ENOSYS.  Some functions are actually named
31090     something starting with __ and the normal name is an alias.  */
31091 #if defined __stub_$ac_func || defined __stub___$ac_func
31092 choke me
31093 #endif
31094
31095 int
31096 main ()
31097 {
31098 return $ac_func ();
31099   ;
31100   return 0;
31101 }
31102 _ACEOF
31103 rm -f conftest.$ac_objext conftest$ac_exeext
31104 if { (ac_try="$ac_link"
31105 case "(($ac_try" in
31106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107   *) ac_try_echo=$ac_try;;
31108 esac
31109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110   (eval "$ac_link") 2>conftest.er1
31111   ac_status=$?
31112   grep -v '^ *+' conftest.er1 >conftest.err
31113   rm -f conftest.er1
31114   cat conftest.err >&5
31115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116   (exit $ac_status); } &&
31117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31118   { (case "(($ac_try" in
31119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120   *) ac_try_echo=$ac_try;;
31121 esac
31122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123   (eval "$ac_try") 2>&5
31124   ac_status=$?
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); }; } &&
31127          { ac_try='test -s conftest$ac_exeext'
31128   { (case "(($ac_try" in
31129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130   *) ac_try_echo=$ac_try;;
31131 esac
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133   (eval "$ac_try") 2>&5
31134   ac_status=$?
31135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136   (exit $ac_status); }; }; then
31137   eval "$as_ac_var=yes"
31138 else
31139   echo "$as_me: failed program was:" >&5
31140 sed 's/^/| /' conftest.$ac_ext >&5
31141
31142         eval "$as_ac_var=no"
31143 fi
31144
31145 rm -f core conftest.err conftest.$ac_objext \
31146       conftest$ac_exeext conftest.$ac_ext
31147 fi
31148 ac_res=`eval echo '${'$as_ac_var'}'`
31149                { echo "$as_me:$LINENO: result: $ac_res" >&5
31150 echo "${ECHO_T}$ac_res" >&6; }
31151 if test `eval echo '${'$as_ac_var'}'` = yes; then
31152   cat >>confdefs.h <<_ACEOF
31153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31154 _ACEOF
31155
31156 fi
31157 done
31158
31159
31160
31161
31162
31163 for ac_func in setjmp longjmp sigsetjmp siglongjmp
31164 do
31165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31169   echo $ECHO_N "(cached) $ECHO_C" >&6
31170 else
31171   cat >conftest.$ac_ext <<_ACEOF
31172 /* confdefs.h.  */
31173 _ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h.  */
31177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31179 #define $ac_func innocuous_$ac_func
31180
31181 /* System header to define __stub macros and hopefully few prototypes,
31182     which can conflict with char $ac_func (); below.
31183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31184     <limits.h> exists even on freestanding compilers.  */
31185
31186 #ifdef __STDC__
31187 # include <limits.h>
31188 #else
31189 # include <assert.h>
31190 #endif
31191
31192 #undef $ac_func
31193
31194 /* Override any GCC internal prototype to avoid an error.
31195    Use char because int might match the return type of a GCC
31196    builtin and then its argument prototype would still apply.  */
31197 #ifdef __cplusplus
31198 extern "C"
31199 #endif
31200 char $ac_func ();
31201 /* The GNU C library defines this for functions which it implements
31202     to always fail with ENOSYS.  Some functions are actually named
31203     something starting with __ and the normal name is an alias.  */
31204 #if defined __stub_$ac_func || defined __stub___$ac_func
31205 choke me
31206 #endif
31207
31208 int
31209 main ()
31210 {
31211 return $ac_func ();
31212   ;
31213   return 0;
31214 }
31215 _ACEOF
31216 rm -f conftest.$ac_objext conftest$ac_exeext
31217 if { (ac_try="$ac_link"
31218 case "(($ac_try" in
31219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31220   *) ac_try_echo=$ac_try;;
31221 esac
31222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31223   (eval "$ac_link") 2>conftest.er1
31224   ac_status=$?
31225   grep -v '^ *+' conftest.er1 >conftest.err
31226   rm -f conftest.er1
31227   cat conftest.err >&5
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); } &&
31230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31231   { (case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_try") 2>&5
31237   ac_status=$?
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); }; } &&
31240          { ac_try='test -s conftest$ac_exeext'
31241   { (case "(($ac_try" in
31242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243   *) ac_try_echo=$ac_try;;
31244 esac
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246   (eval "$ac_try") 2>&5
31247   ac_status=$?
31248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249   (exit $ac_status); }; }; then
31250   eval "$as_ac_var=yes"
31251 else
31252   echo "$as_me: failed program was:" >&5
31253 sed 's/^/| /' conftest.$ac_ext >&5
31254
31255         eval "$as_ac_var=no"
31256 fi
31257
31258 rm -f core conftest.err conftest.$ac_objext \
31259       conftest$ac_exeext conftest.$ac_ext
31260 fi
31261 ac_res=`eval echo '${'$as_ac_var'}'`
31262                { echo "$as_me:$LINENO: result: $ac_res" >&5
31263 echo "${ECHO_T}$ac_res" >&6; }
31264 if test `eval echo '${'$as_ac_var'}'` = yes; then
31265   cat >>confdefs.h <<_ACEOF
31266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31267 _ACEOF
31268
31269 fi
31270 done
31271
31272 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31273 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31274 if test "${llvm_cv_c_printf_a+set}" = set; then
31275   echo $ECHO_N "(cached) $ECHO_C" >&6
31276 else
31277   ac_ext=c
31278 ac_cpp='$CPP $CPPFLAGS'
31279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31282
31283  if test "$cross_compiling" = yes; then
31284   llvmac_cv_c_printf_a=no
31285 else
31286   cat >conftest.$ac_ext <<_ACEOF
31287
31288   /* confdefs.h.  */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h.  */
31293
31294 #include <stdio.h>
31295 #include <stdlib.h>
31296
31297 int
31298 main ()
31299 {
31300
31301 volatile double A, B;
31302 char Buffer[100];
31303 A = 1;
31304 A /= 10.0;
31305 sprintf(Buffer, "%a", A);
31306 B = atof(Buffer);
31307 if (A != B)
31308   return (1);
31309 if (A != 0x1.999999999999ap-4)
31310   return (1);
31311 return (0);
31312   ;
31313   return 0;
31314 }
31315 _ACEOF
31316 rm -f conftest$ac_exeext
31317 if { (ac_try="$ac_link"
31318 case "(($ac_try" in
31319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320   *) ac_try_echo=$ac_try;;
31321 esac
31322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323   (eval "$ac_link") 2>&5
31324   ac_status=$?
31325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31327   { (case "(($ac_try" in
31328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329   *) ac_try_echo=$ac_try;;
31330 esac
31331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332   (eval "$ac_try") 2>&5
31333   ac_status=$?
31334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335   (exit $ac_status); }; }; then
31336   llvm_cv_c_printf_a=yes
31337 else
31338   echo "$as_me: program exited with status $ac_status" >&5
31339 echo "$as_me: failed program was:" >&5
31340 sed 's/^/| /' conftest.$ac_ext >&5
31341
31342 ( exit $ac_status )
31343 llvmac_cv_c_printf_a=no
31344 fi
31345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31346 fi
31347
31348
31349  ac_ext=c
31350 ac_cpp='$CPP $CPPFLAGS'
31351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31354
31355 fi
31356 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31357 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31358  if test "$llvm_cv_c_printf_a" = "yes"; then
31359
31360 cat >>confdefs.h <<\_ACEOF
31361 #define HAVE_PRINTF_A 1
31362 _ACEOF
31363
31364  fi
31365
31366 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31367 # for constant arguments.  Useless!
31368 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31369 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31370 if test "${ac_cv_working_alloca_h+set}" = set; then
31371   echo $ECHO_N "(cached) $ECHO_C" >&6
31372 else
31373   cat >conftest.$ac_ext <<_ACEOF
31374 /* confdefs.h.  */
31375 _ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h.  */
31379 #include <alloca.h>
31380 int
31381 main ()
31382 {
31383 char *p = (char *) alloca (2 * sizeof (int));
31384                           if (p) return 0;
31385   ;
31386   return 0;
31387 }
31388 _ACEOF
31389 rm -f conftest.$ac_objext conftest$ac_exeext
31390 if { (ac_try="$ac_link"
31391 case "(($ac_try" in
31392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393   *) ac_try_echo=$ac_try;;
31394 esac
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396   (eval "$ac_link") 2>conftest.er1
31397   ac_status=$?
31398   grep -v '^ *+' conftest.er1 >conftest.err
31399   rm -f conftest.er1
31400   cat conftest.err >&5
31401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402   (exit $ac_status); } &&
31403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31404   { (case "(($ac_try" in
31405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406   *) ac_try_echo=$ac_try;;
31407 esac
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409   (eval "$ac_try") 2>&5
31410   ac_status=$?
31411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412   (exit $ac_status); }; } &&
31413          { ac_try='test -s conftest$ac_exeext'
31414   { (case "(($ac_try" in
31415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416   *) ac_try_echo=$ac_try;;
31417 esac
31418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419   (eval "$ac_try") 2>&5
31420   ac_status=$?
31421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422   (exit $ac_status); }; }; then
31423   ac_cv_working_alloca_h=yes
31424 else
31425   echo "$as_me: failed program was:" >&5
31426 sed 's/^/| /' conftest.$ac_ext >&5
31427
31428         ac_cv_working_alloca_h=no
31429 fi
31430
31431 rm -f core conftest.err conftest.$ac_objext \
31432       conftest$ac_exeext conftest.$ac_ext
31433 fi
31434 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31435 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31436 if test $ac_cv_working_alloca_h = yes; then
31437
31438 cat >>confdefs.h <<\_ACEOF
31439 #define HAVE_ALLOCA_H 1
31440 _ACEOF
31441
31442 fi
31443
31444 { echo "$as_me:$LINENO: checking for alloca" >&5
31445 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31446 if test "${ac_cv_func_alloca_works+set}" = set; then
31447   echo $ECHO_N "(cached) $ECHO_C" >&6
31448 else
31449   cat >conftest.$ac_ext <<_ACEOF
31450 /* confdefs.h.  */
31451 _ACEOF
31452 cat confdefs.h >>conftest.$ac_ext
31453 cat >>conftest.$ac_ext <<_ACEOF
31454 /* end confdefs.h.  */
31455 #ifdef __GNUC__
31456 # define alloca __builtin_alloca
31457 #else
31458 # ifdef _MSC_VER
31459 #  include <malloc.h>
31460 #  define alloca _alloca
31461 # else
31462 #  if HAVE_ALLOCA_H
31463 #   include <alloca.h>
31464 #  else
31465 #   ifdef _AIX
31466  #pragma alloca
31467 #   else
31468 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31469 char *alloca ();
31470 #    endif
31471 #   endif
31472 #  endif
31473 # endif
31474 #endif
31475
31476 int
31477 main ()
31478 {
31479 char *p = (char *) alloca (1);
31480                                     if (p) return 0;
31481   ;
31482   return 0;
31483 }
31484 _ACEOF
31485 rm -f conftest.$ac_objext conftest$ac_exeext
31486 if { (ac_try="$ac_link"
31487 case "(($ac_try" in
31488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489   *) ac_try_echo=$ac_try;;
31490 esac
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492   (eval "$ac_link") 2>conftest.er1
31493   ac_status=$?
31494   grep -v '^ *+' conftest.er1 >conftest.err
31495   rm -f conftest.er1
31496   cat conftest.err >&5
31497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498   (exit $ac_status); } &&
31499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31500   { (case "(($ac_try" in
31501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502   *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505   (eval "$ac_try") 2>&5
31506   ac_status=$?
31507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508   (exit $ac_status); }; } &&
31509          { ac_try='test -s conftest$ac_exeext'
31510   { (case "(($ac_try" in
31511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512   *) ac_try_echo=$ac_try;;
31513 esac
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515   (eval "$ac_try") 2>&5
31516   ac_status=$?
31517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518   (exit $ac_status); }; }; then
31519   ac_cv_func_alloca_works=yes
31520 else
31521   echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31523
31524         ac_cv_func_alloca_works=no
31525 fi
31526
31527 rm -f core conftest.err conftest.$ac_objext \
31528       conftest$ac_exeext conftest.$ac_ext
31529 fi
31530 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31531 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31532
31533 if test $ac_cv_func_alloca_works = yes; then
31534
31535 cat >>confdefs.h <<\_ACEOF
31536 #define HAVE_ALLOCA 1
31537 _ACEOF
31538
31539 else
31540   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31541 # that cause trouble.  Some versions do not even contain alloca or
31542 # contain a buggy version.  If you still want to use their alloca,
31543 # use ar to extract alloca.o from them instead of compiling alloca.c.
31544
31545 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31546
31547 cat >>confdefs.h <<\_ACEOF
31548 #define C_ALLOCA 1
31549 _ACEOF
31550
31551
31552 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31553 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31554 if test "${ac_cv_os_cray+set}" = set; then
31555   echo $ECHO_N "(cached) $ECHO_C" >&6
31556 else
31557   cat >conftest.$ac_ext <<_ACEOF
31558 /* confdefs.h.  */
31559 _ACEOF
31560 cat confdefs.h >>conftest.$ac_ext
31561 cat >>conftest.$ac_ext <<_ACEOF
31562 /* end confdefs.h.  */
31563 #if defined CRAY && ! defined CRAY2
31564 webecray
31565 #else
31566 wenotbecray
31567 #endif
31568
31569 _ACEOF
31570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31571   $EGREP "webecray" >/dev/null 2>&1; then
31572   ac_cv_os_cray=yes
31573 else
31574   ac_cv_os_cray=no
31575 fi
31576 rm -f conftest*
31577
31578 fi
31579 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31580 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31581 if test $ac_cv_os_cray = yes; then
31582   for ac_func in _getb67 GETB67 getb67; do
31583     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31587   echo $ECHO_N "(cached) $ECHO_C" >&6
31588 else
31589   cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h.  */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h.  */
31595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31597 #define $ac_func innocuous_$ac_func
31598
31599 /* System header to define __stub macros and hopefully few prototypes,
31600     which can conflict with char $ac_func (); below.
31601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31602     <limits.h> exists even on freestanding compilers.  */
31603
31604 #ifdef __STDC__
31605 # include <limits.h>
31606 #else
31607 # include <assert.h>
31608 #endif
31609
31610 #undef $ac_func
31611
31612 /* Override any GCC internal prototype to avoid an error.
31613    Use char because int might match the return type of a GCC
31614    builtin and then its argument prototype would still apply.  */
31615 #ifdef __cplusplus
31616 extern "C"
31617 #endif
31618 char $ac_func ();
31619 /* The GNU C library defines this for functions which it implements
31620     to always fail with ENOSYS.  Some functions are actually named
31621     something starting with __ and the normal name is an alias.  */
31622 #if defined __stub_$ac_func || defined __stub___$ac_func
31623 choke me
31624 #endif
31625
31626 int
31627 main ()
31628 {
31629 return $ac_func ();
31630   ;
31631   return 0;
31632 }
31633 _ACEOF
31634 rm -f conftest.$ac_objext conftest$ac_exeext
31635 if { (ac_try="$ac_link"
31636 case "(($ac_try" in
31637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638   *) ac_try_echo=$ac_try;;
31639 esac
31640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641   (eval "$ac_link") 2>conftest.er1
31642   ac_status=$?
31643   grep -v '^ *+' conftest.er1 >conftest.err
31644   rm -f conftest.er1
31645   cat conftest.err >&5
31646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647   (exit $ac_status); } &&
31648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31649   { (case "(($ac_try" in
31650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651   *) ac_try_echo=$ac_try;;
31652 esac
31653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654   (eval "$ac_try") 2>&5
31655   ac_status=$?
31656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657   (exit $ac_status); }; } &&
31658          { ac_try='test -s conftest$ac_exeext'
31659   { (case "(($ac_try" in
31660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31661   *) ac_try_echo=$ac_try;;
31662 esac
31663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31664   (eval "$ac_try") 2>&5
31665   ac_status=$?
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); }; }; then
31668   eval "$as_ac_var=yes"
31669 else
31670   echo "$as_me: failed program was:" >&5
31671 sed 's/^/| /' conftest.$ac_ext >&5
31672
31673         eval "$as_ac_var=no"
31674 fi
31675
31676 rm -f core conftest.err conftest.$ac_objext \
31677       conftest$ac_exeext conftest.$ac_ext
31678 fi
31679 ac_res=`eval echo '${'$as_ac_var'}'`
31680                { echo "$as_me:$LINENO: result: $ac_res" >&5
31681 echo "${ECHO_T}$ac_res" >&6; }
31682 if test `eval echo '${'$as_ac_var'}'` = yes; then
31683
31684 cat >>confdefs.h <<_ACEOF
31685 #define CRAY_STACKSEG_END $ac_func
31686 _ACEOF
31687
31688     break
31689 fi
31690
31691   done
31692 fi
31693
31694 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31695 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31696 if test "${ac_cv_c_stack_direction+set}" = set; then
31697   echo $ECHO_N "(cached) $ECHO_C" >&6
31698 else
31699   if test "$cross_compiling" = yes; then
31700   ac_cv_c_stack_direction=0
31701 else
31702   cat >conftest.$ac_ext <<_ACEOF
31703 /* confdefs.h.  */
31704 _ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h.  */
31708 $ac_includes_default
31709 int
31710 find_stack_direction ()
31711 {
31712   static char *addr = 0;
31713   auto char dummy;
31714   if (addr == 0)
31715     {
31716       addr = &dummy;
31717       return find_stack_direction ();
31718     }
31719   else
31720     return (&dummy > addr) ? 1 : -1;
31721 }
31722
31723 int
31724 main ()
31725 {
31726   return find_stack_direction () < 0;
31727 }
31728 _ACEOF
31729 rm -f conftest$ac_exeext
31730 if { (ac_try="$ac_link"
31731 case "(($ac_try" in
31732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733   *) ac_try_echo=$ac_try;;
31734 esac
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736   (eval "$ac_link") 2>&5
31737   ac_status=$?
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31740   { (case "(($ac_try" in
31741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742   *) ac_try_echo=$ac_try;;
31743 esac
31744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745   (eval "$ac_try") 2>&5
31746   ac_status=$?
31747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748   (exit $ac_status); }; }; then
31749   ac_cv_c_stack_direction=1
31750 else
31751   echo "$as_me: program exited with status $ac_status" >&5
31752 echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31754
31755 ( exit $ac_status )
31756 ac_cv_c_stack_direction=-1
31757 fi
31758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31759 fi
31760
31761
31762 fi
31763 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31764 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31765
31766 cat >>confdefs.h <<_ACEOF
31767 #define STACK_DIRECTION $ac_cv_c_stack_direction
31768 _ACEOF
31769
31770
31771 fi
31772
31773
31774 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31775 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31776 if test "${ac_cv_func_rand48+set}" = set; then
31777   echo $ECHO_N "(cached) $ECHO_C" >&6
31778 else
31779   ac_ext=cpp
31780 ac_cpp='$CXXCPP $CPPFLAGS'
31781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31784
31785    cat >conftest.$ac_ext <<_ACEOF
31786 /* confdefs.h.  */
31787 _ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h.  */
31791 #include <stdlib.h>
31792 int
31793 main ()
31794 {
31795 srand48(0);lrand48();drand48();
31796   ;
31797   return 0;
31798 }
31799 _ACEOF
31800 rm -f conftest.$ac_objext
31801 if { (ac_try="$ac_compile"
31802 case "(($ac_try" in
31803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804   *) ac_try_echo=$ac_try;;
31805 esac
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807   (eval "$ac_compile") 2>conftest.er1
31808   ac_status=$?
31809   grep -v '^ *+' conftest.er1 >conftest.err
31810   rm -f conftest.er1
31811   cat conftest.err >&5
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); } &&
31814          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31815   { (case "(($ac_try" in
31816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817   *) ac_try_echo=$ac_try;;
31818 esac
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820   (eval "$ac_try") 2>&5
31821   ac_status=$?
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); }; } &&
31824          { ac_try='test -s conftest.$ac_objext'
31825   { (case "(($ac_try" in
31826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827   *) ac_try_echo=$ac_try;;
31828 esac
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830   (eval "$ac_try") 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; }; then
31834   ac_cv_func_rand48=yes
31835 else
31836   echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839         ac_cv_func_rand48=no
31840 fi
31841
31842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31843   ac_ext=c
31844 ac_cpp='$CPP $CPPFLAGS'
31845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31848
31849 fi
31850 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31851 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31852
31853 if test "$ac_cv_func_rand48" = "yes" ; then
31854
31855 cat >>confdefs.h <<\_ACEOF
31856 #define HAVE_RAND48 1
31857 _ACEOF
31858
31859 fi
31860
31861
31862 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31863 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31864 if test "${ac_cv_cxx_namespaces+set}" = set; then
31865   echo $ECHO_N "(cached) $ECHO_C" >&6
31866 else
31867   ac_ext=cpp
31868 ac_cpp='$CXXCPP $CPPFLAGS'
31869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31872
31873  cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879 namespace Outer { namespace Inner { int i = 0; }}
31880 int
31881 main ()
31882 {
31883 using namespace Outer::Inner; return i;
31884   ;
31885   return 0;
31886 }
31887 _ACEOF
31888 rm -f conftest.$ac_objext
31889 if { (ac_try="$ac_compile"
31890 case "(($ac_try" in
31891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892   *) ac_try_echo=$ac_try;;
31893 esac
31894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895   (eval "$ac_compile") 2>conftest.er1
31896   ac_status=$?
31897   grep -v '^ *+' conftest.er1 >conftest.err
31898   rm -f conftest.er1
31899   cat conftest.err >&5
31900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901   (exit $ac_status); } &&
31902          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31903   { (case "(($ac_try" in
31904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905   *) ac_try_echo=$ac_try;;
31906 esac
31907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908   (eval "$ac_try") 2>&5
31909   ac_status=$?
31910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); }; } &&
31912          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
31919   ac_status=$?
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); }; }; then
31922   ac_cv_cxx_namespaces=yes
31923 else
31924   echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31926
31927         ac_cv_cxx_namespaces=no
31928 fi
31929
31930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31931  ac_ext=c
31932 ac_cpp='$CPP $CPPFLAGS'
31933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31936
31937
31938 fi
31939 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31940 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31941 if test "$ac_cv_cxx_namespaces" = yes; then
31942
31943 cat >>confdefs.h <<\_ACEOF
31944 #define HAVE_NAMESPACES
31945 _ACEOF
31946
31947 fi
31948
31949 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31950 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31951 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31952   echo $ECHO_N "(cached) $ECHO_C" >&6
31953 else
31954
31955   ac_ext=cpp
31956 ac_cpp='$CXXCPP $CPPFLAGS'
31957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31960
31961   cat >conftest.$ac_ext <<_ACEOF
31962 /* confdefs.h.  */
31963 _ACEOF
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h.  */
31967 #include <ext/hash_map>
31968 #ifdef HAVE_NAMESPACES
31969 using namespace std;
31970 #endif
31971 int
31972 main ()
31973 {
31974 hash_map<int, int> t;
31975   ;
31976   return 0;
31977 }
31978 _ACEOF
31979 rm -f conftest.$ac_objext
31980 if { (ac_try="$ac_compile"
31981 case "(($ac_try" in
31982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31983   *) ac_try_echo=$ac_try;;
31984 esac
31985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31986   (eval "$ac_compile") 2>conftest.er1
31987   ac_status=$?
31988   grep -v '^ *+' conftest.er1 >conftest.err
31989   rm -f conftest.er1
31990   cat conftest.err >&5
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); } &&
31993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31994   { (case "(($ac_try" in
31995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996   *) ac_try_echo=$ac_try;;
31997 esac
31998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31999   (eval "$ac_try") 2>&5
32000   ac_status=$?
32001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002   (exit $ac_status); }; } &&
32003          { ac_try='test -s conftest.$ac_objext'
32004   { (case "(($ac_try" in
32005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006   *) ac_try_echo=$ac_try;;
32007 esac
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009   (eval "$ac_try") 2>&5
32010   ac_status=$?
32011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012   (exit $ac_status); }; }; then
32013   ac_cv_cxx_have_std_ext_hash_map=yes
32014 else
32015   echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32017
32018         ac_cv_cxx_have_std_ext_hash_map=no
32019 fi
32020
32021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32022   ac_ext=c
32023 ac_cpp='$CPP $CPPFLAGS'
32024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32027
32028 fi
32029 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32030 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32031  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32032  then
32033
32034 cat >>confdefs.h <<\_ACEOF
32035 #define HAVE_STD_EXT_HASH_MAP 1
32036 _ACEOF
32037
32038  else
32039
32040 cat >>confdefs.h <<\_ACEOF
32041 #define HAVE_STD_EXT_HASH_MAP 0
32042 _ACEOF
32043
32044  fi
32045
32046  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32047 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32048 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32049   echo $ECHO_N "(cached) $ECHO_C" >&6
32050 else
32051
32052   ac_ext=cpp
32053 ac_cpp='$CXXCPP $CPPFLAGS'
32054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32057
32058   cat >conftest.$ac_ext <<_ACEOF
32059 /* confdefs.h.  */
32060 _ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h.  */
32064 #include <ext/hash_map>
32065 #ifdef HAVE_NAMESPACES
32066 using namespace __gnu_cxx;
32067 #endif
32068 int
32069 main ()
32070 {
32071 hash_map<int,int> t;
32072   ;
32073   return 0;
32074 }
32075 _ACEOF
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080   *) ac_try_echo=$ac_try;;
32081 esac
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083   (eval "$ac_compile") 2>conftest.er1
32084   ac_status=$?
32085   grep -v '^ *+' conftest.er1 >conftest.err
32086   rm -f conftest.er1
32087   cat conftest.err >&5
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); } &&
32090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32091   { (case "(($ac_try" in
32092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093   *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096   (eval "$ac_try") 2>&5
32097   ac_status=$?
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); }; } &&
32100          { ac_try='test -s conftest.$ac_objext'
32101   { (case "(($ac_try" in
32102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103   *) ac_try_echo=$ac_try;;
32104 esac
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106   (eval "$ac_try") 2>&5
32107   ac_status=$?
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); }; }; then
32110   ac_cv_cxx_have_gnu_ext_hash_map=yes
32111 else
32112   echo "$as_me: failed program was:" >&5
32113 sed 's/^/| /' conftest.$ac_ext >&5
32114
32115         ac_cv_cxx_have_gnu_ext_hash_map=no
32116 fi
32117
32118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32119   ac_ext=c
32120 ac_cpp='$CPP $CPPFLAGS'
32121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32124
32125 fi
32126 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32127 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32128  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32129  then
32130
32131 cat >>confdefs.h <<\_ACEOF
32132 #define HAVE_GNU_EXT_HASH_MAP 1
32133 _ACEOF
32134
32135  else
32136
32137 cat >>confdefs.h <<\_ACEOF
32138 #define HAVE_GNU_EXT_HASH_MAP 0
32139 _ACEOF
32140
32141  fi
32142
32143  { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32144 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32145 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32146   echo $ECHO_N "(cached) $ECHO_C" >&6
32147 else
32148
32149   ac_ext=cpp
32150 ac_cpp='$CXXCPP $CPPFLAGS'
32151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32154
32155   cat >conftest.$ac_ext <<_ACEOF
32156 /* confdefs.h.  */
32157 _ACEOF
32158 cat confdefs.h >>conftest.$ac_ext
32159 cat >>conftest.$ac_ext <<_ACEOF
32160 /* end confdefs.h.  */
32161 #include <hash_map>
32162 int
32163 main ()
32164 {
32165 hash_map<int,int> t;
32166   ;
32167   return 0;
32168 }
32169 _ACEOF
32170 rm -f conftest.$ac_objext
32171 if { (ac_try="$ac_compile"
32172 case "(($ac_try" in
32173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174   *) ac_try_echo=$ac_try;;
32175 esac
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177   (eval "$ac_compile") 2>conftest.er1
32178   ac_status=$?
32179   grep -v '^ *+' conftest.er1 >conftest.err
32180   rm -f conftest.er1
32181   cat conftest.err >&5
32182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); } &&
32184          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32185   { (case "(($ac_try" in
32186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187   *) ac_try_echo=$ac_try;;
32188 esac
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190   (eval "$ac_try") 2>&5
32191   ac_status=$?
32192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193   (exit $ac_status); }; } &&
32194          { ac_try='test -s conftest.$ac_objext'
32195   { (case "(($ac_try" in
32196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197   *) ac_try_echo=$ac_try;;
32198 esac
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200   (eval "$ac_try") 2>&5
32201   ac_status=$?
32202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203   (exit $ac_status); }; }; then
32204   ac_cv_cxx_have_global_hash_map=yes
32205 else
32206   echo "$as_me: failed program was:" >&5
32207 sed 's/^/| /' conftest.$ac_ext >&5
32208
32209         ac_cv_cxx_have_global_hash_map=no
32210 fi
32211
32212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213   ac_ext=c
32214 ac_cpp='$CPP $CPPFLAGS'
32215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32218
32219 fi
32220 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32221 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32222  if test "$ac_cv_cxx_have_global_hash_map" = yes
32223  then
32224
32225 cat >>confdefs.h <<\_ACEOF
32226 #define HAVE_GLOBAL_HASH_MAP 1
32227 _ACEOF
32228
32229  else
32230
32231 cat >>confdefs.h <<\_ACEOF
32232 #define HAVE_GLOBAL_HASH_MAP 0
32233 _ACEOF
32234
32235  fi
32236
32237 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32238 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32239 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32240   echo $ECHO_N "(cached) $ECHO_C" >&6
32241 else
32242
32243   ac_ext=cpp
32244 ac_cpp='$CXXCPP $CPPFLAGS'
32245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32248
32249   cat >conftest.$ac_ext <<_ACEOF
32250 /* confdefs.h.  */
32251 _ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h.  */
32255 #include <ext/hash_set>
32256 #ifdef HAVE_NAMESPACES
32257 using namespace std;
32258 #endif
32259 int
32260 main ()
32261 {
32262 hash_set<int> t;
32263   ;
32264   return 0;
32265 }
32266 _ACEOF
32267 rm -f conftest.$ac_objext
32268 if { (ac_try="$ac_compile"
32269 case "(($ac_try" in
32270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271   *) ac_try_echo=$ac_try;;
32272 esac
32273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274   (eval "$ac_compile") 2>conftest.er1
32275   ac_status=$?
32276   grep -v '^ *+' conftest.er1 >conftest.err
32277   rm -f conftest.er1
32278   cat conftest.err >&5
32279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280   (exit $ac_status); } &&
32281          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32282   { (case "(($ac_try" in
32283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284   *) ac_try_echo=$ac_try;;
32285 esac
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287   (eval "$ac_try") 2>&5
32288   ac_status=$?
32289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290   (exit $ac_status); }; } &&
32291          { ac_try='test -s conftest.$ac_objext'
32292   { (case "(($ac_try" in
32293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294   *) ac_try_echo=$ac_try;;
32295 esac
32296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297   (eval "$ac_try") 2>&5
32298   ac_status=$?
32299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300   (exit $ac_status); }; }; then
32301   ac_cv_cxx_have_std_ext_hash_set=yes
32302 else
32303   echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32305
32306         ac_cv_cxx_have_std_ext_hash_set=no
32307 fi
32308
32309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32310   ac_ext=c
32311 ac_cpp='$CPP $CPPFLAGS'
32312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32315
32316 fi
32317 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32318 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32319  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32320  then
32321
32322 cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_STD_EXT_HASH_SET 1
32324 _ACEOF
32325
32326  else
32327
32328 cat >>confdefs.h <<\_ACEOF
32329 #define HAVE_STD_EXT_HASH_SET 0
32330 _ACEOF
32331
32332  fi
32333
32334  { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32335 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32336 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32337   echo $ECHO_N "(cached) $ECHO_C" >&6
32338 else
32339
32340   ac_ext=cpp
32341 ac_cpp='$CXXCPP $CPPFLAGS'
32342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32345
32346   cat >conftest.$ac_ext <<_ACEOF
32347 /* confdefs.h.  */
32348 _ACEOF
32349 cat confdefs.h >>conftest.$ac_ext
32350 cat >>conftest.$ac_ext <<_ACEOF
32351 /* end confdefs.h.  */
32352 #include <ext/hash_set>
32353 #ifdef HAVE_NAMESPACES
32354 using namespace __gnu_cxx;
32355 #endif
32356 int
32357 main ()
32358 {
32359 hash_set<int> t;
32360   ;
32361   return 0;
32362 }
32363 _ACEOF
32364 rm -f conftest.$ac_objext
32365 if { (ac_try="$ac_compile"
32366 case "(($ac_try" in
32367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368   *) ac_try_echo=$ac_try;;
32369 esac
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371   (eval "$ac_compile") 2>conftest.er1
32372   ac_status=$?
32373   grep -v '^ *+' conftest.er1 >conftest.err
32374   rm -f conftest.er1
32375   cat conftest.err >&5
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); } &&
32378          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32379   { (case "(($ac_try" in
32380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381   *) ac_try_echo=$ac_try;;
32382 esac
32383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384   (eval "$ac_try") 2>&5
32385   ac_status=$?
32386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387   (exit $ac_status); }; } &&
32388          { ac_try='test -s conftest.$ac_objext'
32389   { (case "(($ac_try" in
32390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391   *) ac_try_echo=$ac_try;;
32392 esac
32393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394   (eval "$ac_try") 2>&5
32395   ac_status=$?
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); }; }; then
32398   ac_cv_cxx_have_gnu_ext_hash_set=yes
32399 else
32400   echo "$as_me: failed program was:" >&5
32401 sed 's/^/| /' conftest.$ac_ext >&5
32402
32403         ac_cv_cxx_have_gnu_ext_hash_set=no
32404 fi
32405
32406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32407   ac_ext=c
32408 ac_cpp='$CPP $CPPFLAGS'
32409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32412
32413 fi
32414 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32415 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32416  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32417  then
32418
32419 cat >>confdefs.h <<\_ACEOF
32420 #define HAVE_GNU_EXT_HASH_SET 1
32421 _ACEOF
32422
32423  else
32424
32425 cat >>confdefs.h <<\_ACEOF
32426 #define HAVE_GNU_EXT_HASH_SET 0
32427 _ACEOF
32428
32429  fi
32430
32431  { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32432 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32433 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32434   echo $ECHO_N "(cached) $ECHO_C" >&6
32435 else
32436
32437   ac_ext=cpp
32438 ac_cpp='$CXXCPP $CPPFLAGS'
32439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32442
32443   cat >conftest.$ac_ext <<_ACEOF
32444 /* confdefs.h.  */
32445 _ACEOF
32446 cat confdefs.h >>conftest.$ac_ext
32447 cat >>conftest.$ac_ext <<_ACEOF
32448 /* end confdefs.h.  */
32449 #include <hash_set>
32450 int
32451 main ()
32452 {
32453 hash_set<int> t; return 0;
32454   ;
32455   return 0;
32456 }
32457 _ACEOF
32458 rm -f conftest.$ac_objext
32459 if { (ac_try="$ac_compile"
32460 case "(($ac_try" in
32461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32462   *) ac_try_echo=$ac_try;;
32463 esac
32464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465   (eval "$ac_compile") 2>conftest.er1
32466   ac_status=$?
32467   grep -v '^ *+' conftest.er1 >conftest.err
32468   rm -f conftest.er1
32469   cat conftest.err >&5
32470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471   (exit $ac_status); } &&
32472          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32473   { (case "(($ac_try" in
32474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475   *) ac_try_echo=$ac_try;;
32476 esac
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478   (eval "$ac_try") 2>&5
32479   ac_status=$?
32480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481   (exit $ac_status); }; } &&
32482          { ac_try='test -s conftest.$ac_objext'
32483   { (case "(($ac_try" in
32484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485   *) ac_try_echo=$ac_try;;
32486 esac
32487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488   (eval "$ac_try") 2>&5
32489   ac_status=$?
32490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491   (exit $ac_status); }; }; then
32492   ac_cv_cxx_have_global_hash_set=yes
32493 else
32494   echo "$as_me: failed program was:" >&5
32495 sed 's/^/| /' conftest.$ac_ext >&5
32496
32497         ac_cv_cxx_have_global_hash_set=no
32498 fi
32499
32500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32501   ac_ext=c
32502 ac_cpp='$CPP $CPPFLAGS'
32503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32506
32507 fi
32508 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32509 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32510  if test "$ac_cv_cxx_have_global_hash_set" = yes
32511  then
32512
32513 cat >>confdefs.h <<\_ACEOF
32514 #define HAVE_GLOBAL_HASH_SET 1
32515 _ACEOF
32516
32517  else
32518
32519 cat >>confdefs.h <<\_ACEOF
32520 #define HAVE_GLOBAL_HASH_SET 0
32521 _ACEOF
32522
32523  fi
32524
32525 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32526 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32527 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32528   echo $ECHO_N "(cached) $ECHO_C" >&6
32529 else
32530
32531   ac_ext=cpp
32532 ac_cpp='$CXXCPP $CPPFLAGS'
32533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32536
32537   cat >conftest.$ac_ext <<_ACEOF
32538 /* confdefs.h.  */
32539 _ACEOF
32540 cat confdefs.h >>conftest.$ac_ext
32541 cat >>conftest.$ac_ext <<_ACEOF
32542 /* end confdefs.h.  */
32543 #include <iterator>
32544 #ifdef HAVE_NAMESPACES
32545 using namespace std;
32546 #endif
32547 int
32548 main ()
32549 {
32550 iterator<int,int,int> t; return 0;
32551   ;
32552   return 0;
32553 }
32554 _ACEOF
32555 rm -f conftest.$ac_objext
32556 if { (ac_try="$ac_compile"
32557 case "(($ac_try" in
32558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559   *) ac_try_echo=$ac_try;;
32560 esac
32561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562   (eval "$ac_compile") 2>conftest.er1
32563   ac_status=$?
32564   grep -v '^ *+' conftest.er1 >conftest.err
32565   rm -f conftest.er1
32566   cat conftest.err >&5
32567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568   (exit $ac_status); } &&
32569          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32570   { (case "(($ac_try" in
32571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572   *) ac_try_echo=$ac_try;;
32573 esac
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575   (eval "$ac_try") 2>&5
32576   ac_status=$?
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); }; } &&
32579          { ac_try='test -s conftest.$ac_objext'
32580   { (case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585   (eval "$ac_try") 2>&5
32586   ac_status=$?
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); }; }; then
32589   ac_cv_cxx_have_std_iterator=yes
32590 else
32591   echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32593
32594         ac_cv_cxx_have_std_iterator=no
32595 fi
32596
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32598   ac_ext=c
32599 ac_cpp='$CPP $CPPFLAGS'
32600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32603
32604
32605 fi
32606 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32607 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32608 if test "$ac_cv_cxx_have_std_iterator" = yes
32609 then
32610
32611 cat >>confdefs.h <<\_ACEOF
32612 #define HAVE_STD_ITERATOR 1
32613 _ACEOF
32614
32615 else
32616
32617 cat >>confdefs.h <<\_ACEOF
32618 #define HAVE_STD_ITERATOR 0
32619 _ACEOF
32620
32621 fi
32622
32623 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32624 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32625 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32626   echo $ECHO_N "(cached) $ECHO_C" >&6
32627 else
32628
32629   ac_ext=cpp
32630 ac_cpp='$CXXCPP $CPPFLAGS'
32631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32634
32635   cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h.  */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h.  */
32641 #include <iterator>
32642 #ifdef HAVE_NAMESPACES
32643 using namespace std;
32644 #endif
32645 int
32646 main ()
32647 {
32648 bidirectional_iterator<int,int> t; return 0;
32649   ;
32650   return 0;
32651 }
32652 _ACEOF
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657   *) ac_try_echo=$ac_try;;
32658 esac
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660   (eval "$ac_compile") 2>conftest.er1
32661   ac_status=$?
32662   grep -v '^ *+' conftest.er1 >conftest.err
32663   rm -f conftest.er1
32664   cat conftest.err >&5
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); } &&
32667          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32668   { (case "(($ac_try" in
32669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670   *) ac_try_echo=$ac_try;;
32671 esac
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673   (eval "$ac_try") 2>&5
32674   ac_status=$?
32675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676   (exit $ac_status); }; } &&
32677          { ac_try='test -s conftest.$ac_objext'
32678   { (case "(($ac_try" in
32679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680   *) ac_try_echo=$ac_try;;
32681 esac
32682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683   (eval "$ac_try") 2>&5
32684   ac_status=$?
32685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686   (exit $ac_status); }; }; then
32687   ac_cv_cxx_have_bi_iterator=yes
32688 else
32689   echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692         ac_cv_cxx_have_bi_iterator=no
32693 fi
32694
32695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32696   ac_ext=c
32697 ac_cpp='$CPP $CPPFLAGS'
32698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32701
32702
32703 fi
32704 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32705 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32706 if test "$ac_cv_cxx_have_bi_iterator" = yes
32707 then
32708
32709 cat >>confdefs.h <<\_ACEOF
32710 #define HAVE_BI_ITERATOR 1
32711 _ACEOF
32712
32713 else
32714
32715 cat >>confdefs.h <<\_ACEOF
32716 #define HAVE_BI_ITERATOR 0
32717 _ACEOF
32718
32719 fi
32720
32721 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32722 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32723 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32724   echo $ECHO_N "(cached) $ECHO_C" >&6
32725 else
32726
32727   ac_ext=cpp
32728 ac_cpp='$CXXCPP $CPPFLAGS'
32729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732
32733   cat >conftest.$ac_ext <<_ACEOF
32734 /* confdefs.h.  */
32735 _ACEOF
32736 cat confdefs.h >>conftest.$ac_ext
32737 cat >>conftest.$ac_ext <<_ACEOF
32738 /* end confdefs.h.  */
32739 #include <iterator>
32740 #ifdef HAVE_NAMESPACES
32741 using namespace std;
32742 #endif
32743 int
32744 main ()
32745 {
32746 forward_iterator<int,int> t; return 0;
32747   ;
32748   return 0;
32749 }
32750 _ACEOF
32751 rm -f conftest.$ac_objext
32752 if { (ac_try="$ac_compile"
32753 case "(($ac_try" in
32754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755   *) ac_try_echo=$ac_try;;
32756 esac
32757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758   (eval "$ac_compile") 2>conftest.er1
32759   ac_status=$?
32760   grep -v '^ *+' conftest.er1 >conftest.err
32761   rm -f conftest.er1
32762   cat conftest.err >&5
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); } &&
32765          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32766   { (case "(($ac_try" in
32767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768   *) ac_try_echo=$ac_try;;
32769 esac
32770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771   (eval "$ac_try") 2>&5
32772   ac_status=$?
32773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774   (exit $ac_status); }; } &&
32775          { ac_try='test -s conftest.$ac_objext'
32776   { (case "(($ac_try" in
32777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778   *) ac_try_echo=$ac_try;;
32779 esac
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781   (eval "$ac_try") 2>&5
32782   ac_status=$?
32783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784   (exit $ac_status); }; }; then
32785   ac_cv_cxx_have_fwd_iterator=yes
32786 else
32787   echo "$as_me: failed program was:" >&5
32788 sed 's/^/| /' conftest.$ac_ext >&5
32789
32790         ac_cv_cxx_have_fwd_iterator=no
32791 fi
32792
32793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32794   ac_ext=c
32795 ac_cpp='$CPP $CPPFLAGS'
32796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32799
32800
32801 fi
32802 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32803 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32804 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32805 then
32806
32807 cat >>confdefs.h <<\_ACEOF
32808 #define HAVE_FWD_ITERATOR 1
32809 _ACEOF
32810
32811 else
32812
32813 cat >>confdefs.h <<\_ACEOF
32814 #define HAVE_FWD_ITERATOR 0
32815 _ACEOF
32816
32817 fi
32818
32819
32820 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32821 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32822 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   ac_ext=cpp
32826 ac_cpp='$CXXCPP $CPPFLAGS'
32827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32830
32831    cat >conftest.$ac_ext <<_ACEOF
32832 /* confdefs.h.  */
32833 _ACEOF
32834 cat confdefs.h >>conftest.$ac_ext
32835 cat >>conftest.$ac_ext <<_ACEOF
32836 /* end confdefs.h.  */
32837 #include <math.h>
32838 int
32839 main ()
32840 {
32841 float f; isnan(f);
32842   ;
32843   return 0;
32844 }
32845 _ACEOF
32846 rm -f conftest.$ac_objext
32847 if { (ac_try="$ac_compile"
32848 case "(($ac_try" in
32849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32850   *) ac_try_echo=$ac_try;;
32851 esac
32852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32853   (eval "$ac_compile") 2>conftest.er1
32854   ac_status=$?
32855   grep -v '^ *+' conftest.er1 >conftest.err
32856   rm -f conftest.er1
32857   cat conftest.err >&5
32858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859   (exit $ac_status); } &&
32860          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32861   { (case "(($ac_try" in
32862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863   *) ac_try_echo=$ac_try;;
32864 esac
32865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866   (eval "$ac_try") 2>&5
32867   ac_status=$?
32868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869   (exit $ac_status); }; } &&
32870          { ac_try='test -s conftest.$ac_objext'
32871   { (case "(($ac_try" in
32872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873   *) ac_try_echo=$ac_try;;
32874 esac
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876   (eval "$ac_try") 2>&5
32877   ac_status=$?
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); }; }; then
32880   ac_cv_func_isnan_in_math_h=yes
32881 else
32882   echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32884
32885         ac_cv_func_isnan_in_math_h=no
32886 fi
32887
32888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32889   ac_ext=c
32890 ac_cpp='$CPP $CPPFLAGS'
32891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32894
32895 fi
32896 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32897 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32898
32899
32900 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32901
32902 cat >>confdefs.h <<\_ACEOF
32903 #define HAVE_ISNAN_IN_MATH_H 1
32904 _ACEOF
32905
32906 fi
32907
32908 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32909 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32910 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32911   echo $ECHO_N "(cached) $ECHO_C" >&6
32912 else
32913   ac_ext=cpp
32914 ac_cpp='$CXXCPP $CPPFLAGS'
32915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32918
32919    cat >conftest.$ac_ext <<_ACEOF
32920 /* confdefs.h.  */
32921 _ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h.  */
32925 #include <cmath>
32926 int
32927 main ()
32928 {
32929 float f; isnan(f);
32930   ;
32931   return 0;
32932 }
32933 _ACEOF
32934 rm -f conftest.$ac_objext
32935 if { (ac_try="$ac_compile"
32936 case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_compile") 2>conftest.er1
32942   ac_status=$?
32943   grep -v '^ *+' conftest.er1 >conftest.err
32944   rm -f conftest.er1
32945   cat conftest.err >&5
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } &&
32948          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32949   { (case "(($ac_try" in
32950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951   *) ac_try_echo=$ac_try;;
32952 esac
32953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954   (eval "$ac_try") 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; } &&
32958          { ac_try='test -s conftest.$ac_objext'
32959   { (case "(($ac_try" in
32960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961   *) ac_try_echo=$ac_try;;
32962 esac
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964   (eval "$ac_try") 2>&5
32965   ac_status=$?
32966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967   (exit $ac_status); }; }; then
32968   ac_cv_func_isnan_in_cmath=yes
32969 else
32970   echo "$as_me: failed program was:" >&5
32971 sed 's/^/| /' conftest.$ac_ext >&5
32972
32973         ac_cv_func_isnan_in_cmath=no
32974 fi
32975
32976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32977   ac_ext=c
32978 ac_cpp='$CPP $CPPFLAGS'
32979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32982
32983 fi
32984 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32985 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32986
32987 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32988
32989 cat >>confdefs.h <<\_ACEOF
32990 #define HAVE_ISNAN_IN_CMATH 1
32991 _ACEOF
32992
32993 fi
32994
32995 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32996 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32997 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32998   echo $ECHO_N "(cached) $ECHO_C" >&6
32999 else
33000   ac_ext=cpp
33001 ac_cpp='$CXXCPP $CPPFLAGS'
33002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33005
33006    cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012 #include <cmath>
33013 int
33014 main ()
33015 {
33016 float f; std::isnan(f);
33017   ;
33018   return 0;
33019 }
33020 _ACEOF
33021 rm -f conftest.$ac_objext
33022 if { (ac_try="$ac_compile"
33023 case "(($ac_try" in
33024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025   *) ac_try_echo=$ac_try;;
33026 esac
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028   (eval "$ac_compile") 2>conftest.er1
33029   ac_status=$?
33030   grep -v '^ *+' conftest.er1 >conftest.err
33031   rm -f conftest.er1
33032   cat conftest.err >&5
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); } &&
33035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33036   { (case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_try") 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; } &&
33045          { ac_try='test -s conftest.$ac_objext'
33046   { (case "(($ac_try" in
33047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048   *) ac_try_echo=$ac_try;;
33049 esac
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051   (eval "$ac_try") 2>&5
33052   ac_status=$?
33053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054   (exit $ac_status); }; }; then
33055   ac_cv_func_std_isnan_in_cmath=yes
33056 else
33057   echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.$ac_ext >&5
33059
33060         ac_cv_func_std_isnan_in_cmath=no
33061 fi
33062
33063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064   ac_ext=c
33065 ac_cpp='$CPP $CPPFLAGS'
33066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33069
33070 fi
33071 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33072 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33073
33074 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33075
33076 cat >>confdefs.h <<\_ACEOF
33077 #define HAVE_STD_ISNAN_IN_CMATH 1
33078 _ACEOF
33079
33080 fi
33081
33082
33083 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33084 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33085 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33086   echo $ECHO_N "(cached) $ECHO_C" >&6
33087 else
33088   ac_ext=cpp
33089 ac_cpp='$CXXCPP $CPPFLAGS'
33090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33093
33094    cat >conftest.$ac_ext <<_ACEOF
33095 /* confdefs.h.  */
33096 _ACEOF
33097 cat confdefs.h >>conftest.$ac_ext
33098 cat >>conftest.$ac_ext <<_ACEOF
33099 /* end confdefs.h.  */
33100 #include <math.h>
33101 int
33102 main ()
33103 {
33104 float f; isinf(f);
33105   ;
33106   return 0;
33107 }
33108 _ACEOF
33109 rm -f conftest.$ac_objext
33110 if { (ac_try="$ac_compile"
33111 case "(($ac_try" in
33112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113   *) ac_try_echo=$ac_try;;
33114 esac
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116   (eval "$ac_compile") 2>conftest.er1
33117   ac_status=$?
33118   grep -v '^ *+' conftest.er1 >conftest.err
33119   rm -f conftest.er1
33120   cat conftest.err >&5
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); } &&
33123          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33124   { (case "(($ac_try" in
33125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126   *) ac_try_echo=$ac_try;;
33127 esac
33128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129   (eval "$ac_try") 2>&5
33130   ac_status=$?
33131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132   (exit $ac_status); }; } &&
33133          { ac_try='test -s conftest.$ac_objext'
33134   { (case "(($ac_try" in
33135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136   *) ac_try_echo=$ac_try;;
33137 esac
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139   (eval "$ac_try") 2>&5
33140   ac_status=$?
33141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); }; }; then
33143   ac_cv_func_isinf_in_math_h=yes
33144 else
33145   echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33147
33148         ac_cv_func_isinf_in_math_h=no
33149 fi
33150
33151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33152   ac_ext=c
33153 ac_cpp='$CPP $CPPFLAGS'
33154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33157
33158 fi
33159 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33160 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33161
33162 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33163
33164 cat >>confdefs.h <<\_ACEOF
33165 #define HAVE_ISINF_IN_MATH_H 1
33166 _ACEOF
33167
33168 fi
33169
33170 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33171 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33172 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33173   echo $ECHO_N "(cached) $ECHO_C" >&6
33174 else
33175   ac_ext=cpp
33176 ac_cpp='$CXXCPP $CPPFLAGS'
33177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33180
33181    cat >conftest.$ac_ext <<_ACEOF
33182 /* confdefs.h.  */
33183 _ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h.  */
33187 #include <cmath>
33188 int
33189 main ()
33190 {
33191 float f; isinf(f);
33192   ;
33193   return 0;
33194 }
33195 _ACEOF
33196 rm -f conftest.$ac_objext
33197 if { (ac_try="$ac_compile"
33198 case "(($ac_try" in
33199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33200   *) ac_try_echo=$ac_try;;
33201 esac
33202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33203   (eval "$ac_compile") 2>conftest.er1
33204   ac_status=$?
33205   grep -v '^ *+' conftest.er1 >conftest.err
33206   rm -f conftest.er1
33207   cat conftest.err >&5
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); } &&
33210          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33211   { (case "(($ac_try" in
33212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213   *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216   (eval "$ac_try") 2>&5
33217   ac_status=$?
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); }; } &&
33220          { ac_try='test -s conftest.$ac_objext'
33221   { (case "(($ac_try" in
33222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223   *) ac_try_echo=$ac_try;;
33224 esac
33225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226   (eval "$ac_try") 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; }; then
33230   ac_cv_func_isinf_in_cmath=yes
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235         ac_cv_func_isinf_in_cmath=no
33236 fi
33237
33238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33239   ac_ext=c
33240 ac_cpp='$CPP $CPPFLAGS'
33241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33244
33245 fi
33246 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33247 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33248
33249 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33250
33251 cat >>confdefs.h <<\_ACEOF
33252 #define HAVE_ISINF_IN_CMATH 1
33253 _ACEOF
33254
33255 fi
33256
33257 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33258 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33259 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33260   echo $ECHO_N "(cached) $ECHO_C" >&6
33261 else
33262   ac_ext=cpp
33263 ac_cpp='$CXXCPP $CPPFLAGS'
33264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33267
33268    cat >conftest.$ac_ext <<_ACEOF
33269 /* confdefs.h.  */
33270 _ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h.  */
33274 #include <cmath>
33275 int
33276 main ()
33277 {
33278 float f; std::isinf(f)}
33279   ;
33280   return 0;
33281 }
33282 _ACEOF
33283 rm -f conftest.$ac_objext
33284 if { (ac_try="$ac_compile"
33285 case "(($ac_try" in
33286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287   *) ac_try_echo=$ac_try;;
33288 esac
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290   (eval "$ac_compile") 2>conftest.er1
33291   ac_status=$?
33292   grep -v '^ *+' conftest.er1 >conftest.err
33293   rm -f conftest.er1
33294   cat conftest.err >&5
33295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296   (exit $ac_status); } &&
33297          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33298   { (case "(($ac_try" in
33299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300   *) ac_try_echo=$ac_try;;
33301 esac
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303   (eval "$ac_try") 2>&5
33304   ac_status=$?
33305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306   (exit $ac_status); }; } &&
33307          { ac_try='test -s conftest.$ac_objext'
33308   { (case "(($ac_try" in
33309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310   *) ac_try_echo=$ac_try;;
33311 esac
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313   (eval "$ac_try") 2>&5
33314   ac_status=$?
33315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316   (exit $ac_status); }; }; then
33317   ac_cv_func_std_isinf_in_cmath=yes
33318 else
33319   echo "$as_me: failed program was:" >&5
33320 sed 's/^/| /' conftest.$ac_ext >&5
33321
33322         ac_cv_func_std_isinf_in_cmath=no
33323 fi
33324
33325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33326   ac_ext=c
33327 ac_cpp='$CPP $CPPFLAGS'
33328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33331
33332 fi
33333 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33334 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33335
33336 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33337
33338 cat >>confdefs.h <<\_ACEOF
33339 #define HAVE_STD_ISINF_IN_CMATH 1
33340 _ACEOF
33341
33342 fi
33343
33344 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33345 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33346 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33347   echo $ECHO_N "(cached) $ECHO_C" >&6
33348 else
33349   ac_ext=cpp
33350 ac_cpp='$CXXCPP $CPPFLAGS'
33351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33354
33355    cat >conftest.$ac_ext <<_ACEOF
33356 /* confdefs.h.  */
33357 _ACEOF
33358 cat confdefs.h >>conftest.$ac_ext
33359 cat >>conftest.$ac_ext <<_ACEOF
33360 /* end confdefs.h.  */
33361 #include <ieeefp.h>
33362 int
33363 main ()
33364 {
33365 float f; finite(f);
33366   ;
33367   return 0;
33368 }
33369 _ACEOF
33370 rm -f conftest.$ac_objext
33371 if { (ac_try="$ac_compile"
33372 case "(($ac_try" in
33373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374   *) ac_try_echo=$ac_try;;
33375 esac
33376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377   (eval "$ac_compile") 2>conftest.er1
33378   ac_status=$?
33379   grep -v '^ *+' conftest.er1 >conftest.err
33380   rm -f conftest.er1
33381   cat conftest.err >&5
33382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383   (exit $ac_status); } &&
33384          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33385   { (case "(($ac_try" in
33386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387   *) ac_try_echo=$ac_try;;
33388 esac
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390   (eval "$ac_try") 2>&5
33391   ac_status=$?
33392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393   (exit $ac_status); }; } &&
33394          { ac_try='test -s conftest.$ac_objext'
33395   { (case "(($ac_try" in
33396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397   *) ac_try_echo=$ac_try;;
33398 esac
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400   (eval "$ac_try") 2>&5
33401   ac_status=$?
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); }; }; then
33404   ac_cv_func_finite_in_ieeefp_h=yes
33405 else
33406   echo "$as_me: failed program was:" >&5
33407 sed 's/^/| /' conftest.$ac_ext >&5
33408
33409         ac_cv_func_finite_in_ieeefp_h=no
33410 fi
33411
33412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33413   ac_ext=c
33414 ac_cpp='$CPP $CPPFLAGS'
33415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33418
33419 fi
33420 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33421 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33422
33423 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33424
33425 cat >>confdefs.h <<\_ACEOF
33426 #define HAVE_FINITE_IN_IEEEFP_H 1
33427 _ACEOF
33428
33429 fi
33430
33431
33432
33433 if test "$llvm_cv_platform_type" = "Unix" ; then
33434
33435
33436 for ac_header in stdlib.h unistd.h
33437 do
33438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33440   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33443   echo $ECHO_N "(cached) $ECHO_C" >&6
33444 fi
33445 ac_res=`eval echo '${'$as_ac_Header'}'`
33446                { echo "$as_me:$LINENO: result: $ac_res" >&5
33447 echo "${ECHO_T}$ac_res" >&6; }
33448 else
33449   # Is the header compilable?
33450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33452 cat >conftest.$ac_ext <<_ACEOF
33453 /* confdefs.h.  */
33454 _ACEOF
33455 cat confdefs.h >>conftest.$ac_ext
33456 cat >>conftest.$ac_ext <<_ACEOF
33457 /* end confdefs.h.  */
33458 $ac_includes_default
33459 #include <$ac_header>
33460 _ACEOF
33461 rm -f conftest.$ac_objext
33462 if { (ac_try="$ac_compile"
33463 case "(($ac_try" in
33464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465   *) ac_try_echo=$ac_try;;
33466 esac
33467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468   (eval "$ac_compile") 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } &&
33475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
33482   ac_status=$?
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); }; } &&
33485          { ac_try='test -s conftest.$ac_objext'
33486   { (case "(($ac_try" in
33487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488   *) ac_try_echo=$ac_try;;
33489 esac
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491   (eval "$ac_try") 2>&5
33492   ac_status=$?
33493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494   (exit $ac_status); }; }; then
33495   ac_header_compiler=yes
33496 else
33497   echo "$as_me: failed program was:" >&5
33498 sed 's/^/| /' conftest.$ac_ext >&5
33499
33500         ac_header_compiler=no
33501 fi
33502
33503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33505 echo "${ECHO_T}$ac_header_compiler" >&6; }
33506
33507 # Is the header present?
33508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33510 cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516 #include <$ac_header>
33517 _ACEOF
33518 if { (ac_try="$ac_cpp conftest.$ac_ext"
33519 case "(($ac_try" in
33520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521   *) ac_try_echo=$ac_try;;
33522 esac
33523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33525   ac_status=$?
33526   grep -v '^ *+' conftest.er1 >conftest.err
33527   rm -f conftest.er1
33528   cat conftest.err >&5
33529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530   (exit $ac_status); } >/dev/null; then
33531   if test -s conftest.err; then
33532     ac_cpp_err=$ac_c_preproc_warn_flag
33533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33534   else
33535     ac_cpp_err=
33536   fi
33537 else
33538   ac_cpp_err=yes
33539 fi
33540 if test -z "$ac_cpp_err"; then
33541   ac_header_preproc=yes
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546   ac_header_preproc=no
33547 fi
33548
33549 rm -f conftest.err conftest.$ac_ext
33550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33551 echo "${ECHO_T}$ac_header_preproc" >&6; }
33552
33553 # So?  What about this header?
33554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33555   yes:no: )
33556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33560     ac_header_preproc=yes
33561     ;;
33562   no:yes:* )
33563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33575     ( cat <<\_ASBOX
33576 ## ----------------------------------- ##
33577 ## Report this to llvmbugs@cs.uiuc.edu ##
33578 ## ----------------------------------- ##
33579 _ASBOX
33580      ) | sed "s/^/$as_me: WARNING:     /" >&2
33581     ;;
33582 esac
33583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33586   echo $ECHO_N "(cached) $ECHO_C" >&6
33587 else
33588   eval "$as_ac_Header=\$ac_header_preproc"
33589 fi
33590 ac_res=`eval echo '${'$as_ac_Header'}'`
33591                { echo "$as_me:$LINENO: result: $ac_res" >&5
33592 echo "${ECHO_T}$ac_res" >&6; }
33593
33594 fi
33595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33596   cat >>confdefs.h <<_ACEOF
33597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33598 _ACEOF
33599
33600 fi
33601
33602 done
33603
33604
33605 for ac_func in getpagesize
33606 do
33607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33611   echo $ECHO_N "(cached) $ECHO_C" >&6
33612 else
33613   cat >conftest.$ac_ext <<_ACEOF
33614 /* confdefs.h.  */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h.  */
33619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33621 #define $ac_func innocuous_$ac_func
33622
33623 /* System header to define __stub macros and hopefully few prototypes,
33624     which can conflict with char $ac_func (); below.
33625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626     <limits.h> exists even on freestanding compilers.  */
33627
33628 #ifdef __STDC__
33629 # include <limits.h>
33630 #else
33631 # include <assert.h>
33632 #endif
33633
33634 #undef $ac_func
33635
33636 /* Override any GCC internal prototype to avoid an error.
33637    Use char because int might match the return type of a GCC
33638    builtin and then its argument prototype would still apply.  */
33639 #ifdef __cplusplus
33640 extern "C"
33641 #endif
33642 char $ac_func ();
33643 /* The GNU C library defines this for functions which it implements
33644     to always fail with ENOSYS.  Some functions are actually named
33645     something starting with __ and the normal name is an alias.  */
33646 #if defined __stub_$ac_func || defined __stub___$ac_func
33647 choke me
33648 #endif
33649
33650 int
33651 main ()
33652 {
33653 return $ac_func ();
33654   ;
33655   return 0;
33656 }
33657 _ACEOF
33658 rm -f conftest.$ac_objext conftest$ac_exeext
33659 if { (ac_try="$ac_link"
33660 case "(($ac_try" in
33661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662   *) ac_try_echo=$ac_try;;
33663 esac
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665   (eval "$ac_link") 2>conftest.er1
33666   ac_status=$?
33667   grep -v '^ *+' conftest.er1 >conftest.err
33668   rm -f conftest.er1
33669   cat conftest.err >&5
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); } &&
33672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33673   { (case "(($ac_try" in
33674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33675   *) ac_try_echo=$ac_try;;
33676 esac
33677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33678   (eval "$ac_try") 2>&5
33679   ac_status=$?
33680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681   (exit $ac_status); }; } &&
33682          { ac_try='test -s conftest$ac_exeext'
33683   { (case "(($ac_try" in
33684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685   *) ac_try_echo=$ac_try;;
33686 esac
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688   (eval "$ac_try") 2>&5
33689   ac_status=$?
33690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691   (exit $ac_status); }; }; then
33692   eval "$as_ac_var=yes"
33693 else
33694   echo "$as_me: failed program was:" >&5
33695 sed 's/^/| /' conftest.$ac_ext >&5
33696
33697         eval "$as_ac_var=no"
33698 fi
33699
33700 rm -f core conftest.err conftest.$ac_objext \
33701       conftest$ac_exeext conftest.$ac_ext
33702 fi
33703 ac_res=`eval echo '${'$as_ac_var'}'`
33704                { echo "$as_me:$LINENO: result: $ac_res" >&5
33705 echo "${ECHO_T}$ac_res" >&6; }
33706 if test `eval echo '${'$as_ac_var'}'` = yes; then
33707   cat >>confdefs.h <<_ACEOF
33708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33709 _ACEOF
33710
33711 fi
33712 done
33713
33714 { echo "$as_me:$LINENO: checking for working mmap" >&5
33715 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33716 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33717   echo $ECHO_N "(cached) $ECHO_C" >&6
33718 else
33719   if test "$cross_compiling" = yes; then
33720   ac_cv_func_mmap_fixed_mapped=no
33721 else
33722   cat >conftest.$ac_ext <<_ACEOF
33723 /* confdefs.h.  */
33724 _ACEOF
33725 cat confdefs.h >>conftest.$ac_ext
33726 cat >>conftest.$ac_ext <<_ACEOF
33727 /* end confdefs.h.  */
33728 $ac_includes_default
33729 /* malloc might have been renamed as rpl_malloc. */
33730 #undef malloc
33731
33732 /* Thanks to Mike Haertel and Jim Avera for this test.
33733    Here is a matrix of mmap possibilities:
33734         mmap private not fixed
33735         mmap private fixed at somewhere currently unmapped
33736         mmap private fixed at somewhere already mapped
33737         mmap shared not fixed
33738         mmap shared fixed at somewhere currently unmapped
33739         mmap shared fixed at somewhere already mapped
33740    For private mappings, we should verify that changes cannot be read()
33741    back from the file, nor mmap's back from the file at a different
33742    address.  (There have been systems where private was not correctly
33743    implemented like the infamous i386 svr4.0, and systems where the
33744    VM page cache was not coherent with the file system buffer cache
33745    like early versions of FreeBSD and possibly contemporary NetBSD.)
33746    For shared mappings, we should conversely verify that changes get
33747    propagated back to all the places they're supposed to be.
33748
33749    Grep wants private fixed already mapped.
33750    The main things grep needs to know about mmap are:
33751    * does it exist and is it safe to write into the mmap'd area
33752    * how to use it (BSD variants)  */
33753
33754 #include <fcntl.h>
33755 #include <sys/mman.h>
33756
33757 #if !STDC_HEADERS && !HAVE_STDLIB_H
33758 char *malloc ();
33759 #endif
33760
33761 /* This mess was copied from the GNU getpagesize.h.  */
33762 #if !HAVE_GETPAGESIZE
33763 /* Assume that all systems that can run configure have sys/param.h.  */
33764 # if !HAVE_SYS_PARAM_H
33765 #  define HAVE_SYS_PARAM_H 1
33766 # endif
33767
33768 # ifdef _SC_PAGESIZE
33769 #  define getpagesize() sysconf(_SC_PAGESIZE)
33770 # else /* no _SC_PAGESIZE */
33771 #  if HAVE_SYS_PARAM_H
33772 #   include <sys/param.h>
33773 #   ifdef EXEC_PAGESIZE
33774 #    define getpagesize() EXEC_PAGESIZE
33775 #   else /* no EXEC_PAGESIZE */
33776 #    ifdef NBPG
33777 #     define getpagesize() NBPG * CLSIZE
33778 #     ifndef CLSIZE
33779 #      define CLSIZE 1
33780 #     endif /* no CLSIZE */
33781 #    else /* no NBPG */
33782 #     ifdef NBPC
33783 #      define getpagesize() NBPC
33784 #     else /* no NBPC */
33785 #      ifdef PAGESIZE
33786 #       define getpagesize() PAGESIZE
33787 #      endif /* PAGESIZE */
33788 #     endif /* no NBPC */
33789 #    endif /* no NBPG */
33790 #   endif /* no EXEC_PAGESIZE */
33791 #  else /* no HAVE_SYS_PARAM_H */
33792 #   define getpagesize() 8192   /* punt totally */
33793 #  endif /* no HAVE_SYS_PARAM_H */
33794 # endif /* no _SC_PAGESIZE */
33795
33796 #endif /* no HAVE_GETPAGESIZE */
33797
33798 int
33799 main ()
33800 {
33801   char *data, *data2, *data3;
33802   int i, pagesize;
33803   int fd;
33804
33805   pagesize = getpagesize ();
33806
33807   /* First, make a file with some known garbage in it. */
33808   data = (char *) malloc (pagesize);
33809   if (!data)
33810     return 1;
33811   for (i = 0; i < pagesize; ++i)
33812     *(data + i) = rand ();
33813   umask (0);
33814   fd = creat ("conftest.mmap", 0600);
33815   if (fd < 0)
33816     return 1;
33817   if (write (fd, data, pagesize) != pagesize)
33818     return 1;
33819   close (fd);
33820
33821   /* Next, try to mmap the file at a fixed address which already has
33822      something else allocated at it.  If we can, also make sure that
33823      we see the same garbage.  */
33824   fd = open ("conftest.mmap", O_RDWR);
33825   if (fd < 0)
33826     return 1;
33827   data2 = (char *) malloc (2 * pagesize);
33828   if (!data2)
33829     return 1;
33830   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33831   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33832                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
33833     return 1;
33834   for (i = 0; i < pagesize; ++i)
33835     if (*(data + i) != *(data2 + i))
33836       return 1;
33837
33838   /* Finally, make sure that changes to the mapped area do not
33839      percolate back to the file as seen by read().  (This is a bug on
33840      some variants of i386 svr4.0.)  */
33841   for (i = 0; i < pagesize; ++i)
33842     *(data2 + i) = *(data2 + i) + 1;
33843   data3 = (char *) malloc (pagesize);
33844   if (!data3)
33845     return 1;
33846   if (read (fd, data3, pagesize) != pagesize)
33847     return 1;
33848   for (i = 0; i < pagesize; ++i)
33849     if (*(data + i) != *(data3 + i))
33850       return 1;
33851   close (fd);
33852   return 0;
33853 }
33854 _ACEOF
33855 rm -f conftest$ac_exeext
33856 if { (ac_try="$ac_link"
33857 case "(($ac_try" in
33858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33859   *) ac_try_echo=$ac_try;;
33860 esac
33861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33862   (eval "$ac_link") 2>&5
33863   ac_status=$?
33864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33866   { (case "(($ac_try" in
33867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868   *) ac_try_echo=$ac_try;;
33869 esac
33870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871   (eval "$ac_try") 2>&5
33872   ac_status=$?
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); }; }; then
33875   ac_cv_func_mmap_fixed_mapped=yes
33876 else
33877   echo "$as_me: program exited with status $ac_status" >&5
33878 echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33880
33881 ( exit $ac_status )
33882 ac_cv_func_mmap_fixed_mapped=no
33883 fi
33884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33885 fi
33886
33887
33888 fi
33889 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33890 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33891 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33892
33893 cat >>confdefs.h <<\_ACEOF
33894 #define HAVE_MMAP 1
33895 _ACEOF
33896
33897 fi
33898 rm -f conftest.mmap
33899
33900   { echo "$as_me:$LINENO: checking for mmap of files" >&5
33901 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33902 if test "${ac_cv_func_mmap_file+set}" = set; then
33903   echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905    ac_ext=c
33906 ac_cpp='$CPP $CPPFLAGS'
33907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33910
33911   if test "$cross_compiling" = yes; then
33912   ac_cv_func_mmap_file=no
33913 else
33914   cat >conftest.$ac_ext <<_ACEOF
33915
33916     /* confdefs.h.  */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h.  */
33921
33922 #include <sys/types.h>
33923 #include <sys/mman.h>
33924 #include <fcntl.h>
33925
33926 int
33927 main ()
33928 {
33929
33930   int fd;
33931   fd = creat ("foo",0777);
33932   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33933   unlink ("foo");
33934   return (fd != (int) MAP_FAILED);
33935   ;
33936   return 0;
33937 }
33938 _ACEOF
33939 rm -f conftest$ac_exeext
33940 if { (ac_try="$ac_link"
33941 case "(($ac_try" in
33942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943   *) ac_try_echo=$ac_try;;
33944 esac
33945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946   (eval "$ac_link") 2>&5
33947   ac_status=$?
33948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33950   { (case "(($ac_try" in
33951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952   *) ac_try_echo=$ac_try;;
33953 esac
33954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955   (eval "$ac_try") 2>&5
33956   ac_status=$?
33957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958   (exit $ac_status); }; }; then
33959   ac_cv_func_mmap_file=yes
33960 else
33961   echo "$as_me: program exited with status $ac_status" >&5
33962 echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33964
33965 ( exit $ac_status )
33966 ac_cv_func_mmap_file=no
33967 fi
33968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33969 fi
33970
33971
33972   ac_ext=c
33973 ac_cpp='$CPP $CPPFLAGS'
33974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33977
33978
33979 fi
33980 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33981 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33982 if test "$ac_cv_func_mmap_file" = yes; then
33983
33984 cat >>confdefs.h <<\_ACEOF
33985 #define HAVE_MMAP_FILE
33986 _ACEOF
33987
33988    MMAP_FILE=yes
33989
33990 fi
33991
33992   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33993 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33994 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33995   echo $ECHO_N "(cached) $ECHO_C" >&6
33996 else
33997   if test "$llvm_cv_os_type" = "Interix" ; then
33998    ac_cv_need_dev_zero_for_mmap=yes
33999  else
34000    ac_cv_need_dev_zero_for_mmap=no
34001  fi
34002
34003 fi
34004 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34005 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34006 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34007
34008 cat >>confdefs.h <<\_ACEOF
34009 #define NEED_DEV_ZERO_FOR_MMAP 1
34010 _ACEOF
34011
34012 fi
34013
34014   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34015   then
34016     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34017 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34018   fi
34019   if test "$ac_cv_func_mmap_file" = "no"
34020   then
34021     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34022 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34023   fi
34024 fi
34025
34026
34027
34028 for ac_func in __dso_handle
34029 do
34030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34034   echo $ECHO_N "(cached) $ECHO_C" >&6
34035 else
34036   cat >conftest.$ac_ext <<_ACEOF
34037 /* confdefs.h.  */
34038 _ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h.  */
34042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34044 #define $ac_func innocuous_$ac_func
34045
34046 /* System header to define __stub macros and hopefully few prototypes,
34047     which can conflict with char $ac_func (); below.
34048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34049     <limits.h> exists even on freestanding compilers.  */
34050
34051 #ifdef __STDC__
34052 # include <limits.h>
34053 #else
34054 # include <assert.h>
34055 #endif
34056
34057 #undef $ac_func
34058
34059 /* Override any GCC internal prototype to avoid an error.
34060    Use char because int might match the return type of a GCC
34061    builtin and then its argument prototype would still apply.  */
34062 #ifdef __cplusplus
34063 extern "C"
34064 #endif
34065 char $ac_func ();
34066 /* The GNU C library defines this for functions which it implements
34067     to always fail with ENOSYS.  Some functions are actually named
34068     something starting with __ and the normal name is an alias.  */
34069 #if defined __stub_$ac_func || defined __stub___$ac_func
34070 choke me
34071 #endif
34072
34073 int
34074 main ()
34075 {
34076 return $ac_func ();
34077   ;
34078   return 0;
34079 }
34080 _ACEOF
34081 rm -f conftest.$ac_objext conftest$ac_exeext
34082 if { (ac_try="$ac_link"
34083 case "(($ac_try" in
34084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34085   *) ac_try_echo=$ac_try;;
34086 esac
34087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34088   (eval "$ac_link") 2>conftest.er1
34089   ac_status=$?
34090   grep -v '^ *+' conftest.er1 >conftest.err
34091   rm -f conftest.er1
34092   cat conftest.err >&5
34093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094   (exit $ac_status); } &&
34095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34096   { (case "(($ac_try" in
34097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098   *) ac_try_echo=$ac_try;;
34099 esac
34100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34101   (eval "$ac_try") 2>&5
34102   ac_status=$?
34103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104   (exit $ac_status); }; } &&
34105          { ac_try='test -s conftest$ac_exeext'
34106   { (case "(($ac_try" in
34107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108   *) ac_try_echo=$ac_try;;
34109 esac
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111   (eval "$ac_try") 2>&5
34112   ac_status=$?
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); }; }; then
34115   eval "$as_ac_var=yes"
34116 else
34117   echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34119
34120         eval "$as_ac_var=no"
34121 fi
34122
34123 rm -f core conftest.err conftest.$ac_objext \
34124       conftest$ac_exeext conftest.$ac_ext
34125 fi
34126 ac_res=`eval echo '${'$as_ac_var'}'`
34127                { echo "$as_me:$LINENO: result: $ac_res" >&5
34128 echo "${ECHO_T}$ac_res" >&6; }
34129 if test `eval echo '${'$as_ac_var'}'` = yes; then
34130   cat >>confdefs.h <<_ACEOF
34131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34132 _ACEOF
34133
34134 fi
34135 done
34136
34137
34138 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34139 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34140 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34141   echo $ECHO_N "(cached) $ECHO_C" >&6
34142 else
34143   llvm_cv_llvmgcc_sanity="no"
34144 if test -x "$LLVMGCC" ; then
34145   cp /dev/null conftest.c
34146   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34147       grep 'target datalayout =' > /dev/null 2>&1
34148   if test $? -eq 0 ; then
34149     llvm_cv_llvmgcc_sanity="yes"
34150   fi
34151   rm conftest.c
34152 fi
34153 fi
34154 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34155 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34156
34157 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34158   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34159 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34160   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34161   LLVMCC1=$llvmcc1path
34162
34163   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34164   LLVMCC1PLUS=$llvmcc1pluspath
34165
34166   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34167   LLVMGCCDIR=$llvmgccdir
34168
34169   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34170   LLVMGCCLIBEXEC=$llvmgcclibexec
34171
34172   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34173   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34174   LLVMGCC_VERSION=$llvmgccversion
34175
34176   LLVMGCC_MAJVERS=$llvmgccmajvers
34177
34178   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34179   LLVMGCC_LANGS=$llvmgcclangs
34180
34181   { echo "$as_me:$LINENO: result: ok" >&5
34182 echo "${ECHO_T}ok" >&6; }
34183 fi
34184
34185 SHLIBEXT=$libltdl_cv_shlibext
34186
34187
34188 # Translate the various configuration directories and other basic
34189 # information into substitutions that will end up in Makefile.config.in
34190 # that these configured values can be used by the makefiles
34191 if test "${prefix}" = "NONE" ; then
34192   prefix="/usr/local"
34193 fi
34194 eval LLVM_PREFIX="${prefix}";
34195 eval LLVM_BINDIR="${prefix}/bin";
34196 eval LLVM_LIBDIR="${prefix}/lib";
34197 eval LLVM_DATADIR="${prefix}/share/llvm";
34198 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34199 eval LLVM_ETCDIR="${prefix}/etc/llvm";
34200 eval LLVM_INCLUDEDIR="${prefix}/include";
34201 eval LLVM_INFODIR="${prefix}/info";
34202 eval LLVM_MANDIR="${prefix}/man";
34203 LLVM_CONFIGTIME=`date`
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215 # Place the various directores into the config.h file as #defines so that we
34216 # can know about the installation paths within LLVM.
34217
34218 cat >>confdefs.h <<_ACEOF
34219 #define LLVM_PREFIX "$LLVM_PREFIX"
34220 _ACEOF
34221
34222
34223 cat >>confdefs.h <<_ACEOF
34224 #define LLVM_BINDIR "$LLVM_BINDIR"
34225 _ACEOF
34226
34227
34228 cat >>confdefs.h <<_ACEOF
34229 #define LLVM_LIBDIR "$LLVM_LIBDIR"
34230 _ACEOF
34231
34232
34233 cat >>confdefs.h <<_ACEOF
34234 #define LLVM_DATADIR "$LLVM_DATADIR"
34235 _ACEOF
34236
34237
34238 cat >>confdefs.h <<_ACEOF
34239 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34240 _ACEOF
34241
34242
34243 cat >>confdefs.h <<_ACEOF
34244 #define LLVM_ETCDIR "$LLVM_ETCDIR"
34245 _ACEOF
34246
34247
34248 cat >>confdefs.h <<_ACEOF
34249 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34250 _ACEOF
34251
34252
34253 cat >>confdefs.h <<_ACEOF
34254 #define LLVM_INFODIR "$LLVM_INFODIR"
34255 _ACEOF
34256
34257
34258 cat >>confdefs.h <<_ACEOF
34259 #define LLVM_MANDIR "$LLVM_MANDIR"
34260 _ACEOF
34261
34262
34263 cat >>confdefs.h <<_ACEOF
34264 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34265 _ACEOF
34266
34267
34268 cat >>confdefs.h <<_ACEOF
34269 #define LLVM_HOSTTRIPLE "$host"
34270 _ACEOF
34271
34272
34273 # Determine which bindings to build.
34274 if test "$BINDINGS_TO_BUILD" = auto ; then
34275   BINDINGS_TO_BUILD=""
34276   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34277     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34278   fi
34279 fi
34280 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34281
34282
34283 # This isn't really configurey, but it avoids having to repeat the list in
34284 # other files.
34285 ALL_BINDINGS=ocaml
34286
34287
34288 # Do any work necessary to ensure that bindings have what they need.
34289 binding_prereqs_failed=0
34290 for a_binding in $BINDINGS_TO_BUILD ; do
34291   case "$a_binding" in
34292   ocaml)
34293     if test "x$OCAMLC" = x ; then
34294       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34295 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34296       binding_prereqs_failed=1
34297     fi
34298     if test "x$OCAMLDEP" = x ; then
34299       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34300 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34301       binding_prereqs_failed=1
34302     fi
34303     if test "x$OCAMLOPT" = x ; then
34304       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34305 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34306           fi
34307     if test "x$with_ocaml_libdir" != xauto ; then
34308       OCAML_LIBDIR=$with_ocaml_libdir
34309
34310     else
34311       ocaml_stdlib="`"$OCAMLC" -where`"
34312       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34313       then
34314         # ocaml stdlib is beneath our prefix; use stdlib
34315         OCAML_LIBDIR=$ocaml_stdlib
34316
34317       else
34318         # ocaml stdlib is outside our prefix; use libdir/ocaml
34319         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34320
34321       fi
34322     fi
34323     ;;
34324   esac
34325 done
34326 if test "$binding_prereqs_failed" = 1 ; then
34327   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34328 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34329    { (exit 1); exit 1; }; }
34330 fi
34331
34332 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34333 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34334 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34335   echo $ECHO_N "(cached) $ECHO_C" >&6
34336 else
34337    ac_ext=cpp
34338 ac_cpp='$CXXCPP $CPPFLAGS'
34339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34342
34343   oldcxxflags="$CXXFLAGS"
34344   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34345   cat >conftest.$ac_ext <<_ACEOF
34346 /* confdefs.h.  */
34347 _ACEOF
34348 cat confdefs.h >>conftest.$ac_ext
34349 cat >>conftest.$ac_ext <<_ACEOF
34350 /* end confdefs.h.  */
34351
34352 int
34353 main ()
34354 {
34355
34356   ;
34357   return 0;
34358 }
34359 _ACEOF
34360 rm -f conftest.$ac_objext
34361 if { (ac_try="$ac_compile"
34362 case "(($ac_try" in
34363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364   *) ac_try_echo=$ac_try;;
34365 esac
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367   (eval "$ac_compile") 2>conftest.er1
34368   ac_status=$?
34369   grep -v '^ *+' conftest.er1 >conftest.err
34370   rm -f conftest.er1
34371   cat conftest.err >&5
34372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373   (exit $ac_status); } &&
34374          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34375   { (case "(($ac_try" in
34376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377   *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380   (eval "$ac_try") 2>&5
34381   ac_status=$?
34382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383   (exit $ac_status); }; } &&
34384          { ac_try='test -s conftest.$ac_objext'
34385   { (case "(($ac_try" in
34386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387   *) ac_try_echo=$ac_try;;
34388 esac
34389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390   (eval "$ac_try") 2>&5
34391   ac_status=$?
34392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393   (exit $ac_status); }; }; then
34394   llvm_cv_cxx_visibility_inlines_hidden=yes
34395 else
34396   echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34398
34399         llvm_cv_cxx_visibility_inlines_hidden=no
34400 fi
34401
34402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403   CXXFLAGS="$oldcxxflags"
34404   ac_ext=c
34405 ac_cpp='$CPP $CPPFLAGS'
34406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34409
34410
34411 fi
34412 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34413 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34414 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34415   ENABLE_VISIBILITY_INLINES_HIDDEN=1
34416
34417 else
34418   ENABLE_VISIBILITY_INLINES_HIDDEN=0
34419
34420 fi
34421
34422
34423 case $llvm_cv_os_type in
34424   SunOS) RPATH="-Wl,-R" ;;
34425   *) RPATH="-Wl,-rpath" ;;
34426 esac
34427
34428
34429
34430 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34431
34432 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34433
34434 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34435
34436 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34437
34438 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34439
34440
34441 ac_config_files="$ac_config_files Makefile.config"
34442
34443
34444 ac_config_files="$ac_config_files llvm.spec"
34445
34446
34447 ac_config_files="$ac_config_files docs/doxygen.cfg"
34448
34449
34450 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34451
34452
34453 ac_config_commands="$ac_config_commands setup"
34454
34455 ac_config_commands="$ac_config_commands Makefile"
34456
34457
34458 ac_config_commands="$ac_config_commands Makefile.common"
34459
34460
34461 ac_config_commands="$ac_config_commands examples/Makefile"
34462
34463
34464 ac_config_commands="$ac_config_commands lib/Makefile"
34465
34466
34467 ac_config_commands="$ac_config_commands runtime/Makefile"
34468
34469
34470 ac_config_commands="$ac_config_commands test/Makefile"
34471
34472
34473 ac_config_commands="$ac_config_commands test/Makefile.tests"
34474
34475
34476 ac_config_commands="$ac_config_commands unittests/Makefile"
34477
34478
34479 ac_config_commands="$ac_config_commands tools/Makefile"
34480
34481
34482 ac_config_commands="$ac_config_commands utils/Makefile"
34483
34484
34485 ac_config_commands="$ac_config_commands projects/Makefile"
34486
34487
34488 ac_config_commands="$ac_config_commands bindings/Makefile"
34489
34490
34491 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34492
34493
34494
34495 cat >confcache <<\_ACEOF
34496 # This file is a shell script that caches the results of configure
34497 # tests run on this system so they can be shared between configure
34498 # scripts and configure runs, see configure's option --config-cache.
34499 # It is not useful on other systems.  If it contains results you don't
34500 # want to keep, you may remove or edit it.
34501 #
34502 # config.status only pays attention to the cache file if you give it
34503 # the --recheck option to rerun configure.
34504 #
34505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34507 # following values.
34508
34509 _ACEOF
34510
34511 # The following way of writing the cache mishandles newlines in values,
34512 # but we know of no workaround that is simple, portable, and efficient.
34513 # So, we kill variables containing newlines.
34514 # Ultrix sh set writes to stderr and can't be redirected directly,
34515 # and sets the high bit in the cache file unless we assign to the vars.
34516 (
34517   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34518     eval ac_val=\$$ac_var
34519     case $ac_val in #(
34520     *${as_nl}*)
34521       case $ac_var in #(
34522       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34524       esac
34525       case $ac_var in #(
34526       _ | IFS | as_nl) ;; #(
34527       *) $as_unset $ac_var ;;
34528       esac ;;
34529     esac
34530   done
34531
34532   (set) 2>&1 |
34533     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34534     *${as_nl}ac_space=\ *)
34535       # `set' does not quote correctly, so add quotes (double-quote
34536       # substitution turns \\\\ into \\, and sed turns \\ into \).
34537       sed -n \
34538         "s/'/'\\\\''/g;
34539           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34540       ;; #(
34541     *)
34542       # `set' quotes correctly as required by POSIX, so do not add quotes.
34543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34544       ;;
34545     esac |
34546     sort
34547 ) |
34548   sed '
34549      /^ac_cv_env_/b end
34550      t clear
34551      :clear
34552      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34553      t end
34554      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34555      :end' >>confcache
34556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34557   if test -w "$cache_file"; then
34558     test "x$cache_file" != "x/dev/null" &&
34559       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34560 echo "$as_me: updating cache $cache_file" >&6;}
34561     cat confcache >$cache_file
34562   else
34563     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34564 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34565   fi
34566 fi
34567 rm -f confcache
34568
34569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34570 # Let make expand exec_prefix.
34571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34572
34573 DEFS=-DHAVE_CONFIG_H
34574
34575 ac_libobjs=
34576 ac_ltlibobjs=
34577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34578   # 1. Remove the extension, and $U if already installed.
34579   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34580   ac_i=`echo "$ac_i" | sed "$ac_script"`
34581   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34582   #    will be set to the directory where LIBOBJS objects are built.
34583   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34584   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34585 done
34586 LIBOBJS=$ac_libobjs
34587
34588 LTLIBOBJS=$ac_ltlibobjs
34589
34590
34591 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34592   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34593 Usually this means the macro was only invoked conditionally." >&5
34594 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34595 Usually this means the macro was only invoked conditionally." >&2;}
34596    { (exit 1); exit 1; }; }
34597 fi
34598 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34599   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34600 Usually this means the macro was only invoked conditionally." >&5
34601 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34602 Usually this means the macro was only invoked conditionally." >&2;}
34603    { (exit 1); exit 1; }; }
34604 fi
34605
34606 : ${CONFIG_STATUS=./config.status}
34607 ac_clean_files_save=$ac_clean_files
34608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34609 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34610 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34611 cat >$CONFIG_STATUS <<_ACEOF
34612 #! $SHELL
34613 # Generated by $as_me.
34614 # Run this file to recreate the current configuration.
34615 # Compiler output produced by configure, useful for debugging
34616 # configure, is in config.log if it exists.
34617
34618 debug=false
34619 ac_cs_recheck=false
34620 ac_cs_silent=false
34621 SHELL=\${CONFIG_SHELL-$SHELL}
34622 _ACEOF
34623
34624 cat >>$CONFIG_STATUS <<\_ACEOF
34625 ## --------------------- ##
34626 ## M4sh Initialization.  ##
34627 ## --------------------- ##
34628
34629 # Be Bourne compatible
34630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34631   emulate sh
34632   NULLCMD=:
34633   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34634   # is contrary to our usage.  Disable this feature.
34635   alias -g '${1+"$@"}'='"$@"'
34636   setopt NO_GLOB_SUBST
34637 else
34638   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34639 fi
34640 BIN_SH=xpg4; export BIN_SH # for Tru64
34641 DUALCASE=1; export DUALCASE # for MKS sh
34642
34643
34644 # PATH needs CR
34645 # Avoid depending upon Character Ranges.
34646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34649 as_cr_digits='0123456789'
34650 as_cr_alnum=$as_cr_Letters$as_cr_digits
34651
34652 # The user is always right.
34653 if test "${PATH_SEPARATOR+set}" != set; then
34654   echo "#! /bin/sh" >conf$$.sh
34655   echo  "exit 0"   >>conf$$.sh
34656   chmod +x conf$$.sh
34657   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34658     PATH_SEPARATOR=';'
34659   else
34660     PATH_SEPARATOR=:
34661   fi
34662   rm -f conf$$.sh
34663 fi
34664
34665 # Support unset when possible.
34666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34667   as_unset=unset
34668 else
34669   as_unset=false
34670 fi
34671
34672
34673 # IFS
34674 # We need space, tab and new line, in precisely that order.  Quoting is
34675 # there to prevent editors from complaining about space-tab.
34676 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34677 # splitting by setting IFS to empty value.)
34678 as_nl='
34679 '
34680 IFS=" ""        $as_nl"
34681
34682 # Find who we are.  Look in the path if we contain no directory separator.
34683 case $0 in
34684   *[\\/]* ) as_myself=$0 ;;
34685   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34686 for as_dir in $PATH
34687 do
34688   IFS=$as_save_IFS
34689   test -z "$as_dir" && as_dir=.
34690   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34691 done
34692 IFS=$as_save_IFS
34693
34694      ;;
34695 esac
34696 # We did not find ourselves, most probably we were run as `sh COMMAND'
34697 # in which case we are not to be found in the path.
34698 if test "x$as_myself" = x; then
34699   as_myself=$0
34700 fi
34701 if test ! -f "$as_myself"; then
34702   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34703   { (exit 1); exit 1; }
34704 fi
34705
34706 # Work around bugs in pre-3.0 UWIN ksh.
34707 for as_var in ENV MAIL MAILPATH
34708 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34709 done
34710 PS1='$ '
34711 PS2='> '
34712 PS4='+ '
34713
34714 # NLS nuisances.
34715 for as_var in \
34716   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34717   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34718   LC_TELEPHONE LC_TIME
34719 do
34720   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34721     eval $as_var=C; export $as_var
34722   else
34723     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34724   fi
34725 done
34726
34727 # Required to use basename.
34728 if expr a : '\(a\)' >/dev/null 2>&1 &&
34729    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34730   as_expr=expr
34731 else
34732   as_expr=false
34733 fi
34734
34735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34736   as_basename=basename
34737 else
34738   as_basename=false
34739 fi
34740
34741
34742 # Name of the executable.
34743 as_me=`$as_basename -- "$0" ||
34744 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34745          X"$0" : 'X\(//\)$' \| \
34746          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34747 echo X/"$0" |
34748     sed '/^.*\/\([^/][^/]*\)\/*$/{
34749             s//\1/
34750             q
34751           }
34752           /^X\/\(\/\/\)$/{
34753             s//\1/
34754             q
34755           }
34756           /^X\/\(\/\).*/{
34757             s//\1/
34758             q
34759           }
34760           s/.*/./; q'`
34761
34762 # CDPATH.
34763 $as_unset CDPATH
34764
34765
34766
34767   as_lineno_1=$LINENO
34768   as_lineno_2=$LINENO
34769   test "x$as_lineno_1" != "x$as_lineno_2" &&
34770   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34771
34772   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34773   # uniformly replaced by the line number.  The first 'sed' inserts a
34774   # line-number line after each line using $LINENO; the second 'sed'
34775   # does the real work.  The second script uses 'N' to pair each
34776   # line-number line with the line containing $LINENO, and appends
34777   # trailing '-' during substitution so that $LINENO is not a special
34778   # case at line end.
34779   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34780   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34781   # E. McMahon (1931-1989) for sed's syntax.  :-)
34782   sed -n '
34783     p
34784     /[$]LINENO/=
34785   ' <$as_myself |
34786     sed '
34787       s/[$]LINENO.*/&-/
34788       t lineno
34789       b
34790       :lineno
34791       N
34792       :loop
34793       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34794       t loop
34795       s/-\n.*//
34796     ' >$as_me.lineno &&
34797   chmod +x "$as_me.lineno" ||
34798     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34799    { (exit 1); exit 1; }; }
34800
34801   # Don't try to exec as it changes $[0], causing all sort of problems
34802   # (the dirname of $[0] is not the place where we might find the
34803   # original and so on.  Autoconf is especially sensitive to this).
34804   . "./$as_me.lineno"
34805   # Exit status is that of the last command.
34806   exit
34807 }
34808
34809
34810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34811   as_dirname=dirname
34812 else
34813   as_dirname=false
34814 fi
34815
34816 ECHO_C= ECHO_N= ECHO_T=
34817 case `echo -n x` in
34818 -n*)
34819   case `echo 'x\c'` in
34820   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34821   *)   ECHO_C='\c';;
34822   esac;;
34823 *)
34824   ECHO_N='-n';;
34825 esac
34826
34827 if expr a : '\(a\)' >/dev/null 2>&1 &&
34828    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34829   as_expr=expr
34830 else
34831   as_expr=false
34832 fi
34833
34834 rm -f conf$$ conf$$.exe conf$$.file
34835 if test -d conf$$.dir; then
34836   rm -f conf$$.dir/conf$$.file
34837 else
34838   rm -f conf$$.dir
34839   mkdir conf$$.dir
34840 fi
34841 echo >conf$$.file
34842 if ln -s conf$$.file conf$$ 2>/dev/null; then
34843   as_ln_s='ln -s'
34844   # ... but there are two gotchas:
34845   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34846   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34847   # In both cases, we have to default to `cp -p'.
34848   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34849     as_ln_s='cp -p'
34850 elif ln conf$$.file conf$$ 2>/dev/null; then
34851   as_ln_s=ln
34852 else
34853   as_ln_s='cp -p'
34854 fi
34855 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34856 rmdir conf$$.dir 2>/dev/null
34857
34858 if mkdir -p . 2>/dev/null; then
34859   as_mkdir_p=:
34860 else
34861   test -d ./-p && rmdir ./-p
34862   as_mkdir_p=false
34863 fi
34864
34865 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34866 # systems may use methods other than mode bits to determine executability.
34867 cat >conf$$.file <<_ASEOF
34868 #! /bin/sh
34869 exit 0
34870 _ASEOF
34871 chmod +x conf$$.file
34872 if test -x conf$$.file >/dev/null 2>&1; then
34873   as_executable_p="test -x"
34874 else
34875   as_executable_p=:
34876 fi
34877 rm -f conf$$.file
34878
34879 # Sed expression to map a string onto a valid CPP name.
34880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34881
34882 # Sed expression to map a string onto a valid variable name.
34883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34884
34885
34886 exec 6>&1
34887
34888 # Save the log message, to keep $[0] and so on meaningful, and to
34889 # report actual input values of CONFIG_FILES etc. instead of their
34890 # values after options handling.
34891 ac_log="
34892 This file was extended by llvm $as_me 2.6svn, which was
34893 generated by GNU Autoconf 2.60.  Invocation command line was
34894
34895   CONFIG_FILES    = $CONFIG_FILES
34896   CONFIG_HEADERS  = $CONFIG_HEADERS
34897   CONFIG_LINKS    = $CONFIG_LINKS
34898   CONFIG_COMMANDS = $CONFIG_COMMANDS
34899   $ $0 $@
34900
34901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34902 "
34903
34904 _ACEOF
34905
34906 cat >>$CONFIG_STATUS <<_ACEOF
34907 # Files that config.status was made for.
34908 config_files="$ac_config_files"
34909 config_headers="$ac_config_headers"
34910 config_commands="$ac_config_commands"
34911
34912 _ACEOF
34913
34914 cat >>$CONFIG_STATUS <<\_ACEOF
34915 ac_cs_usage="\
34916 \`$as_me' instantiates files from templates according to the
34917 current configuration.
34918
34919 Usage: $0 [OPTIONS] [FILE]...
34920
34921   -h, --help       print this help, then exit
34922   -V, --version    print version number, then exit
34923   -q, --quiet      do not print progress messages
34924   -d, --debug      don't remove temporary files
34925       --recheck    update $as_me by reconfiguring in the same conditions
34926   --file=FILE[:TEMPLATE]
34927                    instantiate the configuration file FILE
34928   --header=FILE[:TEMPLATE]
34929                    instantiate the configuration header FILE
34930
34931 Configuration files:
34932 $config_files
34933
34934 Configuration headers:
34935 $config_headers
34936
34937 Configuration commands:
34938 $config_commands
34939
34940 Report bugs to <bug-autoconf@gnu.org>."
34941
34942 _ACEOF
34943 cat >>$CONFIG_STATUS <<_ACEOF
34944 ac_cs_version="\\
34945 llvm config.status 2.6svn
34946 configured by $0, generated by GNU Autoconf 2.60,
34947   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34948
34949 Copyright (C) 2006 Free Software Foundation, Inc.
34950 This config.status script is free software; the Free Software Foundation
34951 gives unlimited permission to copy, distribute and modify it."
34952
34953 ac_pwd='$ac_pwd'
34954 srcdir='$srcdir'
34955 INSTALL='$INSTALL'
34956 _ACEOF
34957
34958 cat >>$CONFIG_STATUS <<\_ACEOF
34959 # If no file are specified by the user, then we need to provide default
34960 # value.  By we need to know if files were specified by the user.
34961 ac_need_defaults=:
34962 while test $# != 0
34963 do
34964   case $1 in
34965   --*=*)
34966     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34967     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34968     ac_shift=:
34969     ;;
34970   *)
34971     ac_option=$1
34972     ac_optarg=$2
34973     ac_shift=shift
34974     ;;
34975   esac
34976
34977   case $ac_option in
34978   # Handling of the options.
34979   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34980     ac_cs_recheck=: ;;
34981   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34982     echo "$ac_cs_version"; exit ;;
34983   --debug | --debu | --deb | --de | --d | -d )
34984     debug=: ;;
34985   --file | --fil | --fi | --f )
34986     $ac_shift
34987     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34988     ac_need_defaults=false;;
34989   --header | --heade | --head | --hea )
34990     $ac_shift
34991     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34992     ac_need_defaults=false;;
34993   --he | --h)
34994     # Conflict between --help and --header
34995     { echo "$as_me: error: ambiguous option: $1
34996 Try \`$0 --help' for more information." >&2
34997    { (exit 1); exit 1; }; };;
34998   --help | --hel | -h )
34999     echo "$ac_cs_usage"; exit ;;
35000   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35001   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35002     ac_cs_silent=: ;;
35003
35004   # This is an error.
35005   -*) { echo "$as_me: error: unrecognized option: $1
35006 Try \`$0 --help' for more information." >&2
35007    { (exit 1); exit 1; }; } ;;
35008
35009   *) ac_config_targets="$ac_config_targets $1"
35010      ac_need_defaults=false ;;
35011
35012   esac
35013   shift
35014 done
35015
35016 ac_configure_extra_args=
35017
35018 if $ac_cs_silent; then
35019   exec 6>/dev/null
35020   ac_configure_extra_args="$ac_configure_extra_args --silent"
35021 fi
35022
35023 _ACEOF
35024 cat >>$CONFIG_STATUS <<_ACEOF
35025 if \$ac_cs_recheck; then
35026   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35027   CONFIG_SHELL=$SHELL
35028   export CONFIG_SHELL
35029   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35030 fi
35031
35032 _ACEOF
35033 cat >>$CONFIG_STATUS <<\_ACEOF
35034 exec 5>>config.log
35035 {
35036   echo
35037   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35038 ## Running $as_me. ##
35039 _ASBOX
35040   echo "$ac_log"
35041 } >&5
35042
35043 _ACEOF
35044 cat >>$CONFIG_STATUS <<_ACEOF
35045 #
35046 # INIT-COMMANDS
35047 #
35048 llvm_src="${srcdir}"
35049
35050 _ACEOF
35051
35052 cat >>$CONFIG_STATUS <<\_ACEOF
35053
35054 # Handling of arguments.
35055 for ac_config_target in $ac_config_targets
35056 do
35057   case $ac_config_target in
35058     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35059     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35060     "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35061     "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35062     "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35063     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35064     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35065     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35066     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35067     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35068     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35069     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35070     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35071     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35072     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35073     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35074     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35075     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35076     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35077     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35078     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35079     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35080     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35081
35082   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35084    { (exit 1); exit 1; }; };;
35085   esac
35086 done
35087
35088
35089 # If the user did not use the arguments to specify the items to instantiate,
35090 # then the envvar interface is used.  Set only those that are not.
35091 # We use the long form for the default assignment because of an extremely
35092 # bizarre bug on SunOS 4.1.3.
35093 if $ac_need_defaults; then
35094   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35095   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35096   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35097 fi
35098
35099 # Have a temporary directory for convenience.  Make it in the build tree
35100 # simply because there is no reason against having it here, and in addition,
35101 # creating and moving files from /tmp can sometimes cause problems.
35102 # Hook for its removal unless debugging.
35103 # Note that there is a small window in which the directory will not be cleaned:
35104 # after its creation but before its name has been assigned to `$tmp'.
35105 $debug ||
35106 {
35107   tmp=
35108   trap 'exit_status=$?
35109   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35110 ' 0
35111   trap '{ (exit 1); exit 1; }' 1 2 13 15
35112 }
35113 # Create a (secure) tmp directory for tmp files.
35114
35115 {
35116   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35117   test -n "$tmp" && test -d "$tmp"
35118 }  ||
35119 {
35120   tmp=./conf$$-$RANDOM
35121   (umask 077 && mkdir "$tmp")
35122 } ||
35123 {
35124    echo "$me: cannot create a temporary directory in ." >&2
35125    { (exit 1); exit 1; }
35126 }
35127
35128 #
35129 # Set up the sed scripts for CONFIG_FILES section.
35130 #
35131
35132 # No need to generate the scripts if there are no CONFIG_FILES.
35133 # This happens for instance when ./config.status config.h
35134 if test -n "$CONFIG_FILES"; then
35135
35136 _ACEOF
35137
35138
35139
35140 ac_delim='%!_!# '
35141 for ac_last_try in false false false false false :; do
35142   cat >conf$$subs.sed <<_ACEOF
35143 SHELL!$SHELL$ac_delim
35144 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35145 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35146 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35147 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35148 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35149 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35150 exec_prefix!$exec_prefix$ac_delim
35151 prefix!$prefix$ac_delim
35152 program_transform_name!$program_transform_name$ac_delim
35153 bindir!$bindir$ac_delim
35154 sbindir!$sbindir$ac_delim
35155 libexecdir!$libexecdir$ac_delim
35156 datarootdir!$datarootdir$ac_delim
35157 datadir!$datadir$ac_delim
35158 sysconfdir!$sysconfdir$ac_delim
35159 sharedstatedir!$sharedstatedir$ac_delim
35160 localstatedir!$localstatedir$ac_delim
35161 includedir!$includedir$ac_delim
35162 oldincludedir!$oldincludedir$ac_delim
35163 docdir!$docdir$ac_delim
35164 infodir!$infodir$ac_delim
35165 htmldir!$htmldir$ac_delim
35166 dvidir!$dvidir$ac_delim
35167 pdfdir!$pdfdir$ac_delim
35168 psdir!$psdir$ac_delim
35169 libdir!$libdir$ac_delim
35170 localedir!$localedir$ac_delim
35171 mandir!$mandir$ac_delim
35172 DEFS!$DEFS$ac_delim
35173 ECHO_C!$ECHO_C$ac_delim
35174 ECHO_N!$ECHO_N$ac_delim
35175 ECHO_T!$ECHO_T$ac_delim
35176 LIBS!$LIBS$ac_delim
35177 build_alias!$build_alias$ac_delim
35178 host_alias!$host_alias$ac_delim
35179 target_alias!$target_alias$ac_delim
35180 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35181 subdirs!$subdirs$ac_delim
35182 build!$build$ac_delim
35183 build_cpu!$build_cpu$ac_delim
35184 build_vendor!$build_vendor$ac_delim
35185 build_os!$build_os$ac_delim
35186 host!$host$ac_delim
35187 host_cpu!$host_cpu$ac_delim
35188 host_vendor!$host_vendor$ac_delim
35189 host_os!$host_os$ac_delim
35190 target!$target$ac_delim
35191 target_cpu!$target_cpu$ac_delim
35192 target_vendor!$target_vendor$ac_delim
35193 target_os!$target_os$ac_delim
35194 OS!$OS$ac_delim
35195 LINKALL!$LINKALL$ac_delim
35196 NOLINKALL!$NOLINKALL$ac_delim
35197 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35198 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35199 ARCH!$ARCH$ac_delim
35200 ENDIAN!$ENDIAN$ac_delim
35201 CC!$CC$ac_delim
35202 CFLAGS!$CFLAGS$ac_delim
35203 LDFLAGS!$LDFLAGS$ac_delim
35204 CPPFLAGS!$CPPFLAGS$ac_delim
35205 ac_ct_CC!$ac_ct_CC$ac_delim
35206 EXEEXT!$EXEEXT$ac_delim
35207 OBJEXT!$OBJEXT$ac_delim
35208 CPP!$CPP$ac_delim
35209 GREP!$GREP$ac_delim
35210 EGREP!$EGREP$ac_delim
35211 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35212 BUILD_CC!$BUILD_CC$ac_delim
35213 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35214 BUILD_CXX!$BUILD_CXX$ac_delim
35215 CVSBUILD!$CVSBUILD$ac_delim
35216 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35217 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35218 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35219 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35220 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35221 JIT!$JIT$ac_delim
35222 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35223 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35224 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35225 ENABLE_PIC!$ENABLE_PIC$ac_delim
35226 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35227 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35228 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35229 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35230 CXX!$CXX$ac_delim
35231 CXXFLAGS!$CXXFLAGS$ac_delim
35232 ac_ct_CXX!$ac_ct_CXX$ac_delim
35233 NM!$NM$ac_delim
35234 ifGNUmake!$ifGNUmake$ac_delim
35235 LN_S!$LN_S$ac_delim
35236 CMP!$CMP$ac_delim
35237 CP!$CP$ac_delim
35238 DATE!$DATE$ac_delim
35239 FIND!$FIND$ac_delim
35240 _ACEOF
35241
35242   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35243     break
35244   elif $ac_last_try; then
35245     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35246 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35247    { (exit 1); exit 1; }; }
35248   else
35249     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35250   fi
35251 done
35252
35253 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35254 if test -n "$ac_eof"; then
35255   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35256   ac_eof=`expr $ac_eof + 1`
35257 fi
35258
35259 cat >>$CONFIG_STATUS <<_ACEOF
35260 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35262 _ACEOF
35263 sed '
35264 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35265 s/^/s,@/; s/!/@,|#_!!_#|/
35266 :n
35267 t n
35268 s/'"$ac_delim"'$/,g/; t
35269 s/$/\\/; p
35270 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35271 ' >>$CONFIG_STATUS <conf$$subs.sed
35272 rm -f conf$$subs.sed
35273 cat >>$CONFIG_STATUS <<_ACEOF
35274 CEOF$ac_eof
35275 _ACEOF
35276
35277
35278 ac_delim='%!_!# '
35279 for ac_last_try in false false false false false :; do
35280   cat >conf$$subs.sed <<_ACEOF
35281 MKDIR!$MKDIR$ac_delim
35282 MV!$MV$ac_delim
35283 RANLIB!$RANLIB$ac_delim
35284 RM!$RM$ac_delim
35285 SED!$SED$ac_delim
35286 TAR!$TAR$ac_delim
35287 BINPWD!$BINPWD$ac_delim
35288 GRAPHVIZ!$GRAPHVIZ$ac_delim
35289 DOT!$DOT$ac_delim
35290 GV!$GV$ac_delim
35291 DOTTY!$DOTTY$ac_delim
35292 PERL!$PERL$ac_delim
35293 HAVE_PERL!$HAVE_PERL$ac_delim
35294 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35295 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35296 INSTALL_DATA!$INSTALL_DATA$ac_delim
35297 BZIP2!$BZIP2$ac_delim
35298 DOXYGEN!$DOXYGEN$ac_delim
35299 GROFF!$GROFF$ac_delim
35300 GZIP!$GZIP$ac_delim
35301 POD2HTML!$POD2HTML$ac_delim
35302 POD2MAN!$POD2MAN$ac_delim
35303 RUNTEST!$RUNTEST$ac_delim
35304 TCLSH!$TCLSH$ac_delim
35305 ZIP!$ZIP$ac_delim
35306 OCAMLC!$OCAMLC$ac_delim
35307 OCAMLOPT!$OCAMLOPT$ac_delim
35308 OCAMLDEP!$OCAMLDEP$ac_delim
35309 OCAMLDOC!$OCAMLDOC$ac_delim
35310 GAS!$GAS$ac_delim
35311 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35312 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35313 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35314 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35315 LIBADD_DL!$LIBADD_DL$ac_delim
35316 ECHO!$ECHO$ac_delim
35317 AR!$AR$ac_delim
35318 STRIP!$STRIP$ac_delim
35319 CXXCPP!$CXXCPP$ac_delim
35320 F77!$F77$ac_delim
35321 FFLAGS!$FFLAGS$ac_delim
35322 ac_ct_F77!$ac_ct_F77$ac_delim
35323 LIBTOOL!$LIBTOOL$ac_delim
35324 LLVMGCC!$LLVMGCC$ac_delim
35325 LLVMGXX!$LLVMGXX$ac_delim
35326 USE_UDIS86!$USE_UDIS86$ac_delim
35327 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35328 HAVE_FFI!$HAVE_FFI$ac_delim
35329 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35330 ALLOCA!$ALLOCA$ac_delim
35331 MMAP_FILE!$MMAP_FILE$ac_delim
35332 LLVMCC1!$LLVMCC1$ac_delim
35333 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35334 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35335 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35336 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35337 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35338 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35339 SHLIBEXT!$SHLIBEXT$ac_delim
35340 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35341 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35342 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35343 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35344 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35345 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35346 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35347 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35348 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35349 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35350 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35351 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35352 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35353 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35354 RPATH!$RPATH$ac_delim
35355 LIBOBJS!$LIBOBJS$ac_delim
35356 LTLIBOBJS!$LTLIBOBJS$ac_delim
35357 _ACEOF
35358
35359   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
35360     break
35361   elif $ac_last_try; then
35362     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35363 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35364    { (exit 1); exit 1; }; }
35365   else
35366     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35367   fi
35368 done
35369
35370 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35371 if test -n "$ac_eof"; then
35372   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35373   ac_eof=`expr $ac_eof + 1`
35374 fi
35375
35376 cat >>$CONFIG_STATUS <<_ACEOF
35377 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35379 _ACEOF
35380 sed '
35381 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35382 s/^/s,@/; s/!/@,|#_!!_#|/
35383 :n
35384 t n
35385 s/'"$ac_delim"'$/,g/; t
35386 s/$/\\/; p
35387 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35388 ' >>$CONFIG_STATUS <conf$$subs.sed
35389 rm -f conf$$subs.sed
35390 cat >>$CONFIG_STATUS <<_ACEOF
35391 :end
35392 s/|#_!!_#|//g
35393 CEOF$ac_eof
35394 _ACEOF
35395
35396
35397 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35398 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35399 # trailing colons and then remove the whole line if VPATH becomes empty
35400 # (actually we leave an empty line to preserve line numbers).
35401 if test "x$srcdir" = x.; then
35402   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35403 s/:*\$(srcdir):*/:/
35404 s/:*\${srcdir}:*/:/
35405 s/:*@srcdir@:*/:/
35406 s/^\([^=]*=[     ]*\):*/\1/
35407 s/:*$//
35408 s/^[^=]*=[       ]*$//
35409 }'
35410 fi
35411
35412 cat >>$CONFIG_STATUS <<\_ACEOF
35413 fi # test -n "$CONFIG_FILES"
35414
35415
35416 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35417 do
35418   case $ac_tag in
35419   :[FHLC]) ac_mode=$ac_tag; continue;;
35420   esac
35421   case $ac_mode$ac_tag in
35422   :[FHL]*:*);;
35423   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35424 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35425    { (exit 1); exit 1; }; };;
35426   :[FH]-) ac_tag=-:-;;
35427   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35428   esac
35429   ac_save_IFS=$IFS
35430   IFS=:
35431   set x $ac_tag
35432   IFS=$ac_save_IFS
35433   shift
35434   ac_file=$1
35435   shift
35436
35437   case $ac_mode in
35438   :L) ac_source=$1;;
35439   :[FH])
35440     ac_file_inputs=
35441     for ac_f
35442     do
35443       case $ac_f in
35444       -) ac_f="$tmp/stdin";;
35445       *) # Look for the file first in the build tree, then in the source tree
35446          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35447          # because $ac_f cannot contain `:'.
35448          test -f "$ac_f" ||
35449            case $ac_f in
35450            [\\/$]*) false;;
35451            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35452            esac ||
35453            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35454 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35455    { (exit 1); exit 1; }; };;
35456       esac
35457       ac_file_inputs="$ac_file_inputs $ac_f"
35458     done
35459
35460     # Let's still pretend it is `configure' which instantiates (i.e., don't
35461     # use $as_me), people would be surprised to read:
35462     #    /* config.h.  Generated by config.status.  */
35463     configure_input="Generated from "`IFS=:
35464           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35465     if test x"$ac_file" != x-; then
35466       configure_input="$ac_file.  $configure_input"
35467       { echo "$as_me:$LINENO: creating $ac_file" >&5
35468 echo "$as_me: creating $ac_file" >&6;}
35469     fi
35470
35471     case $ac_tag in
35472     *:-:* | *:-) cat >"$tmp/stdin";;
35473     esac
35474     ;;
35475   esac
35476
35477   ac_dir=`$as_dirname -- "$ac_file" ||
35478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35479          X"$ac_file" : 'X\(//\)[^/]' \| \
35480          X"$ac_file" : 'X\(//\)$' \| \
35481          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35482 echo X"$ac_file" |
35483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35484             s//\1/
35485             q
35486           }
35487           /^X\(\/\/\)[^/].*/{
35488             s//\1/
35489             q
35490           }
35491           /^X\(\/\/\)$/{
35492             s//\1/
35493             q
35494           }
35495           /^X\(\/\).*/{
35496             s//\1/
35497             q
35498           }
35499           s/.*/./; q'`
35500   { as_dir="$ac_dir"
35501   case $as_dir in #(
35502   -*) as_dir=./$as_dir;;
35503   esac
35504   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35505     as_dirs=
35506     while :; do
35507       case $as_dir in #(
35508       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35509       *) as_qdir=$as_dir;;
35510       esac
35511       as_dirs="'$as_qdir' $as_dirs"
35512       as_dir=`$as_dirname -- "$as_dir" ||
35513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35514          X"$as_dir" : 'X\(//\)[^/]' \| \
35515          X"$as_dir" : 'X\(//\)$' \| \
35516          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35517 echo X"$as_dir" |
35518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35519             s//\1/
35520             q
35521           }
35522           /^X\(\/\/\)[^/].*/{
35523             s//\1/
35524             q
35525           }
35526           /^X\(\/\/\)$/{
35527             s//\1/
35528             q
35529           }
35530           /^X\(\/\).*/{
35531             s//\1/
35532             q
35533           }
35534           s/.*/./; q'`
35535       test -d "$as_dir" && break
35536     done
35537     test -z "$as_dirs" || eval "mkdir $as_dirs"
35538   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35539 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35540    { (exit 1); exit 1; }; }; }
35541   ac_builddir=.
35542
35543 case "$ac_dir" in
35544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35545 *)
35546   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35547   # A ".." for each directory in $ac_dir_suffix.
35548   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35549   case $ac_top_builddir_sub in
35550   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35551   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35552   esac ;;
35553 esac
35554 ac_abs_top_builddir=$ac_pwd
35555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35556 # for backward compatibility:
35557 ac_top_builddir=$ac_top_build_prefix
35558
35559 case $srcdir in
35560   .)  # We are building in place.
35561     ac_srcdir=.
35562     ac_top_srcdir=$ac_top_builddir_sub
35563     ac_abs_top_srcdir=$ac_pwd ;;
35564   [\\/]* | ?:[\\/]* )  # Absolute name.
35565     ac_srcdir=$srcdir$ac_dir_suffix;
35566     ac_top_srcdir=$srcdir
35567     ac_abs_top_srcdir=$srcdir ;;
35568   *) # Relative name.
35569     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35570     ac_top_srcdir=$ac_top_build_prefix$srcdir
35571     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35572 esac
35573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35574
35575
35576   case $ac_mode in
35577   :F)
35578   #
35579   # CONFIG_FILE
35580   #
35581
35582   case $INSTALL in
35583   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35584   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35585   esac
35586 _ACEOF
35587
35588 cat >>$CONFIG_STATUS <<\_ACEOF
35589 # If the template does not know about datarootdir, expand it.
35590 # FIXME: This hack should be removed a few years after 2.60.
35591 ac_datarootdir_hack=; ac_datarootdir_seen=
35592
35593 case `sed -n '/datarootdir/ {
35594   p
35595   q
35596 }
35597 /@datadir@/p
35598 /@docdir@/p
35599 /@infodir@/p
35600 /@localedir@/p
35601 /@mandir@/p
35602 ' $ac_file_inputs` in
35603 *datarootdir*) ac_datarootdir_seen=yes;;
35604 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35605   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35606 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35607 _ACEOF
35608 cat >>$CONFIG_STATUS <<_ACEOF
35609   ac_datarootdir_hack='
35610   s&@datadir@&$datadir&g
35611   s&@docdir@&$docdir&g
35612   s&@infodir@&$infodir&g
35613   s&@localedir@&$localedir&g
35614   s&@mandir@&$mandir&g
35615     s&\\\${datarootdir}&$datarootdir&g' ;;
35616 esac
35617 _ACEOF
35618
35619 # Neutralize VPATH when `$srcdir' = `.'.
35620 # Shell code in configure.ac might set extrasub.
35621 # FIXME: do we really want to maintain this feature?
35622 cat >>$CONFIG_STATUS <<_ACEOF
35623   sed "$ac_vpsub
35624 $extrasub
35625 _ACEOF
35626 cat >>$CONFIG_STATUS <<\_ACEOF
35627 :t
35628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35629 s&@configure_input@&$configure_input&;t t
35630 s&@top_builddir@&$ac_top_builddir_sub&;t t
35631 s&@srcdir@&$ac_srcdir&;t t
35632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35633 s&@top_srcdir@&$ac_top_srcdir&;t t
35634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35635 s&@builddir@&$ac_builddir&;t t
35636 s&@abs_builddir@&$ac_abs_builddir&;t t
35637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35638 s&@INSTALL@&$ac_INSTALL&;t t
35639 $ac_datarootdir_hack
35640 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35641
35642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35643   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35644   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35645   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35646 which seems to be undefined.  Please make sure it is defined." >&5
35647 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35648 which seems to be undefined.  Please make sure it is defined." >&2;}
35649
35650   rm -f "$tmp/stdin"
35651   case $ac_file in
35652   -) cat "$tmp/out"; rm -f "$tmp/out";;
35653   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35654   esac
35655  ;;
35656   :H)
35657   #
35658   # CONFIG_HEADER
35659   #
35660 _ACEOF
35661
35662 # Transform confdefs.h into a sed script `conftest.defines', that
35663 # substitutes the proper values into config.h.in to produce config.h.
35664 rm -f conftest.defines conftest.tail
35665 # First, append a space to every undef/define line, to ease matching.
35666 echo 's/$/ /' >conftest.defines
35667 # Then, protect against being on the right side of a sed subst, or in
35668 # an unquoted here document, in config.status.  If some macros were
35669 # called several times there might be several #defines for the same
35670 # symbol, which is useless.  But do not sort them, since the last
35671 # AC_DEFINE must be honored.
35672 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35673 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35674 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35675 # PARAMS is the parameter list in the macro definition--in most cases, it's
35676 # just an empty string.
35677 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35678 ac_dB='\\)[      (].*,\\1define\\2'
35679 ac_dC=' '
35680 ac_dD=' ,'
35681
35682 uniq confdefs.h |
35683   sed -n '
35684         t rset
35685         :rset
35686         s/^[     ]*#[    ]*define[       ][      ]*//
35687         t ok
35688         d
35689         :ok
35690         s/[\\&,]/\\&/g
35691         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35692         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35693   ' >>conftest.defines
35694
35695 # Remove the space that was appended to ease matching.
35696 # Then replace #undef with comments.  This is necessary, for
35697 # example, in the case of _POSIX_SOURCE, which is predefined and required
35698 # on some systems where configure will not decide to define it.
35699 # (The regexp can be short, since the line contains either #define or #undef.)
35700 echo 's/ $//
35701 s,^[     #]*u.*,/* & */,' >>conftest.defines
35702
35703 # Break up conftest.defines:
35704 ac_max_sed_lines=50
35705
35706 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35707 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35708 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35709 # et cetera.
35710 ac_in='$ac_file_inputs'
35711 ac_out='"$tmp/out1"'
35712 ac_nxt='"$tmp/out2"'
35713
35714 while :
35715 do
35716   # Write a here document:
35717     cat >>$CONFIG_STATUS <<_ACEOF
35718     # First, check the format of the line:
35719     cat >"\$tmp/defines.sed" <<\\CEOF
35720 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35721 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35722 b
35723 :def
35724 _ACEOF
35725   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35726   echo 'CEOF
35727     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35728   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35729   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35730   grep . conftest.tail >/dev/null || break
35731   rm -f conftest.defines
35732   mv conftest.tail conftest.defines
35733 done
35734 rm -f conftest.defines conftest.tail
35735
35736 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35737 cat >>$CONFIG_STATUS <<\_ACEOF
35738   if test x"$ac_file" != x-; then
35739     echo "/* $configure_input  */" >"$tmp/config.h"
35740     cat "$ac_result" >>"$tmp/config.h"
35741     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35742       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35743 echo "$as_me: $ac_file is unchanged" >&6;}
35744     else
35745       rm -f $ac_file
35746       mv "$tmp/config.h" $ac_file
35747     fi
35748   else
35749     echo "/* $configure_input  */"
35750     cat "$ac_result"
35751   fi
35752   rm -f "$tmp/out12"
35753  ;;
35754
35755   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35756 echo "$as_me: executing $ac_file commands" >&6;}
35757  ;;
35758   esac
35759
35760
35761   case $ac_file$ac_mode in
35762     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35763    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35764     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35765    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35766     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35767    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35768     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35769    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35770     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35771    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35772     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35773    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35774     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35775    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35776     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35777    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35778     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35779    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35780     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35781    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35782     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35783    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35784     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35785    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35786     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35787    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35788
35789   esac
35790 done # for ac_tag
35791
35792
35793 { (exit 0); exit 0; }
35794 _ACEOF
35795 chmod +x $CONFIG_STATUS
35796 ac_clean_files=$ac_clean_files_save
35797
35798
35799 # configure is writing to config.log, and then calls config.status.
35800 # config.status does its own redirection, appending to config.log.
35801 # Unfortunately, on DOS this fails, as config.log is still kept open
35802 # by configure, so config.status won't be able to write to it; its
35803 # output is simply discarded.  So we exec the FD to /dev/null,
35804 # effectively closing config.log, so it can be properly (re)opened and
35805 # appended to by config.status.  When coming back to configure, we
35806 # need to make the FD available again.
35807 if test "$no_create" != yes; then
35808   ac_cs_success=:
35809   ac_config_status_args=
35810   test "$silent" = yes &&
35811     ac_config_status_args="$ac_config_status_args --quiet"
35812   exec 5>/dev/null
35813   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35814   exec 5>>config.log
35815   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35816   # would make configure fail if this is the last instruction.
35817   $ac_cs_success || { (exit 1); exit 1; }
35818 fi
35819
35820 #
35821 # CONFIG_SUBDIRS section.
35822 #
35823 if test "$no_recursion" != yes; then
35824
35825   # Remove --cache-file and --srcdir arguments so they do not pile up.
35826   ac_sub_configure_args=
35827   ac_prev=
35828   eval "set x $ac_configure_args"
35829   shift
35830   for ac_arg
35831   do
35832     if test -n "$ac_prev"; then
35833       ac_prev=
35834       continue
35835     fi
35836     case $ac_arg in
35837     -cache-file | --cache-file | --cache-fil | --cache-fi \
35838     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35839       ac_prev=cache_file ;;
35840     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35841     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35842     | --c=*)
35843       ;;
35844     --config-cache | -C)
35845       ;;
35846     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35847       ac_prev=srcdir ;;
35848     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35849       ;;
35850     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35851       ac_prev=prefix ;;
35852     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35853       ;;
35854     *)
35855       case $ac_arg in
35856       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35857       esac
35858       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35859     esac
35860   done
35861
35862   # Always prepend --prefix to ensure using the same prefix
35863   # in subdir configurations.
35864   ac_arg="--prefix=$prefix"
35865   case $ac_arg in
35866   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35867   esac
35868   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35869
35870   ac_popdir=`pwd`
35871   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35872
35873     # Do not complain, so a configure script can configure whichever
35874     # parts of a large source tree are present.
35875     test -d "$srcdir/$ac_dir" || continue
35876
35877     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35878     echo "$as_me:$LINENO: $ac_msg" >&5
35879     echo "$ac_msg" >&6
35880     { as_dir="$ac_dir"
35881   case $as_dir in #(
35882   -*) as_dir=./$as_dir;;
35883   esac
35884   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35885     as_dirs=
35886     while :; do
35887       case $as_dir in #(
35888       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35889       *) as_qdir=$as_dir;;
35890       esac
35891       as_dirs="'$as_qdir' $as_dirs"
35892       as_dir=`$as_dirname -- "$as_dir" ||
35893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35894          X"$as_dir" : 'X\(//\)[^/]' \| \
35895          X"$as_dir" : 'X\(//\)$' \| \
35896          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35897 echo X"$as_dir" |
35898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35899             s//\1/
35900             q
35901           }
35902           /^X\(\/\/\)[^/].*/{
35903             s//\1/
35904             q
35905           }
35906           /^X\(\/\/\)$/{
35907             s//\1/
35908             q
35909           }
35910           /^X\(\/\).*/{
35911             s//\1/
35912             q
35913           }
35914           s/.*/./; q'`
35915       test -d "$as_dir" && break
35916     done
35917     test -z "$as_dirs" || eval "mkdir $as_dirs"
35918   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35919 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35920    { (exit 1); exit 1; }; }; }
35921     ac_builddir=.
35922
35923 case "$ac_dir" in
35924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35925 *)
35926   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35927   # A ".." for each directory in $ac_dir_suffix.
35928   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35929   case $ac_top_builddir_sub in
35930   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35931   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35932   esac ;;
35933 esac
35934 ac_abs_top_builddir=$ac_pwd
35935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35936 # for backward compatibility:
35937 ac_top_builddir=$ac_top_build_prefix
35938
35939 case $srcdir in
35940   .)  # We are building in place.
35941     ac_srcdir=.
35942     ac_top_srcdir=$ac_top_builddir_sub
35943     ac_abs_top_srcdir=$ac_pwd ;;
35944   [\\/]* | ?:[\\/]* )  # Absolute name.
35945     ac_srcdir=$srcdir$ac_dir_suffix;
35946     ac_top_srcdir=$srcdir
35947     ac_abs_top_srcdir=$srcdir ;;
35948   *) # Relative name.
35949     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35950     ac_top_srcdir=$ac_top_build_prefix$srcdir
35951     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35952 esac
35953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35954
35955
35956     cd "$ac_dir"
35957
35958     # Check for guested configure; otherwise get Cygnus style configure.
35959     if test -f "$ac_srcdir/configure.gnu"; then
35960       ac_sub_configure=$ac_srcdir/configure.gnu
35961     elif test -f "$ac_srcdir/configure"; then
35962       ac_sub_configure=$ac_srcdir/configure
35963     elif test -f "$ac_srcdir/configure.in"; then
35964       # This should be Cygnus configure.
35965       ac_sub_configure=$ac_aux_dir/configure
35966     else
35967       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35969       ac_sub_configure=
35970     fi
35971
35972     # The recursion is here.
35973     if test -n "$ac_sub_configure"; then
35974       # Make the cache file name correct relative to the subdirectory.
35975       case $cache_file in
35976       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35977       *) # Relative name.
35978         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35979       esac
35980
35981       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35982 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35983       # The eval makes quoting arguments work.
35984       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35985            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35986         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35987 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35988    { (exit 1); exit 1; }; }
35989     fi
35990
35991     cd "$ac_popdir"
35992   done
35993 fi
35994